56ced8388550e91c4b1d0c7849f80f248457ad3d
[gnulib.git] / ChangeLog
1 2011-05-07  Bruno Haible  <bruno@clisp.org>
2
3         flock: Move AC_LIBOBJ invocations to module description.
4         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5         invocations from here...
6         * modules/flock (configure.ac): ... to here.
7
8 2011-05-07  Bruno Haible  <bruno@clisp.org>
9
10         fileblocks: Move AC_LIBOBJ invocations to module description.
11         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
12         gl_PREREQ_FILEBLOCKS invocations from here...
13         * modules/fileblocks (configure.ac): ... to here.
14
15 2011-05-06  Bruno Haible  <bruno@clisp.org>
16
17         fflush: Move AC_LIBOBJ invocations to module description.
18         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
19         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
20         invocations from here...
21         * modules/fflush (configure.ac): ... to here.
22
23 2011-05-06  Bruno Haible  <bruno@clisp.org>
24
25         fdopendir: Move AC_LIBOBJ invocations to module description.
26         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
27         here...
28         * modules/fdopendir (configure.ac): ... to here.
29         (Depends-on): Improve conditions.
30
31 2011-05-06  Bruno Haible  <bruno@clisp.org>
32
33         _Exit: Move AC_LIBOBJ invocations to module description.
34         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
35         invocations from here...
36         * modules/_Exit (configure.ac): ... to here.
37
38 2011-05-21  Bruno Haible  <bruno@clisp.org>
39
40         euidaccess: Respect rules for use of AC_LIBOBJ.
41         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
42         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
43         from here...
44         * modules/euidaccess (configure.ac): ... to here.
45
46 2011-05-06  Bruno Haible  <bruno@clisp.org>
47
48         error: Move AC_LIBOBJ invocations to module description.
49         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
50         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
51         invocations from here...
52         * modules/error (configure.ac): ... to here.
53
54 2011-05-06  Bruno Haible  <bruno@clisp.org>
55
56         duplocale: Move AC_LIBOBJ invocations to module description.
57         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
58         gl_PREREQ_DUPLOCALE invocations from here...
59         * modules/duplocale (configure.ac): ... to here.
60
61 2011-05-05  Bruno Haible  <bruno@clisp.org>
62
63         dirfd: Move AC_LIBOBJ invocations to module description.
64         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
65         gl_FUNC_DIRFD.
66         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
67         here...
68         * modules/dirfd (configure.ac): ... to here.
69         (Depends-on): Fix condition.
70
71 2011-05-05  Bruno Haible  <bruno@clisp.org>
72
73         chown: Respect rules for use of AC_LIBOBJ.
74         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
75         * modules/chown (configure.ac): ... to here.
76
77 2011-05-05  Bruno Haible  <bruno@clisp.org>
78
79         chdir-long: Move AC_LIBOBJ invocations to module description.
80         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
81         gl_PREREQ_CHDIR_LONG invocations from here...
82         * modules/chdir-long (configure.ac): ... to here.
83
84 2011-05-05  Bruno Haible  <bruno@clisp.org>
85
86         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
87         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
88         from here...
89         * modules/canonicalize-lgpl (configure.ac): ... to here.
90
91 2011-05-05  Bruno Haible  <bruno@clisp.org>
92
93         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
94         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
95         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
96         REPLACE_CALLOC.
97         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
98         * modules/calloc-gnu (configure.ac): Likewise.
99
100 2011-05-05  Bruno Haible  <bruno@clisp.org>
101
102         btowc: Move AC_LIBOBJ invocations to module description.
103         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
104         invocations from here...
105         * modules/btowc (configure.ac): ... to here.
106
107 2011-05-21  Bruno Haible  <bruno@clisp.org>
108
109         atexit: Move AC_LIBOBJ invocations to module description.
110         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
111         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
112         here...
113         * modules/atexit (configure.ac): ... to here.
114
115 2011-05-05  Bruno Haible  <bruno@clisp.org>
116
117         atoll: Move AC_LIBOBJ invocations to module description.
118         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
119         invocations from here...
120         * modules/atoll (configure.ac): ... to here.
121
122 2011-05-05  Bruno Haible  <bruno@clisp.org>
123
124         argz: Move AC_LIBOBJ invocations to module description.
125         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
126         * modules/argz (configure.ac): ... to here.
127
128 2011-05-05  Bruno Haible  <bruno@clisp.org>
129
130         alphasort: Move AC_LIBOBJ invocations to module description.
131         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
132         gl_PREREQ_ALPHASORT invocations from here...
133         * modules/alphasort (configure.ac): ... to here.
134
135 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
136
137         verify: new macro verify_expr; verify_true deprecated
138         * NEWS: Mention this.
139         * doc/verify.texi (Compile-time Assertions): Document this.
140         * lib/verify.h (verify_true): Deprecate.
141         (verify_expr): New macro.
142         * tests/test-verify.c (function): Test verify_expr.
143
144 2011-06-14  Jim Meyering  <meyering@redhat.com>
145
146         init.sh: give more portable redirection-related advice in a comment
147         * tests/init.sh (stderr_fileno_): Update the advice in comments.
148         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
149         for lots of discussion.  Stefano Lattarini suggested the solution
150         of putting "9>&2" after the command.  Reported by Bruno Haible.
151
152 2011-06-13  Bruno Haible  <bruno@clisp.org>
153
154         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
155         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
156         'none'.
157
158 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
159
160         ftoastr: use strtof only if HAVE_STRTOF
161         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
163         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
164         * modules/ftoastr (configure.ac): Check for strtof.
165
166 2011-06-13  Bruno Haible  <bruno@clisp.org>
167
168         gnulib-tool: Addendum to 2011-06-08 commit.
169         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
170         and --witness-c-macro have been given, augment AM_CPPFLAGS.
171
172 2011-06-13  Bruno Haible  <bruno@clisp.org>
173
174         fseeko: Provide a non-inline replacement of fseek().
175         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
176         * modules/fseeko (Depends-on): Add fseek.
177         * modules/fseek (License): Change to LGPLv2+.
178
179 2011-06-13  Bruno Haible  <bruno@clisp.org>
180
181         ftello: Provide a non-inline replacement of ftell().
182         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
183         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
184         not have ftello() (such as on mingw).
185         * modules/ftello (Depends-on): Add ftell.
186         * modules/ftell (License): Change to LGPLv2+.
187
188 2011-05-07  Bruno Haible  <bruno@clisp.org>
189
190         ftell: Move AC_LIBOBJ invocations to module description.
191         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
192         * modules/ftell (configure.ac): ... to here.
193
194 2011-05-07  Bruno Haible  <bruno@clisp.org>
195
196         ftello: Respect rules for use of AC_LIBOBJ.
197         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
198         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
199         here...
200         * modules/ftello (configure.ac): ... to here.
201
202 2011-05-07  Bruno Haible  <bruno@clisp.org>
203
204         fseeko: Simplify.
205         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
206         (gl_FUNC_FSEEKO): Inline it here.
207
208 2011-05-07  Bruno Haible  <bruno@clisp.org>
209
210         fseek: Move AC_LIBOBJ invocations to module description.
211         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
212         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
213         * modules/fseek (configure.ac): ... to here.
214
215 2011-05-07  Bruno Haible  <bruno@clisp.org>
216
217         fseek: Respect rules for use of AC_LIBOBJ.
218         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
219         here...
220         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
221
222 2011-05-07  Bruno Haible  <bruno@clisp.org>
223
224         fseeko: Respect rules for use of AC_LIBOBJ.
225         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
226         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
227         here...
228         * modules/fseeko (configure.ac): ... to here.
229
230 2011-06-13  Bruno Haible  <bruno@clisp.org>
231
232         gnulib-tool: Allow comments in the 'Depends-on' section.
233         * doc/gnulib.texi (Module description): Mention comment syntax in the
234         Depends-on section.
235         * gnulib-tool (func_get_dependencies): Filter out comment lines.
236
237 2011-06-13  Bruno Haible  <bruno@clisp.org>
238
239         file-set.h: guard __attibute__ use, now that it's not always defined
240         * lib/file-set.h (record_file): Use __attribute__ only with compiler
241         versions that support it.  This fixes a coreutils build failure with
242         the vendor cc on HP-UX 11.31.
243
244 2011-06-12  Bruno Haible  <bruno@clisp.org>
245
246         acl: Add support for HP-UX >= 11.11 JFS ACLs.
247         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
248         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
249         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
250         (acl, aclsort): New declarations.
251         (aclv_nontrivial): New declaration.
252         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
253         (file_has_acl): Read also the second kind of HP-UX ACLs.
254         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
255         kind of HP-UX ACLs if the first kind fails.
256         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
257         second kind of HP-UX ACLs.
258         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
259         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
260         agree.
261         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
262         hpuxjfs.
263         Handle hpuxjfs.
264         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
265         hpuxjfs.
266         Handle hpuxjfs.
267         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
268         (func_test_same_acls): Use both lsacl and getacl.
269         Handle hpuxjfs.
270         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
271         (func_test_same_acls): Use both lsacl and getacl.
272         Handle hpuxjfs.
273
274 2011-06-12  Bruno Haible  <bruno@clisp.org>
275
276         acl: Complete the 2010-08-10 fix.
277         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
278         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
279         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
280         explicitly.
281         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
282         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
283
284 2011-06-12  Bruno Haible  <bruno@clisp.org>
285
286         spawn-pipe tests: Comments.
287         * tests/test-spawn-pipe-child.c (main): Update comment.
288         Reported by James Youngman <jay@gnu.org>.
289
290 2011-06-11  James Youngman  <jay@gnu.org>
291
292         New module 'stat-size'.
293         * modules/stat-size: New module.  Provides macros for accessing
294         file size information in instances of struct stat.  Depends on the
295         fileblocks module because it calls st_blocks.
296         * lib/stat-size.h: New file, adapted from coreutils' system.h.
297         * doc/gnulib.texi: Include stat-size.texi.
298         * doc/stat-size.texi: Documentation for this module.
299         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
300         * m4/fileblocks.m4: Mention that stat-size depends on the call to
301         AC_STRUCT_ST_BLOCKS.
302
303 2011-06-09  Bruno Haible  <bruno@clisp.org>
304
305         thread: Support pthreads-win32.
306         * lib/glthread/thread.h (gl_thread_self): Define differently on
307         pthreads-win32.
308         (gl_null_thread): New declaration.
309         (gl_thread_self_pointer): New macro.
310         * lib/glthread/thread.c (gl_null_thread): New constant.
311         * tests/test-lock.c: Use gl_thread_self_pointer instead of
312         gl_thread_self.
313         * tests/test-tls.c: Likewise.
314         Suggested by Paul Eggert. Reported by Eric Blake.
315
316 2011-06-09  Bruno Haible  <bruno@clisp.org>
317
318         thread: Fix confusion between NULL and 0.
319         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
320         Reported by Paul Eggert.
321
322 2011-06-09  Bruno Haible  <bruno@clisp.org>
323
324         spawn-pipe tests: Avoid test failure on HP-UX 11.
325         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
326         is closed.
327
328 2011-06-09  Bruno Haible  <bruno@clisp.org>
329
330         acl tests: Fix compilation error on HP-UX 11.
331         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
332
333 2011-06-09  Bruno Haible  <bruno@clisp.org>
334
335         rmdir: Avoid test failure on HP-UX 10.20.
336         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
337         EEXIST.
338
339 2011-06-08  Eric Blake  <eblake@redhat.com>
340
341         perror: fix test on mingw
342         * modules/perror-tests (Depends-on): Add dup2.
343
344         strerror_r-posix: fix on MacOS
345         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
346         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
347         logic bug.
348         * lib/strerror_r.c (strerror_r): Fix the bug.
349         * lib/strerror.c (strerror): Likewise.
350         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
351         problem.
352         * doc/posix-functions/strerror.texi (strerror): Likewise.
353         * doc/posix-functions/perror.texi (perror): Likewise.
354         * tests/test-strerror.c (main): Enhance test.
355         * tests/test-strerror_r.c (main): Likewise.
356
357 2011-06-08  Bruno Haible  <bruno@clisp.org>
358
359         gnulib-tool: Better isolation between different gnulib-tool invocations.
360         * gnulib-tool: New option --witness-c-macro.
361         (witness_c_macro): New variable.
362         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
363         AM_CPPFLAGS define it as a C macro.
364         (func_emit_tests_Makefile_am): Likewise.
365         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
366         read it from there.
367         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
368         m4_define, not AC_DEFUN.
369         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
370         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
371         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
372         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
373         s|...|...|, to substitute the values of the GNULIB_* module indicator
374         variables.
375         * modules/dirent (Makefile.am): Likewise.
376         * modules/fcntl-h (Makefile.am): Likewise.
377         * modules/iconv-h (Makefile.am): Likewise.
378         * modules/langinfo (Makefile.am): Likewise.
379         * modules/locale (Makefile.am): Likewise.
380         * modules/math (Makefile.am): Likewise.
381         * modules/netdb (Makefile.am): Likewise.
382         * modules/poll-h (Makefile.am): Likewise.
383         * modules/pty (Makefile.am): Likewise.
384         * modules/search (Makefile.am): Likewise.
385         * modules/signal (Makefile.am): Likewise.
386         * modules/spawn (Makefile.am): Likewise.
387         * modules/stdio (Makefile.am): Likewise.
388         * modules/stdlib (Makefile.am): Likewise.
389         * modules/string (Makefile.am): Likewise.
390         * modules/sys_ioctl (Makefile.am): Likewise.
391         * modules/sys_select (Makefile.am): Likewise.
392         * modules/sys_socket (Makefile.am): Likewise.
393         * modules/sys_stat (Makefile.am): Likewise.
394         * modules/sys_times (Makefile.am): Likewise.
395         * modules/sys_utsname (Makefile.am): Likewise.
396         * modules/sys_wait (Makefile.am): Likewise.
397         * modules/termios (Makefile.am): Likewise.
398         * modules/time (Makefile.am): Likewise.
399         * modules/unistd (Makefile.am): Likewise.
400         * modules/wchar (Makefile.am): Likewise.
401
402 2011-06-08  Eric Blake  <eblake@redhat.com>
403
404         strerror: simplify replacement
405         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
406         * modules/strerror (configure.ac): No prereqs needed here...
407         * modules/strerror-override (configure.ac): ...but this needs it.
408         (Files): Add file for needed prereq macro.
409
410 2011-06-08  Bruno Haible  <bruno@clisp.org>
411
412         strerror_r-posix: Tweaks.
413         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
414         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
415         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
416         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
417         (gl_FUNC_STRERROR_R): ... to here.
418         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
419
420 2011-06-07  Eric Blake  <eblake@redhat.com>
421
422         perror: document fixed bugs
423         * doc/posix-functions/perror.texi (perror): Document recent
424         patches.
425
426 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
427
428         stat-time: get_stat_birthtime failure is better-defined
429         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
430         return a timestamp whose tv_sec and tv_nsec values are both -1.
431         Previously, the spec said only that the tv_nsec value was negative.
432         This upward-compatible change simplifies GNU tar a bit.
433
434 2011-06-07  Eric Blake  <eblake@redhat.com>
435
436         strerror_r-posix: work around cygwin 1.7.9
437         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
438         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
439         bug without replacing strerror_r.
440         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
441         strerror_r is buggy, but without requiring strerror_r compilation.
442         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
443
444         test-perror: relax test to ignore cygwin bug
445         * tests/test-perror2.c (main): Relax test on requiring detection
446         of stream errors, and use unbuffered stream.
447         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
448         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
449         * doc/posix-functions/fputc.texi (fputc): Likewise.
450         * doc/posix-functions/fputs.texi (fputs): Likewise.
451         * doc/posix-functions/fputws.texi (fputws): Likewise.
452         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
453         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
454         * doc/posix-functions/getopt.texi (getopt): Likewise.
455         * doc/posix-functions/perror.texi (perror): Likewise.
456         * doc/posix-functions/printf.texi (printf): Likewise.
457         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
458         * doc/posix-functions/psignal.texi (psignal): Likewise.
459         * doc/posix-functions/putc.texi (putc): Likewise.
460         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
461         Likewise.
462         * doc/posix-functions/putchar.texi (putchar): Likewise.
463         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
464         Likewise.
465         * doc/posix-functions/puts.texi (puts): Likewise.
466         * doc/posix-functions/putwc.texi (putwc): Likewise.
467         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
468         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
469         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
470         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
471         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
472         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
473         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
474         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
475
476 2011-05-22  Bruno Haible  <bruno@clisp.org>
477
478         strerror: Move AC_LIBOBJ invocations to module description.
479         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
480         gl_PREREQ_STRERROR invocations from here...
481         * modules/strerror (configure.ac): ... to here.
482
483 2011-05-21  Bruno Haible  <bruno@clisp.org>
484
485         perror: Use common idiom.
486         * modules/perror (configure.ac): Reorder statements.
487
488 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
489
490         tests: fix usage message in 'mktempd_'
491         * tests/init.sh (mktempd_): In the usage message, use literal
492         'mktempd_', not '$ME' (which is even undefined), as the name of
493         the subroutine.
494
495 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
496
497         tests init: new function 'fatal_', for hard errors
498         Before this patch, the only way offered by tests/init.sh to
499         properly signal a hard error was the `framework_failure_'
500         function.  But the error message issued by that function,
501         as its name would suggest, refers to a set-up failure in the
502         testsuite, while hard errors can obviously also be due to
503         other reasons.  The best way to fix this inconsistency is to
504         introduce a new function with a more general error message.
505         * tests/init.sh (fatal_): New function.
506
507 2011-06-06  Eric Blake  <eblake@redhat.com>
508
509         canonicalize-lgpl: use common idiom
510         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
511         over newer POSIX -Rf.
512         Reported by Bruno Haible.
513
514         canonicalize-lgpl: work around AIX realpath bug
515         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
516         * doc/posix-functions/realpath.texi (realpath): Document it.
517         Reported by Bruno Haible.
518
519         strerror: work around FreeBSD bug
520         * lib/strerror.c (strerror): Special case 0.
521         Reported by Bruno Haible.
522
523         strerror-override: avoid bloating errno module
524         * modules/errno (Files, configure.ac): Move replacement strings...
525         * modules/strerror-override: ...to new module.
526         * modules/strerror (Depends-on): Add strerror-override.
527         * modules/strerror_r-posix (Depends-on): Likewise.
528         * MODULES.html.sh: Document new module.
529         Reported by Bruno Haible.
530
531 2011-06-06  Bruno Haible  <bruno@clisp.org>
532
533         spawn-pipe tests: Rename program.
534         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
535         * tests/test-spawn-pipe-child.c: Update comment.
536         * tests/test-spawn-pipe.sh: Update.
537         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
538
539         spawn-pipe tests: Link the child program only against libc.
540         * tests/test-spawn-pipe-child.c: New file, extracted from
541         tests/test-spawn-pipe.c.
542         (main): Expect only one argument.
543         (is_open): New function, copied from tests/test-pipe.c.
544         * tests/test-spawn-pipe.c: Don't include <errno.h>.
545         (child_main): Remove function.
546         (test_pipe): Pass only one argument to the child program.
547         (main): Remove child process code. Expect the child program's name as
548         first argument.
549         * tests/test-spawn-pipe.sh: Pass the child program's name as first
550         argument.
551         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
552         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
553         test-spawn-pipe-child against no libraries.
554
555 2011-06-06  Bruno Haible  <bruno@clisp.org>
556
557         careadlinkat: Avoid mismatch between ssize_t and int.
558         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
559         * lib/careadlinkat.c (careadlinkatcwd): Define always.
560
561 2011-06-06  Jim Meyering  <meyering@redhat.com>
562
563         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
564         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
565         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
566
567 2011-06-05  Bruno Haible  <bruno@clisp.org>
568
569         ansi-c++-opt: Interoperability with libtool.
570         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
571         set the variable to "no", not to ":".
572         * NEWS: Mention the change.
573
574 2011-06-05  Bruno Haible  <bruno@clisp.org>
575
576         acl: Fix test failure on AIX 7.
577         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
578         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
579
580 2011-06-05  Bruno Haible  <bruno@clisp.org>
581
582         pipe-filter-ii: Fix test failure on AIX and IRIX.
583         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
584         with EAGAIN, retry with a smaller buffer size.
585
586 2011-06-05  Bruno Haible  <bruno@clisp.org>
587
588         localename: Fix link dependencies.
589         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
590         * modules/localename-tests (Makefile.am): Link test-localename with
591         $(LIBTHREAD).
592
593 2011-06-05  Bruno Haible  <bruno@clisp.org>
594
595         error: Avoid gcc warning.
596         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
597
598 2011-06-05  Bruno Haible  <bruno@clisp.org>
599
600         unsetenv: Avoid gcc warning.
601         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
602
603 2011-06-05  Bruno Haible  <bruno@clisp.org>
604
605         setenv: Avoid gcc warning.
606         * lib/setenv.c (setenv): Provide declaration if system lacks it.
607
608 2011-06-05  Bruno Haible  <bruno@clisp.org>
609
610         sys_select: Ensure memset is declared also on AIX 7.
611         * lib/sys_select.in.h: Include <string.h> also on AIX.
612         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
613         self-contained also on AIX 7.1.
614
615 2011-06-04  Jim Meyering  <meyering@redhat.com>
616
617         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
618         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
619         function name, "error".
620         (_gl_translatable_diag_func_re): New configurable variable.
621
622 2011-06-04  Bruno Haible  <bruno@clisp.org>
623
624         getopt: Avoid gcc warning.
625         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
626
627 2011-06-04  Bruno Haible  <bruno@clisp.org>
628
629         strerror_r: Fix comments.
630         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
631         commit.
632
633 2011-06-04  Bruno Haible  <bruno@clisp.org>
634
635         perror: Fix compilation error.
636         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
637         Undefine fprintf, not sprintf.
638         * modules/perror (Depends-on): Remove intprops, verify.
639
640 2011-06-04  Bruno Haible  <bruno@clisp.org>
641
642         setlocale: Enable replacement on Cygwin 1.5.
643         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
644         Cygwin 1.5.x.
645         * doc/posix-functions/setlocale.texi: Mention that the problem with the
646         LC_CTYPE category also exists on Cygwin 1.5.x.
647
648 2011-06-04  Bruno Haible  <bruno@clisp.org>
649
650         strerror-override: Don't disable symbol renamings.
651         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
652         * lib/strerror-override.c: Include config.h.
653         (strerror_override): Don't undefine.
654
655 2011-06-03  Bruno Haible  <bruno@clisp.org>
656
657         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
658         * lib/localename.h: Update copyright header.
659         * lib/localename.c: Likewise.
660         * lib/relocatable.h: Likewise.
661         * lib/relocatable.c: Likewise.
662
663 2011-06-02  Bruno Haible  <bruno@clisp.org>
664
665         doc: Fix a module name.
666         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
667
668 2011-06-02  Bruno Haible  <bruno@clisp.org>
669
670         pipe2: Remove dependency on 'nonblocking' module.
671         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
672         O_NONBLOCK is defined by gnulib.
673         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
674         is zero.
675         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
676         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
677         defined by gnulib.
678         (get_nonblocking_flag): New function.
679         (main): Test O_NONBLOCK flag only if it is nonzero.
680         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
681
682 2011-06-03  Jim Meyering  <meyering@redhat.com>
683
684         maint: three new prohibit-header-without-use rules
685         Prohibit use of cloexec.h, posixver.h, same.h without use.
686         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
687         (sc_prohibit_posixver_without_use): Likewise.
688         (sc_prohibit_same_without_use): Likewise.
689
690 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
691
692         allocator: 'die' routine is now given requested size
693         * lib/allocator.h (struct allocator.die): New size arg.
694         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
695         If the actual problem is an ssize_t limitation, not a size_t or
696         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
697
698 2011-06-01  Eric Blake  <eblake@redhat.com>
699
700         strerror: drop strerror_r dependency
701         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
702         * lib/strerror-override.c (strerror_override): ...to new file.
703         * lib/strerror-override.h: Add prototype.
704         * lib/strerror-impl.h: Delete.
705         * lib/strerror.c (strerror): New implementation.
706         * modules/errno (Files): Add new files.
707         (configure.ac): Compile new file as appropriate.
708         * modules/strerror (Files): Drop unused file.
709         (Depends-on): Drop strerror_r-posix.
710         * MODULES.html.sh: Document strerror_r-posix.
711         Requested by Sam Steingold.
712
713         perror: call strerror_r directly
714         * modules/perror (Files): Drop strerror-impl.h.
715         * lib/perror.c (perror): Use our own stack buffer, rather than
716         calling a wrapper that uses static storage.
717         * doc/posix-functions/perror.texi (perror): Document a limitation
718         of our replacement.
719
720         strerror_r: fix includes for FreeBSD
721         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
722         since we use abort on some platforms.
723         Reported by Matthias Bolte.
724
725 2011-05-31  Bruno Haible  <bruno@clisp.org>
726
727         Fix link errors in tests: openat-die uses gettext-h.
728         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
729         against $(LIBINTL).
730         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
731         against $(LIBINTL).
732         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
733         $(LIBINTL).
734         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
735         against $(LIBINTL).
736         * modules/linkat-tests (Makefile.am): Link test-linkat against
737         $(LIBINTL).
738         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
739         $(LIBINTL).
740         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
741         against $(LIBINTL).
742         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
743         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
744         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
745         $(LIBINTL).
746         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
747         $(LIBINTL).
748         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
749         $(LIBINTL).
750         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
751
752 2011-05-31  Bruno Haible  <bruno@clisp.org>
753
754         Fix link errors in tests: wait-process uses gettext-h.
755         * modules/nonblocking-pipe-tests (Makefile.am): Set
756         test_nonblocking_pipe_main_LDADD.
757         * modules/nonblocking-socket-tests (Makefile.am): Link
758         test-nonblocking-socket-main against $(LIBINTL).
759         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
760
761 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
762
763         assert-h: work around 'verify' incompatibility
764         * lib/verify.h: Use @...@ directives, not ifdef.
765         * modules/assert-h (assert.h): Implement the directives.
766         (assert.h): Substitute the symbol-prefix more consistently.
767
768 2011-05-29  Jim Meyering  <meyering@redhat.com>
769
770         trim: remove three superfluous assignments
771         * lib/trim.c (trim2): Remove three superfluous assignments
772         and correct brace positioning.
773
774 2011-05-29  Bruno Haible  <bruno@clisp.org>
775
776         wctype-h: Avoid namespace pollution on Solaris 2.6.
777         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
778         identifiers.
779         * doc/posix-headers/wctype.texi: Mention the problem.
780         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
781
782 2011-05-28  Jim Meyering  <meyering@redhat.com>
783
784         parse-datetime.y: accommodate -Wstrict-overflow
785         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
786         placate -Wstrict-overflow.
787
788         trim: avoid a warning from -O2 -Wstrict-overflow
789         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
790
791 2011-05-29  Bruno Haible  <bruno@clisp.org>
792
793         gnulib-tool: Fix bug in yesterday's commit.
794         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
795         twice.
796
797 2011-05-29  Bruno Haible  <bruno@clisp.org>
798
799         Allow multiple gnulib generated include files to be combined.
800         * gnulib-tool (func_compute_include_guard_prefix): New function.
801         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
802         ${gl_include_guard_prefix} references.
803         (func_import, func_create_testdir): Invoke
804         func_compute_include_guard_prefix.
805         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
806         * lib/ctype.in.h: Likewise.
807         * lib/dirent.in.h: Likewise.
808         * lib/errno.in.h: Likewise.
809         * lib/fcntl.in.h: Likewise.
810         * lib/float.in.h: Likewise.
811         * lib/getopt.in.h: Likewise.
812         * lib/iconv.in.h: Likewise.
813         * lib/langinfo.in.h: Likewise.
814         * lib/locale.in.h: Likewise.
815         * lib/math.in.h: Likewise.
816         * lib/netdb.in.h: Likewise.
817         * lib/netinet_in.in.h: Likewise.
818         * lib/poll.in.h: Likewise.
819         * lib/pthread.in.h: Likewise.
820         * lib/pty.in.h: Likewise.
821         * lib/sched.in.h: Likewise.
822         * lib/se-selinux.in.h: Likewise.
823         * lib/search.in.h: Likewise.
824         * lib/signal.in.h: Likewise.
825         * lib/spawn.in.h: Likewise.
826         * lib/stdarg.in.h: Likewise.
827         * lib/stddef.in.h: Likewise.
828         * lib/stdint.in.h: Likewise.
829         * lib/stdio.in.h: Likewise.
830         * lib/stdlib.in.h: Likewise.
831         * lib/string.in.h: Likewise.
832         * lib/strings.in.h: Likewise.
833         * lib/sys_file.in.h: Likewise.
834         * lib/sys_ioctl.in.h: Likewise.
835         * lib/sys_select.in.h: Likewise.
836         * lib/sys_socket.in.h: Likewise.
837         * lib/sys_stat.in.h: Likewise.
838         * lib/sys_time.in.h: Likewise.
839         * lib/sys_times.in.h: Likewise.
840         * lib/sys_uio.in.h: Likewise.
841         * lib/sys_utsname.in.h: Likewise.
842         * lib/sys_wait.in.h: Likewise.
843         * lib/sysexits.in.h: Likewise.
844         * lib/termios.in.h: Likewise.
845         * lib/time.in.h: Likewise.
846         * lib/unistd.in.h: Likewise.
847         * lib/wchar.in.h: Likewise.
848         * lib/wctype.in.h: Likewise.
849         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
850         * modules/ctype (Makefile.am): Likewise.
851         * modules/dirent (Makefile.am): Likewise.
852         * modules/errno (Makefile.am): Likewise.
853         * modules/fcntl-h (Makefile.am): Likewise.
854         * modules/float (Makefile.am): Likewise.
855         * modules/getopt-posix (Makefile.am): Likewise.
856         * modules/iconv-h (Makefile.am): Likewise.
857         * modules/langinfo (Makefile.am): Likewise.
858         * modules/locale (Makefile.am): Likewise.
859         * modules/math (Makefile.am): Likewise.
860         * modules/netdb (Makefile.am): Likewise.
861         * modules/netinet_in (Makefile.am): Likewise.
862         * modules/poll-h (Makefile.am): Likewise.
863         * modules/pthread (Makefile.am): Likewise.
864         * modules/pty (Makefile.am): Likewise.
865         * modules/sched (Makefile.am): Likewise.
866         * modules/search (Makefile.am): Likewise.
867         * modules/selinux-h (Makefile.am): Likewise.
868         * modules/signal (Makefile.am): Likewise.
869         * modules/spawn (Makefile.am): Likewise.
870         * modules/stdarg (Makefile.am): Likewise.
871         * modules/stddef (Makefile.am): Likewise.
872         * modules/stdint (Makefile.am): Likewise.
873         * modules/stdio (Makefile.am): Likewise.
874         * modules/stdlib (Makefile.am): Likewise.
875         * modules/string (Makefile.am): Likewise.
876         * modules/strings (Makefile.am): Likewise.
877         * modules/sys_file (Makefile.am): Likewise.
878         * modules/sys_ioctl (Makefile.am): Likewise.
879         * modules/sys_select (Makefile.am): Likewise.
880         * modules/sys_socket (Makefile.am): Likewise.
881         * modules/sys_stat (Makefile.am): Likewise.
882         * modules/sys_time (Makefile.am): Likewise.
883         * modules/sys_times (Makefile.am): Likewise.
884         * modules/sys_uio (Makefile.am): Likewise.
885         * modules/sys_utsname (Makefile.am): Likewise.
886         * modules/sys_wait (Makefile.am): Likewise.
887         * modules/sysexits (Makefile.am): Likewise.
888         * modules/termios (Makefile.am): Likewise.
889         * modules/time (Makefile.am): Likewise.
890         * modules/unistd (Makefile.am): Likewise.
891         * modules/wchar (Makefile.am): Likewise.
892         * modules/wctype-h (Makefile.am): Likewise.
893         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
894
895 2011-05-29  Bruno Haible  <bruno@clisp.org>
896
897         assert-h: Allow multiple gnulib generated replacements to coexist.
898         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
899
900 2011-05-29  Bruno Haible  <bruno@clisp.org>
901
902         argp: Allow coexistence with strerror_r-posix module.
903         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
904         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
905         by gnulib's <string.h> replacement), assume it has the POSIX signature,
906         not the glibc signature.
907
908 2011-05-28  Bruno Haible  <bruno@clisp.org>
909
910         gnulib-tool: Alternative structure of testdirs, similar to --import.
911         * gnulib-tool: New option --single-configure.
912         (func_usage): Document it.
913         (single_configure): New variable.
914         (func_modules_transitive_closure_separately,
915         func_modules_transitive_closure_separately,
916         func_determine_use_libtests, func_modules_add_dummy_separately,
917         func_modules_to_filelist_separately): New functions, extracted from
918         func_import.
919         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
920         (func_import): Use the new functions.
921         (func_create_testdir): Set final_modules. Handle $single_configure =
922         true case.
923
924 2011-05-28  Bruno Haible  <bruno@clisp.org>
925
926         getloadavg: Remove an unreliable safety check.
927         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
928         getloadavg.c is in place.
929         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
930         Reported by Sam Steingold <sds@gnu.org>.
931
932 2011-05-28  Bruno Haible  <bruno@clisp.org>
933
934         doc: Cleanup yet another file produced by texinfo.tex.
935         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
936
937 2011-05-28  Bruno Haible  <bruno@clisp.org>
938
939         Finish the conditional dependencies mechanism.
940         * gnulib-tool: New option --no-conditional-dependencies.
941         (func_usage): Document it. Don't mark --conditional-dependencies as
942         experimental.
943         (cond_dependencies): The possible values can now be true, false, empty.
944         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
945         (func_import): Store setting in gnulib-cache.m4 and read it from there.
946         * doc/gnulib-tool.texi (Conditional dependencies): New section.
947
948 2011-05-28  Bruno Haible  <bruno@clisp.org>
949
950         doc: Use a recent texinfo.tex.
951         * doc/Makefile (tex_opts): New variable.
952         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
953
954 2011-05-28  Jim Meyering  <meyering@redhat.com>
955
956         intprops.h: adjust comment to match code change
957         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
958         only once, it *may* have side effects.  Also fix an unrelated typo.
959         (_GL_INT_SIGNED): Likewise.
960
961 2011-05-26  Simon Josefsson  <simon@josefsson.org>
962
963         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
964
965 2011-05-26  Bruno Haible  <bruno@clisp.org>
966
967         mbsrchr: Avoid collision with system function on Interix.
968         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
969         Reported by Markus Duft <mduft@gentoo.org>.
970
971 2011-05-15  James Youngman  <jay@gnu.org>
972
973         getopt: for ambiguous options, enumerate the possibilities.
974         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
975         the ambiguous options when an ambiguous prefix is given. This was
976         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
977         glibc change was
978         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
979
980 2011-05-25  Eric Blake  <eblake@redhat.com>
981
982         getcwd: work around mingw bug
983         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
984         * doc/posix-functions/getcwd.texi (getcwd): Document it.
985         Reported by Matthias Bolte.
986
987 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
988
989         test-intprops: disable -Wtype-limits diagnostics
990         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
991         diagnostics.  Otherwise, the integer overflow macros generate many
992         diagnostics.  Reported by Jim Meyering in
993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
994
995         intprops: shorten, to pacify gcc -Woverlength-strings
996         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
997         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
998         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
999         likely to run afoul of C compiler limits for string constant lengths.
1000         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1001
1002 2011-05-24  Eric Blake  <eblake@redhat.com>
1003
1004         docs: document recently fixed glibc printf bug
1005         * doc/posix-functions/fprintf.texi (fprintf): Document it.
1006         * doc/posix-functions/printf.texi (printf): Likewise.
1007         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1008         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1009
1010         closein-tests: convert to init.sh
1011         * modules/closein-tests (Files): Add init.sh
1012         * tests/test-closein.sh Use it.
1013
1014         yesno-tests: convert to init.sh
1015         * modules/yesno-tests (Files): Add init.sh.
1016         * tests/test-yesno.sh: Use it.
1017
1018         atexit-tests: ensure reliable exit status
1019         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
1020         Reported by Bruno Haible.
1021
1022 2011-05-24  Bruno Haible  <bruno@clisp.org>
1023
1024         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
1025         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
1026         gl_PREREQ_STRERROR_R invocations from here...
1027         * modules/strerror_r-posix (configure.ac): ... to here.
1028
1029 2011-05-24  Eric Blake  <eblake@redhat.com>
1030
1031         strerror_r: fix missing header
1032         * lib/strerror_r.c: Avoid compiler warning about snprintf.
1033
1034         strerror_r: fix AIX test failures
1035         * lib/strerror_r.c (strerror_r): Convert silent truncation to
1036         ERANGE failure.
1037
1038         strerror_r: fix Solaris test failures
1039         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
1040         failures.
1041         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1042
1043         strerror_r: enforce POSIX recommendations
1044         * lib/strerror_r.c (safe_copy): New helper method.
1045         (strerror_r): Guarantee a non-empty string.
1046         * tests/test-strerror_r.c (main): Enhance tests to incorporate
1047         recent POSIX rulings and to match our strerror guarantees.
1048         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1049
1050 2011-05-24  Jim Meyering  <meyering@redhat.com>
1051
1052         test-perror2.c: avoid warning about unused variable
1053         * tests/test-perror2.c (main): Remove declaration of unused "fp".
1054
1055 2011-05-24  Eric Blake  <eblake@redhat.com>
1056
1057         perror: avoid spurious test failure on HP-UX
1058         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
1059
1060         tests: fix logic bug in init.sh
1061         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
1062         shell.
1063
1064 2011-05-24  Jim Meyering  <meyering@redhat.com>
1065
1066         utimensat: do not reference an out-of-scope buffer
1067         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
1068         declared in an inner scope, yet "times" would be dereferenced outside
1069         the scope in which "ts" was valid.
1070         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
1071         of ts[2] "out/up", so that the use of aliased "times" (via
1072         "times = ts;") does not end up referencing an out-of-scope "ts"
1073
1074         opendir-safer.c: don't clobber errno; don't close negative FD
1075         * lib/opendir-safer.c (opendir_safer):
1076         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
1077         file descriptor, and more importantly, don't clobber the
1078         offending errno value with EINVAL.  Before, upon failure
1079         of dup_safer, we would pass the negative file descriptor to
1080         fdopendir, which would clobber errno.
1081
1082 2011-05-23  Bruno Haible  <bruno@clisp.org>
1083
1084         idcache: Fix module description.
1085         * modules/idcache (Include): Set to "idcache.h".
1086
1087 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1088
1089         gnulib-tool: fix portability problem with MacOS sed
1090         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
1091         before the "}".  Problem reported by Leo in
1092         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
1093         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
1094         sed_extract_condition1, sed_extract_condition2.
1095
1096 2011-05-23  Bruno Haible  <bruno@clisp.org>
1097
1098         hash: Simplify autoconf macro.
1099         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
1100
1101 2011-05-23  Bruno Haible  <bruno@clisp.org>
1102
1103         getugroups: Fix module description.
1104         * modules/getugroups (Include): Set to "getugroups.h".
1105
1106 2011-05-23  Bruno Haible  <bruno@clisp.org>
1107
1108         linkat: Simplify autoconf macro.
1109         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
1110
1111 2011-05-23  Bruno Haible  <bruno@clisp.org>
1112             Eric Blake  <eblake@redhat.com>
1113
1114         linkat, renameat: Update dependencies.
1115         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
1116         * modules/linkat (Depends-on): Likewise. Remove also readlink,
1117         symlinkat.
1118
1119 2011-05-23  Jim Meyering  <meyering@redhat.com>
1120
1121         maint.mk: more tight_scope improvements
1122         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
1123         (_gl_TS_headers): Define only in if-0'd block.
1124         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
1125         sometimes we must *not* use it.  Adjust uses accordingly.
1126         (sc_tight_scope): Use much simpler grep-based test to determine
1127         whether we skip this rule.
1128
1129         maint.mk: generalize/improve the tight-scope rule
1130         * top/maint.mk: Emit a warning when the test is skipped.
1131         (_gl_TS_dir): Add $(srcdir)/ prefix.
1132         (_gl_TS_function_match): Simplify, rather than trying
1133         to enumerate common types.  Otherwise, it would fail to match an
1134         "extern unsigned char const *" declaration in idutils.
1135         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
1136         a way to support use of that type of macro.
1137         (_gl_TS_var_match): Simplify regexp.
1138         (_gl_TS_obj_files): New configurable variable.
1139         (_gl_TS_headers): Likewise.
1140
1141 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1142
1143         verify: fix bug when gnulib <assert.h> is also included
1144         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
1145         is defined, not if _GL_STATIC_ASSERT_H is not defined.
1146         Perhaps there's a better way, but this fixes the immediate problem.
1147         Problem reported by Bruno Haible in
1148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
1149
1150 2011-05-22  Bruno Haible  <bruno@clisp.org>
1151
1152         xgetcwd: Simplify autoconf macro.
1153         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
1154
1155 2011-05-22  Bruno Haible  <bruno@clisp.org>
1156
1157         New module 'mktime-internal'.
1158         * modules/mktime-internal: New file.
1159         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
1160         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
1161         mktime_internal as a C macro if libc has __mktime_internal.
1162         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
1163         conditions.
1164         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
1165
1166 2011-05-22  Bruno Haible  <bruno@clisp.org>
1167
1168         timegm: Correct mktime replacement statements.
1169         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
1170         defining mktime as a C macro. This completes a 2009-07-28 commit.
1171
1172 2011-05-22  Bruno Haible  <bruno@clisp.org>
1173
1174         timegm: Simplify autoconf macro.
1175         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
1176
1177 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1178
1179         clock-time: change to LGPLv2+.
1180         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
1181         BSD-like but we have no mark for that; this is good enough for now.
1182
1183 2011-05-21  Bruno Haible  <bruno@clisp.org>
1184
1185         strerror_r: Fix comments.
1186         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
1187
1188 2011-05-21  Bruno Haible  <bruno@clisp.org>
1189
1190         relocatable-prog-wrapper: Fix possible link error.
1191         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
1192         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1193         (gl_FUNC_SETENV): ... to here.
1194         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1195         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1196
1197 2011-05-21  Bruno Haible  <bruno@clisp.org>
1198
1199         relocatable-prog-wrapper: Assume strerror() exists.
1200         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1201         m4/strerror.m4.
1202         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1203         * lib/relocwrapper.c: Remove mention of strerror module.
1204         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1205         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1206         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1207         C macro.
1208
1209 2011-05-21  Bruno Haible  <bruno@clisp.org>
1210
1211         select: Simplify replacement idiom.
1212         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1213         Win32 platforms.
1214         * lib/sys_select.in.h (select): Simplify accordingly.
1215         * modules/select (Depends-on): Likewise.
1216
1217 2011-05-21  Bruno Haible  <bruno@clisp.org>
1218
1219         mkdir-p: Simplify autoconf macro.
1220         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1221         gl_FUNC_LCHOWN.
1222
1223 2011-05-21  Eric Blake  <eblake@redhat.com>
1224
1225         strerror_r: avoid clobbering strerror on cygwin
1226         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1227         fall back instead to sys_errlist.
1228         * modules/strerror (configure.ac): Add witness.
1229         * tests/test-strerror_r.c (main): Enhance test.
1230         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1231         * tests/test-perror2.c (main): Free memory before exit.
1232
1233 2011-05-21  Bruno Haible  <bruno@clisp.org>
1234
1235         mkdtemp: Use gnulib naming conventions.
1236         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1237         * modules/mkdtemp (configure.ac): Update.
1238
1239 2011-05-20  Eric Blake  <eblake@redhat.com>
1240
1241         strerror_r: avoid corrupting errno on Solaris
1242         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1243         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1244
1245         strerror_r: avoid compiler warning
1246         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1247
1248         strerror_r: simplify AIX code
1249         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1250
1251         test-perror: avoid spurious failure on FreeBSD
1252         * modules/perror-tests (Depends-on): Add strerror, now that
1253         strerror_r no longer pulls it in.
1254
1255 2011-05-20  Bruno Haible  <bruno@clisp.org>
1256
1257         strerror_r-posix: Remove unused dependencies.
1258         * modules/strerror_r-posix (Depends-on): Remove strerror.
1259         Reported by Eric Blake.
1260
1261 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1262
1263         intprops: remove assumption about A|B representation
1264         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
1265         is a valid integer if both A and B are.  Although this is true for
1266         all known practical hosts, the C standard doesn't guarantee it,
1267         and the code need not assume it.  Also, this change may work around
1268         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
1269         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
1270
1271 2011-05-20  Eric Blake  <eblake@redhat.com>
1272
1273         perror: work around FreeBSD bug
1274         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
1275         is broken.  Move AC_LIBOBJ...
1276         * modules/perror (configure.ac): Here.
1277         * doc/posix-functions/perror.texi (perror): Document this.
1278         * tests/test-perror2.c (main): Enhance test.
1279
1280         test-perror: check for strerror interactions
1281         * tests/macros.h (STREQ): Add macro.
1282         * modules/perror-tests (Files): Add second test.
1283         * tests/test-perror2.c (main): New file.
1284         * doc/posix-functions/perror.texi (perror): Document glibc bug.
1285
1286         test-perror: rewrite to use init script
1287         * modules/perror-tests (Files): Add init.sh.
1288         * tests/test-perror.sh: Use temporary directory.
1289
1290 2011-05-20  Jim Meyering  <meyering@redhat.com>
1291
1292         maint: replace misused "a" with "an"
1293         * doc/intprops.texi: "a integer"
1294         * doc/regex.texi: "a explanation"
1295         * lib/alignof.h: "a object"
1296         * lib/argmatch.h: "a explanation"
1297         * lib/argp-help.c: "a option" and "a OPTION_DOC"
1298         * lib/stdint.in.h: "a integer"
1299         * lib/userspec.c: "a owner"
1300         * doc/gnulib.texi: Fix "a idea", and reword.
1301
1302 2011-05-19  Jim Meyering  <meyering@redhat.com>
1303
1304         maint: correct misuse of "a" and "an"
1305         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
1306         * lib/argp-help.c: "an docum...": s/an/a/
1307         * lib/argp-parse.c: "An vector": s/An/A/
1308         * lib/execute.c: "an native": s/an/a/
1309         * lib/spawn-pipe.c: Likewise.
1310         * lib/gc.h: "an Gc_rc": s/an/a/
1311         * lib/unigbrk.in.h: "an grapheme": s/an/a/
1312         * lib/fts.c: "an stat.st_dev": s/an/a/
1313
1314 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1315
1316         intprops-tests: work around HP-UX 11.23 cc bug with constants
1317         * tests/test-intprops.c (VERIFY): New macro.
1318         (main): Use it, instead of verify, to work around the compiler bug; see
1319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1320
1321         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1322         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1323         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1324         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1325         (_GL_REMAINDER_OVERFLOW): Use it.
1326
1327         intprops-tests: revert unsigned part of previous change
1328         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1329         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1330         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1332
1333 2011-05-19  Bruno Haible  <bruno@clisp.org>
1334
1335         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1336         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1337         strerror_r() returned without filling the buffer.
1338         Reported by Eric Blake.
1339
1340 2011-05-19  Eric Blake  <eblake@redhat.com>
1341
1342         strerror_r: guarantee unchanged errno
1343         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1344         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1345         failure.
1346         * tests/test-strerror_r.c (main): Enhance test.
1347
1348 2011-05-19  Bruno Haible  <bruno@clisp.org>
1349
1350         strerror_r: Reorder #if blocks.
1351         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1352         for consistency with the previous commit.
1353
1354 2011-05-19  Bruno Haible  <bruno@clisp.org>
1355
1356         perror: Avoid clobbering the strerror buffer when possible.
1357         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1358         * lib/strerror.c: Include it.
1359         * modules/strerror (Files): Add lib/strerror-impl.h.
1360         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1361         (my_strerror): New function, defined through lib/strerror-impl.h.
1362         (perror): Use it instead of strerror.
1363         * modules/perror (Files): Add lib/strerror-impl.h.
1364         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1365
1366 2011-05-19  Eric Blake  <eblake@redhat.com>
1367
1368         strerror_r: fix on newer cygwin
1369         * lib/strerror_r.c (strerror_r): Cygwin now has
1370         __xpg_strerror_r, use it.
1371
1372 2011-05-19  Bruno Haible  <bruno@clisp.org>
1373
1374         strerror_r: Avoid clobbering the strerror buffer when possible.
1375         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1376         (sys_nerr, sys_errlist): New declarations.
1377         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1378         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1379         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1380
1381 2011-05-19  Bruno Haible  <bruno@clisp.org>
1382
1383         strerror_r: Fix test failure on mingw.
1384         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1385         EXTEND_STRERROR_R.
1386         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1387         macros from errno.in.h instead.
1388
1389 2011-05-19  Eric Blake  <eblake@redhat.com>
1390
1391         strerror: relax test for Solaris
1392         * tests/test-strerror.c (main): Permit Solaris behavior.
1393         * tests/test-strerror_r.c (main): Likewise.
1394
1395         strerror: enforce POSIX ruling on strerror(0)
1396         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1397         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1398         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1399         * doc/posix-functions/strerror.texi (strerror): Document it.
1400         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1401         * tests/test-strerror.c (main): Strengthen test.
1402         * tests/test-strerror_r.c (main): Likewise.
1403
1404 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1405
1406         intprop-tests: port to older and more-pedantic compilers
1407         * modules/intprops-tests (Files): Add tests/macros.h.
1408         * tests/test-intprops.c: Include macros.h.
1409         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1410         it's no longer documented to expand to an integer constant expression.
1411         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1412         argument is floating point, as it's no longer documented to expand
1413         to an integer constant expression in that case.
1414         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1415         compiler bugs reported by Bruno Haible.  See
1416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1417         (U0, U1): New constants, to work around the same bugs.  Also,
1418         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1419
1420         intprops: work around C compiler bugs
1421         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1422         bug in Sun C 5.11 2010/08/13 and other compilers; see
1423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1424
1425         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1426         * doc/intprops.texi (Integer Type Determination): Fix
1427         documentation for TYPE_IS_INTEGER: it returns an constant
1428         expression, not an integer constant expression.  Fix doc for
1429         TYPE_SIGNED: it returns an integer constant expression only if its
1430         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1431         hardly worth documented that way....)
1432
1433 2011-05-18  Bruno Haible  <bruno@clisp.org>
1434
1435         strerror_r: Avoid clobbering the strerror buffer when possible.
1436         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1437         Handle gnulib defined errno values here. When strerror() returns NULL
1438         or an empty string, return EINVAL.
1439         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1440         gnulib defined errno values here.
1441         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1442
1443 2011-05-18  Eric Blake  <eblake@redhat.com>
1444
1445         fnmatch: avoid compiler warning
1446         * lib/fnmatch_loop.c (FCT): Use correct type.
1447         Reported by Matthias Bolte.
1448
1449 2011-05-13  Jim Meyering  <meyering@redhat.com>
1450
1451         maint.mk: three new prohibit_<HDR>_without_use rules
1452         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1453         (sc_prohibit_stdio-safer_without_use): Likewise.
1454         (sc_prohibit_xfreopen_without_use): Likewise.
1455
1456 2011-05-17  Jim Meyering  <meyering@redhat.com>
1457
1458         announce-gen: fail if the NEWS delta is empty
1459         If there's nothing noteworthy in NEWS, then either you forgot
1460         or you shouldn't be releasing.
1461         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1462
1463 2011-05-17  Pádraig Brady <P@draigBrady.com>
1464
1465         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1466         reserved symbols starting with double underscore from the check.
1467
1468 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1469
1470         intprops: add doc
1471         * doc/intprops.texi: New file, documenting intprops.
1472         * doc/gnulib.texi (Particular Modules): Include it.
1473
1474         verify: add doc to gnulib manual and fix example
1475         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
1476         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
1477         (Compile-time Assertions): Fix example so it can't overflow.
1478
1479 2011-05-17  Jim Meyering  <meyering@redhat.com>
1480
1481         warnings.m4: don't usurp save_CPPFLAGS variable name
1482         * m4/warnings.m4: Prefix local temporary variable name with gl_.
1483
1484         doc: fix typo
1485         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
1486
1487 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1488             Bruno Haible  <bruno@clisp.org>
1489
1490         doc: Tweak recent change.
1491         * README (Portability guidelines): Tweak new text.
1492         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
1493         Interix 6.1.
1494
1495 2011-05-16  Eric Blake  <eblake@redhat.com>
1496
1497         inttypes: avoid autoconf warning
1498         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
1499         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1500
1501 2011-05-16  Sam Steingold <sds@gnu.org>
1502         and Eric Blake  <eblake@redhat.com>
1503
1504         vc-list-files: accept multiple directory operands
1505         * build-aux/vc-list-files: Iterate over all remaining operands.
1506
1507 2011-05-16  Bruno Haible  <bruno@clisp.org>
1508
1509         Fix confusion regarding deprecated modules.
1510         * modules/calloc (Status, Notice): Mark module as deprecated, not
1511         obsolete.
1512         * modules/fnmatch-posix (Status, Notice): Likewise.
1513         * modules/getdate (Status, Notice): Likewise.
1514         * modules/getopt (Status, Notice): Likewise.
1515         * modules/malloc (Status, Notice): Likewise.
1516         * modules/pipe (Status, Notice): Likewise.
1517         * modules/realloc (Status, Notice): Likewise.
1518         * modules/rename-dest-slash (Status, Notice): Likewise.
1519         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
1520         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
1521         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
1522         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
1523         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
1524
1525 2011-05-16  Bruno Haible  <bruno@clisp.org>
1526
1527         doc: List the target platforms.
1528         * doc/gnulib-intro.texi (Target Platforms): New section.
1529         * doc/gnulib.texi (Introduction): Update menu.
1530         * README (Portability guidelines): Refer to the new section. Update
1531         statement about oldest supported environment. Remove rationale why
1532         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
1533         unportable C89 function.
1534         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
1535         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
1536
1537 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1538
1539         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
1540
1541 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1542
1543         intprops-tests: new module
1544         * modules/intprops-tests, tests/test-intprops.c: New files.
1545
1546         intprops: add safe, portable integer overflow checking
1547         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
1548         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
1549         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
1550         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
1551         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
1552         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
1553         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
1554         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
1555         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
1556         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
1557         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
1558
1559 2011-05-12  James Youngman  <jay@gnu.org>
1560
1561         Add a test for glibc's Bugzilla bug #12378.
1562         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
1563         doesn't allow the literal matching of a lone "[" (which is
1564         required by POSIX).
1565         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
1566
1567 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
1568
1569         Sync glibc change fixing Bugzilla bug #12378.
1570         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
1571         beginning and fall back to matching as normal character if the
1572         string ends before the matching ']' is found.  This is what POSIX
1573         requires.
1574
1575 2011-05-13  Eric Blake  <eblake@redhat.com>
1576
1577         getcwd-lgpl: relax test for FreeBSD
1578         * doc/posix-functions/getcwd.texi (getcwd): Document portability
1579         issue.
1580         * tests/test-getcwd-lgpl.c (main): Relax test.
1581         Reported by Matthias Bolte.
1582
1583 2011-05-11  Eric Blake  <eblake@redhat.com>
1584
1585         test-fflush: silence compiler warning
1586         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
1587
1588 2011-05-11  Bruno Haible  <bruno@clisp.org>
1589
1590         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
1591         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
1592         * modules/canonicalize (Depends-on): Add 'nocrash'.
1593         * modules/canonicalize-lgpl (Depends-on): Likewise.
1594         * doc/posix-functions/realpath.texi: Update platforms list.
1595         Reported by Ryan Schmidt <ryandesign@macports.org>.
1596
1597 2011-05-11  Bruno Haible  <bruno@clisp.org>
1598
1599         group-member: Declare function in <unistd.h>.
1600         * lib/unistd.in.h (group_member): New declaration.
1601         * lib/group-member.h: Remove file.
1602         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
1603         * tests/test-unistd-c++.cc: Check signature of group_member.
1604         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
1605         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
1606         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
1607         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
1608         HAVE_GROUP_MEMBER.
1609         * modules/group-member (Files): Remove lib/group-member.h.
1610         (Depends-on): Add unistd. Specify conditions.
1611         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1612         (Include): Change to <unistd.h>.
1613         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
1614         HAVE_GROUP_MEMBER.
1615         * NEWS: Mention the change.
1616         * lib/euidaccess.c: Don't include group-member.h.
1617
1618 2011-05-11  Bruno Haible  <bruno@clisp.org>
1619
1620         group-member: Document module.
1621         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
1622         module.
1623
1624 2011-05-11  Bruno Haible  <bruno@clisp.org>
1625
1626         fclose: Fix mistake earlier today.
1627         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
1628
1629 2011-05-11  Eric Blake  <eblake@redhat.com>
1630
1631         fclose: preserve fflush errors
1632         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
1633         Reported by Jim Meyering.
1634
1635         bootstrap: support a prereq of 'rpcgen -' on RHEL5
1636         * build-aux/bootstrap (check_versions): When no specific version
1637         is required, merely check that the app produces an exit status
1638         that indicates its existence.
1639
1640         maint.mk: drop redundant check
1641         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
1642         the same but better.
1643
1644 2011-05-11  Bruno Haible  <bruno@clisp.org>
1645
1646         fclose: Fix possible link error.
1647         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
1648         unregister_shadow_fd. Improve comments.
1649         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
1650         Eric Blake.
1651
1652 2011-05-11  Jim Meyering  <meyering@redhat.com>
1653
1654         maint.mk: improve "can not" detection and generalize rule name
1655         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
1656         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
1657         Use the same technique as in sc_prohibit_doubled_word, so that
1658         we recognize "can not" also when the words are separated by a newline.
1659         Suggested by Eric Blake.
1660         (perl_filename_lineno_text_): Define.  Factored out of...
1661         (prohibit_doubled_word_): ...here.  Use the new definition.
1662         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
1663         (prohibit_undesirable_word_seq_RE_): New overridable variable.
1664         (ignore_undesirable_word_sequence_RE_): New overridable variable.
1665
1666 2011-05-10  Eric Blake  <eblake@redhat.com>
1667
1668         fclose: avoid double close race when possible
1669         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
1670         all but WINDOWS_SOCKETS.
1671
1672 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
1673
1674         openat: correct new comment
1675         * lib/openat-proc.c (openat_proc_name): Correct the comment.
1676
1677 2011-05-10  Jim Meyering  <meyering@redhat.com>
1678
1679         openat: add comments
1680         * lib/openat-proc.c (openat_proc_name): Add comments,
1681         mostly from Eric Blake.
1682
1683 2011-05-09  Eric Blake  <eblake@redhat.com>
1684
1685         openat: reduce syscalls in first probe of /proc
1686         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
1687         be a directory.  Simplify the probe for .. bugs.
1688         * modules/openat (Depends-on): Drop same-inode.
1689         Reported by Bastien ROUCARIES.
1690
1691 2011-05-09  Jim Meyering  <meyering@redhat.com>
1692
1693         maint.mk: change semantics/name of tight_scope variables
1694         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
1695         Rename variables to align with semantics that make them more useful.
1696
1697         maint.mk: tweak new rule's name not to impinge
1698         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
1699         (sc_tight_scope): Use new rule name rather than $@-0.
1700
1701         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
1702         * top/maint.mk (sc_tight_scope): New rule.
1703         (sc_tight_scope-0): New rule, ifdef'd out.
1704         (_gl_TS_dir): Default.
1705         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
1706         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
1707
1708 2011-05-09  Simon Josefsson  <simon@josefsson.org>
1709
1710         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
1711         Haible <bruno@clisp.org>.
1712
1713 2011-05-08  Bruno Haible  <bruno@clisp.org>
1714
1715         Comments.
1716         * m4/isnanf.m4: Add comment.
1717         * m4/isnanl.m4: Likewise.
1718
1719 2011-05-08  Bruno Haible  <bruno@clisp.org>
1720
1721         glob: Remove obsolete macro.
1722         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
1723
1724 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
1725
1726         intprops: Sun C 5.11 supports __typeof__
1727         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
1728         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
1729         which is new.
1730         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
1731
1732         intprops: switch to usual gnulib indenting and naming
1733         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
1734         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
1735
1736         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
1737
1738 2011-05-08  Jim Meyering  <meyering@redhat.com>
1739
1740         maint.mk: suppress "Entering/Leaving directory" diag in announcement
1741         * top/maint.mk (release-prep): Use make's --no-print-directory
1742         option when generating the announcement.  This eliminates the
1743         pesky "make[2]: Entering/Leaving directory" diagnostics in the
1744         generated announcement template.
1745
1746 2011-05-08  Bruno Haible  <bruno@clisp.org>
1747
1748         tzset: Fix gettimeofday wrapper on Solaris 2.6.
1749         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
1750         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
1751
1752 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1753
1754         ignore-value, verify: Omit include files from lib_SOURCES.
1755         * modules/ignore-value, modules/verify (Makefile.am):
1756         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
1757         that leads Automake to duplicate use of am__objects_... variables
1758         in Makefile.in.  See
1759         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
1760
1761 2011-05-07  Bruno Haible  <bruno@clisp.org>
1762
1763         fclose: Simplify autoconf macro.
1764         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
1765         defined.
1766
1767 2011-05-07  Bruno Haible  <bruno@clisp.org>
1768
1769         canonicalize-lgpl: Fix autoconf macro ordering bug.
1770         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
1771         gl_STDLIB_H_DEFAULTS.
1772
1773 2011-05-06  Eric Blake  <eblake@redhat.com>
1774
1775         maintainer-makefile: make sc_po_check easier to tune
1776         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
1777         to probe for strings, such as an alternate location for gnulib.
1778
1779         fclose: guarantee behavior on seekable stdin
1780         * modules/fclose (Depends-on): Add fflush.
1781         * doc/posix-functions/fclose.texi (fclose): Document this.
1782         * tests/test-fclose.c (main): Make test for this unconditional.
1783
1784 2011-05-06  Bruno Haible  <bruno@clisp.org>
1785
1786         fflush, fpurge: Relicense under LGPLv2+.
1787         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
1788         * modules/fpurge (License): Likewise.
1789         With permission from Eric Blake and Jim Meyering.
1790         Suggested by Eric Blake.
1791
1792 2011-05-06  Karl Berry  <karl@gnu.org>
1793
1794         * MODULES.html.sh (func_all_modules): remove exit.
1795
1796 2011-05-06  Jim Meyering  <meyering@redhat.com>
1797
1798         maint.mk: use info-gnu@ as the default only for a stable release
1799         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
1800         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
1801         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
1802         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
1803
1804 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1805
1806         assert-h: new module, which supports C1X-style static_assert
1807         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
1808         * lib/verify.h: Revamp so that this can be copied into assert.h,
1809         while retaining the ability to use it standalone as before.
1810         Rename private identifiers so as not to encroach on the
1811         standard C namespace, since this is now used by assert.h.
1812         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
1813         the old verify_true.
1814         (_GL_VERIFY_TRUE): New macro, with much of the contents of
1815         the old verify_true.  Use _GL_VERIFY_TYPE.
1816         (_GL_VERIFY): New macro, with much of the contents of the old verify.
1817         (static_assert): New macro, if _GL_STATIC_ASSERT_H
1818         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
1819         defined when this file is copied into the replacement assert.h.
1820         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
1821         and _Static_assert is not built in.
1822         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
1823         defined, and use the new macros mentioned above.
1824         * doc/posix-headers/assert.texi: Document this.
1825
1826 2011-05-05  Bruno Haible  <bruno@clisp.org>
1827
1828         fclose, fflush: Respect rules for use of AC_LIBOBJ.
1829         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
1830         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
1831         gl_REPLACE_FCLOSE here.
1832         * modules/fflush (Depends-on): Remove fclose.
1833         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
1834         combination with module 'fclose'.
1835
1836 2011-05-05  Bruno Haible  <bruno@clisp.org>
1837
1838         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
1839         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
1840         gl_FUNC_FFLUSH.
1841         (gl_FUNC_FFLUSH): Use it.
1842         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
1843         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
1844         gl_REPLACE_FSEEKO here.
1845
1846 2011-05-05  Bruno Haible  <bruno@clisp.org>
1847
1848         tzset: Relicense under LGPL.
1849         * modules/tzset (License): Change to LGPL.
1850         No agreement needed; it's a no-op.
1851
1852         strtoimax, strtoumax: Relicense under LGPL.
1853         * modules/strtoimax (License): Change to LGPL.
1854         * modules/strtoumax (License): Likewise.
1855         With permission from Jim Meyering, Paul Eggert:
1856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
1857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
1858
1859         getgroups: Relicense under LGPL.
1860         * modules/getgroups (License): Change to LGPL.
1861         With permission from Jim Meyering, Paul Eggert, Eric Blake:
1862         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1865
1866         nanosleep: Relicense under LGPL.
1867         * modules/nanosleep (License): Change to LGPL.
1868         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
1869         Haible:
1870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1871         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1872         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1874
1875         futimens: Relicense under LGPL.
1876         * modules/futimens (License): Change to LGPL.
1877         With permission from Eric Blake:
1878         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1879
1880         fflush: Relicense under LGPL.
1881         * modules/fflush (License): Change to LGPL.
1882         With permission from Eric Blake, Bruno Haible, Jim Meyering:
1883         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1884         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
1886
1887         tmpfile: Relicense under LGPL.
1888         * modules/tmpfile (License): Change to LGPL.
1889         With permission from Ben Pfaff:
1890         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1891
1892         isfinite: Relicense under LGPL.
1893         * modules/isfinite (License): Change to LGPL.
1894         With permission from Ben Pfaff, Bruno Haible:
1895         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
1897
1898         acosl..tanl: Relicense under LGPL.
1899         * modules/acosl (License): Change to LGPL.
1900         * modules/asinl (License): Likewise.
1901         * modules/atanl (License): Likewise.
1902         * modules/cosl (License): Likewise.
1903         * modules/expl (License): Likewise.
1904         * modules/logl (License): Likewise.
1905         * modules/sinl (License): Likewise.
1906         * modules/sqrtl (License): Likewise.
1907         * modules/tanl (License): Likewise.
1908         Source code originally from glibc and Paolo Bonzini. Agreements:
1909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
1910         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
1911
1912 2011-05-05  Bruno Haible  <bruno@clisp.org>
1913
1914         signal: Define sighandler_t.
1915         * lib/signal.in.h (sighandler_t): New type.
1916         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
1917         whether sighandler_t is defined.
1918         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
1919         * modules/signal (Depends-on): Add extensions.
1920         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
1921         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
1922         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
1923
1924 2011-05-05  Eric Blake  <eblake@redhat.com>
1925
1926         maint: remove useless REPLACE_*_H macros
1927         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
1928         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
1929         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
1930         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
1931         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
1932         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
1933         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
1934         * m4/btowc.m4: Update callers.
1935         * m4/dirfd.m4: Likewise.
1936         * m4/duplocale.m4: Likewise.
1937         * m4/fchdir.m4: Likewise.
1938         * m4/fdopendir.m4: Likewise.
1939         * m4/inet_ntop.m4: Likewise.
1940         * m4/inet_pton.m4: Likewise.
1941         * m4/ioctl.m4: Likewise.
1942         * m4/mbrlen.m4: Likewise.
1943         * m4/mbrtowc.m4: Likewise.
1944         * m4/mbsinit.m4: Likewise.
1945         * m4/mbsnrtowcs.m4: Likewise.
1946         * m4/mbsrtowcs.m4: Likewise.
1947         * m4/poll.m4: Likewise.
1948         * m4/setlocale.m4: Likewise.
1949         * m4/wcrtomb.m4: Likewise.
1950         * m4/wcsnrtombs.m4: Likewise.
1951         * m4/wcsrtombs.m4: Likewise.
1952         * m4/wctob.m4: Likewise.
1953         * m4/wcwidth.m4: Likewise.
1954         * modules/posix_spawn: Likewise.
1955         * modules/posix_spawn_file_actions_addclose: Likewise.
1956         * modules/posix_spawn_file_actions_adddup2: Likewise.
1957         * modules/posix_spawn_file_actions_addopen: Likewise.
1958         * modules/posix_spawn_file_actions_destroy: Likewise.
1959         * modules/posix_spawn_file_actions_init: Likewise.
1960         * modules/posix_spawnattr_destroy: Likewise.
1961         * modules/posix_spawnattr_getflags: Likewise.
1962         * modules/posix_spawnattr_getpgroup: Likewise.
1963         * modules/posix_spawnattr_getschedparam: Likewise.
1964         * modules/posix_spawnattr_getschedpolicy: Likewise.
1965         * modules/posix_spawnattr_getsigdefault: Likewise.
1966         * modules/posix_spawnattr_getsigmask: Likewise.
1967         * modules/posix_spawnattr_init: Likewise.
1968         * modules/posix_spawnattr_setflags: Likewise.
1969         * modules/posix_spawnattr_setpgroup: Likewise.
1970         * modules/posix_spawnattr_setschedparam: Likewise.
1971         * modules/posix_spawnattr_setschedpolicy: Likewise.
1972         * modules/posix_spawnattr_setsigdefault: Likewise.
1973         * modules/posix_spawnattr_setsigmask: Likewise.
1974         * modules/posix_spawnp: Likewise.
1975
1976 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
1977
1978         Add option to do-release-commit-and-tag to specify branch.
1979         * build-aux/do-release-commit-and-tag: Add --branch.
1980
1981 2011-05-03  Bruno Haible  <bruno@clisp.org>
1982
1983         Avoid unnecessary compilation units, through conditional dependencies.
1984         * modules/accept (Depends-on): Add conditions to the dependencies.
1985         * modules/acosl (Depends-on): Likewise.
1986         * modules/argz (Depends-on): Likewise.
1987         * modules/asinl (Depends-on): Likewise.
1988         * modules/atanl (Depends-on): Likewise.
1989         * modules/atoll (Depends-on): Likewise.
1990         * modules/bind (Depends-on): Likewise.
1991         * modules/btowc (Depends-on): Likewise.
1992         * modules/canonicalize-lgpl (Depends-on): Likewise.
1993         * modules/ceil (Depends-on): Likewise.
1994         * modules/ceilf (Depends-on): Likewise.
1995         * modules/ceill (Depends-on): Likewise.
1996         * modules/chdir-long (Depends-on): Likewise.
1997         * modules/chown (Depends-on): Likewise.
1998         * modules/close (Depends-on): Likewise.
1999         * modules/connect (Depends-on): Likewise.
2000         * modules/cosl (Depends-on): Likewise.
2001         * modules/dirfd (Depends-on): Likewise.
2002         * modules/dprintf (Depends-on): Likewise.
2003         * modules/dprintf-posix (Depends-on): Likewise.
2004         * modules/error (Depends-on): Likewise.
2005         * modules/euidaccess (Depends-on): Likewise.
2006         * modules/expl (Depends-on): Likewise.
2007         * modules/faccessat (Depends-on): Likewise.
2008         * modules/fchdir (Depends-on): Likewise.
2009         * modules/fclose (Depends-on): Likewise.
2010         * modules/fcntl (Depends-on): Likewise.
2011         * modules/fdopendir (Depends-on): Likewise.
2012         * modules/fflush (Depends-on): Likewise.
2013         * modules/floor (Depends-on): Likewise.
2014         * modules/floorf (Depends-on): Likewise.
2015         * modules/floorl (Depends-on): Likewise.
2016         * modules/fnmatch (Depends-on): Likewise.
2017         * modules/fopen (Depends-on): Likewise.
2018         * modules/fprintf-posix (Depends-on): Likewise.
2019         * modules/frexp (Depends-on): Likewise.
2020         * modules/frexp-nolibm (Depends-on): Likewise.
2021         * modules/frexpl (Depends-on): Likewise.
2022         * modules/frexpl-nolibm (Depends-on): Likewise.
2023         * modules/fseek (Depends-on): Likewise.
2024         * modules/fsusage (Depends-on): Likewise.
2025         * modules/ftell (Depends-on): Likewise.
2026         * modules/ftello (Depends-on): Likewise.
2027         * modules/futimens (Depends-on): Likewise.
2028         * modules/getcwd (Depends-on): Likewise.
2029         * modules/getcwd-lgpl (Depends-on): Likewise.
2030         * modules/getdelim (Depends-on): Likewise.
2031         * modules/getdomainname (Depends-on): Likewise.
2032         * modules/getgroups (Depends-on): Likewise.
2033         * modules/gethostname (Depends-on): Likewise.
2034         * modules/getline (Depends-on): Likewise.
2035         * modules/getlogin_r (Depends-on): Likewise.
2036         * modules/getopt-posix (Depends-on): Likewise.
2037         * modules/getpeername (Depends-on): Likewise.
2038         * modules/getsockname (Depends-on): Likewise.
2039         * modules/getsockopt (Depends-on): Likewise.
2040         * modules/getsubopt (Depends-on): Likewise.
2041         * modules/getusershell (Depends-on): Likewise.
2042         * modules/glob (Depends-on): Likewise.
2043         * modules/grantpt (Depends-on): Likewise.
2044         * modules/iconv_open (Depends-on): Likewise.
2045         * modules/iconv_open-utf (Depends-on): Likewise.
2046         * modules/inet_ntop (Depends-on): Likewise.
2047         * modules/inet_pton (Depends-on): Likewise.
2048         * modules/ioctl (Depends-on): Likewise.
2049         * modules/isapipe (Depends-on): Likewise.
2050         * modules/isfinite (Depends-on): Likewise.
2051         * modules/isinf (Depends-on): Likewise.
2052         * modules/lchown (Depends-on): Likewise.
2053         * modules/ldexpl (Depends-on): Likewise.
2054         * modules/link (Depends-on): Likewise.
2055         * modules/linkat (Depends-on): Likewise.
2056         * modules/listen (Depends-on): Likewise.
2057         * modules/logl (Depends-on): Likewise.
2058         * modules/lstat (Depends-on): Likewise.
2059         * modules/mbrlen (Depends-on): Likewise.
2060         * modules/mbrtowc (Depends-on): Likewise.
2061         * modules/mbsinit (Depends-on): Likewise.
2062         * modules/mbsnrtowcs (Depends-on): Likewise.
2063         * modules/mbsrtowcs (Depends-on): Likewise.
2064         * modules/mbtowc (Depends-on): Likewise.
2065         * modules/memcmp (Depends-on): Likewise.
2066         * modules/mkdir (Depends-on): Likewise.
2067         * modules/mkdtemp (Depends-on): Likewise.
2068         * modules/mkfifo (Depends-on): Likewise.
2069         * modules/mkfifoat (Depends-on): Likewise.
2070         * modules/mknod (Depends-on): Likewise.
2071         * modules/mkostemp (Depends-on): Likewise.
2072         * modules/mkostemps (Depends-on): Likewise.
2073         * modules/mkstemp (Depends-on): Likewise.
2074         * modules/mkstemps (Depends-on): Likewise.
2075         * modules/mktime (Depends-on): Likewise.
2076         * modules/nanosleep (Depends-on): Likewise.
2077         * modules/open (Depends-on): Likewise.
2078         * modules/openat (Depends-on): Likewise.
2079         * modules/perror (Depends-on): Likewise.
2080         * modules/poll (Depends-on): Likewise.
2081         * modules/popen (Depends-on): Likewise.
2082         * modules/posix_spawn (Depends-on): Likewise.
2083         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
2084         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
2085         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
2086         * modules/posix_spawnp (Depends-on): Likewise.
2087         * modules/pread (Depends-on): Likewise.
2088         * modules/printf-posix (Depends-on): Likewise.
2089         * modules/ptsname (Depends-on): Likewise.
2090         * modules/putenv (Depends-on): Likewise.
2091         * modules/pwrite (Depends-on): Likewise.
2092         * modules/readline (Depends-on): Likewise.
2093         * modules/readlink (Depends-on): Likewise.
2094         * modules/readlinkat (Depends-on): Likewise.
2095         * modules/recv (Depends-on): Likewise.
2096         * modules/recvfrom (Depends-on): Likewise.
2097         * modules/regex (Depends-on): Likewise.
2098         * modules/remove (Depends-on): Likewise.
2099         * modules/rename (Depends-on): Likewise.
2100         * modules/renameat (Depends-on): Likewise.
2101         * modules/rmdir (Depends-on): Likewise.
2102         * modules/round (Depends-on): Likewise.
2103         * modules/roundf (Depends-on): Likewise.
2104         * modules/roundl (Depends-on): Likewise.
2105         * modules/rpmatch (Depends-on): Likewise.
2106         * modules/select (Depends-on): Likewise.
2107         * modules/send (Depends-on): Likewise.
2108         * modules/sendto (Depends-on): Likewise.
2109         * modules/setenv (Depends-on): Likewise.
2110         * modules/setlocale (Depends-on): Likewise.
2111         * modules/setsockopt (Depends-on): Likewise.
2112         * modules/shutdown (Depends-on): Likewise.
2113         * modules/sigaction (Depends-on): Likewise.
2114         * modules/signbit (Depends-on): Likewise.
2115         * modules/sigprocmask (Depends-on): Likewise.
2116         * modules/sinl (Depends-on): Likewise.
2117         * modules/sleep (Depends-on): Likewise.
2118         * modules/snprintf (Depends-on): Likewise.
2119         * modules/snprintf-posix (Depends-on): Likewise.
2120         * modules/socket (Depends-on): Likewise.
2121         * modules/sprintf-posix (Depends-on): Likewise.
2122         * modules/sqrtl (Depends-on): Likewise.
2123         * modules/stat (Depends-on): Likewise.
2124         * modules/strchrnul (Depends-on): Likewise.
2125         * modules/strdup-posix (Depends-on): Likewise.
2126         * modules/strerror (Depends-on): Likewise.
2127         * modules/strerror_r-posix (Depends-on): Likewise.
2128         * modules/strndup (Depends-on): Likewise.
2129         * modules/strnlen (Depends-on): Likewise.
2130         * modules/strptime (Depends-on): Likewise.
2131         * modules/strsep (Depends-on): Likewise.
2132         * modules/strsignal (Depends-on): Likewise.
2133         * modules/strstr-simple (Depends-on): Likewise.
2134         * modules/strtod (Depends-on): Likewise.
2135         * modules/strtoimax (Depends-on): Likewise.
2136         * modules/strtok_r (Depends-on): Likewise.
2137         * modules/strtoumax (Depends-on): Likewise.
2138         * modules/symlink (Depends-on): Likewise.
2139         * modules/symlinkat (Depends-on): Likewise.
2140         * modules/tanl (Depends-on): Likewise.
2141         * modules/tcgetsid (Depends-on): Likewise.
2142         * modules/tmpfile (Depends-on): Likewise.
2143         * modules/trunc (Depends-on): Likewise.
2144         * modules/truncf (Depends-on): Likewise.
2145         * modules/truncl (Depends-on): Likewise.
2146         * modules/uname (Depends-on): Likewise.
2147         * modules/unlink (Depends-on): Likewise.
2148         * modules/unlockpt (Depends-on): Likewise.
2149         * modules/unsetenv (Depends-on): Likewise.
2150         * modules/usleep (Depends-on): Likewise.
2151         * modules/utimensat (Depends-on): Likewise.
2152         * modules/vasprintf (Depends-on): Likewise.
2153         * modules/vdprintf (Depends-on): Likewise.
2154         * modules/vdprintf-posix (Depends-on): Likewise.
2155         * modules/vfprintf-posix (Depends-on): Likewise.
2156         * modules/vprintf-posix (Depends-on): Likewise.
2157         * modules/vsnprintf (Depends-on): Likewise.
2158         * modules/vsnprintf-posix (Depends-on): Likewise.
2159         * modules/vsprintf-posix (Depends-on): Likewise.
2160         * modules/wcrtomb (Depends-on): Likewise.
2161         * modules/wcscasecmp (Depends-on): Likewise.
2162         * modules/wcscspn (Depends-on): Likewise.
2163         * modules/wcsdup (Depends-on): Likewise.
2164         * modules/wcsncasecmp (Depends-on): Likewise.
2165         * modules/wcsnrtombs (Depends-on): Likewise.
2166         * modules/wcspbrk (Depends-on): Likewise.
2167         * modules/wcsrtombs (Depends-on): Likewise.
2168         * modules/wcsspn (Depends-on): Likewise.
2169         * modules/wcsstr (Depends-on): Likewise.
2170         * modules/wcstok (Depends-on): Likewise.
2171         * modules/wcswidth (Depends-on): Likewise.
2172         * modules/wctob (Depends-on): Likewise.
2173         * modules/wctomb (Depends-on): Likewise.
2174         * modules/wctype (Depends-on): Likewise.
2175         * modules/wcwidth (Depends-on): Likewise.
2176         * modules/write (Depends-on): Likewise.
2177
2178 2011-05-03  Bruno Haible  <bruno@clisp.org>
2179
2180         Support for conditional dependencies.
2181         * doc/gnulib.texi (Module description): Document the syntax of
2182         conditional dependencies.
2183         * gnulib-tool: New option --conditional-dependencies.
2184         (func_usage): Document it.
2185         (cond_dependencies): New variable.
2186         (func_get_automake_snippet_conditional,
2187         func_get_automake_snippet_unconditional): New functions, extracted from
2188         func_get_automake_snippet.
2189         (func_get_automake_snippet): Use them.
2190         (sed_first_32_chars): New variable.
2191         (func_module_shellfunc_name): New function.
2192         (func_module_shellvar_name): New function.
2193         (func_module_conditional_name): New function.
2194         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2195         func_cond_module_condition): New functions.
2196         (func_modules_transitive_closure): Add support for conditional
2197         dependencies.
2198         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2199         conditional automake snippet in an automake conditional.
2200         (func_emit_autoconf_snippets): Emit shell functions that contain the
2201         code for conditional modules.
2202         (func_import, func_create_testdir): Update specification.
2203
2204 2011-05-03  Eric Blake  <eblake@redhat.com>
2205
2206         test-getaddrinfo: report error information
2207         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2208
2209 2011-05-03  Jim Meyering  <meyering@redhat.com>
2210
2211         bootstrap: avoid build failure when $GZIP is set
2212         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2213         program name.  If defined at all, it is supposed to list gzip options.
2214         Reported by Alan Curry in http://debbugs.gnu.org/8609
2215
2216 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2217
2218         readme-release: new module with release instructions
2219         * modules/readme-release: New module.
2220         * top/README-release: New file, from coreutils, grep, diffutils.
2221         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2222
2223 2011-05-02  Eric Blake  <eblake@redhat.com>
2224
2225         fflush: also replace fclose when fixing fflush
2226         * modules/fflush (Depends-on): Add fclose.
2227         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2228         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2229         memstreams with no backing fd.
2230         * doc/posix-functions/fclose.texi (fclose): Document the use of
2231         fflush module to fix the bug.
2232         * tests/test-fclose.c (main): Relax test when fclose is used in
2233         isolation.
2234
2235         fclose: add some tests
2236         * modules/fclose-tests: New test module.
2237         * tests/test-fclose.c: New file.
2238         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2239
2240         fclose: reduced dependencies
2241         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2242         simpler lseek.
2243         * lib/fclose.c (rpl_fclose): Likewise.
2244         Reported by Simon Josefsson.
2245
2246         exit: drop remaining clients
2247         * modules/argmatch (Depends-on): Replace exit with stdlib.
2248         * modules/copy-file (Depends-on): Likewise.
2249         * modules/execute (Depends-on): Likewise.
2250         * modules/exitfail (Depends-on): Likewise.
2251         * modules/obstack (Depends-on): Likewise.
2252         * modules/pagealign_alloc (Depends-on): Likewise.
2253         * modules/pipe-filter-gi (Depends-on): Likewise.
2254         * modules/pipe-filter-ii (Depends-on): Likewise.
2255         * modules/savewd (Depends-on): Likewise.
2256         * modules/spawn-pipe (Depends-on): Likewise.
2257         * modules/wait-process (Depends-on): Likewise.
2258         * modules/xsetenv (Depends-on): Likewise.
2259         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2260         * modules/git-merge-changelog (Depends-on): Likewise.
2261         * modules/long-options (Depends-on): Likewise.
2262         * modules/pt_chown (Depends-on): Likewise.
2263         * modules/sysexits (Depends-on): Likewise.
2264
2265         freading: relax license from LGPLv3+ to LGPLv2+
2266         * modules/freading (License): Relax LGPL version.
2267
2268 2011-05-02  Bruno Haible  <bruno@clisp.org>
2269
2270         fchdir: Remove unused dependencies.
2271         * modules/fchdir (Depends-on): Remove include_next.
2272
2273 2011-05-02  Bruno Haible  <bruno@clisp.org>
2274
2275         gnulib-tool: Refactor.
2276         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
2277         from func_emit_autoconf_snippets.
2278         (func_emit_autoconf_snippets): Use it.
2279
2280 2011-05-02  Simon Josefsson  <simon@josefsson.org>
2281
2282         * NEWS: Document removal of 'exit'.
2283         * modules/exit: Remove file.
2284
2285 2011-05-01  Bruno Haible  <bruno@clisp.org>
2286
2287         Update DEPENDENCIES.
2288         * DEPENDENCIES (gettext): Recommend the newest release.
2289         Reported by Simon Josefsson.
2290
2291 2011-05-01  Bruno Haible  <bruno@clisp.org>
2292
2293         gnulib-tool: Reduce code duplication.
2294         * gnulib-tool (func_emit_autoconf_snippets): New function.
2295         (func_import, func_create_testdir): Use it.
2296
2297 2011-04-30  Eric Blake  <eblake@redhat.com>
2298
2299         fclose: don't fail on non-seekable input stream
2300         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
2301         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
2302         since fflush is allowed to fail in that case.
2303
2304 2011-04-30  Bruno Haible  <bruno@clisp.org>
2305
2306         dup3: cleanup
2307         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
2308
2309 2011-04-30  Bruno Haible  <bruno@clisp.org>
2310
2311         netdb: Make it work in C++ mode.
2312         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
2313         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
2314         module.
2315         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2316         gl_MODULE_INDICATOR_FOR_TESTS.
2317         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
2318         * modules/netdb-c++-tests: New file.
2319         * tests/test-netdb-c++.cc: New file.
2320
2321 2011-04-30  Bruno Haible  <bruno@clisp.org>
2322
2323         New modules 'vfscanf', 'vscanf'.
2324         * modules/vfscanf: New file.
2325         * modules/vscanf: New file.
2326         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2327         here.
2328         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2329         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2330
2331 2011-04-30  Bruno Haible  <bruno@clisp.org>
2332
2333         passfd: Add comments.
2334         * lib/passfd.c: Add comments about platforms.
2335
2336 2011-04-30  Bruno Haible  <bruno@clisp.org>
2337
2338         sys_uio: Make <sys/uio.h> self-contained.
2339         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2340         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2341
2342 2011-04-30  Bruno Haible  <bruno@clisp.org>
2343
2344         sys_socket: Ensure 'struct iovec' definition.
2345         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2346         <sys/socket.h>.
2347         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2348
2349 2011-04-30  Bruno Haible  <bruno@clisp.org>
2350
2351         sys_uio: Protect definition of 'struct iovec'.
2352         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2353         it as a C struct.
2354
2355 2011-04-30  Bruno Haible  <bruno@clisp.org>
2356
2357         manywarnings: fix indentation
2358         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2359
2360 2011-04-30  Pádraig Brady <P@draigBrady.com>
2361
2362         manywarnings: add -Wno-missing-field-initializers if needed.
2363         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2364         option if it's needed to allow initialization with { 0, }
2365
2366 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2367
2368         announce-gen: cosmetic improvement
2369         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2370
2371 2011-04-29  Jim Meyering  <meyering@redhat.com>
2372
2373         vc-list-files: indent with spaces, not TABs
2374         * build-aux/vc-list-files: Convert leading TABs to spaces,
2375         to match the style of most other files in gnulib.
2376
2377         announce-gen: indent with spaces, not TABs
2378         * build-aux/announce-gen: Convert all TABs to spaces, to match
2379         the style of most other files in gnulib.
2380
2381 2011-04-29  Eric Blake  <eblake@redhat.com>
2382
2383         quotearg: avoid uninitialized variable use
2384         * lib/quotearg.c (quoting_options_from_style): Initialize
2385         remaining fields, and ensure that custom styles are only used via
2386         quoting_options rather than quoting_style.
2387
2388 2011-04-29  Jim Meyering  <meyering@redhat.com>
2389
2390         maint.mk: remove unused VC-tag variable
2391         * top/maint.mk (VC-tag): Remove unused variable.
2392
2393 2011-04-29  Bruno Haible  <bruno@clisp.org>
2394
2395         netdb: fix gai_strerror replacements
2396         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2397         * modules/netdb: Substitute it.
2398
2399 2011-04-29  Jim Meyering  <meyering@redhat.com>
2400
2401         test-getcwd.c: avoid new set-but-not-used warning
2402         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2403         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2404         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2405         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2406
2407         test-hash.c: avoid a new shadowing warning
2408         * tests/test-hash.c (main): Don't shadow "dup".
2409
2410 2011-04-28  Eric Blake  <eblake@redhat.com>
2411
2412         getaddrinfo: fix gai_strerror signature
2413         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2414         and work around mingw with UNICODE defined.
2415         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2416         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2417         * modules/netdb (Makefile.am): Substitute it.
2418         * lib/netdb.in.h (gai_strerror): Declare replacement.
2419         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2420         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2421         the fix.
2422
2423         getsockopt: avoid compiler warning
2424         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2425         Reported by Matthias Bolte.
2426
2427         tests: drop unused link dependency
2428         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2429         * modules/dirent-safer-tests (Makefile.am): Likewise.
2430         * modules/fdopendir-tests (Makefile.am): Likewise.
2431         * modules/mkfifoat-tests (Makefile.am): Likewise.
2432         * modules/openat-safer-tests (Makefile.am): Likewise.
2433         * modules/openat-tests (Makefile.am): Likewise.
2434         * modules/readlinkat-tests (Makefile.am): Likewise.
2435         * modules/symlinkat-tests (Makefile.am): Likewise.
2436         * modules/linkat-tests (Makefile.am): Likewise.
2437         (Depends-on): Switch to filenamecat-lgpl.
2438         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2439         LIBINTL.
2440         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2441         * tests/test-linkat.c (main): Don't require xalloc.
2442
2443         hash, mgetgroups: drop xalloc dependency
2444         * lib/hash.c (includes): Adjust includes.
2445         * lib/mgetgroups.c (includes): Likewise.
2446         (xgetgroups): Move...
2447         * lib/xgetgroups.c: ...to new file.
2448         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2449         * modules/xgetgroups: New file, split from...
2450         * modules/mgetgroups: ...here.
2451         (Depends-on): Add xalloc-oversized.
2452         * modules/hash (Depends-on): Likewise.
2453         * modules/hash-tests (Depends-on): Drop xalloc.
2454         (test_hash_LDADD): Drop unused library.
2455         * tests/test-hash.c (main): Break xalloc dependency.
2456         (includes): Drop unused include.
2457
2458         xalloc-oversized: new module
2459         * modules/xalloc-oversized: New module.
2460         * modules/xalloc (Depends-on): Add it.
2461         * lib/xalloc.h (xalloc_oversized): Move...
2462         * lib/xalloc-oversized.h: ...into new file.
2463
2464         utimecmp: drop dependency on xmalloc
2465         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2466         due to memory pressure.
2467         * modules/utimecmp (Depends-on): Drop xalloc.
2468
2469 2011-04-27  Eric Blake  <eblake@redhat.com>
2470
2471         getcwd: fix mingw bugs
2472         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2473         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
2474         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
2475
2476 2011-04-27  Bruno Haible  <bruno@clisp.org>
2477
2478         mkstemps: Ensure declaration on MacOS X 10.5.
2479         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
2480         * doc/glibc-functions/mkstemps.texi: Document header file problem on
2481         MacOS X.
2482
2483 2011-04-27  Bruno Haible  <bruno@clisp.org>
2484
2485         mkstemp: More documentation.
2486         * doc/posix-functions/mkstemp.texi: Document header file problem on
2487         MacOS X.
2488
2489 2011-04-27  Bruno Haible  <bruno@clisp.org>
2490
2491         mkstemp: Tweak configure message when cross-compiling.
2492         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
2493         result as a guess.
2494
2495 2011-04-27  Bruno Haible  <bruno@clisp.org>
2496
2497         clean-temp: Clarify what it does.
2498         * lib/clean-temp.h: Add more comments.
2499         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
2500         module.
2501         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
2502         * doc/glibc-functions/mkstemps.texi: Likewise.
2503         * doc/glibc-functions/mkostemps.texi: Likewise.
2504
2505 2011-04-27  Eric Blake  <eblake@redhat.com>
2506
2507         fchdir: avoid extra chdir and fix test
2508         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
2509         getcwd-lgpl.
2510         * lib/fchdir.c (get_name): Any absolute name will do; it does not
2511         have to be canonical.
2512         (canonicalize_file_name): Drop unused macro.
2513         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
2514
2515         filenamecat-lgpl: fix licence
2516         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
2517         when it was first created.
2518
2519         linkat, renameat: add missing dependency
2520         * modules/linkat (Depends-on): Require getcwd-lgpl.
2521         * modules/renameat (Depends-on): Likewise.
2522
2523         tests: reduce dependencies
2524         * tests/test-linkat.c (main): Use lighter-weight getcwd.
2525         * tests/test-renameat.c (main): Likewise.
2526         * modules/linkat-tests (Depends-on): Relax dependency.
2527         * modules/renameat-tests (Depends-on): Likewise.
2528         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
2529         dependency explicit.
2530
2531         save-cwd: reduce default dependency
2532         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
2533         * lib/save-cwd.c: Update comments.
2534         * NEWS: Document the semantic change.
2535
2536         getcwd: enhance tests
2537         * tests/test-getcwd-lgpl.c: New file, taken from...
2538         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
2539         repeat long path stress tests from m4 probe.
2540         * modules/getcwd-lgpl-tests: New module.
2541         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
2542         * m4/getcwd-abort-bug.m4: Update comment.
2543         * m4/getcwd-path-max.m4: Likewise.
2544
2545         getcwd-lgpl: new module
2546         * modules/getcwd-lgpl: New module.
2547         * lib/getcwd-lgpl.c: New file.
2548         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2549         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2550         * modules/getcwd (configure.ac): Set C witness.
2551         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
2552
2553         getcwd: tweak comments
2554         * m4/getcwd-abort-bug.m4: Fix comments.
2555         * m4/getcwd-path-max.m4: Likewise.
2556         * m4/getcwd.m4: Likewise.
2557
2558 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2559         and Eric Blake  <eblake@redhat.com>
2560
2561         mkstemp: replace if system version uses wrong permissions
2562         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
2563         read/write mode bits set in file created by mkstemp.
2564         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
2565
2566 2011-04-27  Eric Blake  <eblake@redhat.com>
2567
2568         passfd: avoid compiler warning
2569         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
2570         Reported by Laine Stump.
2571
2572 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
2573
2574         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
2575         required by the NetBSD (and perhaps other 4.4BSD derived) join.
2576
2577 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2578         and Eric Blake  <eblake@redhat.com>
2579
2580         mkstemp: mention clean-temp module
2581         * lib/mkstemp.c: Add comment.
2582         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
2583
2584 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2585
2586         inttypes: also provide default values for 32-bit tests
2587         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
2588         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
2589
2590 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
2591
2592         strtoumax: remove dependency on strtoimax
2593         This is like the strtoull change of yesterday.
2594         * modules/strtoumax (Files): Add lib/strtoimax.c.
2595         (Depends-on): Remove strtoimax and add verify.
2596
2597         inttypes-incomplete: new module
2598         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
2599         all but the PRI* and SCN* parts of gl_INTTYPES_H.
2600         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
2601         of gl_INTTYPES_H.
2602         (gl_INTTYPES_H): Rewrite in terms of these new macros.
2603         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
2604         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
2605         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
2606         * modules/strtoumax, modules/xstrtol (Depends-on):
2607         Depend on inttypes-incomplete, not inttypes.
2608         * modules/inttypes-incomplete: New module, containing the contents
2609         of the old modules/inttypes module, except that the Files: section
2610         omits m4/inttypes-pri.m4, and the configure.ac section invokes
2611         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
2612         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
2613         (Depends-on): Depend only on inttypes-incomplete.
2614         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
2615
2616         inttypes: omit now-redundant strtoimax and strtoumax work
2617         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
2618         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
2619
2620         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
2621         This supports apps that need pointers to strtoimax and strtoumax,
2622         and ports to HP-UX 11.00 64.bit, which has macros that expand to
2623         nonexistent functions.  See
2624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
2625         et seq.
2626         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
2627         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
2628         a macro.
2629         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2630
2631 2011-04-25  Simon Josefsson  <simon@josefsson.org>
2632
2633         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
2634
2635 2011-04-25  Bruno Haible  <bruno@clisp.org>
2636
2637         strtol, strtoul: Mark modules as obsolete.
2638         * modules/strtol (Status, Notice): New sections.
2639         * modules/strtoul (Status, Notice): New sections.
2640
2641 2011-04-25  Bruno Haible  <bruno@clisp.org>
2642
2643         strtod: Remove check for strtod, unless supporting old platforms.
2644         * modules/strtod-obsolete: New file.
2645         * m4/strtod-obsolete.m4: New file.
2646         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
2647         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
2648         * modules/strtod (Depends-on): Add strtod-obsolete.
2649         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
2650
2651 2011-04-25  Bruno Haible  <bruno@clisp.org>
2652
2653         strcase: Make module obsolete.
2654         * modules/strcase (Status, Notice): New sections.
2655
2656 2011-04-25  Bruno Haible  <bruno@clisp.org>
2657
2658         dup2: Remove check for dup2, unless supporting old obsolete platforms.
2659         * modules/dup2-obsolete: New file.
2660         * m4/dup2-obsolete.m4: New file.
2661         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
2662         gl_FUNC_DUP2_OBSOLETE is not also defined.
2663         * modules/dup2 (Depends-on): Add dup2-obsolete.
2664         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
2665
2666 2011-04-25  Bruno Haible  <bruno@clisp.org>
2667
2668         strnlen: Avoid memchr related link error on old obsolete platforms.
2669         * modules/memchr-obsolete: New file.
2670         * m4/memchr-obsolete.m4: New file.
2671         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
2672         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
2673         * modules/memchr (Depends-on): Add memchr-obsolete.
2674         * modules/strnlen (Depends-on): Likewise.
2675         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
2676
2677 2011-04-25  Jim Meyering  <meyering@redhat.com>
2678
2679         maint.mk: makefile_at_at_check extend and clean up
2680         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
2681         in addition to */Makefile.am.
2682         Exempt legitimate uses of @VAR@ notation, e.g.,
2683         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
2684         Remove obsolete coreutils-specific comment.
2685         Prompted by discussion here:
2686         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
2687
2688 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
2689
2690         strtoul: remove dependency on strtol
2691         This is so that 'configure' need not check for strtol merely because
2692         the application needs strtoul.
2693         * modules/strtoul (Files): Add lib/strtol.c.
2694         (Depends-on): Remove strtol.
2695
2696         strtoull: remove dependency on strtoul
2697         This is like the strtoll change.
2698         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
2699         (Depends-on): Remove strtoul.
2700
2701         strtoll: remove dependency on strtol
2702         This is so that 'configure' need not check for strtol merely because
2703         the application needs strtoll.
2704         * modules/strtoll (Files): Add lib/strtol.c.
2705         (Depends-on): Remove strtol.
2706
2707 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2708
2709         inttypes: Move some configure check to module 'imaxdiv'.
2710         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
2711         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
2712         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
2713
2714 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2715
2716         inttypes: Move some configure check to module 'imaxabs'.
2717         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
2718         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
2719         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
2720
2721 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2722
2723         inttypes: Remove configure tests that are not needed since 2009-12-31.
2724         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
2725         gl_cv_header_working_inttypes_h.
2726
2727 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2728
2729         * modules/strnlen (Depends-on): Remove memchr.
2730         The strnlen implementation doesn't need the memchr module's fixes; see
2731         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
2732
2733         strtol: remove dependency on wchar
2734         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
2735         * modules/strtol (Depends-on): Remove wchar.
2736
2737 2011-04-21  Eric Blake  <eblake@redhat.com>
2738
2739         passfd: fix test regression on Linux
2740         * modules/passfd-tests (configure.ac): Correct socketpair check.
2741
2742         passfd: speed up configure and drop unused code
2743         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
2744         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
2745         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
2746         Instead of probing at configure for unix_scm_rights_bsd44_way,
2747         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
2748         check to a struct member probe.
2749         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
2750         (sendfd, recvfd): Update preprocessor checks.
2751         * modules/passfd (Files): Reflect rename, and drop unused file.
2752         (Depends-on): Drop unused dependency.
2753
2754         passfd: allow compilation on mingw
2755         * modules/sys_socket (Depends-on): Add sys_uio.
2756         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
2757         iovec and a minimal struct msghdr.
2758         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
2759         * tests/test-sys_socket.c (main): Enhance test.
2760         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
2761         guaranteed to provide what we need.
2762         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
2763         * modules/passfd-tests (Depends-on): Add sys_wait.
2764         * tests/test-passfd.c (main): Skip test on mingw, for now.
2765         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
2766         partial 'struct msghdr' implementation.
2767
2768         sys_uio: new module
2769         * modules/sys_uio: New module.
2770         * modules/sys_uio-tests: Likewise.
2771         * lib/sys_uio.in.h: New file.
2772         * m4/sys_uio_h.m4: Likewise.
2773         * tests/test-sys_uio.c: Likewise.
2774         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
2775         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
2776
2777 2011-04-20  Jim Meyering  <meyering@redhat.com>
2778
2779         useless-if-before-free: avoid false-positive
2780         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
2781         disjunct so that it too requires a terminating ";".  Without that,
2782         this script would identify as useless one statement from gcc that
2783         was not:
2784           if (aligned_ptr)
2785             free (((void **) aligned_ptr) [-1]);
2786
2787 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
2788
2789         doc: update users.txt.
2790         * users.txt: Add barcode.
2791
2792 2011-04-19  Bruno Haible  <bruno@clisp.org>
2793
2794         ioctl: Remove link dependency on native Windows.
2795         * lib/fd-hook.h: Renamed from lib/close-hook.h.
2796         (gl_close_fn, gl_ioctl_fn): New types.
2797         (struct fd_hook): Renamed from struct close_hook. Change type of
2798         private_close_fn field. Add private_ioctl_fn field.
2799         (close_hook_fn): Add parameter for primary close method.
2800         (execute_close_hooks, execute_all_close_hooks): Likewise.
2801         (ioctl_hook_fn): New type.
2802         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
2803         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2804         argument.
2805         (unregister_fd_hook): Renamed from unregister_close_hook.
2806         * lib/fd-hook.c: Renamed from lib/close-hook.c.
2807         Don't include <unistd.h>.
2808         (close): Remove undef.
2809         (anchor): Update.
2810         (execute_close_hooks): Add argument for primary close method.
2811         (execute_all_close_hooks): Likewise.
2812         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
2813         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2814         argument. Allow each argument to be NULL.
2815         (unregister_fd_hook): Renamed from unregister_close_hook.
2816         * lib/close.c (rpl_close): Pass 'close' function pointer to
2817         execute_all_close_hooks.
2818         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
2819         (primary_ioctl): New function.
2820         (ioctl): Don't call ioctlsocket here. Instead, call
2821         execute_all_ioctl_hooks.
2822         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
2823         close method.
2824         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
2825         (fd_sockets_hook): Renamed from close_sockets_hook.
2826         (gl_sockets_startup, gl_sockets_cleanup): Update.
2827         * modules/fd-hook: Renamed from modules/close-hook. Update.
2828         * modules/close (Depends-on): Add fd-hook, remove close-hook.
2829         * modules/sockets (Depends-on): Likewise.
2830         * modules/ioctl (Depends-on): Add fd-hook.
2831         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
2832         GNULIB_SOCKET.
2833
2834 2011-04-19  Bruno Haible  <bruno@clisp.org>
2835
2836         Move the support of O_NONBLOCK in open() to the 'open' module.
2837         * modules/nonblocking (Depends-on): Remove 'open'.
2838         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
2839         gl_cv_have_open_O_NONBLOCK.
2840         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
2841         O_NONBLOCK support.
2842         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
2843
2844 2011-04-17  Bruno Haible  <bruno@clisp.org>
2845
2846         pipe2: Simplify code.
2847         * lib/pipe2.c (pipe2): Reduce code duplication.
2848
2849 2011-04-17  Bruno Haible  <bruno@clisp.org>
2850
2851         nonblocking: Add comment.
2852         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
2853
2854 2011-04-17  Bruno Haible  <bruno@clisp.org>
2855
2856         nonblocking: Add tests for sockets.
2857         * tests/test-nonblocking-socket.sh: New file.
2858         * tests/test-nonblocking-socket-main.c: New file.
2859         * tests/test-nonblocking-socket-child.c: New file.
2860         * tests/test-nonblocking-socket.h: New file.
2861         * tests/socket-server.h: New file.
2862         * tests/socket-client.h: New file.
2863         * modules/nonblocking-socket-tests: New file.
2864         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
2865
2866 2011-04-17  Bruno Haible  <bruno@clisp.org>
2867
2868         nonblocking: Add tests for pipes.
2869         * tests/test-nonblocking-pipe.sh: New file.
2870         * tests/test-nonblocking-pipe-main.c: New file.
2871         * tests/test-nonblocking-pipe-child.c: New file.
2872         * tests/test-nonblocking-pipe.h: New file.
2873         * tests/test-nonblocking-writer.h: New file.
2874         * tests/test-nonblocking-reader.h: New file.
2875         * tests/test-nonblocking-misc.h: New file.
2876         * modules/nonblocking-pipe-tests: New file.
2877         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
2878
2879 2011-04-16  Bruno Haible  <bruno@clisp.org>
2880
2881         gettext: Clarify the needed programmer actions.
2882         * modules/gettext (Notice): New field.
2883         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2884
2885 2011-04-16  Bruno Haible  <bruno@clisp.org>
2886
2887         strchrnul: Tweak last commit.
2888         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
2889         bug.
2890         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
2891         as in _GL_FUNCDECL_SYS.
2892         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
2893         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
2894
2895 2011-04-15  Eric Blake  <eblake@redhat.com>
2896
2897         strchrnul: work around cygwin bug
2898         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
2899         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
2900         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
2901         * modules/string (Makefile.am): Substitute it.
2902         * lib/string.in.h (strchrnul): Use it.
2903
2904 2011-04-15  Bruno Haible  <bruno@clisp.org>
2905
2906         Don't require lib/stdio-write.c when only module 'stdio' is used.
2907         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
2908         invocation.
2909         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
2910
2911 2011-04-14  Bruno Haible  <bruno@clisp.org>
2912
2913         Support non-blocking pipe I/O in read() on native Windows.
2914         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
2915         (read): New declaration.
2916         * lib/read.c: New file.
2917         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
2918         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
2919         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
2920         vscanf): New declarations.
2921         * lib/stdio-read.c: New file.
2922         * m4/read.m4: New file.
2923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
2924         REPLACE_READ.
2925         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
2926         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2927         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
2928         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
2929         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
2930         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2931         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2932         * modules/read: New file.
2933         * modules/nonblocking (Files): Add lib/stdio-read.c.
2934         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
2935         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
2936         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2937         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2938         * modules/pread (Depends-on): Add read.
2939         * modules/safe-read (Depends-on): Likewise.
2940         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
2941         gets, scanf, vfscanf, vscanf): Verify signatures.
2942         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
2943         problem with non-blocking pipes.
2944         * doc/posix-functions/fgetc.texi: Likewise.
2945         * doc/posix-functions/fgets.texi: Likewise.
2946         * doc/posix-functions/fread.texi: Likewise.
2947         * doc/posix-functions/fscanf.texi: Likewise.
2948         * doc/posix-functions/getc.texi: Likewise.
2949         * doc/posix-functions/getchar.texi: Likewise.
2950         * doc/posix-functions/gets.texi: Likewise.
2951         * doc/posix-functions/scanf.texi: Likewise.
2952         * doc/posix-functions/vfscanf.texi: Likewise.
2953         * doc/posix-functions/vscanf.texi: Likewise.
2954
2955 2011-04-14  Bruno Haible  <bruno@clisp.org>
2956
2957         Support non-blocking pipe I/O in write() on native Windows.
2958         * lib/write.c (rpl_write): Split a write request that failed merely
2959         because the byte count was larger than the pipe buffer's size.
2960         * doc/posix-functions/write.texi: Mention the problem with large byte
2961         counts.
2962
2963 2011-04-14  Bruno Haible  <bruno@clisp.org>
2964
2965         wchar: Ensure that wchar_t gets defined on uClibc.
2966         * lib/wchar.in.h: On uClibc, include <stddef.h>.
2967         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
2968
2969 2011-04-13  Bruno Haible  <bruno@clisp.org>
2970
2971         safe-write, full-read: Avoid unnecessary compilation units.
2972         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
2973         (Depends-on): Remove safe-read. Add ssize_t.
2974         * modules/full-read (Files): Add lib/full-write.c.
2975         (Depends-on): Add full-write.
2976
2977 2011-04-13  Bruno Haible  <bruno@clisp.org>
2978
2979         Support non-blocking pipe I/O and SIGPIPE in pwrite().
2980         * modules/pwrite (Depends-on): Add 'write'.
2981
2982 2011-04-13  Bruno Haible  <bruno@clisp.org>
2983
2984         Support non-blocking pipe I/O in write() on native Windows.
2985         * lib/unistd.in.h (write): Enable replacement also if
2986         GNULIB_UNISTD_H_NONBLOCKING is 1.
2987         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
2988         (rpl_write): When failing to write on a non-blocking pipe, change
2989         errno from ENOSPC to EAGAIN.
2990         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
2991         putchar, puts, vfprintf, vprintf): Enable replacement also if
2992         GNULIB_STDIO_H_NONBLOCKING is 1.
2993         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
2994         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
2995         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
2996         CALL_WITH_SIGPIPE_EMULATION.
2997         (CALL_WITH_SIGPIPE_EMULATION): Use them.
2998         * m4/nonblocking.m4: New file.
2999         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
3000         for non-blocking I/O support.
3001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3002         GNULIB_UNISTD_H_NONBLOCKING.
3003         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
3004         required for non-blocking I/O support.
3005         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
3006         * modules/nonblocking (Files): Add m4/nonblocking.m4,
3007         lib/stdio-write.c, m4/asm-underscore.m4.
3008         (Depends-on): Add stdio, unistd.
3009         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
3010         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
3011         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
3012         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
3013         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
3014         problem with non-blocking pipes.
3015         * doc/posix-functions/fputc.texi: Likewise.
3016         * doc/posix-functions/fputs.texi: Likewise.
3017         * doc/posix-functions/fwrite.texi: Likewise.
3018         * doc/posix-functions/printf.texi: Likewise.
3019         * doc/posix-functions/putc.texi: Likewise.
3020         * doc/posix-functions/putchar.texi: Likewise.
3021         * doc/posix-functions/puts.texi: Likewise.
3022         * doc/posix-functions/vfprintf.texi: Likewise.
3023         * doc/posix-functions/vprintf.texi: Likewise.
3024         * doc/posix-functions/write.texi: Likewise.
3025
3026 2011-04-10  Jim Meyering  <meyering@redhat.com>
3027
3028         maint.mk: prohibit doubled words
3029         Detect them also when they're separated by a newline.
3030         There are 3 ways to customize it:
3031           - disable the test on a per file basis, as usual with rules using
3032             $(VC_LIST_EXCEPT)
3033           - replace the default doubled-word-selecting regexp (affects all files)
3034           - ignore a particular file-vs-doubled-word match
3035         I nearly used that last one to ignore the "is is" match in
3036         coreutils' NEWS file, since the text was "ls -is is ..."
3037         To do that, I would have added this line to cfg.mk:
3038           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
3039         but it would have ignored any "is is" match in NEWS.
3040         Low probability, but still...
3041         Instead, I changed the text, slightly:
3042           -  ls -is is now consistent with ls -lis in ignoring values returned
3043           +  "ls -is" is now consistent with ls -lis in ignoring values returned
3044         * top/maint.mk (prohibit_double_word_RE_): Provide default.
3045         (prohibit_doubled_word_): Define.
3046         (sc_prohibit_doubled_word): New rule.
3047         (sc_prohibit_the_the): Remove.  Subsumed by the above.
3048
3049 2011-04-10  Jim Meyering  <meyering@redhat.com>
3050
3051         maint: fix doubled-word typo in comment
3052         * m4/gethostname.m4: s/is is/it is/
3053         * m4/getdomainname.m4: Likewise.
3054
3055 2011-04-10  Jim Meyering  <meyering@redhat.com>
3056
3057         maint: remove doubled word: s/it it/it/
3058         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
3059
3060 2011-04-10  Jim Meyering  <meyering@redhat.com>
3061
3062         maint.mk: remove useless semicolon and backslash
3063         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
3064         semicolon and backslash.
3065
3066 2011-04-10  Bruno Haible  <bruno@clisp.org>
3067
3068         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
3069         * modules/stdint-tests (Depends-on): Add wchar.
3070
3071 2011-04-10  Jim Meyering  <meyering@redhat.com>
3072
3073         maint: remove doubled words in comments, e.g., s/a a/a/
3074         * lib/strptime.c (day_of_the_week): s/the the/the/
3075         * tests/test-chown.h (test_chown): s/a a/a/
3076
3077         test-chown.h: correct a cast
3078         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
3079         when the destination is a stat.st_gid.
3080
3081 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
3082
3083         getaddrinfo: Fix test for sa_len member.
3084         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
3085         include <sys/types.h> before <sys/socket.h>.
3086
3087 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
3088
3089         maint: change "can not" to "cannot"
3090         * doc/posix-functions/iconv.texi (iconv): This one crossed line
3091         boundaries.
3092
3093 2011-04-09  Jim Meyering  <meyering@redhat.com>
3094
3095         maint: change "a a" to "a"
3096         * tests/test-lchown.h (test_lchown): s/a a/a/
3097
3098         maint.mk: prohibit \<the the\>
3099         * top/maint.mk (sc_prohibit_the_the): New rule.
3100
3101         maint: fix "the the" in comment
3102         * lib/count-one-bits.h: s/the the/the/
3103
3104         maint: change "can not" to "cannot"
3105         But do not change the occurrences in maintain.texi or in
3106         build-aux/po/Makefile.in.in, which I presume comes from gettext.
3107         * doc/gnulib-tool.texi: s/can not/cannot/
3108         * doc/posix-functions/accept.texi (accept): Likewise.
3109         * doc/posix-functions/socket.texi (socket): Likewise.
3110         * lib/mbrtowc.c: Likewise.
3111
3112         maint.mk: prohibit use of "can not"
3113         * top/maint.mk (sc_prohibit_can_not): New rule.
3114         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
3115
3116 2011-04-09  Bruno Haible  <bruno@clisp.org>
3117
3118         careadlinkat: Guard against misuse of careadlinkatcwd.
3119         * lib/careadlinkat.c: Include <stdlib.h>.
3120         (careadlinkatcwd): Check that the fd argument is as expected.
3121
3122 2011-04-09  Bruno Haible  <bruno@clisp.org>
3123
3124         careadlinkat: Use common coding style.
3125         * lib/careadlinkat.c: Move gnulib includes after system includes.
3126
3127 2011-04-09  Bruno Haible  <bruno@clisp.org>
3128
3129         careadlinkat: Clarify specification.
3130         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
3131         (careadlinkatcwd): Add comment.
3132         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
3133
3134 2011-04-09  Bruno Haible  <bruno@clisp.org>
3135
3136         areadlinkat: Avoid link error on many platforms.
3137         * modules/areadlinkat (Depends-on): Add areadlink.
3138
3139 2011-04-09  Bruno Haible  <bruno@clisp.org>
3140
3141         allocator, careadlinkat: Fix double-inclusion guard.
3142         * lib/allocator.h: Fix double-inclusion guard.
3143         * lib/careadlinkat.h: Likewise.
3144
3145 2011-04-09  Bruno Haible  <bruno@clisp.org>
3146
3147         relocatable-prog-wrapper: Update after module 'areadlink' changed.
3148         * lib/relocwrapper.c: Update dependencies hierarchy.
3149         * build-aux/install-reloc: Update list of files to be compiled.
3150         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
3151         lib/allocator.[hc].
3152
3153 2011-04-08  Eric Blake  <eblake@redhat.com>
3154
3155         strftime: silence gnulib-tool warning
3156         * modules/strftime-tests (Depends-on): Drop automatic dependency.
3157
3158 2011-04-08  Bruno Haible  <bruno@clisp.org>
3159
3160         verify: Fix syntax error with GCC 4.6 in C++ mode.
3161         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
3162         (HAVE_STATIC_ASSERT): New macro.
3163         (verify_true, verify): Use 'static_assert' if it is supported and
3164         '_Static_assert' is not supported.
3165
3166 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3167
3168         allocator: New module.
3169         * modules/allocator, lib/allocator.c: New files.
3170         * lib/allocator.h (stdlib_allocator): New decl.
3171         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
3172         Remove.  Do not include <stdlib.h>.
3173         (careadlinkat): Use stdlib_allocator instead of rolling our own.
3174         * modules/careadlinkat (Files): Remove lib/allocator.h.
3175         (Depends-on): Add allocator.
3176
3177         stdlib: let modules use system malloc, realloc
3178         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
3179         if !_GL_USE_STDLIB_ALLOC.
3180         (malloc, realloc): Limit this change to a smaller scope.
3181
3182         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
3183         (malloc, realloc): Don't #undef; no longer needed.
3184         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3185         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3186         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3187         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3188         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3189         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3190         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3191         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3192
3193         careadlinkat: rename members to avoid problem
3194         * lib/allocator.h (struct allocator): Rename members from
3195         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3196         and realloc are #define'd.  Reported by Eric Blake in
3197         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3198         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3199
3200 2011-04-08  Eric Blake  <eblake@redhat.com>
3201
3202         nonblocking: reduce dependency
3203         * tests/test-nonblocking.c: Only test sockets when in use.
3204         * modules/nonblocking-tests (Depends-on): Drop socket.
3205         (Makefile.am): Link even if sockets are not present.
3206         * modules/pipe2-tests (Makefile.am): Likewise.
3207         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3208
3209         pipe2: fix O_NONBLOCK support on mingw
3210         * modules/pipe2 (Depends-on): Add nonblocking.
3211         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3212         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3213         * tests/test-nonblocking.c (main): Likewise.
3214         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3215
3216         fcntl-h: fix O_ACCMODE on cygwin
3217         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3218         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3219
3220         pipe-filter: drop O_NONBLOCK workarounds
3221         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3222         * modules/pipe-filter-ii (Depends-on): Likewise.
3223         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3224
3225         nonblocking: provide O_NONBLOCK for mingw
3226         * modules/nonblocking (Depends-on): Add open.
3227         (configure.ac): Set new witness macro.
3228         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3229         * modules/fcntl-h (Makefile.am): Substitute it.
3230         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3231         nonblocking module is in use.
3232         * lib/nonblocking.c: Adjust portability test.
3233         * lib/open.c (open): Don't let native open see gnulib flag.
3234         * tests/test-fcntl-h.c (main): Enhance test.
3235         * tests/test-open.h (test_open): Likewise.
3236         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3237
3238         careadlinkat: fix compilation error on mingw
3239         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3240         within struct allocator.
3241
3242 2011-04-06  Eric Blake  <eblake@redhat.com>
3243
3244         binary-io: relicense under LGPLv2+
3245         * modules/binary-io (License): Relax to LGPLv2+.
3246         Requested for libvirt, and required by pipe2.
3247
3248 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3249
3250         verify: use _Static_assert if available
3251         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3252         (verify_true, verify): Use it if available.  This generates better
3253         diagnostics with GCC 4.6.0 and later.
3254
3255 2011-04-05  Bruno Haible  <bruno@clisp.org>
3256
3257         Remove leftover generated .h files after config.status changed.
3258
3259         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3260         GL_GENERATE_ALLOCA_H.
3261         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3262         GL_GENERATE_ALLOCA_H evaluates to false.
3263
3264         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
3265         GL_GENERATE_ARGZ_H.
3266         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
3267         evaluates to false.
3268
3269         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
3270         GL_GENERATE_BYTESWAP_H.
3271         * modules/byteswap (Makefile.am): Remove byteswap.h if
3272         GL_GENERATE_BYTESWAP_H evaluates to false.
3273
3274         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
3275         GL_GENERATE_ERRNO_H.
3276         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
3277         evaluates to false.
3278
3279         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
3280         GL_GENERATE_FLOAT_H.
3281         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
3282         evaluates to false.
3283
3284         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
3285         GL_GENERATE_FNMATCH_H.
3286         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
3287         GL_GENERATE_FNMATCH_H evaluates to false.
3288
3289         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
3290         GL_GENERATE_GLOB_H.
3291         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
3292         evaluates to false.
3293
3294         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
3295         automake conditional GL_GENERATE_ICONV_H.
3296         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
3297         evaluates to false.
3298
3299         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
3300         GL_GENERATE_NETINET_IN_H.
3301         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
3302         GL_GENERATE_NETINET_IN_H evaluates to false.
3303
3304         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
3305         conditional GL_GENERATE_PTHREAD_H.
3306         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
3307         * modules/pthread (Makefile.am): Remove pthread.h if
3308         GL_GENERATE_PTHREAD_H evaluates to false.
3309
3310         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
3311         GL_GENERATE_SCHED_H.
3312         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
3313         evaluates to false.
3314
3315         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3316         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3317         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
3318         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
3319
3320         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3321         GL_GENERATE_STDARG_H.
3322         * modules/stdarg (Makefile.am): Remove stdarg.h if
3323         GL_GENERATE_STDARG_H evaluates to false.
3324
3325         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3326         GL_GENERATE_STDBOOL_H.
3327         * modules/stdbool (Makefile.am): Remove stdbool.h if
3328         GL_GENERATE_STDBOOL_H evaluates to false.
3329
3330         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3331         conditional GL_GENERATE_STDDEF_H.
3332         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3333         * modules/stddef (Makefile.am): Remove stddef.h if
3334         GL_GENERATE_STDDEF_H evaluates to false.
3335
3336         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3337         GL_GENERATE_STDINT_H.
3338         * modules/stdint (Makefile.am): Remove stdint.h if
3339         GL_GENERATE_STDINT_H evaluates to false.
3340
3341         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3342         GL_GENERATE_SYSEXITS_H.
3343         * modules/sysexits (Makefile.am): Remove sysexits.h if
3344         GL_GENERATE_SYSEXITS_H evaluates to false.
3345
3346         Reported by Karl Berry and Ralf Wildenhues.
3347
3348 2011-04-05  Bruno Haible  <bruno@clisp.org>
3349
3350         Ensure to rebuild generated .h files when config.status has changed.
3351         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3352         config.status.
3353         * modules/ctype (Makefile.am): Likewise.
3354         * modules/dirent (Makefile.am): Likewise.
3355         * modules/errno (Makefile.am): Likewise.
3356         * modules/fcntl-h (Makefile.am): Likewise.
3357         * modules/float (Makefile.am): Likewise.
3358         * modules/getopt-posix (Makefile.am): Likewise.
3359         * modules/glob (Makefile.am): Likewise.
3360         * modules/iconv-h (Makefile.am): Likewise.
3361         * modules/inttypes (Makefile.am): Likewise.
3362         * modules/langinfo (Makefile.am): Likewise.
3363         * modules/locale (Makefile.am): Likewise.
3364         * modules/math (Makefile.am): Likewise.
3365         * modules/netdb (Makefile.am): Likewise.
3366         * modules/netinet_in (Makefile.am): Likewise.
3367         * modules/poll-h (Makefile.am): Likewise.
3368         * modules/pthread (Makefile.am): Likewise.
3369         * modules/pty (Makefile.am): Likewise.
3370         * modules/sched (Makefile.am): Likewise.
3371         * modules/search (Makefile.am): Likewise.
3372         * modules/selinux-h (Makefile.am): Likewise.
3373         * modules/signal (Makefile.am): Likewise.
3374         * modules/spawn (Makefile.am): Likewise.
3375         * modules/stdarg (Makefile.am): Likewise.
3376         * modules/stdbool (Makefile.am): Likewise.
3377         * modules/stddef (Makefile.am): Likewise.
3378         * modules/stdint (Makefile.am): Likewise.
3379         * modules/stdio (Makefile.am): Likewise.
3380         * modules/stdlib (Makefile.am): Likewise.
3381         * modules/string (Makefile.am): Likewise.
3382         * modules/strings (Makefile.am): Likewise.
3383         * modules/sys_file (Makefile.am): Likewise.
3384         * modules/sys_ioctl (Makefile.am): Likewise.
3385         * modules/sys_select (Makefile.am): Likewise.
3386         * modules/sys_socket (Makefile.am): Likewise.
3387         * modules/sys_stat (Makefile.am): Likewise.
3388         * modules/sys_time (Makefile.am): Likewise.
3389         * modules/sys_times (Makefile.am): Likewise.
3390         * modules/sys_utsname (Makefile.am): Likewise.
3391         * modules/sys_wait (Makefile.am): Likewise.
3392         * modules/sysexits (Makefile.am): Likewise.
3393         * modules/termios (Makefile.am): Likewise.
3394         * modules/time (Makefile.am): Likewise.
3395         * modules/unistd (Makefile.am): Likewise.
3396         * modules/wchar (Makefile.am): Likewise.
3397         * modules/wctype-h (Makefile.am): Likewise.
3398         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3399
3400 2011-04-05  Bruno Haible  <bruno@clisp.org>
3401
3402         pipe2: Relicense under LGPLv2+.
3403         * modules/pipe2 (License): Change to LGPLv2+.
3404         Requested by Eric Blake, for libvirt.
3405
3406 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3407
3408         bootstrap: compute gnulib_extra_files after updating build_aux
3409         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3410         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3411
3412 2011-04-05  Eric Blake  <eblake@redhat.com>
3413
3414         bootstrap: preserve git whitelist item sorting
3415         * build-aux/bootstrap (sort_patterns): New function.
3416         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3417
3418 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3419
3420         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3421         sc_space_tab check.
3422
3423 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3424
3425         areadlink, areadlinkat: rewrite in terms of careadlinkat
3426         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3427         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3428         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3429         (malloc, realloc): Remove #undefs.
3430         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3431         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3432         readlink, ssize_t, stdint, unistd.
3433         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3434         areadlink, stdint.
3435
3436         careadlinkat: new module
3437         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3438         * modules/careadlinkat: New files, written by me with
3439         a review and feedback from Ben Pfaff in
3440         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3441
3442 2011-04-01  Bruno Haible  <bruno@clisp.org>
3443
3444         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3445         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3446         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3447         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3448         Reported by Bruce Korb <bruce.korb@gmail.com>.
3449
3450 2011-04-01  Bruno Haible  <bruno@clisp.org>
3451
3452         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3453         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3454         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3455         * modules/wcpcpy (Depends-on): Add extensions.
3456         * modules/wcpncpy (Depends-on): Likewise.
3457         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3458         systems.
3459         * doc/posix-functions/wcpncpy.texi: Likewise.
3460         * doc/posix-functions/wcwidth.texi: Likewise.
3461
3462 2011-03-31  Eric Blake  <eblake@redhat.com>
3463
3464         nonblocking: fix mingw test failures
3465         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3466         non-blocking flag on regular file.
3467         (get_nonblocking_flag): Set errno on invalid fd.
3468         * tests/test-nonblocking.c (main): Avoid test failure on
3469         directories if fchdir is not active.
3470         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3471
3472 2011-03-31  Bruno Haible  <bruno@clisp.org>
3473
3474         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
3475         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
3476         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
3477         Reported by Simon Josefsson <simon@josefsson.org>.
3478
3479 2011-03-31  Bruno Haible  <bruno@clisp.org>
3480         and Eric Blake  <eblake@redhat.com>
3481
3482         nonblocking: new module
3483         * modules/nonblocking: New module.
3484         * modules/nonblocking-tests: Likewise.
3485         * lib/nonblocking.h: New file.
3486         * lib/nonblocking.c: Likewise.
3487         * tests/test-nonblocking.c: New test.
3488         * lib/ioctl.c (ioctl) [mingw]: Update comment.
3489
3490 2011-03-30  Bruno Haible  <bruno@clisp.org>
3491
3492         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
3493         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
3494         instead of 'printf' format for GCC >= 4.4.
3495         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
3496         (fprintf, printf, vfprintf, vprintf): Declare with
3497         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
3498         the system's vfprintf() function.
3499         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
3500
3501 2011-03-30  Eric Blake  <eblake@redhat.com>
3502
3503         passfd: fix scoping bug
3504         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
3505         before sendmsg/recvmsg.
3506
3507         passfd: standardize coding conventions
3508         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
3509         can be learned at compile time.
3510         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
3511         ifdefs.
3512         (sendfd, recvfd): Follow gnulib code conventions.
3513
3514         passfd: fix incorrect sendmsg arguments
3515         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
3516         incorrect msg_controllen value.
3517         * modules/passfd-tests (Depends-on): Check for alarm.
3518         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
3519         Reported by Bastien ROUCARIES.
3520
3521 2011-03-30  Bruno Haible  <bruno@clisp.org>
3522
3523         c-strcasestr: Relicense under LGPLv2+.
3524         * modules/c-strcasestr (License): Change to LGPLv2+.
3525         Requested by Eric Blake, for libvirt.
3526
3527 2011-03-30  Simon Josefsson  <simon@josefsson.org>
3528
3529         * users.txt: Add libidn2.  Fix libtasn1 link.
3530
3531 2011-03-30  Jim Meyering  <meyering@redhat.com>
3532
3533         tests: readlink* ("",... fails with EINVAL on newer kernels
3534         readlink and readlinkat have typically failed with ENOENT for
3535         the invalid, empty file name,  "".  However, with the advent
3536         of linux-2.6.39, they fail with EINVAL.
3537         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
3538         when operating on the empty file name.
3539         * tests/test-readlink.h (test_readlink): Likewise.
3540
3541 2011-03-29  Bruno Haible  <bruno@clisp.org>
3542
3543         Relicense some modules under LGPLv2+, for libidn2.
3544         * modules/array-mergesort (License): Change to LGPLv2+.
3545         * modules/c-strcaseeq (License): Likewise.
3546         * modules/striconveh (License): Likewise.
3547         * modules/striconveha (License): Likewise.
3548         * modules/uniconv/base (License): Likewise.
3549         * modules/uniconv/u8-conv-from-enc (License): Likewise.
3550         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
3551         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
3552         * modules/unictype/base (License): Likewise.
3553         * modules/unictype/bidiclass-of (License): Likewise.
3554         * modules/unictype/category-M (License): Likewise.
3555         * modules/unictype/category-none (License): Likewise.
3556         * modules/unictype/category-of (License): Likewise.
3557         * modules/unictype/category-test (License): Likewise.
3558         * modules/unictype/category-test-withtable (License): Likewise.
3559         * modules/unictype/combining-class (License): Likewise.
3560         * modules/unictype/joiningtype-of (License): Likewise.
3561         * modules/unictype/scripts (License): Likewise.
3562         * modules/uninorm/base (License): Likewise.
3563         * modules/uninorm/canonical-decomposition (License): Likewise.
3564         * modules/uninorm/composition (License): Likewise.
3565         * modules/uninorm/decompose-internal (License): Likewise.
3566         * modules/uninorm/decomposition-table (License): Likewise.
3567         * modules/uninorm/nfc (License): Likewise.
3568         * modules/uninorm/nfd (License): Likewise.
3569         * modules/uninorm/u32-normalize (License): Likewise.
3570         * modules/unistr/base (License): Likewise.
3571         * modules/unistr/u32-cpy (License): Likewise.
3572         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
3573         * modules/unistr/u32-to-u8 (License): Likewise.
3574         * modules/unistr/u32-uctomb (License): Likewise.
3575         * modules/unistr/u8-check (License): Likewise.
3576         * modules/unistr/u8-mblen (License): Likewise.
3577         * modules/unistr/u8-mbtouc (License): Likewise.
3578         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
3579         * modules/unistr/u8-mbtoucr (License): Likewise.
3580         * modules/unistr/u8-prev (License): Likewise.
3581         * modules/unistr/u8-strlen (License): Likewise.
3582         * modules/unistr/u8-to-u32 (License): Likewise.
3583         * modules/unistr/u8-uctomb (License): Likewise.
3584         * modules/unitypes (License): Likewise.
3585         Requested by Simon Josefsson.
3586
3587 2011-03-29  Simon Josefsson  <simon@josefsson.org>
3588
3589         lib-symbol-visibility: Add a notice.
3590         * modules/lib-symbol-visibility (Notice): New field.
3591
3592 2011-03-29  Bruno Haible  <bruno@clisp.org>
3593
3594         getaddrinfo: Doc fix.
3595         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
3596         section "fixed in Gnulib".
3597
3598 2011-03-28  Simon Josefsson  <simon@josefsson.org>
3599
3600         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
3601         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
3602
3603 2011-03-26  Bruno Haible  <bruno@clisp.org>
3604
3605         unictype/property-byname: Reduce the number of load-time relocations.
3606         * lib/unictype/pr_byname.c: Include <stdlib.h>.
3607         (UC_PROPERTY_INDEX_*): New enumeration values.
3608         (uc_property_byname): Convert an index from the lookup table to an
3609         uc_property_t.
3610         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
3611         values.
3612
3613 2011-03-26  Bruno Haible  <bruno@clisp.org>
3614
3615         unictype/property-byname: Allow omitted word separators and aliases.
3616         * lib/unictype/pr_byname.gperf: Add property names without word
3617         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
3618         for 'space'.
3619
3620 2011-03-26  Bruno Haible  <bruno@clisp.org>
3621
3622         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
3623         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
3624         also hyphens to space.
3625         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
3626         without spaces.
3627         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
3628
3629 2011-03-26  Bruno Haible  <bruno@clisp.org>
3630
3631         unictype/joiningtype-byname: Recognize long names as well.
3632         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
3633         a long name.
3634         * lib/unictype/joiningtype_byname.c: Include <string.h>,
3635         unictype/joiningtype_byname.h.
3636         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
3637         * lib/unictype/joiningtype_byname.gperf: New file.
3638         * modules/unictype/joiningtype-byname (Files): Add
3639         lib/unictype/joiningtype_byname.gperf.
3640         (Depends-on): Add gperf.
3641         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
3642         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
3643         long names.
3644
3645         Tests for module 'unictype/joiningtype-longname'.
3646         * modules/unictype/joiningtype-longname-tests: New file.
3647         * tests/unictype/test-joiningtype_longname.c: New file.
3648
3649         New module 'unictype/joiningtype-longname'.
3650         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
3651         * lib/unictype/joiningtype_longname.c: New file.
3652         * modules/unictype/joiningtype-longname: New file.
3653         * modules/unictype/joiningtype-all (Depends-on): Add
3654         unictype/joiningtype-longname.
3655
3656 2011-03-26  Bruno Haible  <bruno@clisp.org>
3657
3658         unictype/bidiclass-byname: Recognize long names as well.
3659         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
3660         name.
3661         * lib/unictype/bidi_byname.c: Include <string.h>,
3662         unictype/bidi_byname.h.
3663         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
3664         * lib/unictype/bidi_byname.gperf: New file.
3665         * modules/unictype/bidiclass-byname (Files): Add
3666         lib/unictype/bidi_byname.gperf.
3667         (Depends-on): Add gperf.
3668         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
3669         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
3670         long names.
3671
3672         Tests for module 'unictype/bidiclass-longname'.
3673         * modules/unictype/bidiclass-longname-tests: New file.
3674         * tests/unictype/test-bidi_longname.c: New file.
3675
3676         New module 'unictype/bidiclass-longname'.
3677         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
3678         * lib/unictype/bidi_longname.c: New file.
3679         * modules/unictype/bidiclass-longname: New file.
3680         * modules/unictype/bidiclass-all (Depends-on): Add
3681         unictype/bidiclass-longname.
3682
3683 2011-03-26  Bruno Haible  <bruno@clisp.org>
3684
3685         unictype/bidi*: Rename modules.
3686         * modules/unictype/bidiclass-all: Renamed from
3687         modules/unictype/bidicategory-all.
3688         * modules/unictype/bidiclass-name: Renamed from
3689         modules/unictype/bidiclass-name.
3690         (Description): Update.
3691         * modules/unictype/bidiclass-name-tests: Renamed from
3692         modules/unictype/bidicategory-name-tests.
3693         * modules/unictype/bidiclass-byname: Renamed from
3694         modules/unictype/bidicategory-byname.
3695         (Description): Update.
3696         * modules/unictype/bidiclass-byname-tests: Renamed from
3697         modules/unictype/bidicategory-byname-tests.
3698         * modules/unictype/bidiclass-of: Renamed from
3699         modules/unictype/bidicategory-of.
3700         (Description): Update.
3701         * modules/unictype/bidiclass-of-tests: Renamed from
3702         modules/unictype/bidicategory-of-tests.
3703         * modules/unictype/bidiclass-test: Renamed from
3704         modules/unictype/bidicategory-test.
3705         (Description): Update.
3706         * modules/unictype/bidiclass-test-tests: Renamed from
3707         modules/unictype/bidicategory-test-tests.
3708         * modules/unictype/bidicategory-all: New file, a simple redirection.
3709         * modules/unictype/bidicategory-name: Likewise.
3710         * modules/unictype/bidicategory-byname: Likewise.
3711         * modules/unictype/bidicategory-of: Likewise.
3712         * modules/unictype/bidicategory-test: Likewise.
3713         * modules/unictype/property-bidi-* (Dependencies): Update.
3714         * lib/unictype/bidi_*.c: Update comment.
3715
3716 2011-03-26  Bruno Haible  <bruno@clisp.org>
3717
3718         unictype/bidi*: Rename functions, part 2.
3719         * modules/unictype/bidicategory-name (configure.ac): Update required
3720         libunistring version.
3721         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
3722
3723 2011-03-25  Bruno Haible  <bruno@clisp.org>
3724
3725         New module 'unictype/combining-class-all'.
3726         * modules/unictype/combining-class-all: New file.
3727
3728         Tests for module 'unictype/combining-class-byname'.
3729         * modules/unictype/combining-class-byname-tests: New file.
3730         * tests/unictype/test-combiningclass_byname.c: New file.
3731
3732         New module 'unictype/combining-class-byname'.
3733         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
3734         * lib/unictype/combiningclass_byname.c: New file.
3735         * lib/unictype/combiningclass_byname.gperf: New file.
3736         * modules/unictype/combining-class-byname: New file.
3737
3738         Tests for module 'unictype/combining-class-longname'.
3739         * modules/unictype/combining-class-longname-tests: New file.
3740         * tests/unictype/test-combiningclass_longname.c: New file.
3741
3742         New module 'unictype/combining-class-longname'.
3743         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
3744         * lib/unictype/combiningclass_longname.c: New file.
3745         * modules/unictype/combining-class-longname: New file.
3746
3747         Tests for module 'unictype/combining-class-name'.
3748         * modules/unictype/combining-class-name-tests: New file.
3749         * tests/unictype/test-combiningclass_name.c: New file.
3750
3751         New module 'unictype/combining-class-name'.
3752         * lib/unictype.in.h (uc_combining_class_name): New declaration.
3753         * lib/unictype/combiningclass_name.c: New file.
3754         * modules/unictype/combining-class-name: New file.
3755
3756 2011-03-25  Bruno Haible  <bruno@clisp.org>
3757
3758         unictype/combining-class: Rename source files.
3759         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
3760         of unictype/combining.h.
3761         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
3762         Update.
3763         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
3764         * modules/unictype/combining-class (Description): Fix.
3765         (Files, Makefile.am): Update.
3766         * tests/unictype/test-combiningclass.c: Renamed from
3767         tests/unictype/test-combining.c.
3768         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
3769
3770 2011-03-25  Bruno Haible  <bruno@clisp.org>
3771
3772         unictype: Update list of canonical combining classes.
3773         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
3774
3775 2011-03-25  Bruno Haible  <bruno@clisp.org>
3776
3777         unictype/category-byname: Recognize long names as well.
3778         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
3779         a long name.
3780         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
3781         unictype/categ_byname.h.
3782         (UC_CATEGORY_INDEX_*): New enumeration values.
3783         (uc_general_category_byname): Use uc_general_category_lookup and
3784         convert from index to value.
3785         * lib/unictype/categ_byname.gperf: New file.
3786         * modules/unictype/category-byname (Files): Add
3787         lib/unictype/categ_byname.gperf.
3788         (Depends-on): Add gperf.
3789         (Makefile.am): Add rule for generating unictype/categ_byname.h.
3790         * tests/unictype/test-categ_byname.c (main): Test the recognition of
3791         long names.
3792
3793         Tests for module 'unictype/category-longname'.
3794         * modules/unictype/category-longname-tests: New file.
3795         * tests/unictype/test-categ_longname.c: New file.
3796
3797         New module 'unictype/category-longname'.
3798         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
3799         * lib/unictype/categ_longname.c: New file.
3800         * modules/unictype/category-longname: New file.
3801         * modules/unictype/category-all (Depends-on): Add it.
3802
3803 2011-03-25  Bruno Haible  <bruno@clisp.org>
3804
3805         Tests for module 'unictype/category-LC'.
3806         * modules/unictype/category-LC-tests: New file.
3807         * tests/unictype/test-categ_LC.c: New file, automatically generated.
3808
3809         New module 'unictype/category-LC'.
3810         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
3811         (UC_CATEGORY_LC): New declaration.
3812         (UC_CASED_LETTER): New macro.
3813         * lib/gen-uni-tables.c (is_category_LC): New function.
3814         (output_categories): Also handle category LC.
3815         (UC_CATEGORY_MASK_LC): New enumeration value.
3816         (general_category_byname): Also handle category LC.
3817         * lib/unictype/categ_LC.c: New file.
3818         * lib/unictype/categ_LC.h: New file, automatically generated.
3819         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
3820         category LC.
3821         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
3822         * modules/unictype/category-LC: New file.
3823         * modules/unictype/category-byname (Depends-on): Add
3824         unictype/category-LC.
3825         * modules/unictype/category-all (Depends-on): Likewise.
3826
3827 2011-03-25  Eric Blake  <eblake@redhat.com>
3828
3829         xmalloc: revert yesterday's regression
3830         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
3831         realloc's underlying behavior (allowing allocation of zero-size
3832         objects, especially if malloc-gnu is also in use).
3833
3834 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
3835
3836         maint.mk: add missing version to VC-tag
3837         * top/maint.mk: git tag was missing actual tag name; add it.
3838
3839         valgrind: do leak checking, and exit with code 1 on error (not 0)
3840         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
3841         to VALGRIND.
3842
3843 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
3844
3845         posix-modules: say what it does.
3846         * posix-modules: Add a line to the --help output saying what it does.
3847
3848 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3849
3850         xmalloc: Do not leak if underlying realloc is C99 compatible.
3851         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
3852         This avoids a leak on C99-based systems.  See
3853         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
3854
3855 2011-03-24  Eric Blake  <eblake@redhat.com>
3856
3857         realloc: document portability problem
3858         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
3859         passing 0 size to realloc.
3860
3861 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
3862
3863         doc: update users.txt
3864         * users.txt: Add cvsps, tmpwatch
3865
3866 2011-03-23  Matt Rice  <ratmice@gmail.com>
3867
3868         doc: update users.txt
3869         * users.txt: Add gdb.
3870
3871 2011-03-23  Jim Meyering  <meyering@redhat.com>
3872
3873         doc: update users.txt
3874         Looking through matches up to the following URL (there are still
3875         several more pages), I found several projects that use gnulib:
3876         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
3877         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
3878         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
3879
3880 2011-03-22  Bruno Haible  <bruno@clisp.org>
3881
3882         unictype/bidi*: Rename functions.
3883         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
3884         uc_bidi_class, uc_is_bidi_class): New declarations.
3885         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
3886         uc_bidi_category_byname.
3887         (uc_bidi_category_byname): New function.
3888         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
3889         u_bidi_category_name.
3890         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
3891         (uc_bidi_category_name): New function.
3892         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
3893         uc_bidi_category.
3894         (uc_bidi_category): New function.
3895         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
3896         uc_is_bidi_category. Invoke uc_bidi_class.
3897         (uc_is_bidi_category): New function.
3898         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
3899         instead of uc_bidi_category_byname.
3900         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
3901         instead of uc_bidi_category_name.
3902         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
3903         uc_bidi_category.
3904         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
3905         instead of uc_is_bidi_category.
3906
3907 2011-03-21  Bruno Haible  <bruno@clisp.org>
3908
3909         New module 'unictype/joininggroup-all'.
3910         * modules/unictype/joininggroup-all: New file.
3911
3912         Tests for module 'unictype/joininggroup-of'.
3913         * modules/unictype/joininggroup-of-tests: New file.
3914         * tests/unictype/test-joininggroup_of.c: New file.
3915         * tests/unictype/test-joininggroup_of.h: New file, automatically
3916         generated by gen-uni-tables.
3917
3918         New module 'unictype/joininggroup-of'.
3919         * modules/unictype/joininggroup-of: New file.
3920         * lib/unictype/joininggroup_of.c: New file.
3921         * lib/unictype/joininggroup_of.h: New file, automatically generated by
3922         gen-uni-tables.
3923
3924         Tests for module 'unictype/joininggroup-byname'.
3925         * modules/unictype/joininggroup-byname-tests: New file.
3926         * tests/unictype/test-joininggroup_byname.c: New file.
3927
3928         New module 'unictype/joininggroup-byname'.
3929         * modules/unictype/joininggroup-byname: New file.
3930         * lib/unictype/joininggroup_byname.c: New file.
3931         * lib/unictype/joininggroup_byname.gperf: New file.
3932
3933         Tests for module 'unictype/joininggroup-name'.
3934         * modules/unictype/joininggroup-name-tests: New file.
3935         * tests/unictype/test-joininggroup_name.c: New file.
3936
3937         New module 'unictype/joininggroup-name'.
3938         * modules/unictype/joininggroup-name: New file.
3939         * lib/unictype/joininggroup_name.c: New file.
3940         * lib/unictype/joininggroup_name.h: New file.
3941
3942         New module 'unictype/joiningtype-all'.
3943         * modules/unictype/joiningtype-all: New file.
3944
3945         Tests for module 'unictype/joiningtype-of'.
3946         * modules/unictype/joiningtype-of-tests: New file.
3947         * tests/unictype/test-joiningtype_of.c: New file.
3948         * tests/unictype/test-joiningtype_of.h: New file, automatically
3949         generated by gen-uni-tables.
3950
3951         New module 'unictype/joiningtype-of'.
3952         * modules/unictype/joiningtype-of: New file.
3953         * lib/unictype/joiningtype_of.c: New file.
3954         * lib/unictype/joiningtype_of.h: New file, automatically generated by
3955         gen-uni-tables.
3956
3957         Tests for module 'unictype/joiningtype-byname'.
3958         * modules/unictype/joiningtype-byname-tests: New file.
3959         * tests/unictype/test-joiningtype_byname.c: New file.
3960
3961         New module 'unictype/joiningtype-byname'.
3962         * modules/unictype/joiningtype-byname: New file.
3963         * lib/unictype/joiningtype_byname.c: New file.
3964
3965         Tests for module 'unictype/joiningtype-name'.
3966         * modules/unictype/joiningtype-name-tests: New file.
3967         * tests/unictype/test-joiningtype_name.c: New file.
3968
3969         New module 'unictype/joiningtype-name'.
3970         * modules/unictype/joiningtype-name: New file.
3971         * lib/unictype/joiningtype_name.c: New file.
3972
3973         unictype: Add support for Arabic shaping properties.
3974         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
3975         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
3976         declarations.
3977         (UC_JOINING_GROUP_*): New enumeration values.
3978         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
3979         declarations.
3980         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
3981         (unicode_joining_type): New variable.
3982         (UC_JOINING_GROUP_*): New enumeration values.
3983         (unicode_joining_group): New variable.
3984         (fill_arabicshaping, joining_type_as_c_identifier,
3985         output_joining_type_test, output_joining_type,
3986         joining_group_as_c_identifier, output_joining_group_test,
3987         output_joining_group): New functions.
3988         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
3989         fill_arabicshaping and output_joining_type_test, output_joining_type,
3990         output_joining_group_test, output_joining_group.
3991         Reported by Simon Josefsson.
3992
3993 2011-03-21  Jim Meyering  <meyering@redhat.com>
3994
3995         strftime: fix a bug in yesterday's change
3996         * lib/strftime.c (add): Accommodate width's initial value of -1.
3997         Otherwise, nstrftime would copy uninitialized data into
3998         the result buffer.
3999
4000 2011-03-21  Jim Meyering  <meyering@redhat.com>
4001
4002         tests: add strftime-tests module
4003         * tests/test-strftime.c: New file.
4004         * modules/strftime-tests: New module.
4005
4006 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4007
4008         strftime: don't assume a byte count fits in 'int'
4009         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
4010         found this problem by static analysis, using gcc -Wstrict-overflow
4011         (GCC 4.5.2, x86-64).  This reported an optimization that depended
4012         on an integer overflow having undefined behavior, but it turns out
4013         that the argument is a size, which might not fit in 'int' anyway,
4014
4015 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4016
4017         stdio: don't require ignore_value around fwrite
4018
4019         This patch works around libc bug 11959
4020         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
4021         Without this patch, applications must often write
4022         ignore_value (fwrite (...)) even though the ignore_value is
4023         not helpful here.  It's common to write many objects, using
4024         fwrite/printf/etc., and then use ferror to detect output error.
4025
4026         I considered making this patch optional, but decided against it,
4027         because libc is obviously being inconsistent here: there is no
4028         reason libc should insist that user code must inspect fwrite
4029         return's value without also insisting that it inspect printf's,
4030         putchar's, etc.  If user code wants to have a strict style where
4031         all these functions' values are checked (so that ferror need not
4032         be checked), we could add support for that style in a new gnulib
4033         module, but in the meantime it's better to be consistent and to
4034         support common usage.
4035
4036         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
4037         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
4038         that we are compiling in checking mode, and if not C++, and
4039         if not already wrapping fwrite for some other reason.
4040         (fwrite): #define to rpl_fwrite if the latter is defined.
4041
4042 2011-03-20  Bruno Haible  <bruno@clisp.org>
4043
4044         verror: Fix compilation error introduced on 2011-02-13.
4045         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
4046         instead of __attribute__.
4047         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4048
4049 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4050             Bruno Haible  <bruno@clisp.org>
4051
4052         socklen: do not depend on sys_socket
4053         While trying to modify Emacs to use gnulib's socklen module,
4054         I discovered a circular dependency: socklen depends on sys_socket
4055         and vice versa.  Emacs can use socklen, but it does not need
4056         sys_socket because it has its own substitute for sys/socket.h.
4057         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
4058         gl_TYPE_SOCKLEN_T.
4059         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
4060         gl_PREREQ_SYS_H_SOCKET.
4061         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
4062         gl_PREREQ_SYS_H_SOCKET.
4063         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
4064         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
4065         * modules/socklen (Depends-on): Do not depend on sys_socket.
4066         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
4067
4068 2011-03-20  Jim Meyering  <meyering@redhat.com>
4069
4070         maint.mk: sort file names *after* new transformation
4071         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
4072         prefix would have led to an unwarranted failure in GNU parted.
4073         Sort after that transformation.
4074
4075 2011-03-19  Jim Meyering  <meyering@redhat.com>
4076
4077         maint.mk: fix po-file syntax-check rule
4078         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
4079         Patch by Bruno Haible.
4080
4081 2011-03-19  Bruno Haible  <bruno@clisp.org>
4082
4083         socklen: Update comment.
4084         * m4/socklen.m4: Update comment about platforms.
4085
4086 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4087             Bruno Haible  <bruno@clisp.org>
4088
4089         inet_ntop, inet_pton: Simplify.
4090         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
4091         documented to provide socklen_t and we already depend on sys_socket.
4092         * modules/inet_pton (Depends-on): Likewise.
4093         * lib/arpa_inet.in.h: Adjust comment.
4094
4095 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4096             Bruno Haible  <bruno@clisp.org>
4097
4098         netdb: Simplify.
4099         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
4100         documented to provide socklen_t and we already depend on sys_socket.
4101         * lib/netdb.in.h: Adjust comment.
4102
4103 2011-03-19  Bruno Haible  <bruno@clisp.org>
4104
4105         sys_socket, netdb: Document problem with socklen_t.
4106         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
4107         platforms.
4108         * doc/posix-headers/netdb.texi: Likewise.
4109
4110 2011-03-18  Eric Blake  <eblake@redhat.com>
4111
4112         maint.mk: let po check work in VPATH build
4113         * top/maint.mk (po_file): Allow cfg.mk override.
4114         (sc_po_check): Allow VPATH use.
4115         Reported by Jiri Denemark.
4116
4117 2011-03-16  Jim Meyering  <meyering@redhat.com>
4118
4119         maint.mk: allow fine-grained syntax-check exclusion via Make variables
4120         Before, you would have had to create one .x-sc_ file per rule in order
4121         to exempt offending files.  Now, you may instead use a Make variable --
4122         usually defined in cfg.mk -- whose name identifies the affected rule.
4123         * top/maint.mk (_sc_excl): Define.
4124         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
4125         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
4126
4127 2011-03-13  Bruno Haible  <bruno@clisp.org>
4128
4129         ignore-value tests: Avoid warnings.
4130         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
4131         empty for gcc < 3.4.
4132
4133 2011-03-13  Bruno Haible  <bruno@clisp.org>
4134
4135         passfd: Fix link error on Solaris.
4136         * modules/passfd (Description): Correct.
4137         (Depends-on): Add socketlib.
4138         (Link): New section.
4139         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
4140
4141 2011-03-13  Bruno Haible  <bruno@clisp.org>
4142
4143         passfd: Fix link error on AIX 5.2.
4144         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
4145
4146 2011-03-13  Bruno Haible  <bruno@clisp.org>
4147
4148         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
4149         * lib/sys_socket.in.h: Include <stddef.h>.
4150         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
4151         CMSG_FIRSTHDR. Remove unused variable.
4152
4153 2011-03-13  Bruno Haible  <bruno@clisp.org>
4154
4155         passfd: Fix compilation error on OpenBSD.
4156         * lib/passfd.c: Include <sys/uio.h>.
4157
4158 2011-03-13  Bruno Haible  <bruno@clisp.org>
4159
4160         passfd test: Fix warnings.
4161         * tests/test-passfd.c: Include <sys/wait.h>.
4162         (main): Fix typo.
4163
4164 2011-03-13  Bruno Haible  <bruno@clisp.org>
4165
4166         passfd module, part 4, tweaks.
4167         * tests/test-passfd.c: Reorder includes.
4168         (main): Fix perror and printf calls.
4169
4170 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4171
4172         passfd module, part 4.
4173         * modules/passfd-tests: New file.
4174         * tests/test-passfd.c: New file.
4175
4176 2011-03-13  Jim Meyering  <meyering@redhat.com>
4177
4178         Makefile: rely on GNU make; derive syntax-check rule names
4179         Rather than requiring that each sc_ rule be listed as a dependent
4180         of "check", use features of GNU make to derive the list.
4181         * Makefile (syntax-check-rules): Define.
4182         (check): Depend on the new variable, not the hard-coded list.
4183
4184 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
4185             Bruno Haible  <bruno@clisp.org>
4186
4187         passfd module, part 3.
4188         * lib/passfd.h (recvfd): Add a flags argument.
4189         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
4190         (recvfd): Add a flags argument.
4191         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
4192         exists.
4193         * modules/passfd (Depends-on): Add cloexec.
4194         Suggested by Eric Blake.
4195
4196 2011-03-13  Bruno Haible  <bruno@clisp.org>
4197
4198         passfd module, part 2, tweaks.
4199         * modules/passfd (Files): Reorder.
4200         (Depends-on): Remove errno.
4201         (Include): Remove <sys/socket.h>, <sys/un.h>.
4202         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4203         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4204         specification header. Include <sys/socket.h> always. Don't include
4205         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4206         (sendfd): Clarify that it sets errno when it fails.
4207         (recvfd): Fix specification.
4208
4209 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4210
4211         passfd module, part 2.
4212         * modules/passfd: New file.
4213         * lib/passfd.h: New file.
4214         * lib/passfd.c: New file.
4215
4216 2011-03-12  Bruno Haible  <bruno@clisp.org>
4217
4218         wcswidth, mbswidth: Avoid integer overflow.
4219         * lib/wcswidth.c: Include <limits.h>.
4220         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4221         * lib/mbswidth.c: Include <limits.h>.
4222         (mbsnwidth): Avoid 'int' overflow.
4223         Reported by Jim Meyering.
4224
4225 2011-03-12  Bruno Haible  <bruno@clisp.org>
4226
4227         futimens, utimensat: Avoid endless recursion on Solaris 10.
4228         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4229         Solaris.
4230         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4231         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4232
4233 2011-03-11  Jim Meyering  <meyering@redhat.com>
4234
4235         maint.mk: relax a regexp to accommodate other formatting styles
4236         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4237         between "ngettext" and the following "(".
4238
4239 2011-03-11  Pádraig Brady <P@draigBrady.com>
4240
4241         maint.mk: suppress a false positive warning
4242         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4243         diagnostics are marked with ngettext.
4244
4245 2011-03-10  Eric Blake  <eblake@redhat.com>
4246
4247         wchar: add explicit dependencies, for Tru64
4248         * modules/mbmemcasecoll (Depends-on): Add wchar.
4249         * modules/mbtowc (Depends-on): Likewise.
4250         * modules/vasnprintf (Depends-on): Likewise.
4251         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4252         * modules/wctomb (Depends-on): Likewise.
4253         Reported by Peter O'Gorman.
4254
4255 2011-03-08  Bruno Haible  <bruno@clisp.org>
4256
4257         passfd module, part 1, tweaks.
4258         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4259         Improve indentation. Improve AC_MSG_CHECKING messages.
4260         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4261         gl_SOCKET_FAMILIES.
4262
4263 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4264
4265         passfd module, part 1.
4266         * m4/afunix.m4: New file.
4267         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
4268         sockets.
4269
4270 2011-03-08  Bruno Haible  <bruno@clisp.org>
4271
4272         regex-quote: New API.
4273         * lib/regex-quote.h: Include <stdbool.h>.
4274         (struct regex_quote_spec): New type.
4275         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4276         New declarations.
4277         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4278         'const struct regex_quote_spec *' argument.
4279         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
4280         (pcre_special): New constant.
4281         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4282         New functions.
4283         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4284         'const struct regex_quote_spec *' argument.
4285         * modules/regex-quote (Depends-on): Add stdbool.
4286         * tests/test-regex-quote.c (check): Update for new API. Add test for
4287         anchored results.
4288         * NEWS: Mention the API change.
4289         Reported by Reuben Thomas and Eric Blake.
4290
4291 2011-03-06  Bruno Haible  <bruno@clisp.org>
4292
4293         regex-quote: Fix creation of POSIX extended regular expressions.
4294         * lib/regex-quote.c (ere_special): Add grouping and alternation
4295         operators.
4296
4297 2011-03-05  Bruno Haible  <bruno@clisp.org>
4298
4299         doc: Improve doc regarding autopoint vs. gnulib.
4300         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
4301         disable autopoint while running autoreconf.
4302         Suggested by Ralf Wildenhues.
4303
4304 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4305
4306         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
4307         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
4308
4309 2011-03-03  Bruce Korb  <bkorb@gnu.org>
4310
4311         parse-duration: remove xalloc.h dependency
4312         * lib/parse-duration.c (parse_period): handle NULL return from
4313         strdup instead of calling xstrdup().
4314         * modules/parse-duration: remove "xalloc" dependency
4315
4316 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4317
4318         bootstrap: honor m4_base when running aclocal
4319         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
4320
4321 2011-03-02  Jim Meyering  <meyering@redhat.com>
4322
4323         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4324         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4325         on request from Matt Booth.
4326
4327 2011-03-01  Eric Blake  <eblake@redhat.com>
4328
4329         test-link: work on Hurd
4330         * tests/test-link.h (test_link): Hurd rejects linking directories
4331         with EISDIR instead of the POSIX-mandated EPERM.
4332
4333 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4334
4335         stdio: simplify by moving files to printf-posix, sigpipe
4336         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4337         since this symbol is needed only if printf is replaced.
4338         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4339         Require gl_ASM_SYMBOL_PREFIX.
4340         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4341         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4342         (Depends-on): Add 'raise'.
4343         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4344         * modules/stdio (Files): Remove lib/stdio-write.c,
4345         m4/asm-underscore.m4.
4346         (Depends-on): Remove 'raise'.
4347
4348         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4349         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4350         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4351         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4352
4353 2011-02-28  Bruno Haible  <bruno@clisp.org>
4354
4355         localcharset: Assume ANSI C behaviour of free().
4356         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4357         calling free().
4358         Suggested by Simon Josefsson <simon@josefsson.org>.
4359
4360 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4361             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4362             Bruno Haible  <bruno@clisp.org>  (tiny change)
4363
4364         On Cygwin, use /proc file system instead of win32 API.
4365         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4366         Win32 file names.
4367         (DllMain): Simplify by removing Cygwin specific code.
4368         (find_shared_library_fullname): Use Linux specific implementation also
4369         for Cygwin.
4370         (get_shared_library_fullname): Update accordingly.
4371         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4372         Win32 file names.
4373         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4374         Cygwin specific code.
4375
4376 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4377             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4378
4379         Fix OpenMP flag detection for various Fortran compilers.
4380         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4381         OpenMP-conditional compilation construct, to force compile
4382         failure with missing OpenMP flag.
4383         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4384
4385 2011-02-25  Eric Blake  <eblake@redhat.com>
4386
4387         strstr: expand test coverage
4388         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4389         compilation.
4390         * tests/test-memmem.c (main): Duplicate tests.
4391         * tests/test-strcasestr.c (main): Likewise.
4392         * tests/test-c-strcasestr.c (main): Likewise.
4393
4394 2011-02-25  Jim Meyering  <meyering@redhat.com>
4395
4396         maint.mk: detect missing-NL-at-EOF, too
4397         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4398         it also detects when a file lacks a newline at EOF.
4399         (require_exactly_one_NL_at_EOF_): Renamed from
4400         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4401         since people may well have .x-sc_... file names tied to the
4402         existing name.  Suggested by Eric Blake.
4403
4404 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4405
4406         dirname: move m4/dos.m4 functionality into lib/dosname.h
4407
4408         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4409         extracts symbols from it, puts them into config.h; but it's much
4410         easier to use the symbols directly.  filename.h already does this,
4411         but it disagrees with dos.m4 in some respects.  This patch
4412         introduces a different include file dosname.h that packages up
4413         dos.m4, and then later we can work on merging filename.h and
4414         dosname.h.  Applications that need only the easy-to-configure
4415         symbols should consider including dosname.h rather than dirname.h.
4416         * NEWS: Mention incompatible changes.
4417         * m4/dos.m4: Remove.
4418         * lib/dosname.h, modules/dosname: New files.
4419         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4420         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4421         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4422         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4423         Include dosname.h, not dirname.h.
4424         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4425         Include dosname.h, for definitions of symbols like ISSLASH
4426         that used to be in config.h.
4427         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4428         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4429         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4430         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4431         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4432         * modules/rmdir (Files): Likewise.
4433         * modules/stat (Files): Likewise.
4434         * modules/unlink (Files): Likewise.
4435         * modules/dirname-lgpl (Depends-on): Add dosname.
4436         * modules/lstat (Depends-on): Likewise.
4437         * modules/openat (Depends-on): Likewise.
4438         * modules/rmdir (Depends-on): Likewise.
4439         * modules/savewd (Depends-on): Likewise.
4440         * modules/stat (Depends-on): Likewise.
4441         * modules/unlink (Depends-on): Likewise.
4442         * modules/openat (Depends-on): Remove dirname-lgpl.
4443         * modules/savewd (Depends-on): Likewise.
4444         * tests/test-dirname.c: Do not use removed symbols like
4445         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4446         the remaining symbols, e.g., ISSLASH ('\\').
4447
4448 2011-02-25  Eric Blake  <eblake@redhat.com>
4449
4450         strstr: revert patches that introduced bug and pessimization
4451         * lib/str-two-way.h: Add another reference.
4452         (two_way_short_needle, two_way_long_needle): Revert changes from
4453         2011-02-24; they pessimize search speed.
4454         (critical_factorization): Partially revert changes from
4455         2010-06-22; they violate the requirement that the left half of the
4456         needle be smaller than the period of the needle.
4457
4458 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4459
4460         filenamecat: remove unnecessary dependency on dirname-lgpl
4461         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4462         is no direct dependency, just an indirect one via filenamecat-lgpl.
4463
4464         remove: remove unnecessary use of m4/dos.m4
4465         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4466         * modules/remove (FILES): Remove m4/dos.m4.
4467
4468         * lib/openat-proc.c: Don't include dirname.h; not needed.
4469
4470         backupfile: remove unnecessary use of m4/dos.m4
4471         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4472         of its symbols are used by the backupfile code.  backupfile.c does
4473         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
4474         for the rare case of programs that want all their backup file
4475         names to live within 8+3 limits, and dos.m4 doesn't address that.
4476         * modules/backupfile (Files): Remove m4/dos.m4.
4477
4478 2011-02-24  Jim Meyering  <meyering@redhat.com>
4479
4480         strstr: fix a bug whereby strstr would mistakenly return NULL
4481         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
4482         in period calculation.
4483         (two_way_long_needle): Likewise.
4484         The original problem was reported by Mike Stump in
4485         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
4486         Ralf Wildenhues provided the short needle and haystack.
4487         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
4488         Add a more involved test to trigger the bug in two_way_long_needle.
4489
4490 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4491
4492         gnulib-tool: remove use of bold display in help screen
4493         * gnulib-tool (func_usage): Do not use bold display anymore in the
4494         help screen.  That was just meant to be a temporary emphasis for a
4495         backward-incompatible change.
4496
4497 2011-02-23  Bruno Haible  <bruno@clisp.org>
4498
4499         Fix misindentation of preprocessor directives.
4500         * lib/argp-namefrob.h: Reindent preprocessor directives.
4501         * lib/getopt_int.h (struct _getopt_data): Likewise.
4502         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
4503         * lib/vasnprintf.c (decode_long_double): Likewise.
4504         * tests/test-argmatch.c: Insert blank lines, for clarity.
4505         * tests/test-exclude.c: Likewise.
4506
4507 2011-02-22  Bruno Haible  <bruno@clisp.org>
4508
4509         ioctl: Fix for MacOS X in 64-bit mode.
4510         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
4511         value.
4512         Suggested by Eric Blake.
4513         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
4514
4515 2011-02-22  Jim Meyering  <meyering@redhat.com>
4516
4517         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
4518         * Makefile (sc_cpp_indent_check): Don't limit the check to files
4519         in lib/.
4520
4521 2011-02-22  Eric Blake  <eblake@redhat.com>
4522
4523         maint: avoid any CDPATH issue
4524         * Makefile (sc_cpp_indent_check): Anchor cd argument.
4525
4526         maint: adjust cpp indentation for my modules, as well
4527         * Makefile (sc_cpp_indent_check): Add my name.
4528         * lib/fbufmode.c: Filter through cppi.
4529         * lib/fpurge.c: Likewise.
4530         * lib/freadable.c: Likewise.
4531         * lib/freading.c: Likewise.
4532         * lib/fwritable.c: Likewise.
4533         * lib/fwriting.c: Likewise.
4534         * lib/sigaction.c: Likewise.
4535
4536 2011-02-22  Jim Meyering  <meyering@redhat.com>
4537
4538         maint: adjust cpp indentation to reflect nesting depth
4539         I.e., in a block of code that begins with an unnested "#if",
4540         put one space between the "#" in column 1 and following token.
4541         For example,
4542         -#include <sys/vfs.h>
4543         +# include <sys/vfs.h>
4544         Do this only in .c files that are part of a module I maintain.
4545         * lib/linkat.c: Filter through cppi.
4546         * lib/nanosleep.c: Likewise.
4547         * lib/openat.c: Likewise.
4548         * lib/openat-die.c: Likewise.
4549         * lib/dup3.c: Likewise.
4550         * lib/fchownat.c: Likewise.
4551         * lib/flock.c: Likewise.
4552         * lib/fsync.c: Likewise.
4553         * lib/fts.c: Likewise.
4554         * lib/getpass.c: Likewise.
4555         * lib/gettimeofday.c: Likewise.
4556         * lib/userspec.c: Likewise.
4557         * Makefile (sc_cpp_indent_check): New rule, to check this.
4558
4559 2011-02-22  Bruno Haible  <bruno@clisp.org>
4560
4561         New module 'wctomb'.
4562         * lib/stdlib.in.h (wctomb): New declaration.
4563         * lib/wctomb.c: New file.
4564         * lib/wctomb-impl.h: New file.
4565         * m4/wctomb.m4: New file.
4566         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
4567         REPLACE_WCTOMB.
4568         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
4569         REPLACE_WCTOMB.
4570         * modules/wctomb: New file.
4571         * tests/test-stdlib-c++.cc: Test signature of wctomb.
4572         * doc/posix-functions/wctomb.texi: Mention the new module.
4573         * modules/wctob (Depends-on): Add wctomb.
4574
4575 2011-02-22  Bruno Haible  <bruno@clisp.org>
4576
4577         New module 'mbtowc'.
4578         * lib/stdlib.in.h (mbtowc): New declaration.
4579         * lib/mbtowc.c: New file.
4580         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
4581         * m4/mbtowc.m4: New file.
4582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
4583         REPLACE_MBTOWC.
4584         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
4585         REPLACE_MBTOWC.
4586         * modules/mbtowc: New file.
4587         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
4588         * doc/posix-functions/mbtowc.texi: Mention the new module.
4589         * modules/btowc (Depends-on): Add mbtowc.
4590
4591 2011-02-22  Bruno Haible  <bruno@clisp.org>
4592
4593         wcrtomb: Add more tests for native Windows platforms.
4594         * tests/test-wcrtomb-w32-1.sh: New file.
4595         * tests/test-wcrtomb-w32-2.sh: New file.
4596         * tests/test-wcrtomb-w32-3.sh: New file.
4597         * tests/test-wcrtomb-w32-4.sh: New file.
4598         * tests/test-wcrtomb-w32-5.sh: New file.
4599         * tests/test-wcrtomb-w32.c: New file.
4600         * modules/wcrtomb-tests (Files): Add them.
4601         (Makefile.am): Arrange to run these tests.
4602         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
4603         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
4604
4605 2011-02-20  Bruno Haible  <bruno@clisp.org>
4606
4607         wcrtomb: Enhance test.
4608         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
4609
4610 2011-02-20  Bruno Haible  <bruno@clisp.org>
4611
4612         mbrtowc: Tiny optimization.
4613         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
4614
4615 2011-02-20  Jim Meyering  <meyering@redhat.com>
4616
4617         test-exclude.c: remove unmatched #endif
4618         * tests/test-exclude.c: Remove stray #endif, left over from
4619         the change of a week ago.
4620
4621 2011-02-19  Jim Meyering  <meyering@redhat.com>
4622
4623         git-version-gen: skip "-dirty" check when appropriate
4624         * build-aux/git-version-gen: Don't run any git commands when the
4625         version string comes from .tarball-version.  Prior to this, we
4626         would run git update-index --refresh even from a just-unpacked
4627         tarball directory, and that could affect a .git/ directory in a
4628         parent of the build directory.  Reported by Mike Frysinger.
4629
4630 2011-02-19  Bruno Haible  <bruno@clisp.org>
4631
4632         unictype/property-byname: Reduce the size of the 'data' segment.
4633         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
4634
4635 2011-02-19  Bruno Haible  <bruno@clisp.org>
4636
4637         unictype/scripts: Reduce the size of the 'data' segment.
4638         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
4639         '%pic'.
4640         * lib/unictype/scripts_byname.gperf: Regenerated.
4641
4642 2011-02-19  Bruno Haible  <bruno@clisp.org>
4643
4644         stdint: Update documentation.
4645         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
4646
4647 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
4648
4649         stdint: omit redundant check for wchar.h
4650         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
4651         always tests whether wchar.h exists, so remove the now-redundant test.
4652
4653 2011-02-18  Bruno Haible  <bruno@clisp.org>
4654
4655         stdint: Cut dependency to module 'wchar'.
4656         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
4657         include the necessary prerequisites.
4658         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
4659         * modules/stdint (Depends-on): Remove wchar.
4660         (Makefile.am): Substitute HAVE_WCHAR_H.
4661         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
4662
4663 2011-02-18  Eric Blake  <eblake@redhat.com>
4664
4665         longlong: skip, rather than fail, on cross-compilation
4666         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
4667         when cross-compiling; regression from 2011-02-16.
4668
4669 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4670
4671         * NEWS: Mention 2011-02-08 change to stdlib.
4672
4673 2011-02-17  Bruno Haible  <bruno@clisp.org>
4674
4675         getloadavg: Add comments about platforms.
4676         * m4/getloadavg.m4: Add comment.
4677         * lib/getloadavg.c: Likewise.
4678
4679 2011-02-17  Bruno Haible  <bruno@clisp.org>
4680
4681         getloadavg: Fix link error on Solaris 2.6.
4682         * modules/getloadavg (Link): New section.
4683         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
4684         linking test-getloadavg.
4685         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
4686         getloadavg.
4687
4688 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4689
4690         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
4691         It was 'int', but this doesn't match the IRIX 6.5 manual.
4692         Suggested by Bruno Haible in
4693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
4694
4695 2011-02-17  Bruno Haible  <bruno@clisp.org>
4696
4697         havelib: Fix comments.
4698         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
4699         change.
4700
4701 2011-02-17  Bruno Haible  <bruno@clisp.org>
4702
4703         havelib: Update config.rpath.
4704         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
4705
4706 2011-02-17  Bruno Haible  <bruno@clisp.org>
4707
4708         getloadavg test: Add some plausibility checks.
4709         * tests/test-getloadavg.c (check_avg): Print a warning when the value
4710         is improbable.
4711
4712 2011-02-16  Eric Blake  <eblake@redhat.com>
4713
4714         maintainer-makefile: make syntax-check a no-op from tarballs
4715         * top/maint.mk (no-vc-detected): New rule.
4716         (local-checks-available): Use it to avoid hanging if someone tries
4717         'make syntax-check' from a tarball.  Also append to any non-syntax
4718         checks already defined in cfg.mk.
4719
4720 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4721
4722         longlong: tune, particularly for common case of c99
4723
4724         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
4725         or running anything if c99, or if unsigned long long int does not
4726         work.  In either case, we know the answer without further tests.
4727         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
4728         it at most once, and use its results for both long long int and
4729         unsigned long long int.  This is more likely to be efficient in
4730         the common case where the program wants to check for both long
4731         long int and unsigned long long int.
4732         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
4733         since the answer is already known.
4734
4735 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
4736
4737         getloadavg: set errno
4738         * lib/getloadavg.c: Set errno when returning -1.  If no other
4739         error number looks appropriate, set it to ENOSYS if the getloadavg
4740         looks like it can't possibly ever work, ENOTSUP otherwise.
4741         Suggested by Bruno Haible in
4742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
4743
4744         getloadavg: trim unused parts and speed up 'configure'
4745         * NEWS: Document this.
4746         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
4747         always compiled if getloadavg is absent.
4748         Move test code to ...
4749         * tests/test-getloadavg.c: New file, containing previous
4750         contents of test from lib/getloadavg.c.  It also contains
4751         suggestions by Bruno Haible in
4752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
4753         * modules/getloadavg-tests: New file.
4754         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
4755         Do tests in the same order as they're needed for getloadavg.c.
4756         Omit setgid-related tests that generate symbols KMEM_GROUP,
4757         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
4758         Do only the tests that are needed to see whether the system has
4759         getloadavg, moving the other tests into ...
4760         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
4761         NLIST_NAME_UNION; nobody should be using it.  Do not define
4762         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
4763         relevant, as the user of this module shouldn't care how getloadavg
4764         is implemented.
4765
4766         getloadavg: omit unused var
4767         * lib/getloadavg.c (getloadavg): Omit unused local variable.
4768
4769 2011-02-15  Jim Meyering  <meyering@redhat.com>
4770
4771         doc: update users.txt
4772         * users.txt: Update iwhd's URL.
4773
4774 2011-02-13  Bruno Haible  <bruno@clisp.org>
4775
4776         Consistent macro naming for macros that use GCC __attribute__.
4777         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
4778         _ATTRIBUTE_NONNULL_.
4779         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
4780         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
4781         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
4782         ATTRIBUTE_DEPRECATED.
4783         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
4784         ATTRIBUTE_NORETURN.
4785         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4786         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4787         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4788         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4789         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
4790         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
4791         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
4792         ATTRIBUTE_SENTINEL.
4793         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
4794         ATTRIBUTE_RETURN_CHECK.
4795         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
4796         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
4797         ATTRIBUTE_NORETURN.
4798         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
4799         Reported by Paul Eggert.
4800
4801 2011-02-13  Bruno Haible  <bruno@clisp.org>
4802
4803         Don't interfere with a program's definition of __attribute__.
4804         * lib/argp.h (__attribute__): Remove definition.
4805         (_GL_ATTRIBUTE_FORMAT): New macro.
4806         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
4807         * lib/argp-fmtstream.h (__attribute__): Remove definition.
4808         (_GL_ATTRIBUTE_FORMAT): New macro.
4809         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
4810         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
4811         GCC 3 or newer.
4812         * lib/error.h (__attribute__): Remove definition.
4813         (_GL_ATTRIBUTE_FORMAT): New macro.
4814         (error, error_at_line): Use it.
4815         * lib/hash.h (__attribute__): Remove definition.
4816         (ATTRIBUTE_WUR): Update definition. Define always.
4817         * lib/openat.h (__attribute__): Remove definition.
4818         (ATTRIBUTE_NORETURN): Update definition. Define always.
4819         * lib/sigpipe-die.h (__attribute__): Remove definition.
4820         (ATTRIBUTE_NORETURN): Update definition. Define always.
4821         * lib/vasnprintf.h (__attribute__): Remove definition.
4822         (_GL_ATTRIBUTE_FORMAT): New macro.
4823         (asnprintf, vasnprintf): Use it.
4824         * lib/xalloc.h (__attribute__): Remove definition.
4825         (ATTRIBUTE_NORETURN): Update definition. Define always.
4826         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
4827         * lib/xmemdup0.h (__attribute__): Remove definition.
4828         (ATTRIBUTE_NORETURN): Update definition. Define always.
4829         * lib/xprintf.h (__attribute__): Remove definition.
4830         (_GL_ATTRIBUTE_FORMAT): New macro.
4831         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
4832         * lib/xstrtol.h (__attribute__): Remove definition.
4833         (ATTRIBUTE_NORETURN): Update definition. Define always.
4834         * lib/xvasprintf.h (__attribute__): Remove definition.
4835         (_GL_ATTRIBUTE_FORMAT): New macro.
4836         (xasprintf, xvasprintf): Use it.
4837         * tests/test-argmatch.c (__attribute__): Remove definition.
4838         (ATTRIBUTE_NORETURN): Update definition. Define always.
4839         * tests/test-exclude.c (__attribute__): Remove definition.
4840         (ATTRIBUTE_NORETURN): Update definition. Define always.
4841         Reported by Paul Eggert.
4842
4843 2011-02-13  Bruno Haible  <bruno@clisp.org>
4844
4845         mbrtowc: Add more tests for native Windows platforms.
4846         * tests/test-mbrtowc-w32-1.sh: New file.
4847         * tests/test-mbrtowc-w32-2.sh: New file.
4848         * tests/test-mbrtowc-w32-3.sh: New file.
4849         * tests/test-mbrtowc-w32-4.sh: New file.
4850         * tests/test-mbrtowc-w32-5.sh: New file.
4851         * tests/test-mbrtowc-w32.c: New file.
4852         * modules/mbrtowc-tests (Files): Add them.
4853         (Makefile.am): Arrange to run these tests.
4854         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
4855         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
4856
4857 2011-02-13  Bruno Haible  <bruno@clisp.org>
4858
4859         mbrtowc: Work around native Windows bug.
4860         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
4861         guess when no suitable locale for testing was found.
4862         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
4863
4864 2011-02-13  Bruno Haible  <bruno@clisp.org>
4865
4866         mbsinit: Work around mingw bug.
4867         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
4868         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
4869         Windows.
4870         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
4871
4872 2011-02-13  Bruno Haible  <bruno@clisp.org>
4873
4874         mbsinit: Don't crash for a NULL argument.
4875         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
4876         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
4877
4878 2011-02-13  Bruno Haible  <bruno@clisp.org>
4879
4880         Don't interfere with a program's definition of __attribute__.
4881         * lib/stdio.in.h (__attribute__): Remove definition.
4882         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
4883         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
4884         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
4885         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
4886         * lib/string.in.h (__attribute__): Remove definition.
4887         Reported by Paul Eggert.
4888
4889 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4890
4891         stdlib: don't get in the way of non-GCC __attribute__
4892         See thread starting at
4893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
4894         Revert previous stdlib change, installing the following instead:
4895         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
4896         to get in the way of a non-GCC compiler that supports __attribute__.
4897         (_GL_ATTRIBUTE_RETURN): New macro.
4898         (_Exit): Use it instead of __attribute__.
4899
4900 2011-02-12  Bruno Haible  <bruno@clisp.org>
4901
4902         quotearg test: Avoid test failure on mingw.
4903         * tests/test-quotearg.sh: Convert the locale identifier from native
4904         Windows syntax to Unix syntax.
4905
4906 2011-02-12  Bruno Haible  <bruno@clisp.org>
4907
4908         setlocale: Prefer gnulib's override over libintl's override.
4909         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
4910         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
4911         GNULIB_defined_setlocale is set.
4912
4913 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4914
4915         stdlib: support non-GCC __attribute__
4916
4917         Fix a serious and tricky problem encountered when attempting to
4918         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
4919         5.5, but it crashed due to memory corruption on Solaris 10 with
4920         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
4921         bits that are otherwise zero.  This tagging is optional inside
4922         Emacs but is preferred and is used when __attribute__ ((__aligned
4923         (8))) works, as it does with both recent-enough GCC and with Sun C
4924         5.11.  However, Sun C 5.11 is not GCC and does not #define
4925         __GNUC__ and __GNUC_MINOR__.
4926
4927         When I added the getloadavg module to Emacs, it brought in
4928         stdlib.in.h, which contained this fragment:
4929
4930            #ifndef __attribute__
4931            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
4932            #  define __attribute__(Spec)   /* empty */
4933            # endif
4934            #endif
4935
4936         When files that include <stdlib.h> were compiled with Sun C 5.11,
4937         the above code disabled __attribute__ ((__aligned (8))), which
4938         caused variables to not be properly aligned, which eventually led
4939         to the pointer corruption mentioned above.  (This was a bit hard
4940         to diagnose, unfortunately.)
4941
4942         Several "#define __attribute__(X) /* empty */" code snippets need
4943         to be eradicated from Gnulib to work with non-GCC compilers that
4944         support __attribute__.  The Autoconf way to do this is to test for
4945         each kind of attribute that we want support for, and selectively
4946         enable that in source code.
4947
4948         Fix this problem just for stdlib.h, by adding a test for the
4949         __noreturn__ attribute, and change stdlib.in.h to use that test
4950         when needed.  This technique can be easily generalized to the
4951         other *.in.h files and attributes, and a similar technique can be
4952         used for *.h and *.c files.  This patch is enough to solve the
4953         problem for Emacs + getloadavg, and I thought I'd publish it for
4954         feedback before undertaking further, similar fixes in other
4955         modules.
4956
4957         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
4958         because it's not needed for stdlib.h.  It merely substitutes the
4959         value directly into stdlib.h.  We may well need to #define it, or
4960         similar symbols, for other modules, but it's nice to also have an
4961         option to not #define it for applications like Emacs that do not
4962         need it.
4963
4964         * lib/stdlib.in.h (__attribute__): Do not #define.
4965         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
4966         be defined only if the _Exit module is also used.
4967         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
4968         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
4969         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
4970         platforms.
4971         * modules/_Exit (Files): Add m4/attribute.m4.
4972         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
4973         * m4/attribute.m4: New file.
4974
4975 2011-02-12  Bruno Haible  <bruno@clisp.org>
4976
4977         wcsrtombs: Work around bug on native Windows.
4978         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
4979         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
4980         instead of len.
4981         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
4982
4983 2011-02-12  Bruno Haible  <bruno@clisp.org>
4984
4985         mbsrtowcs: Work around bug on native Windows.
4986         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
4987         against mingw bug.
4988         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
4989
4990 2011-02-12  Bruno Haible  <bruno@clisp.org>
4991
4992         Avoid setlocale bugs in tests.
4993         * modules/btowc (Dependencies): Add setlocale.
4994         * modules/c-strcase (Dependencies): Likewise.
4995         * modules/mbmemcasecmp (Dependencies): Likewise.
4996         * modules/mbmemcasecoll (Dependencies): Likewise.
4997         * modules/mbrtowc (Dependencies): Likewise.
4998         * modules/mbscasecmp (Dependencies): Likewise.
4999         * modules/mbscasestr (Dependencies): Likewise.
5000         * modules/mbschr (Dependencies): Likewise.
5001         * modules/mbscspn (Dependencies): Likewise.
5002         * modules/mbsinit (Dependencies): Likewise.
5003         * modules/mbsncasecmp (Dependencies): Likewise.
5004         * modules/mbsnrtowcs (Dependencies): Likewise.
5005         * modules/mbspbrk (Dependencies): Likewise.
5006         * modules/mbspcasecmp (Dependencies): Likewise.
5007         * modules/mbsrchr (Dependencies): Likewise.
5008         * modules/mbsrtowcs (Dependencies): Likewise.
5009         * modules/mbsspn (Dependencies): Likewise.
5010         * modules/mbsstr (Dependencies): Likewise.
5011         * modules/nl_langinfo (Dependencies): Likewise.
5012         * modules/quotearg (Dependencies): Likewise.
5013         * modules/unicase/locale-language (Dependencies): Likewise.
5014         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
5015         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
5016         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
5017         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
5018         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
5019         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
5020         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
5021         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
5022         * modules/vasnprintf-posix (Dependencies): Likewise.
5023         * modules/wcrtomb (Dependencies): Likewise.
5024         * modules/wcsnrtombs (Dependencies): Likewise.
5025         * modules/wcsrtombs (Dependencies): Likewise.
5026
5027 2011-02-12  Bruno Haible  <bruno@clisp.org>
5028
5029         setlocale: Workaround native Windows bug.
5030         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
5031         succeeds but sets LC_CTYPE to "C", report a failure.
5032         * tests/test-setlocale2.sh: New file.
5033         * tests/test-setlocale2.c: New file.
5034         * modules/setlocale-tests (Files): Add the new files.
5035         (Makefile.am): Enable test-setlocale2.sh test.
5036         * doc/posix-functions/setlocale.texi: Mention workaround.
5037
5038 2011-02-11  Bruno Haible  <bruno@clisp.org>
5039
5040         Tests for module 'setlocale'.
5041         * modules/setlocale-tests: New file.
5042         * tests/test-setlocale1.sh: New file.
5043         * tests/test-setlocale1.c: New file.
5044
5045         New module 'setlocale'.
5046         * lib/locale.in.h (setlocale): New declaration.
5047         * lib/setlocale.c: New file, based on
5048         gettext/gettext-runtime/intl/setlocale.c.
5049         * m4/setlocale.m4: New file.
5050         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
5051         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
5052         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
5053         REPLACE_SETLOCALE.
5054         * modules/setlocale: New file.
5055         * tests/test-locale-c++.cc: Test the declaration of setlocale.
5056         * doc/posix-functions/setlocale.texi: Mention the new module.
5057
5058 2011-02-11  Bruno Haible  <bruno@clisp.org>
5059
5060         Prepare for locale dependent tests on mingw.
5061         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
5062         because it has the wrong locale encoding.
5063         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
5064         French_France.1252 instead of "fr".
5065         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
5066         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
5067         because it has the wrong locale encoding.
5068         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
5069         native Windows, try Turkish_Turkey.65001.
5070         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
5071         Chinese_China.54936.
5072
5073         Prepare for locale dependent tests on mingw.
5074         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
5075         differently.
5076         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
5077         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
5078         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5079         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5080
5081 2011-02-11  Eric Blake  <eblake@redhat.com>
5082
5083         strptime: avoid compiler warnings
5084         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
5085         compiler warnings about dead code.
5086         Reported by Daniel P. Berrange.
5087
5088 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
5089
5090         doc: update users.txt
5091         * users.txt: Add rcs.
5092
5093 2011-02-10  John W. Eaton  <jwe@gnu.org>
5094
5095         doc: update users.txt
5096         * users.txt: Add octave.
5097
5098 2011-02-10  Jim Meyering  <meyering@redhat.com>
5099
5100         doc: update users.txt
5101         * users.txt: Add iwhd.
5102
5103 2011-02-09  Bruno Haible  <bruno@clisp.org>
5104
5105         gnulib-tool: Make copyright notice adjustment more robust.
5106         * gnulib-tool (func_import): In sed_transform_main_lib_file,
5107         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
5108         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
5109         License".
5110         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
5111
5112 2011-02-06  Bruno Haible  <bruno@clisp.org>
5113
5114         New module 'towctrans'.
5115         * modules/towctrans: New file.
5116         * lib/wctype.in.h (towctrans): New declaration.
5117         * lib/towctrans.c: New file.
5118         * lib/towctrans-impl.h: New file.
5119         * m4/towctrans.m4: New file.
5120         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
5121         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
5122         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
5123         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
5124         * doc/posix-functions/towctrans.texi: Mention the new module.
5125
5126 2011-02-06  Bruno Haible  <bruno@clisp.org>
5127
5128         New module 'wctrans'.
5129         * modules/wctrans: New file.
5130         * lib/wctype.in.h (wctrans): New declaration.
5131         * lib/wctrans.c: New file.
5132         * lib/wctrans-impl.h: New file.
5133         * m4/wctrans.m4: New file.
5134         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
5135         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
5136         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
5137         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
5138         * doc/posix-functions/wctrans.texi: Mention the new module.
5139
5140 2011-02-06  Bruno Haible  <bruno@clisp.org>
5141
5142         New module 'iswctype'.
5143         * modules/iswctype: New file.
5144         * lib/wctype.in.h (iswctype): New declaration.
5145         * lib/iswctype.c: New file.
5146         * lib/iswctype-impl.h: New file.
5147         * m4/iswctype.m4: New file.
5148         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
5149         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
5150         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
5151         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
5152         * doc/posix-functions/iswctype.texi: Mention the new module and the
5153         HP-UX 11.00 problem.
5154
5155 2011-02-06  Bruno Haible  <bruno@clisp.org>
5156
5157         New module 'wctype'.
5158         * modules/wctype: Change to represent the wctype() substitute.
5159         * lib/wctype.in.h (wctype): New declaration.
5160         * lib/wctype.c: New file.
5161         * lib/wctype-impl.h: New file.
5162         * m4/wctype.m4: New file.
5163         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
5164         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
5165         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
5166         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
5167         * doc/posix-functions/wctype.texi: Mention the new module and the
5168         HP-UX 11.00 problem.
5169
5170 2011-02-06  Bruno Haible  <bruno@clisp.org>
5171
5172         wctype-h: Ensure wctype_t and wctrans_t are defined.
5173         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
5174         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5175         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5176         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
5177         HAVE_WCTRANS_T.
5178         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
5179
5180 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5181
5182         flock: fix license typo
5183
5184         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
5185         omitted.
5186
5187 2011-02-08  Bruno Haible  <bruno@clisp.org>
5188
5189         Split large sed scripts, for HP-UX sed.
5190         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
5191         to avoid HP-UX limit of 99 commands, in the near future.
5192         * modules/stdlib (Makefile.am): Likewise.
5193         * modules/unistd (Makefile.am): Likewise.
5194         * modules/wchar (Makefile.am): Likewise.
5195         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5196         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5197         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5198
5199 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5200             Bruno Haible  <bruno@clisp.org>
5201
5202         stdlib: improve random_r modularization
5203         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5204         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5205         you also need the random_r module to get this material right.
5206         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5207         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5208         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5209
5210 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5211
5212         stdlib: don't depend on stdint
5213         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5214         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5215         be independent of whether stdint.h is needed.
5216         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5217         here, instead of ...
5218         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5219         struct random_data should be using the random_r module, not just
5220         the stdlib module (which wouldn't make sense: what package needs
5221         just struct random_data without also needing random_r?).
5222         * modules/stdlib (Depends-on): Remove stdint.
5223
5224         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5225         See the thread rooted at
5226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5227         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5228         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5229         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5230         __VMS)); previously it was always included (via fcntl--.h).
5231         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5232         hand; this is good enough for load averages.  Also, do not use
5233         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5234         flags directly if available and don't bother otherwise.  (Packages
5235         that need the extra reliability should use the modules that define
5236         these flags on older platforms that lack them.)
5237         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5238         fcntl-safer.
5239
5240 2011-02-08  Jim Meyering  <meyering@redhat.com>
5241
5242         di-set.h, ino-map.h: add multiple-inclusion guard
5243         Technically, the guard is required only for ino-map.h, due to its
5244         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5245         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5246         * lib/ino-map.h: Likewise.
5247
5248 2011-02-06  Bruno Haible  <bruno@clisp.org>
5249
5250         iswblank: Ensure declaration on glibc systems.
5251         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5252         * modules/iswblank (Dependencies): Add 'extensions'.
5253         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5254
5255 2011-02-06  Bruno Haible  <bruno@clisp.org>
5256
5257         New module 'iswblank'.
5258         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5259         * modules/iswblank: New file.
5260         * modules/wctype-h (Files): Remove lib/iswblank.c.
5261         (Makefile.am): Substitute GNULIB_ISWBLANK.
5262         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
5263         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
5264         (gl_WCTYPE_H_DEFAULTS): New macro.
5265         (gl_WCTYPE_H): Require it. Remove iswblank related code.
5266         * modules/iswblank-tests: New file.
5267         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
5268         * tests/test-wctype-h.c (main): Remove iswblank tests.
5269         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
5270         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
5271         of 'wctype-h'.
5272         * NEWS: Mention the change.
5273         * modules/mbchar (Depends-on): Add iswblank.
5274
5275 2011-02-08  Bruno Haible  <bruno@clisp.org>
5276
5277         di-set tests: Refactor.
5278         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
5279         unnecessary includes.
5280         (ASSERT): Remove macro.
5281         (main): Make C90 compliant by avoiding variable declaration after
5282         statement.
5283         * modules/di-set-tests (Files): Add tests/macros.h.
5284
5285 2011-02-08  Bruno Haible  <bruno@clisp.org>
5286
5287         ino-map tests: Refactor.
5288         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
5289         unnecessary includes.
5290         (ASSERT): Remove macro.
5291         (main): Make C90 compliant by avoiding variable declaration after
5292         statement.
5293         * modules/ino-map-tests (Files): Add tests/macros.h.
5294
5295 2011-02-08  Jim Meyering  <meyering@redhat.com>
5296
5297         di-set: add "const" to a cast
5298         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
5299         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
5300
5301 2011-02-06  Bruno Haible  <bruno@clisp.org>
5302
5303         Rename module 'wctype' to 'wctype-h'.
5304         * modules/wctype-h: Renamed from modules/wctype.
5305         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
5306         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
5307         (Files, Depends-on, Makefile.am): Update.
5308         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
5309         (Files, Makefile.am): Update.
5310         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
5311         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
5312         * doc/posix-headers/wctype.texi: Update.
5313         * doc/posix-functions/iswalnum.texi: Update.
5314         * doc/posix-functions/iswalpha.texi: Update.
5315         * doc/posix-functions/iswblank.texi: Update.
5316         * doc/posix-functions/iswcntrl.texi: Update.
5317         * doc/posix-functions/iswdigit.texi: Update.
5318         * doc/posix-functions/iswgraph.texi: Update.
5319         * doc/posix-functions/iswlower.texi: Update.
5320         * doc/posix-functions/iswprint.texi: Update.
5321         * doc/posix-functions/iswpunct.texi: Update.
5322         * doc/posix-functions/iswspace.texi: Update.
5323         * doc/posix-functions/iswupper.texi: Update.
5324         * doc/posix-functions/iswxdigit.texi: Update.
5325         * doc/posix-functions/towlower.texi: Update.
5326         * doc/posix-functions/towupper.texi: Update.
5327         * NEWS: Mention the change.
5328         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5329         * modules/mbchar (Dependencies): Likewise.
5330         * modules/mbswidth (Dependencies): Likewise.
5331         * modules/quotearg (Dependencies): Likewise.
5332         * modules/regex (Dependencies): Likewise.
5333         * modules/wcscasecmp (Dependencies): Likewise.
5334         * modules/wcsncasecmp (Dependencies): Likewise.
5335         * modules/wcwidth (Dependencies): Likewise.
5336
5337 2011-02-06  Bruno Haible  <bruno@clisp.org>
5338
5339         New module 'wcswidth'.
5340         * modules/wcswidth: New file.
5341         * lib/wchar.in.h (wcswidth): New declaration.
5342         * lib/wcswidth.c: New file.
5343         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5344         * m4/wcswidth.m4: New file.
5345         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5346         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5347         REPLACE_WCSWIDTH.
5348         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5349         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5350         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5351         * doc/posix-functions/wcswidth.texi: Mention the new module.
5352
5353 2011-02-06  Bruno Haible  <bruno@clisp.org>
5354
5355         New module 'wcstok'.
5356         * modules/wcstok: New file.
5357         * lib/wchar.in.h (wcstok): New declaration.
5358         * lib/wcstok.c: New file.
5359         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5360         * m4/wcstok.m4: New file.
5361         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5362         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5363         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5364         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5365         * doc/posix-functions/wcstok.texi: Mention the new module.
5366
5367 2011-02-06  Bruno Haible  <bruno@clisp.org>
5368
5369         New module 'wcsstr'.
5370         * modules/wcsstr: New file.
5371         * lib/wchar.in.h (wcsstr): New declaration.
5372         * lib/wcsstr.c: New file.
5373         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5374         * m4/wcsstr.m4: New file.
5375         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5376         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5377         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5378         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5379         * doc/posix-functions/wcsstr.texi: Mention the new module.
5380
5381 2011-02-06  Bruno Haible  <bruno@clisp.org>
5382
5383         New module 'wcspbrk'.
5384         * modules/wcspbrk: New file.
5385         * lib/wchar.in.h (wcspbrk): New declaration.
5386         * lib/wcspbrk.c: New file.
5387         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5388         * m4/wcspbrk.m4: New file.
5389         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5390         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5391         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5392         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5393         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5394
5395 2011-02-06  Bruno Haible  <bruno@clisp.org>
5396
5397         New module 'wcsspn'.
5398         * modules/wcsspn: New file.
5399         * lib/wchar.in.h (wcsspn): New declaration.
5400         * lib/wcsspn.c: New file.
5401         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5402         * m4/wcsspn.m4: New file.
5403         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5404         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5405         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5406         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5407         * doc/posix-functions/wcsspn.texi: Mention the new module.
5408
5409 2011-02-06  Bruno Haible  <bruno@clisp.org>
5410
5411         New module 'wcscspn'.
5412         * modules/wcscspn: New file.
5413         * lib/wchar.in.h (wcscspn): New declaration.
5414         * lib/wcscspn.c: New file.
5415         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5416         * m4/wcscspn.m4: New file.
5417         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5418         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5419         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5420         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5421         * doc/posix-functions/wcscspn.texi: Mention the new module.
5422
5423 2011-02-06  Bruno Haible  <bruno@clisp.org>
5424
5425         New module 'wcsrchr'.
5426         * modules/wcsrchr: New file.
5427         * lib/wchar.in.h (wcsrchr): New declaration.
5428         * lib/wcsrchr.c: New file.
5429         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5430         * m4/wcsrchr.m4: New file.
5431         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5432         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5433         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5434         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5435         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5436
5437 2011-02-06  Bruno Haible  <bruno@clisp.org>
5438
5439         New module 'wcschr'.
5440         * modules/wcschr: New file.
5441         * lib/wchar.in.h (wcschr): New declaration.
5442         * lib/wcschr.c: New file.
5443         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5444         * m4/wcschr.m4: New file.
5445         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5446         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5447         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5448         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5449         * doc/posix-functions/wcschr.texi: Mention the new module.
5450
5451 2011-02-06  Bruno Haible  <bruno@clisp.org>
5452
5453         New module 'wcsdup'.
5454         * modules/wcsdup: New file.
5455         * lib/wchar.in.h (wcsdup): New declaration.
5456         * lib/wcsdup.c: New file.
5457         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5458         * m4/wcsdup.m4: New file.
5459         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5460         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5461         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5462         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5463         * doc/posix-functions/wcsdup.texi: Mention the new module.
5464
5465 2011-02-06  Bruno Haible  <bruno@clisp.org>
5466
5467         New module 'wcsxfrm'.
5468         * modules/wcsxfrm: New file.
5469         * lib/wchar.in.h (wcsxfrm): New declaration.
5470         * lib/wcsxfrm.c: New file.
5471         * lib/wcsxfrm-impl.h: New file.
5472         * m4/wcsxfrm.m4: New file.
5473         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
5474         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
5475         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
5476         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
5477         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
5478
5479 2011-02-06  Bruno Haible  <bruno@clisp.org>
5480
5481         New module 'wcscoll'.
5482         * modules/wcscoll: New file.
5483         * lib/wchar.in.h (wcscoll): New declaration.
5484         * lib/wcscoll.c: New file.
5485         * lib/wcscoll-impl.h: New file.
5486         * m4/wcscoll.m4: New file.
5487         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
5488         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
5489         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
5490         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
5491         * doc/posix-functions/wcscoll.texi: Mention the new module.
5492
5493 2011-02-06  Bruno Haible  <bruno@clisp.org>
5494
5495         New module 'wcsncasecmp'.
5496         * modules/wcsncasecmp: New file.
5497         * lib/wchar.in.h (wcsncasecmp): New declaration.
5498         * lib/wcsncasecmp.c: New file.
5499         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
5500         * m4/wcsncasecmp.m4: New file.
5501         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
5502         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
5503         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
5504         HAVE_WCSNCASECMP.
5505         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
5506         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
5507
5508 2011-02-06  Bruno Haible  <bruno@clisp.org>
5509
5510         New module 'wcscasecmp'.
5511         * modules/wcscasecmp: New file.
5512         * lib/wchar.in.h (wcscasecmp): New declaration.
5513         * lib/wcscasecmp.c: New file.
5514         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
5515         * m4/wcscasecmp.m4: New file.
5516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
5517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
5518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
5519         HAVE_WCSCASECMP.
5520         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
5521         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
5522
5523 2011-02-05  Bruno Haible  <bruno@clisp.org>
5524
5525         New module 'wcsncmp'.
5526         * modules/wcsncmp: New file.
5527         * lib/wchar.in.h (wcsncmp): New declaration.
5528         * lib/wcsncmp.c: New file.
5529         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
5530         * m4/wcsncmp.m4: New file.
5531         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
5532         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
5533         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
5534         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
5535         * doc/posix-functions/wcsncmp.texi: Mention the new module.
5536
5537 2011-02-05  Bruno Haible  <bruno@clisp.org>
5538
5539         New module 'wcscmp'.
5540         * modules/wcscmp: New file.
5541         * lib/wchar.in.h (wcscmp): New declaration.
5542         * lib/wcscmp.c: New file.
5543         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
5544         * m4/wcscmp.m4: New file.
5545         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
5546         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
5547         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
5548         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
5549         * doc/posix-functions/wcscmp.texi: Mention the new module.
5550
5551 2011-02-05  Bruno Haible  <bruno@clisp.org>
5552
5553         New module 'wcsncat'.
5554         * modules/wcsncat: New file.
5555         * lib/wchar.in.h (wcsncat): New declaration.
5556         * lib/wcsncat.c: New file.
5557         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
5558         * m4/wcsncat.m4: New file.
5559         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
5560         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
5561         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
5562         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
5563         * doc/posix-functions/wcsncat.texi: Mention the new module.
5564
5565 2011-02-05  Bruno Haible  <bruno@clisp.org>
5566
5567         New module 'wcscat'.
5568         * modules/wcscat: New file.
5569         * lib/wchar.in.h (wcscat): New declaration.
5570         * lib/wcscat.c: New file.
5571         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
5572         * m4/wcscat.m4: New file.
5573         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
5574         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
5575         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
5576         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
5577         * doc/posix-functions/wcscat.texi: Mention the new module.
5578
5579 2011-02-05  Bruno Haible  <bruno@clisp.org>
5580
5581         New module 'wcpncpy'.
5582         * modules/wcpncpy: New file.
5583         * lib/wchar.in.h (wcpncpy): New declaration.
5584         * lib/wcpncpy.c: New file.
5585         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
5586         * m4/wcpncpy.m4: New file.
5587         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
5588         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
5589         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
5590         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
5591         * doc/posix-functions/wcpncpy.texi: Mention the new module.
5592
5593 2011-02-05  Bruno Haible  <bruno@clisp.org>
5594
5595         New module 'wcsncpy'.
5596         * modules/wcsncpy: New file.
5597         * lib/wchar.in.h (wcsncpy): New declaration.
5598         * lib/wcsncpy.c: New file.
5599         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
5600         * m4/wcsncpy.m4: New file.
5601         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
5602         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
5603         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
5604         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
5605         * doc/posix-functions/wcsncpy.texi: Mention the new module.
5606
5607 2011-02-05  Bruno Haible  <bruno@clisp.org>
5608
5609         New module 'wcpcpy'.
5610         * modules/wcpcpy: New file.
5611         * lib/wchar.in.h (wcpcpy): New declaration.
5612         * lib/wcpcpy.c: New file.
5613         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
5614         * m4/wcpcpy.m4: New file.
5615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
5616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
5617         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
5618         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
5619         * doc/posix-functions/wcpcpy.texi: Mention the new module.
5620
5621 2011-02-05  Bruno Haible  <bruno@clisp.org>
5622
5623         New module 'wcscpy'.
5624         * modules/wcscpy: New file.
5625         * lib/wchar.in.h (wcscpy): New declaration.
5626         * lib/wcscpy.c: New file.
5627         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
5628         * m4/wcscpy.m4: New file.
5629         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
5630         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
5631         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
5632         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
5633         * doc/posix-functions/wcscpy.texi: Mention the new module.
5634
5635 2011-02-05  Bruno Haible  <bruno@clisp.org>
5636
5637         New module 'wcsnlen'.
5638         * modules/wcsnlen: New file.
5639         * lib/wchar.in.h (wcsnlen): New declaration.
5640         * lib/wcsnlen.c: New file.
5641         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
5642         * m4/wcsnlen.m4: New file.
5643         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
5644         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
5645         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
5646         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
5647         * doc/posix-functions/wcsnlen.texi: Mention the new module.
5648
5649 2011-02-05  Bruno Haible  <bruno@clisp.org>
5650
5651         New module 'wcslen'.
5652         * modules/wcslen: New file.
5653         * lib/wchar.in.h (wcslen): New declaration.
5654         * lib/wcslen.c: New file.
5655         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
5656         * m4/wcslen.m4: New file.
5657         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
5658         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
5659         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
5660         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
5661         * doc/posix-functions/wcslen.texi: Mention the new module.
5662
5663 2011-02-05  Bruno Haible  <bruno@clisp.org>
5664
5665         New module 'wmemset'.
5666         * modules/wmemset: New file.
5667         * lib/wchar.in.h (wmemset): New declaration.
5668         * lib/wmemset.c: New file.
5669         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
5670         * m4/wmemset.m4: New file.
5671         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
5672         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
5673         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
5674         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
5675         * doc/posix-functions/wmemset.texi: Mention the new module.
5676
5677 2011-02-05  Bruno Haible  <bruno@clisp.org>
5678
5679         New module 'wmemmove'.
5680         * modules/wmemmove: New file.
5681         * lib/wchar.in.h (wmemmove): New declaration.
5682         * lib/wmemmove.c: New file.
5683         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
5684         * m4/wmemmove.m4: New file.
5685         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
5686         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
5687         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
5688         HAVE_WMEMMOVE.
5689         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
5690         * doc/posix-functions/wmemmove.texi: Mention the new module.
5691
5692 2011-02-05  Bruno Haible  <bruno@clisp.org>
5693
5694         New module 'wmemcpy'.
5695         * modules/wmemcpy: New file.
5696         * lib/wchar.in.h (wmemcpy): New declaration.
5697         * lib/wmemcpy.c: New file.
5698         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
5699         * m4/wmemcpy.m4: New file.
5700         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
5701         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
5702         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
5703         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
5704         * doc/posix-functions/wmemcpy.texi: Mention the new module.
5705
5706 2011-02-05  Bruno Haible  <bruno@clisp.org>
5707
5708         New module 'wmemcmp'.
5709         * modules/wmemcmp: New file.
5710         * lib/wchar.in.h (wmemcmp): New declaration.
5711         * lib/wmemcmp.c: New file.
5712         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
5713         * m4/wmemcmp.m4: New file.
5714         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
5715         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
5716         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
5717         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
5718         * doc/posix-functions/wmemcmp.texi: Mention the new module.
5719
5720 2011-02-07  Jim Meyering  <meyering@redhat.com>
5721
5722         di-set, ino-map: new modules, from coreutils
5723         * lib/di-set.c: New file.
5724         * lib/di-set.h: Likewise.
5725         * lib/ino-map.c: Likewise.
5726         * lib/ino-map.h: Likewise.
5727         * modules/di-set: Likewise.
5728         * modules/di-set-tests: Likewise.
5729         * modules/ino-map: Likewise.
5730         * modules/ino-map-tests: Likewise.
5731         * tests/test-di-set.c: Likewise.
5732         * tests/test-ino-map.c: Likewise.
5733
5734 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
5735
5736         getloadavg: merge minor changes from Emacs
5737
5738         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
5739         (getloadavg): Use memset, not bzero.
5740
5741         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
5742         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5743         clash (bug#86).
5744
5745 2010-11-14  Bruno Haible  <bruno@clisp.org>
5746
5747         Allow multiple gnulib generated replacements to coexist.
5748         * lib/getopt.in.h (struct option): Avoid identical redefinition.
5749         * lib/inttypes.in.h (imaxdiv_t): Likewise.
5750         * lib/langinfo.in.h (nl_item): Likewise.
5751         * lib/math.in.h (_NaN, NAN): Likewise.
5752         * lib/netdb.in.h (struct addrinfo): Likewise.
5753         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
5754         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
5755         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
5756         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
5757         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
5758         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
5759         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
5760         pthread_mutexattr_init, pthread_mutexattr_settype,
5761         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
5762         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
5763         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
5764         pthread_spin_trylock, pthread_spin_unlock): Likewise.
5765         * lib/sched.in.h (struct sched_param): Likewise.
5766         * lib/se-selinux.in.h (security_class_t, security_context_t,
5767         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
5768         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
5769         lsetfilecon, fsetfilecon, security_check_context,
5770         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
5771         Likewise.
5772         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
5773         Likewise.
5774         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
5775         _gl_function_taking_int_returning_void_t, union sigval,
5776         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
5777         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
5778         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5779         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
5780         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
5781         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
5782         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
5783         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
5784         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
5785         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
5786         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
5787         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
5788         socklen_t, rpl_fd_isset): Likewise.
5789         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
5790         * lib/sys_time.in.h (struct timeval): Likewise.
5791         * lib/sys_times.in.h (struct tms): Likewise.
5792         * lib/sys_utsname.in.h (struct utsname):
5793         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
5794         * lib/unistd.in.h (getpagesize): Likewise.
5795         * lib/wchar.in.h (mbstate_t): Likewise.
5796         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5797         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
5798         towlower, towupper): Likewise.
5799         Reported by Sam Steingold <sds@gnu.org>.
5800
5801 2011-02-05  Eric Blake  <eblake@redhat.com>
5802
5803         unsetenv: work around Haiku issues
5804         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
5805         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
5806
5807 2010-12-30  Bruce Korb  <bkorb@gnu.org>
5808
5809         libposix: avoid calling error() within libposix
5810         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
5811         is defined.
5812
5813 2011-02-05  Eric Blake  <eblake@redhat.com>
5814
5815         strerror_r-posix: port to cygwin
5816         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
5817         implementation.
5818         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
5819         * tests/test-strerror_r.c (main): Fix test.
5820         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5821         issue.
5822
5823 2011-02-05  Bruno Haible  <bruno@clisp.org>
5824
5825         New module 'wmemchr'.
5826         * modules/wmemchr: New file.
5827         * lib/wchar.in.h (wmemchr): New declaration.
5828         * lib/wmemchr.c: New file.
5829         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
5830         * m4/wmemchr.m4: New file.
5831         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
5832         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
5833         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
5834         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
5835         * doc/posix-functions/wmemchr.texi: Mention the new module.
5836
5837 2011-02-04  Eric Blake  <eblake@redhat.com>
5838
5839         fdopendir: detect FreeBSD bug
5840         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
5841         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
5842
5843 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5844
5845         stdbool: do not define HAVE_STDBOOL_H
5846         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
5847         AC_HEADER_STDBOOL.  All uses changed.  Do not define
5848         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
5849         imported from the latest Autoconf git.  It was motivated by Emacs,
5850         which uses gnulib but does not need HAVE_STDBOOL_H.
5851
5852 2011-02-04  Bruno Haible  <bruno@clisp.org>
5853
5854         wcsnrtombs: Prepare for new module wwcsnrtombs.
5855         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
5856         * lib/wcsnrtombs.c: Include it.
5857         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
5858
5859         wcsrtombs: Prepare for new module wwcsrtombs.
5860         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
5861         * lib/wcsrtombs.c: Include it.
5862         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
5863
5864         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
5865         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
5866         * lib/mbsnrtowcs.c: Include it.
5867         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
5868
5869         mbsrtowcs: Prepare for new module mbsrtowwcs.
5870         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
5871         * lib/mbsrtowcs.c: Include it.
5872         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
5873
5874 2011-02-04  Bruno Haible  <bruno@clisp.org>
5875
5876         vasnprintf: Reduce use of malloc for small format strings.
5877         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
5878         (arguments): Add room for the first 7 arguments.
5879         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
5880         (char_directives, u8_directives, u16_directives, u32_directives): Add
5881         room for the first 7 directives.
5882         * lib/printf-parse.c: Include <string.h>.
5883         (PRINTF_PARSE): Change memory handling code so that it uses the first
5884         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
5885         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
5886         Reported by Pádraig Brady <P@draigbrady.com>.
5887
5888 2011-01-31  Eric Blake  <eblake@redhat.com>
5889
5890         dup2: work around Haiku bug
5891         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
5892         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
5893         * doc/posix-functions/dup2.texi (dup2): Document the bug.
5894         * tests/test-dup2.c (main): Enhance test.
5895
5896 2011-01-31  Simon Josefsson  <simon@josefsson.org>
5897
5898         doc: off_t is not available in eglibc 2.11.2 stdio.h.
5899         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
5900         declared by eglibc 2.11.2.
5901         * lib/stdio.in.h: Likewise.
5902
5903 2011-01-31  Eric Blake  <eblake@redhat.com>
5904
5905         ignore-value: add missing test dependency
5906         * tests/test-ignore-value.c: Revert previous change; stdio.h
5907         provides off_t.
5908         * modules/ignore-value-tests (Depends-on): Add missing dependency.
5909
5910 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
5911
5912         mktime: clarify long_int width checking
5913         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
5914         the top level, to make it clearer that the assumption about
5915         long_int width is being checked.  See
5916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
5917
5918 2011-01-30  Simon Josefsson  <simon@josefsson.org>
5919
5920         ignore-value: Fix self-test.
5921         * tests/test-ignore-value.c: Include sys/types.h for off_t.
5922
5923 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5924
5925         TYPE_MAXIMUM: avoid theoretically undefined behavior
5926         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
5927         negative number, which the C Standard says has undefined behavior.
5928         In practice this is not a problem, but might as well do it by the book.
5929         Reported by Rich Felker and Eric Blake; see
5930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
5931         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
5932         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5934         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
5935         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5936         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
5937
5938         mktime: #undef mktime before #defining it
5939         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
5940
5941         mktime: systematically normalize tm_isdst comparisons
5942         * lib/mktime.c (isdst_differ): New function.
5943         (__mktime_internal): Use it systematically for all isdst comparisons.
5944         This completes the fix for libc BZ #6723, and removes the need for
5945         normalizing tm_isdst.  See
5946         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
5947         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
5948
5949         mktime: fix some integer overflow issues and sidestep the rest
5950
5951         This was prompted by a bug report by Benjamin Lindner for MinGW
5952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
5953         His bug is due to signed integer overflow (0 - INT_MIN), and I
5954         I scanned through mktime.c looking for other integer overflow
5955         problems, fixing all the bugs I found.
5956
5957         Although the C Standard says the resulting code is still not safe
5958         in the presence of integer overflow, in practice it should be good
5959         enough for all real-world two's-complement implementations, except
5960         for debugging environments that deliberately trap on integer
5961         overflow (e.g., gcc -ftrapv).
5962
5963         * lib/mktime.c (WRAPV): New macro.
5964         (SHR): Also check that long_int and time_t shift right in the
5965         usual way, before using the fast-but-unportable method.
5966         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
5967         used.  The code already assumed two's complement, so there's
5968         no need to test for alternatives.  All uses removed.
5969         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
5970         the C standard.  Problem reported by Rich Felker in
5971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
5972         (twos_complement_arithmetic): Also check long_int and time_t.
5973         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
5974         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
5975         (__mktime_internal): Avoid integer overflow with unary subtraction
5976         in two instances where -1 - X is an adequate replacement for -X,
5977         since the calculations are approximate.
5978
5979 2011-01-29  Eric Blake  <eblake@redhat.com>
5980
5981         mktime: avoid infinite loop
5982         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
5983         type; behavior is still undefined but portable to all known targets.
5984         Reported by Rich Felker.
5985
5986 2011-01-29  Simon Josefsson  <simon@josefsson.org>
5987
5988         rename, unlink, same-inode: Relicense.
5989         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
5990         * modules/unlink (License): Likewise.
5991         * modules/same-inode (License): Likewise.
5992
5993 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5994
5995         mktime: avoid problems on NetBSD 5 / i386
5996         * lib/mktime.c (long_int): New type.  This works around a problem
5997         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
5998         but time_t is 64 bits, and where I expect the existing code is
5999         wrong in some cases.
6000         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
6001         (ydhms_diff): Bring back the compile-time check for wide-enough
6002         year and yday.
6003
6004         mktime: fix misspelling in comment
6005         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
6006         This merges all recent glibc changes of importance.
6007
6008 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6009
6010         move-if-change: cope with concurrent mv of identical file.
6011         * build-aux/move-if-change (CMPPROG): Accept environment
6012         variable as an override for `cmp'.
6013         (usage): Document CMPPROG.
6014         Adjust comparison to drop stdout.  Cope with failure of mv if
6015         the target file exists and is identical to the source, for
6016         parallel builds.
6017         Report from H.J. Lu against binutils in PR binutils/12283.
6018
6019 2011-01-28  Bruce Korb  <bkorb@gnu.org>
6020
6021         * users.txt: Mention sharutils.
6022
6023 2011-01-28  Simon Josefsson  <simon@josefsson.org>
6024
6025         * users.txt: Mention OATH Toolkit.
6026
6027 2011-01-27  Bruno Haible  <bruno@clisp.org>
6028
6029         Prepare for supporting FreeBSD 10.
6030         * build-aux/config.libpath: Remove handling of freebsd1*.
6031
6032 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
6033
6034         Prepare for supporting FreeBSD 10.
6035         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
6036         match FreeBSD 10.0.
6037
6038 2011-01-27  Bruno Haible  <bruno@clisp.org>
6039
6040         vma-iter, get-rusage-as: Add OpenBSD support.
6041         * modules/vma-iter (configure.ac): Test for mquery.
6042         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
6043         * lib/vma-iter.c: Include <sys/mman.h>.
6044         (vma_iterate): Add an implementation based on mquery().
6045         * lib/resource-ext.h (get_rusage_as): Update comments.
6046         * lib/get-rusage-as.c: Likewise.
6047         * lib/get-rusage-data.c: Likewise.
6048
6049 2011-01-26  Karl Berry  <karl@gnu.org>
6050
6051         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
6052         variables to make it easier to override the makeinfo program used.
6053
6054 2011-01-26  Eric Blake  <eblake@redhat.com>
6055
6056         fcntl: work around Haiku F_DUPFD bugs
6057         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
6058         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
6059         cloexec bit on duplication.
6060         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
6061
6062 2011-01-26  Bruno Haible  <bruno@clisp.org>
6063
6064         Enable memory leak tests on AIX.
6065         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
6066         * tests/test-fprintf-posix3.c (main): Likewise.
6067
6068 2011-01-26  Bruno Haible  <bruno@clisp.org>
6069
6070         Tests for module 'get-rusage-data'.
6071         * modules/get-rusage-data-tests: New file.
6072         * tests/test-get-rusage-data.c: New file.
6073
6074         New module 'get-rusage-data'.
6075         * lib/resource-ext.h (get_rusage_data): New declaration.
6076         * lib/get-rusage-data.c: New file.
6077         * modules/get-rusage-data: New file.
6078
6079 2011-01-25  Bruno Haible  <bruno@clisp.org>
6080
6081         get-rusage-as: Allow for easier testing.
6082         * lib/resource-ext.h (get_rusage_as): Add comment.
6083         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
6084         (main): New function for interactive testing.
6085
6086 2011-01-25  Bruno Haible  <bruno@clisp.org>
6087
6088         vma-iter: Treat Haiku like BeOS.
6089         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
6090         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
6091
6092 2011-01-25  Eric Blake  <eblake@redhat.com>
6093
6094         c-stack: fix regression on cygwin when libsigsegv is present
6095         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
6096
6097 2011-01-24  Bruno Haible  <bruno@clisp.org>
6098
6099         vma-iter: Avoid empty intervals.
6100         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
6101         on an empty interval.
6102
6103 2011-01-24  Jim Meyering  <meyering@redhat.com>
6104
6105         u64: remove unnecessary #include
6106         * lib/u64.h: Don't include <stddef.h>.  It was not used.
6107
6108 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6109
6110         Allow the user to avoid the HAVE_RAW_DECL_* macros.
6111         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
6112
6113 2011-01-23  Bruno Haible  <bruno@clisp.org>
6114
6115         New module 'vma-iter'.
6116         * lib/vma-iter.h: New file.
6117         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
6118         * modules/vma-iter: New file.
6119         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
6120         for get_rusage_as_via_iterator.
6121         (vma_iterate_callback): New function.
6122         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
6123         * modules/get-rusage-as (Depends-on): Add vma-iter.
6124
6125 2011-01-23  Bruno Haible  <bruno@clisp.org>
6126
6127         uninorm: Tweak includes.
6128         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
6129         Reported by Jim Meyering.
6130
6131 2011-01-23  Bruno Haible  <bruno@clisp.org>
6132
6133         get-rusage-as: Improve on NetBSD.
6134         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
6135         /proc, like on FreeBSD.
6136
6137 2011-01-23  Jim Meyering  <meyering@redhat.com>
6138
6139         xreadlink.h: remove unnecessary #include
6140         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
6141
6142         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
6143         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
6144
6145 2011-01-23  Bruno Haible  <bruno@clisp.org>
6146
6147         get-rusage-as: Fix bug.
6148         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
6149         original limit when aborting the first loop.
6150
6151 2011-01-23  Bruno Haible  <bruno@clisp.org>
6152
6153         wctype: Ensure valid C syntax.
6154         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
6155         unconditionally, instead of gl_NEXT_HEADERS conditionally.
6156
6157 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6158
6159         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
6160         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
6161         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
6162         as they are needed only for configure's test case.
6163         This removes two unnecessary symbols from config.h.
6164
6165         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
6166         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
6167         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
6168         AC_CHECK_HEADERS_ONCE on a header that we also invoke
6169         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
6170         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
6171         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
6172         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6173         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6174         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6175         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
6176         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6177         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6178         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6179         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6180         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6181         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6182         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6183
6184 2011-01-21  Eric Blake  <eblake@redhat.com>
6185
6186         maintainer-makefile: work with older git for submodule check
6187         * top/maint.mk (public-submodule-commit): Rewrite to avoid
6188         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
6189         Reported by Matthias Bolte.
6190
6191         bootstrap: minor portability fixes
6192         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6193         (usage): Omit leading capital and trailing . on help phrases, per
6194         GNU Coding Standards.
6195         (check_versions, top level): Prefix messages with script name.
6196
6197 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6198
6199         bootstrap: support --no-git option
6200         * build-aux/bootstrap: Add --no-git option, to be used when
6201         --gnulib-srcdir points to the exact desired checkout.
6202
6203 2011-01-21  Eric Blake  <eblake@redhat.com>
6204
6205         strerror_r-posix: work with glibc 2.13
6206         * lib/strerror_r.c (strerror_r): Fix return type.
6207
6208 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6209             Bruno Haible  <bruno@clisp.org>
6210
6211         uN_strstr: New unit tests.
6212         * modules/unistr/u8-strstr-tests: New file.
6213         * modules/unistr/u16-strstr-tests: New file.
6214         * modules/unistr/u32-strstr-tests: New file.
6215         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6216         * tests/unistr/test-u8-strstr.c: New file.
6217         * tests/unistr/test-u16-strstr.c: New file.
6218         * tests/unistr/test-u32-strstr.c: New file.
6219
6220 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6221             Bruno Haible  <bruno@clisp.org>
6222
6223         Make uN_strstr functions O(n) worst-case.
6224         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6225         16-bit and 32-bit unit cases, use the unibyte algorithm from
6226         lib/mbsstr.c.
6227         * lib/unistr/u8-strstr.c: Include <string.h>.
6228         (UNIT_IS_UINT8_T): New macro.
6229         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6230         (U_STRLEN, U_STRNLEN): New macros.
6231         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6232         (U_STRLEN, U_STRNLEN): New macros.
6233         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6234         (configure.ac): Update required libunistring version.
6235         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6236         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6237         malloca.
6238         (configure.ac): Update required libunistring version.
6239         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6240         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6241         malloca.
6242         (configure.ac): Update required libunistring version.
6243
6244 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6245             Bruno Haible  <bruno@clisp.org>
6246
6247         Prepare for faster uN_strstr functions.
6248         * lib/str-kmp.h: Support definable UNITs.
6249         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6250         needle_len argument.
6251         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6252         * lib/mbscasestr.c (mbscasestr): Likewise.
6253
6254 2011-01-21  Pádraig Brady <P@draigBrady.com>
6255
6256         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6257         * tests/test-malloca.c (main): Unset the environment variable
6258         to greatly speed up the test.
6259         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6260         * modules/malloca-tests: Depend on unsetenv.
6261
6262 2011-01-21  Pádraig Brady <P@draigBrady.com>
6263
6264         ignore-value: remove stdint dependency
6265         * lib/ignore-value.h: Remove <stdint.h>
6266         * modules/ignore-value: Remove stdint dependency.
6267
6268 2011-01-21  Jim Meyering  <meyering@redhat.com>
6269
6270         maint.mk: adjust variable name to be consistent with other gl_ vars
6271         * top/maint.mk (gl_public_submodule_commit): Rename the variable
6272         to be lower case.
6273
6274 2011-01-20  Jim Meyering  <meyering@redhat.com>
6275
6276         maint.mk: make "check" depend on public-submodule-commit by default
6277         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
6278
6279 2011-01-20  Bruno Haible  <bruno@clisp.org>
6280
6281         mbfile, mbiter: Complete change from 2008-12-21.
6282         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
6283         * m4/mbiter.m4 (gl_MBITER): Likewise.
6284
6285 2011-01-20  Jim Meyering  <meyering@redhat.com>
6286
6287         init.sh: insert space between each function name and "()"
6288         * tests/init.sh: Make it a little easier to see that a function's
6289         name is "warn_", and not "warn" when looking at the first part of
6290         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
6291
6292 2011-01-20  Jim Meyering  <meyering@redhat.com>
6293
6294         mountlist: clean up code formatting
6295         * lib/mountlist.c (read_file_system_list): Split a long line,
6296         correct bracing style, use NULL in place of "(struct statfs *)0",
6297         don't parenthesize return value, add spaces around "=" and after
6298         ";-in-for-stmt".
6299
6300 2011-01-14  Markus Duft <mduft@gentoo.org>
6301
6302         mountlist: add support for Interix
6303         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
6304         Apply statvfs to all entries of /dev/fs.
6305         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
6306         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
6307
6308 2011-01-20  Jim Meyering  <meyering@redhat.com>
6309
6310         maint.mk: improve the public-submodule-commit rule
6311         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
6312         to suppress printing of its commands... unless V=1.
6313         Add git submodule's --quiet option to suppress printing of e.g.,
6314         "Entering gnulib" output.
6315         "cd" into $(srcdir) before running git submodule.
6316
6317 2011-01-20  Bruno Haible  <bruno@clisp.org>
6318
6319         include_next: Fix bug introduced on 2011-01-18.
6320         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6321         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6322         ac_cv_header_... variable if the second argument is not 'check'.
6323         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6324         gl_NEXT_HEADERS_INTERNAL.
6325
6326 2011-01-20  Bruno Haible  <bruno@clisp.org>
6327
6328         Allow the user to avoid the GNULIB_TEST_* macros.
6329         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6330         Suggested by Paul Eggert.
6331
6332 2011-01-14  Jim Meyering  <meyering@redhat.com>
6333
6334         bootstrap: avoid failure when there is no .gitmodules file
6335         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6336         has been assigned to, even when its value is the empty string.
6337         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6338         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6339         Reported by John W. Eaton <jwe@gnu.org>.
6340
6341 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6342
6343         assume <ctype.h>, ..., <time.h> exist
6344         For years gnulib has been assuming the existence of the headers
6345         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6346         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6347         them, since they don't appear to be needed.
6348         * README (Portability guidelines): Document this.
6349         * lib/flock.c: Assume <fcntl.h> exists.
6350         * lib/regex_internal.h: Assume <locale.h> exists.
6351         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6352         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6353         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6354         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6355         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6356         * m4/regex.m4 (gl_REGEX): Likewise.
6357         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6358         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6359         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6360         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6361         * tests/test-argp.c: Likewise.
6362         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6363
6364         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6365         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6366         AA_APPLE_UNIVERSAL_BUILD.  See
6367         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6368         * NEWS: Document this.
6369
6370 2011-01-19  Eric Blake  <eblake@redhat.com>
6371
6372         c-stack: assume stack overflow if SA_SIGINFO unsupported
6373         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6374         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6375         sigaction will work.
6376         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6377         behavior match Linux.
6378         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6379
6380         stdbool-tests: accomodate Haiku
6381         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6382
6383         binary-io: fix O_TEXT on Haiku
6384         * modules/binary-io (Depends-on): Add fcntl-h.
6385         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6386         than blindly undefining O_TEXT.
6387         Reported by Scott McCreary.
6388
6389 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6390
6391         include_next: do not check for standard headers like stddef.h
6392
6393         I found this problem when modifying Emacs to use gnulib.
6394         I noticed that it added HAVE_STDDEF_H to config.h, even though
6395         gnulib always assumes <stddef.h> exists as per README and this
6396         symbol is unnecessary.
6397         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6398         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6399         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6400         faster for headers like stddef.h that are known to exist.
6401         (gl_CHECK_NEXT_HEADERS): Use it.
6402         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6403         rather than gl_CHECK_NEXT_HEADERS.
6404         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6405         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6406
6407 2011-01-18  Eric Blake  <eblake@redhat.com>
6408
6409         ansi-c++-opt: skip C++ dependency style if C++ is unused
6410         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6411         tests when we know C++ compilation is not desired.
6412         Reported by Scott McCreary.
6413
6414 2011-01-18  Bruno Haible  <bruno@clisp.org>
6415
6416         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6417         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6418         (main): Perform test also when getrlimit and setrlimit don't exist or
6419         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6420         limiting the address space size using setrlimit, compare the address
6421         space size before and after the the test.
6422         * tests/test-dprintf-posix2.c: Likewise.
6423         * tests/test-fprintf-posix3.sh: Update skip messages.
6424         * tests/test-dprintf-posix2.sh: Likewise.
6425         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6426         * modules/dprintf-posix-tests (Depends-on): Likewise.
6427         Reported by Bruce Korb <bkorb@gnu.org> and
6428         Gary V. Vaughan <gary@gnu.org>.
6429
6430 2011-01-18  Bruno Haible  <bruno@clisp.org>
6431
6432         get-rusage-as: Improvement for Cygwin.
6433         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6434         areas that are merely reserved.
6435
6436 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6437
6438         strftime: remove dependencies on multibyte modules
6439
6440         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6441         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6442         only if __osf__ is defined, and I suspect OSF doesn't need these
6443         other modules.  If my guess is wrong, we'll need to come up with a
6444         variant of strftime that doesn't need the multibyte modules.
6445
6446         I discovered this problem when attempting modify Emacs to use the
6447         strftime module.  With the previous gnulib, this caused Emacs to
6448         need 31 new files, ranging from lib/config.charset to
6449         m4/wint_t.m4.  This was overkill and I expect would be offputting
6450         to the Emacs maintainers.  After this change, only 6 new files are
6451         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6452         stdbool.m4, and tm_gmtoff.m4.
6453
6454         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6455         Suggested by Bruno Haible in
6456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6457         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6458         and do not check for wchar.h.
6459         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6460         (Depends-on): Remove mbrlen, mbsinit, wchar.
6461
6462 2011-01-18  Bruno Haible  <bruno@clisp.org>
6463
6464         Tests for module 'get-rusage-as'.
6465         * modules/get-rusage-as-tests: New file.
6466         * tests/test-get-rusage-as.c: New file.
6467
6468         New module 'get-rusage-as'.
6469         * modules/get-rusage-as: New file.
6470         * lib/resource-ext.h: New file.
6471         * lib/get-rusage-as.c: New file.
6472
6473 2011-01-17  Eric Blake  <eblake@redhat.com>
6474
6475         sigaction: relax license from LGPLv3+ to LGPLv2+
6476         * modules/sigaction (License): Relax to LGPLv2+.
6477
6478 2011-01-14  Bruno Haible  <bruno@clisp.org>
6479
6480         filemode: Make function declarations usable in C++ mode.
6481         * lib/filemode.h: Enclose function declarations in extern "C" block.
6482         Reported by John W. Eaton <jwe@gnu.org>.
6483
6484 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
6485
6486         save-cwd: no longer include "xgetcwd.h"
6487         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
6488         This avoids a compilation failure in projects that use save-cwd
6489         without also using the xgetcwd module.
6490
6491 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6492
6493         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
6494         This is so that a program like Emacs, which needs only dtoastr,
6495         does not have to bother with distributing and compiling ftoastr
6496         and ldtoastr.
6497         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
6498         * modules/dtoastr, modules/ldtoastr: New files.
6499         * modules/ftoastr: Now works just for 'float'.
6500         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
6501         (Makefile.am): Remove ftoastr.h (not needed and no effect),
6502         dtoastr.c, ldtoastr.c.
6503
6504 2011-01-11  Jim Meyering  <meyering@redhat.com>
6505
6506         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
6507         There is no need to work around the lack of the fchdir function,
6508         since gnulib can now provide a replacement when required.
6509         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
6510         * modules/save-cwd (Depends-on): Add fchdir.
6511
6512 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6513
6514         openat, save-cwd: avoid xmalloc
6515
6516         This removes a direct (but undocumented) dependency of openat on
6517         xalloc, along with an indirect dependency via save-cwd.  It also
6518         removes a dependency of save-cwd on xgetcwd, and thereby
6519         indirectly on xalloc.  This change causes the openat substitute
6520         to fall back on save_cwd when memory is tight, and for save_cwd to
6521         fail instead of dying when memory is tight, but that's good enough.
6522         Problem and initial idea for fix reported by Bastien Roucaries in
6523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
6524
6525         * lib/openat-proc.c: Include stdlib.h (for malloc), not
6526         xalloc.h (for xmalloc).
6527         (openat_proc_name): Use malloc, not xmalloc.
6528         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
6529         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
6530
6531         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
6532         This avoids heap allocation for file names whose lengths are in
6533         the range 512..1023, with the upper bound increasing to at most
6534         4031 depending on the platform's PATH_MAX.  (We do not want
6535         pathmax.h here as it might supply a non-constant PATH_MAX.)
6536         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
6537         Perhaps they should be moved to malloca.h?
6538         (OPENAT_BUFFER_SIZE): Use them.
6539
6540 2011-01-10  Bruno Haible  <bruno@clisp.org>
6541
6542         doc: Update users.txt.
6543         * users.txt: Add recutils.
6544
6545 2011-01-09  Karl Berry  <karl@gnu.org>
6546
6547         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
6548
6549         * doc/configmake.texi: New file.
6550         * doc/gnulib.texi: Include it.
6551         * modules/configmake: Move documentation from here.
6552
6553 2011-01-09  Bruno Haible  <bruno@clisp.org>
6554
6555         Update to Unicode 6.0.0.
6556         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
6557         (get_lbp): Update for Unicode 6.0.0.
6558         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
6559         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
6560         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
6561         U+11001, U+11038..U+11046. Remove U+06DE.
6562         (uc_width): Fix bounds of planes.
6563         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6564         lib/uniwidth/width.c.
6565         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
6566         trailing whitespace removed.
6567         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
6568         without comments, but with the original copyright notice.
6569         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
6570         * lib/unicase/ignorable.h: Likewise.
6571         * lib/unicase/tocasefold.h: Likewise.
6572         * lib/unicase/tolower.h: Likewise.
6573         * lib/unicase/totitle.h: Likewise.
6574         * lib/unicase/toupper.h: Likewise.
6575         * lib/unictype/bidi_of.h: Likewise.
6576         * lib/unictype/blocks.h: Likewise.
6577         * lib/unictype/categ_C.h: Likewise.
6578         * lib/unictype/categ_Cn.h: Likewise.
6579         * lib/unictype/categ_L.h: Likewise.
6580         * lib/unictype/categ_Ll.h: Likewise.
6581         * lib/unictype/categ_Lm.h: Likewise.
6582         * lib/unictype/categ_Lo.h: Likewise.
6583         * lib/unictype/categ_Lu.h: Likewise.
6584         * lib/unictype/categ_M.h: Likewise.
6585         * lib/unictype/categ_Mc.h: Likewise.
6586         * lib/unictype/categ_Me.h: Likewise.
6587         * lib/unictype/categ_Mn.h: Likewise.
6588         * lib/unictype/categ_N.h: Likewise.
6589         * lib/unictype/categ_Nd.h: Likewise.
6590         * lib/unictype/categ_No.h: Likewise.
6591         * lib/unictype/categ_P.h: Likewise.
6592         * lib/unictype/categ_Po.h: Likewise.
6593         * lib/unictype/categ_S.h: Likewise.
6594         * lib/unictype/categ_Sc.h: Likewise.
6595         * lib/unictype/categ_Sk.h: Likewise.
6596         * lib/unictype/categ_Sm.h: Likewise.
6597         * lib/unictype/categ_So.h: Likewise.
6598         * lib/unictype/categ_of.h: Likewise.
6599         * lib/unictype/combining.h: Likewise.
6600         * lib/unictype/ctype_alnum.h: Likewise.
6601         * lib/unictype/ctype_alpha.h: Likewise.
6602         * lib/unictype/ctype_graph.h: Likewise.
6603         * lib/unictype/ctype_lower.h: Likewise.
6604         * lib/unictype/ctype_print.h: Likewise.
6605         * lib/unictype/ctype_punct.h: Likewise.
6606         * lib/unictype/ctype_upper.h: Likewise.
6607         * lib/unictype/decdigit.h: Likewise.
6608         * lib/unictype/digit.h: Likewise.
6609         * lib/unictype/numeric.h: Likewise.
6610         * lib/unictype/pr_alphabetic.h: Likewise.
6611         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6612         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6613         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6614         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6615         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6616         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6617         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6618         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6619         * lib/unictype/pr_case_ignorable.h: Likewise.
6620         * lib/unictype/pr_cased.h: Likewise.
6621         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
6622         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
6623         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
6624         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
6625         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
6626         * lib/unictype/pr_combining.h: Likewise.
6627         * lib/unictype/pr_composite.h: Likewise.
6628         * lib/unictype/pr_currency_symbol.h: Likewise.
6629         * lib/unictype/pr_decimal_digit.h: Likewise.
6630         * lib/unictype/pr_deprecated.h: Likewise.
6631         * lib/unictype/pr_format_control.h: Likewise.
6632         * lib/unictype/pr_grapheme_base.h: Likewise.
6633         * lib/unictype/pr_grapheme_extend.h: Likewise.
6634         * lib/unictype/pr_grapheme_link.h: Likewise.
6635         * lib/unictype/pr_id_continue.h: Likewise.
6636         * lib/unictype/pr_id_start.h: Likewise.
6637         * lib/unictype/pr_ideographic.h: Likewise.
6638         * lib/unictype/pr_lowercase.h: Likewise.
6639         * lib/unictype/pr_math.h: Likewise.
6640         * lib/unictype/pr_numeric.h: Likewise.
6641         * lib/unictype/pr_other_alphabetic.h: Likewise.
6642         * lib/unictype/pr_other_id_continue.h: Likewise.
6643         * lib/unictype/pr_other_math.h: Likewise.
6644         * lib/unictype/pr_punctuation.h: Likewise.
6645         * lib/unictype/pr_sentence_terminal.h: Likewise.
6646         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6647         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6648         * lib/unictype/pr_unified_ideograph.h: Likewise.
6649         * lib/unictype/pr_uppercase.h: Likewise.
6650         * lib/unictype/pr_xid_continue.h: Likewise.
6651         * lib/unictype/pr_xid_start.h: Likewise.
6652         * lib/unictype/scripts.h: Likewise.
6653         * lib/unictype/scripts_byname.gperf: Likewise.
6654         * lib/unictype/sy_java_ident.h: Likewise.
6655         * lib/unigbrk/gbrkprop.h: Likewise.
6656         * lib/unilbrk/lbrkprop1.h: Likewise.
6657         * lib/unilbrk/lbrkprop2.h: Likewise.
6658         * lib/uninorm/decomposition-table2.h: Likewise.
6659         * lib/uniwbrk/wbrkprop.h: Likewise.
6660         * tests/unicase/test-cased.c: Likewise.
6661         * tests/unicase/test-ignorable.c: Likewise.
6662         * tests/unicase/test-uc_tolower.c: Likewise.
6663         * tests/unicase/test-uc_totitle.c: Likewise.
6664         * tests/unicase/test-uc_toupper.c: Likewise.
6665         * tests/unictype/test-categ_C.c: Likewise.
6666         * tests/unictype/test-categ_Cn.c: Likewise.
6667         * tests/unictype/test-categ_L.c: Likewise.
6668         * tests/unictype/test-categ_Ll.c: Likewise.
6669         * tests/unictype/test-categ_Lm.c: Likewise.
6670         * tests/unictype/test-categ_Lo.c: Likewise.
6671         * tests/unictype/test-categ_Lu.c: Likewise.
6672         * tests/unictype/test-categ_M.c: Likewise.
6673         * tests/unictype/test-categ_Mc.c: Likewise.
6674         * tests/unictype/test-categ_Me.c: Likewise.
6675         * tests/unictype/test-categ_Mn.c: Likewise.
6676         * tests/unictype/test-categ_N.c: Likewise.
6677         * tests/unictype/test-categ_Nd.c: Likewise.
6678         * tests/unictype/test-categ_No.c: Likewise.
6679         * tests/unictype/test-categ_P.c: Likewise.
6680         * tests/unictype/test-categ_Po.c: Likewise.
6681         * tests/unictype/test-categ_S.c: Likewise.
6682         * tests/unictype/test-categ_Sc.c: Likewise.
6683         * tests/unictype/test-categ_Sk.c: Likewise.
6684         * tests/unictype/test-categ_Sm.c: Likewise.
6685         * tests/unictype/test-categ_So.c: Likewise.
6686         * tests/unictype/test-ctype_alnum.c: Likewise.
6687         * tests/unictype/test-ctype_alpha.c: Likewise.
6688         * tests/unictype/test-ctype_graph.c: Likewise.
6689         * tests/unictype/test-ctype_lower.c: Likewise.
6690         * tests/unictype/test-ctype_print.c: Likewise.
6691         * tests/unictype/test-ctype_punct.c: Likewise.
6692         * tests/unictype/test-ctype_upper.c: Likewise.
6693         * tests/unictype/test-decdigit.h: Likewise.
6694         * tests/unictype/test-digit.h: Likewise.
6695         * tests/unictype/test-numeric.h: Likewise.
6696         * tests/unictype/test-pr_alphabetic.c: Likewise.
6697         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6698         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6699         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6700         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6701         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6702         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6703         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6704         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6705         * tests/unictype/test-pr_case_ignorable.c: Likewise.
6706         * tests/unictype/test-pr_cased.c: Likewise.
6707         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
6708         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
6709         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
6710         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
6711         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
6712         * tests/unictype/test-pr_combining.c: Likewise.
6713         * tests/unictype/test-pr_composite.c: Likewise.
6714         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6715         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6716         * tests/unictype/test-pr_deprecated.c: Likewise.
6717         * tests/unictype/test-pr_format_control.c: Likewise.
6718         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6719         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6720         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6721         * tests/unictype/test-pr_id_continue.c: Likewise.
6722         * tests/unictype/test-pr_id_start.c: Likewise.
6723         * tests/unictype/test-pr_ideographic.c: Likewise.
6724         * tests/unictype/test-pr_lowercase.c: Likewise.
6725         * tests/unictype/test-pr_math.c: Likewise.
6726         * tests/unictype/test-pr_numeric.c: Likewise.
6727         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6728         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6729         * tests/unictype/test-pr_other_math.c: Likewise.
6730         * tests/unictype/test-pr_punctuation.c: Likewise.
6731         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6732         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6733         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6734         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6735         * tests/unictype/test-pr_uppercase.c: Likewise.
6736         * tests/unictype/test-pr_xid_continue.c: Likewise.
6737         * tests/unictype/test-pr_xid_start.c: Likewise.
6738         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6739         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6740         changes.
6741         * lib/unictype/categ_Cc.h: Likewise.
6742         * lib/unictype/categ_Cf.h: Likewise.
6743         * lib/unictype/categ_Co.h: Likewise.
6744         * lib/unictype/categ_Cs.h: Likewise.
6745         * lib/unictype/categ_Lt.h: Likewise.
6746         * lib/unictype/categ_Nl.h: Likewise.
6747         * lib/unictype/categ_Pc.h: Likewise.
6748         * lib/unictype/categ_Pd.h: Likewise.
6749         * lib/unictype/categ_Pe.h: Likewise.
6750         * lib/unictype/categ_Pf.h: Likewise.
6751         * lib/unictype/categ_Pi.h: Likewise.
6752         * lib/unictype/categ_Ps.h: Likewise.
6753         * lib/unictype/categ_Z.h: Likewise.
6754         * lib/unictype/categ_Zl.h: Likewise.
6755         * lib/unictype/categ_Zp.h: Likewise.
6756         * lib/unictype/categ_Zs.h: Likewise.
6757         * lib/unictype/ctype_blank.h: Likewise.
6758         * lib/unictype/ctype_cntrl.h: Likewise.
6759         * lib/unictype/ctype_digit.h: Likewise.
6760         * lib/unictype/ctype_space.h: Likewise.
6761         * lib/unictype/ctype_xdigit.h: Likewise.
6762         * lib/unictype/mirror.h: Likewise.
6763         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6764         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6765         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6766         * lib/unictype/pr_bidi_control.h: Likewise.
6767         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6768         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6769         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6770         * lib/unictype/pr_bidi_pdf.h: Likewise.
6771         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6772         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6773         * lib/unictype/pr_dash.h: Likewise.
6774         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6775         * lib/unictype/pr_diacritic.h: Likewise.
6776         * lib/unictype/pr_extender.h: Likewise.
6777         * lib/unictype/pr_hex_digit.h: Likewise.
6778         * lib/unictype/pr_hyphen.h: Likewise.
6779         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6780         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6781         * lib/unictype/pr_ignorable_control.h: Likewise.
6782         * lib/unictype/pr_iso_control.h: Likewise.
6783         * lib/unictype/pr_join_control.h: Likewise.
6784         * lib/unictype/pr_left_of_pair.h: Likewise.
6785         * lib/unictype/pr_line_separator.h: Likewise.
6786         * lib/unictype/pr_logical_order_exception.h: Likewise.
6787         * lib/unictype/pr_non_break.h: Likewise.
6788         * lib/unictype/pr_not_a_character.h: Likewise.
6789         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6790         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6791         * lib/unictype/pr_other_id_start.h: Likewise.
6792         * lib/unictype/pr_other_lowercase.h: Likewise.
6793         * lib/unictype/pr_other_uppercase.h: Likewise.
6794         * lib/unictype/pr_paired_punctuation.h: Likewise.
6795         * lib/unictype/pr_paragraph_separator.h: Likewise.
6796         * lib/unictype/pr_pattern_syntax.h: Likewise.
6797         * lib/unictype/pr_pattern_white_space.h: Likewise.
6798         * lib/unictype/pr_private_use.h: Likewise.
6799         * lib/unictype/pr_quotation_mark.h: Likewise.
6800         * lib/unictype/pr_radical.h: Likewise.
6801         * lib/unictype/pr_soft_dotted.h: Likewise.
6802         * lib/unictype/pr_space.h: Likewise.
6803         * lib/unictype/pr_titlecase.h: Likewise.
6804         * lib/unictype/pr_variation_selector.h: Likewise.
6805         * lib/unictype/pr_white_space.h: Likewise.
6806         * lib/unictype/pr_zero_width.h: Likewise.
6807         * lib/unictype/sy_c_ident.h: Likewise.
6808         * lib/unictype/sy_c_whitespace.h: Likewise.
6809         * lib/unictype/sy_java_whitespace.h: Likewise.
6810         * lib/uninorm/composition-table.gperf: Likewise.
6811         * lib/uninorm/decomposition-table1.h: Likewise.
6812         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
6813         LB8.
6814         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6815         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6816         * modules/unictype/*: Bump version number of expected libunistring
6817         version.
6818
6819 2011-01-09  Bruno Haible  <bruno@clisp.org>
6820
6821         Update to Unicode 5.2.0.
6822         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
6823         trailing whitespace removed.
6824
6825 2011-01-09  Bruno Haible  <bruno@clisp.org>
6826
6827         New Unicode character properties, from Unicode 5.2.0.
6828         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
6829         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
6830         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
6831         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
6832         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
6833         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
6834         uc_is_property_cased, uc_is_property_case_ignorable,
6835         uc_is_property_changes_when_lowercased,
6836         uc_is_property_changes_when_uppercased,
6837         uc_is_property_changes_when_titlecased,
6838         uc_is_property_changes_when_casefolded,
6839         uc_is_property_changes_when_casemapped): New declarations.
6840         * lib/unictype/pr_byname.gperf: Add the new properties.
6841         * modules/unictype/property-byname (Depends-on): Depend on the new
6842         properties modules.
6843         * modules/unictype/property-all (Depends-on): Likewise.
6844         * MODULES.html.sh (Unicode string functions): Add
6845         unictype/property-case-ignorable, unictype/property-cased,
6846         unictype/property-changes-when-casefolded,
6847         unictype/property-changes-when-casemapped,
6848         unictype/property-changes-when-lowercased,
6849         unictype/property-changes-when-titlecased,
6850         unictype/property-changes-when-uppercased.
6851
6852         New module 'unictype/property-changes-when-casemapped'.
6853         * modules/unictype/property-changes-when-casemapped: New file.
6854         * lib/unictype/pr_changes_when_casemapped.c: New file.
6855         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
6856         generated by gen-uni-tables.
6857         * modules/unictype/property-changes-when-casemapped-tests: New file.
6858         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
6859         automatically generated by gen-uni-tables.
6860
6861         New module 'unictype/property-changes-when-casefolded'.
6862         * modules/unictype/property-changes-when-casefolded: New file.
6863         * lib/unictype/pr_changes_when_casefolded.c: New file.
6864         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
6865         generated by gen-uni-tables.
6866         * modules/unictype/property-changes-when-casefolded-tests: New file.
6867         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
6868         automatically generated by gen-uni-tables.
6869
6870         New module 'unictype/property-changes-when-titlecased'.
6871         * modules/unictype/property-changes-when-titlecased: New file.
6872         * lib/unictype/pr_changes_when_titlecased.c: New file.
6873         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
6874         generated by gen-uni-tables.
6875         * modules/unictype/property-changes-when-titlecased-tests: New file.
6876         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
6877         automatically generated by gen-uni-tables.
6878
6879         New module 'unictype/property-changes-when-uppercased'.
6880         * modules/unictype/property-changes-when-uppercased: New file.
6881         * lib/unictype/pr_changes_when_uppercased.c: New file.
6882         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
6883         generated by gen-uni-tables.
6884         * modules/unictype/property-changes-when-uppercased-tests: New file.
6885         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
6886         automatically generated by gen-uni-tables.
6887
6888         New module 'unictype/property-changes-when-lowercased'.
6889         * modules/unictype/property-changes-when-lowercased: New file.
6890         * lib/unictype/pr_changes_when_lowercased.c: New file.
6891         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
6892         generated by gen-uni-tables.
6893         * modules/unictype/property-changes-when-lowercased-tests: New file.
6894         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
6895         automatically generated by gen-uni-tables.
6896
6897         New module 'unictype/property-case-ignorable'.
6898         * modules/unictype/property-case-ignorable: New file.
6899         * lib/unictype/pr_case_ignorable.c: New file.
6900         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
6901         by gen-uni-tables.
6902         * modules/unictype/property-case-ignorable-tests: New file.
6903         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
6904         generated by gen-uni-tables.
6905
6906         New module 'unictype/property-cased'.
6907         * modules/unictype/property-cased: New file.
6908         * lib/unictype/pr_cased.c: New file.
6909         * lib/unictype/pr_cased.h: New file, automatically generated by
6910         gen-uni-tables.
6911         * modules/unictype/property-cased-tests: New file.
6912         * tests/unictype/test-pr_cased.c: New file, automatically generated by
6913         gen-uni-tables.
6914
6915 2011-01-09  Bruno Haible  <bruno@clisp.org>
6916
6917         Update to Unicode 5.2.0.
6918         * lib/gen-uni-tables.c (output_predicate, output_category,
6919         output_combclass, output_bidi_category, output_decimal_digit_test,
6920         output_decimal_digit, output_digit_test, output_digit,
6921         output_numeric_test, output_numeric, output_mirror, output_scripts,
6922         output_scripts_byname, output_blocks, output_ident_category): Fix
6923         comment header.
6924         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
6925         get_wbp.
6926         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
6927         items.
6928         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
6929         Changes_When_Lowercased, Changes_When_Uppercased,
6930         Changes_When_Titlecased, Changes_When_Casefolded,
6931         Changes_When_Casemapped.
6932         (is_property_alphabetic, is_property_default_ignorable_code_point):
6933         Update for Unicode 5.2.0.
6934         (is_property_cased, is_property_case_ignorable,
6935         is_property_changes_when_lowercased,
6936         is_property_changes_when_uppercased,
6937         is_property_changes_when_titlecased,
6938         is_property_changes_when_casefolded,
6939         is_property_changes_when_casemapped): New functions.
6940         (output_properties): Output also the properties cased, case_ignorable,
6941         changes_when_lowercased, changes_when_uppercased,
6942         changes_when_titlecased, changes_when_casefolded,
6943         changes_when_casemapped.
6944         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
6945         Unicode TR#11 revision 17 -> 19.
6946         (LBP_CP): New enumeration value.
6947         (LBP_*): Adjust values accordingly.
6948         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6949         TR#14 revision 22 -> 24.
6950         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
6951         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
6952         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6953         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
6954         is_WBP_MIDLETTER.
6955         (output_composition_tables): Allow for 24 bits instead of 16 bits in
6956         the code1 and code2 of each composition rule.
6957         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
6958         * lib/unicase/ignorable.h: Likewise.
6959         * lib/unicase/tocasefold.h: Likewise.
6960         * lib/unicase/tolower.h: Likewise.
6961         * lib/unicase/totitle.h: Likewise.
6962         * lib/unicase/toupper.h: Likewise.
6963         * lib/unictype/bidi_of.h: Likewise.
6964         * lib/unictype/blocks.h: Likewise.
6965         * lib/unictype/categ_C.h: Likewise.
6966         * lib/unictype/categ_Cf.h: Likewise.
6967         * lib/unictype/categ_Cn.h: Likewise.
6968         * lib/unictype/categ_L.h: Likewise.
6969         * lib/unictype/categ_Ll.h: Likewise.
6970         * lib/unictype/categ_Lm.h: Likewise.
6971         * lib/unictype/categ_Lo.h: Likewise.
6972         * lib/unictype/categ_Lu.h: Likewise.
6973         * lib/unictype/categ_M.h: Likewise.
6974         * lib/unictype/categ_Mc.h: Likewise.
6975         * lib/unictype/categ_Mn.h: Likewise.
6976         * lib/unictype/categ_N.h: Likewise.
6977         * lib/unictype/categ_Nd.h: Likewise.
6978         * lib/unictype/categ_Nl.h: Likewise.
6979         * lib/unictype/categ_No.h: Likewise.
6980         * lib/unictype/categ_P.h: Likewise.
6981         * lib/unictype/categ_Pd.h: Likewise.
6982         * lib/unictype/categ_Po.h: Likewise.
6983         * lib/unictype/categ_S.h: Likewise.
6984         * lib/unictype/categ_Sc.h: Likewise.
6985         * lib/unictype/categ_So.h: Likewise.
6986         * lib/unictype/categ_of.h: Likewise.
6987         * lib/unictype/combining.h: Likewise.
6988         * lib/unictype/ctype_alnum.h: Likewise.
6989         * lib/unictype/ctype_alpha.h: Likewise.
6990         * lib/unictype/ctype_graph.h: Likewise.
6991         * lib/unictype/ctype_lower.h: Likewise.
6992         * lib/unictype/ctype_print.h: Likewise.
6993         * lib/unictype/ctype_punct.h: Likewise.
6994         * lib/unictype/ctype_upper.h: Likewise.
6995         * lib/unictype/decdigit.h: Likewise.
6996         * lib/unictype/digit.h: Likewise.
6997         * lib/unictype/numeric.h: Likewise.
6998         * lib/unictype/pr_alphabetic.h: Likewise.
6999         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7000         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7001         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7002         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7003         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7004         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7005         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7006         * lib/unictype/pr_combining.h: Likewise.
7007         * lib/unictype/pr_composite.h: Likewise.
7008         * lib/unictype/pr_currency_symbol.h: Likewise.
7009         * lib/unictype/pr_dash.h: Likewise.
7010         * lib/unictype/pr_decimal_digit.h: Likewise.
7011         * lib/unictype/pr_deprecated.h: Likewise.
7012         * lib/unictype/pr_diacritic.h: Likewise.
7013         * lib/unictype/pr_extender.h: Likewise.
7014         * lib/unictype/pr_grapheme_base.h: Likewise.
7015         * lib/unictype/pr_grapheme_extend.h: Likewise.
7016         * lib/unictype/pr_grapheme_link.h: Likewise.
7017         * lib/unictype/pr_id_continue.h: Likewise.
7018         * lib/unictype/pr_id_start.h: Likewise.
7019         * lib/unictype/pr_ideographic.h: Likewise.
7020         * lib/unictype/pr_ignorable_control.h: Likewise.
7021         * lib/unictype/pr_logical_order_exception.h: Likewise.
7022         * lib/unictype/pr_lowercase.h: Likewise.
7023         * lib/unictype/pr_numeric.h: Likewise.
7024         * lib/unictype/pr_other_alphabetic.h: Likewise.
7025         * lib/unictype/pr_punctuation.h: Likewise.
7026         * lib/unictype/pr_sentence_terminal.h: Likewise.
7027         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7028         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7029         * lib/unictype/pr_unified_ideograph.h: Likewise.
7030         * lib/unictype/pr_uppercase.h: Likewise.
7031         * lib/unictype/pr_xid_continue.h: Likewise.
7032         * lib/unictype/pr_xid_start.h: Likewise.
7033         * lib/unictype/pr_zero_width.h: Likewise.
7034         * lib/unictype/scripts.h: Likewise.
7035         * lib/unictype/scripts_byname.gperf: Likewise.
7036         * lib/unictype/sy_java_ident.h: Likewise.
7037         * lib/unigbrk/gbrkprop.h: Likewise.
7038         * lib/unilbrk/lbrkprop1.h: Likewise.
7039         * lib/unilbrk/lbrkprop2.h: Likewise.
7040         * lib/unilbrk/lbrktables.h: Likewise.
7041         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
7042         LBP_CP. Implement rule LB30.
7043         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
7044         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
7045         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
7046         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
7047         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
7048         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
7049         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
7050         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
7051         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
7052         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
7053         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
7054         bits instead of 16 bits in the code1 and code2 of each composition
7055         rule.
7056         (uc_composition): Update for Unicode 5.2.0.
7057         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
7058         * lib/uninorm/decomposition-table2.h: Likewise.
7059         * lib/uniwbrk/wbrkprop.h: Likewise.
7060         * tests/unicase/test-cased.c: Likewise.
7061         * tests/unicase/test-ignorable.c: Likewise.
7062         * tests/unicase/test-uc_tolower.c: Likewise.
7063         * tests/unicase/test-uc_totitle.c: Likewise.
7064         * tests/unicase/test-uc_toupper.c: Likewise.
7065         * tests/unictype/test-categ_C.c: Likewise.
7066         * tests/unictype/test-categ_Cf.c: Likewise.
7067         * tests/unictype/test-categ_Cn.c: Likewise.
7068         * tests/unictype/test-categ_L.c: Likewise.
7069         * tests/unictype/test-categ_Ll.c: Likewise.
7070         * tests/unictype/test-categ_Lm.c: Likewise.
7071         * tests/unictype/test-categ_Lo.c: Likewise.
7072         * tests/unictype/test-categ_Lu.c: Likewise.
7073         * tests/unictype/test-categ_M.c: Likewise.
7074         * tests/unictype/test-categ_Mc.c: Likewise.
7075         * tests/unictype/test-categ_Mn.c: Likewise.
7076         * tests/unictype/test-categ_N.c: Likewise.
7077         * tests/unictype/test-categ_Nd.c: Likewise.
7078         * tests/unictype/test-categ_Nl.c: Likewise.
7079         * tests/unictype/test-categ_No.c: Likewise.
7080         * tests/unictype/test-categ_P.c: Likewise.
7081         * tests/unictype/test-categ_Pd.c: Likewise.
7082         * tests/unictype/test-categ_Po.c: Likewise.
7083         * tests/unictype/test-categ_S.c: Likewise.
7084         * tests/unictype/test-categ_Sc.c: Likewise.
7085         * tests/unictype/test-categ_So.c: Likewise.
7086         * tests/unictype/test-ctype_alnum.c: Likewise.
7087         * tests/unictype/test-ctype_alpha.c: Likewise.
7088         * tests/unictype/test-ctype_graph.c: Likewise.
7089         * tests/unictype/test-ctype_lower.c: Likewise.
7090         * tests/unictype/test-ctype_print.c: Likewise.
7091         * tests/unictype/test-ctype_punct.c: Likewise.
7092         * tests/unictype/test-ctype_upper.c: Likewise.
7093         * tests/unictype/test-decdigit.h: Likewise.
7094         * tests/unictype/test-digit.h: Likewise.
7095         * tests/unictype/test-numeric.h: Likewise.
7096         * tests/unictype/test-pr_alphabetic.c: Likewise.
7097         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7098         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7099         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7100         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7101         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7102         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7103         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7104         * tests/unictype/test-pr_combining.c: Likewise.
7105         * tests/unictype/test-pr_composite.c: Likewise.
7106         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7107         * tests/unictype/test-pr_dash.c: Likewise.
7108         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7109         * tests/unictype/test-pr_deprecated.c: Likewise.
7110         * tests/unictype/test-pr_diacritic.c: Likewise.
7111         * tests/unictype/test-pr_extender.c: Likewise.
7112         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7113         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7114         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7115         * tests/unictype/test-pr_id_continue.c: Likewise.
7116         * tests/unictype/test-pr_id_start.c: Likewise.
7117         * tests/unictype/test-pr_ideographic.c: Likewise.
7118         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7119         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7120         * tests/unictype/test-pr_lowercase.c: Likewise.
7121         * tests/unictype/test-pr_numeric.c: Likewise.
7122         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7123         * tests/unictype/test-pr_punctuation.c: Likewise.
7124         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7125         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7126         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7127         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7128         * tests/unictype/test-pr_uppercase.c: Likewise.
7129         * tests/unictype/test-pr_xid_continue.c: Likewise.
7130         * tests/unictype/test-pr_xid_start.c: Likewise.
7131         * tests/unictype/test-pr_zero_width.c: Likewise.
7132         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7133         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
7134         changed behaviour: line breaking is now disallowed between a letter
7135         or '=' and '('.
7136         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7137         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7138         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7139         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
7140         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7141         lib/uniwidth/width.c.
7142         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
7143         without comments, but with the original copyright notice.
7144         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7145         changes.
7146         * lib/unictype/categ_Cc.h: Likewise.
7147         * lib/unictype/categ_Co.h: Likewise.
7148         * lib/unictype/categ_Cs.h: Likewise.
7149         * lib/unictype/categ_Lt.h: Likewise.
7150         * lib/unictype/categ_Me.h: Likewise.
7151         * lib/unictype/categ_Pc.h: Likewise.
7152         * lib/unictype/categ_Pe.h: Likewise.
7153         * lib/unictype/categ_Pf.h: Likewise.
7154         * lib/unictype/categ_Pi.h: Likewise.
7155         * lib/unictype/categ_Ps.h: Likewise.
7156         * lib/unictype/categ_Sk.h: Likewise.
7157         * lib/unictype/categ_Sm.h: Likewise.
7158         * lib/unictype/categ_Z.h: Likewise.
7159         * lib/unictype/categ_Zl.h: Likewise.
7160         * lib/unictype/categ_Zp.h: Likewise.
7161         * lib/unictype/categ_Zs.h: Likewise.
7162         * lib/unictype/ctype_blank.h: Likewise.
7163         * lib/unictype/ctype_cntrl.h: Likewise.
7164         * lib/unictype/ctype_digit.h: Likewise.
7165         * lib/unictype/ctype_space.h: Likewise.
7166         * lib/unictype/ctype_xdigit.h: Likewise.
7167         * lib/unictype/mirror.h: Likewise.
7168         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7169         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7170         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7171         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7172         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7173         * lib/unictype/pr_bidi_control.h: Likewise.
7174         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7175         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7176         * lib/unictype/pr_bidi_pdf.h: Likewise.
7177         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7178         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7179         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7180         * lib/unictype/pr_format_control.h: Likewise.
7181         * lib/unictype/pr_hex_digit.h: Likewise.
7182         * lib/unictype/pr_hyphen.h: Likewise.
7183         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7184         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7185         * lib/unictype/pr_iso_control.h: Likewise.
7186         * lib/unictype/pr_join_control.h: Likewise.
7187         * lib/unictype/pr_left_of_pair.h: Likewise.
7188         * lib/unictype/pr_line_separator.h: Likewise.
7189         * lib/unictype/pr_math.h: Likewise.
7190         * lib/unictype/pr_non_break.h: Likewise.
7191         * lib/unictype/pr_not_a_character.h: Likewise.
7192         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7193         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7194         * lib/unictype/pr_other_id_continue.h: Likewise.
7195         * lib/unictype/pr_other_id_start.h: Likewise.
7196         * lib/unictype/pr_other_lowercase.h: Likewise.
7197         * lib/unictype/pr_other_math.h: Likewise.
7198         * lib/unictype/pr_other_uppercase.h: Likewise.
7199         * lib/unictype/pr_paired_punctuation.h: Likewise.
7200         * lib/unictype/pr_paragraph_separator.h: Likewise.
7201         * lib/unictype/pr_pattern_syntax.h: Likewise.
7202         * lib/unictype/pr_pattern_white_space.h: Likewise.
7203         * lib/unictype/pr_private_use.h: Likewise.
7204         * lib/unictype/pr_quotation_mark.h: Likewise.
7205         * lib/unictype/pr_radical.h: Likewise.
7206         * lib/unictype/pr_soft_dotted.h: Likewise.
7207         * lib/unictype/pr_space.h: Likewise.
7208         * lib/unictype/pr_titlecase.h: Likewise.
7209         * lib/unictype/pr_variation_selector.h: Likewise.
7210         * lib/unictype/pr_white_space.h: Likewise.
7211         * lib/unictype/sy_c_ident.h: Likewise.
7212         * lib/unictype/sy_c_whitespace.h: Likewise.
7213         * lib/unictype/sy_java_whitespace.h: Likewise.
7214         * modules/uni*/*: Bump version number of expected libunistring version.
7215         Reported by Simon Josefsson.
7216
7217 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7218
7219         useless-if-before-free: fix typo in --help and make the internal,
7220         automatic version date update process work once again.
7221         --help output contained a NUL character instead of the
7222         backslash-zero that was intended.  Also, the "must lie within
7223         the first 8 lines" line is on line 9, and hence not getting
7224         automatically updated.
7225         * build-aux/useless-if-before-free: Fix the former by adding a
7226         backslash, and the latter by condensing the three lines of what-it-does
7227         to a single line, leaving one line of slack for the future.
7228
7229 2011-01-09  Bruno Haible  <bruno@clisp.org>
7230
7231         uniwidth/width: Fix width of U+1D173..U+1D17A.
7232         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7233         symbolic_width, output_width_property_test): New functions.
7234         (main): Invoke output_nonspacing_property, output_width_property_test.
7235         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7236         U+1D173..U+1D17A.
7237         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7238         1.
7239         * modules/uniwidth/*: Bump version number of expected libunistring
7240         version.
7241         * modules/unilbrk/*: Likewise.
7242
7243 2011-01-08  Bruno Haible  <bruno@clisp.org>
7244
7245         uninorm tests: Preserve copyright of Unicode data file.
7246         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7247         Mention modifications.
7248
7249 2011-01-08  Bruno Haible  <bruno@clisp.org>
7250
7251         gen-uni-tables: Prepare for Unicode 5.2.0.
7252         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7253         (debug_output_lbp, output_lbp): Update.
7254
7255 2011-01-08  Bruno Haible  <bruno@clisp.org>
7256
7257         unilbrk: Clarify gen-uni-tables.c code.
7258         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7259         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7260         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7261
7262 2011-01-07  Bruno Haible  <bruno@clisp.org>
7263
7264         strtod: Restore errno when successfully parsing Infinity or NaN.
7265         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
7266         restore the original errno.
7267
7268 2011-01-07  Bruno Haible  <bruno@clisp.org>
7269
7270         remove test: Avoid failure on HP-UX 11.
7271         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
7272
7273 2011-01-07  Bruno Haible  <bruno@clisp.org>
7274
7275         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
7276         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
7277         error code.
7278
7279 2011-01-07  Pádraig Brady <P@draigBrady.com>
7280
7281         ignore-value: fixup comments, and add Eric Blake
7282         as an author since he rewrote the macros.
7283         * lib/ignore-value.h (ignore_value):  State that
7284         we now support aggregates.  Also specify exactly
7285         when the GCC warn_unused_result feature was added.
7286
7287 2011-01-06  Eric Blake  <eblake@redhat.com>
7288
7289         ignore-value: support aggregate types
7290         * lib/ignore-value.h (ignore_value): Provide separate gcc
7291         definition.
7292         * modules/ignore-value-tests: New test module.
7293         * tests/test-ignore-value.c: New test.
7294
7295         maint.mk: improve sc_prohibit_strcmp regex
7296         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
7297         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
7298         definition of STRNEQ.
7299
7300         signal: work around Haiku issue with SIGBUS
7301         * lib/siglist.h: Add comment.
7302         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
7303         strsignal's favoring of SIGSEGV.
7304         * tests/test-signal.c (main): Avoid test failure.
7305         * doc/posix-headers/signal.texi (signal.h): Document the issue.
7306         Reported by Scott McCreary.
7307
7308         maint.mk: add pre-release check to ensure submodule commits are public
7309         * top/maint.mk (public-submodule-commit): New rule.
7310         (submodule-checks): New variable.
7311         (alpha beta stable): Depend on the variable.
7312
7313 2011-01-05  Pádraig Brady <P@draigBrady.com>
7314         and Jim Meyering  <meyering@redhat.com>
7315
7316         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7317         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
7318         (ATTRIBUTE_DEPRECATED): Define.
7319         (_ignore_case): New function.
7320         (ignore_value): New macro, to replace the old function.
7321         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7322         * modules/ignore-value (Depends-on): Add stdint.
7323
7324 2011-01-04  Eric Blake  <eblake@redhat.com>
7325
7326         doc: regenerate INSTALL
7327         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7328         @firstparagraphindent support, now that autoconf dropped it.
7329         (INSTALL_PRELUDE): Reinstate old macro.
7330         * doc/install.texi: Resync from autoconf.
7331         * doc/INSTALL: Reflect recent autoconf update.
7332         * doc/INSTALL.ISO: Likewise.
7333         * doc/INSTALL.UTF-8: Likewise.
7334         Reported by Karl Berry.
7335
7336 2011-01-04  Bruce Korb  <address@hidden>
7337
7338         git-version-gen: avoid a sub-shell
7339         * build-aux/git-version-gen: Redirect stderr in `...` via
7340         "exec 2>...", rather than via an added sub-shell.
7341
7342 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7343
7344         git-version-gen: use (...) rather than sh -c '...'
7345         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7346         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7347
7348 2011-01-03  Jim Meyering  <meyering@redhat.com>
7349
7350         git-version-gen: convert leading TABs to spaces
7351         * build-aux/git-version-gen: Expand leading TABs.
7352
7353         git-version-gen: handle failed "git rev-list"
7354         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7355         from git and proceeding as if it had succeeded but printed no SHA1
7356         checksums, suppress the diagnostic and handle the failure.
7357         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7358
7359         git-version-gen: include command name in one more diagnostic
7360         * build-aux/git-version-gen: When the required .tarball-version file
7361         was missing or unreadable, you might see the diagnostic from "cat",
7362         but no trace of the name of the invoking script.  Now, you still see
7363         the diagnostic from cat, but also get one from "git-version-gen: ".
7364         Inspired by a patch from Bruce Korb.
7365
7366         update-copyright: adjust test to match changed code
7367         * tests/test-update-copyright.sh: Change test's expected output
7368         to match new actual output.
7369
7370 2011-01-02  Bruno Haible  <bruno@clisp.org>
7371
7372         getlogin_r: Avoid test failure on HP-UX 11.
7373         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7374         ERANGE when the second argument is zero.
7375         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7376         portability problem.
7377
7378 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7379
7380         * build-aux/update-copyright: doc Simon's changes
7381
7382 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7383
7384         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7385         environment variable.
7386
7387 2011-01-02  Bruno Haible  <bruno@clisp.org>
7388
7389         unigbrk: Avoid gcc warnings.
7390         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7391         unused variable.
7392         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7393         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7394         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7395         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7396         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7397         Change type of first argument to 'const char *'.
7398         (main): Remove unused variable.
7399         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7400         type of first argument to 'const char *'.
7401         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7402         Likewise.
7403         (main): Change type of variable 's'.
7404         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7405         to 'int'.
7406
7407 2011-01-02  Bruno Haible  <bruno@clisp.org>
7408
7409         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7410         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7411         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7412         bug.
7413         * lib/pwrite.c: Undo 2010-12-31 patch.
7414         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7415
7416 2011-01-02  Bruno Haible  <bruno@clisp.org>
7417
7418         pread: Fix test whether it works.
7419         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7420
7421 2011-01-02  Bruno Haible  <bruno@clisp.org>
7422
7423         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7424         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7425         ends in "6". Don't require a specific month name. Try also the locale
7426         names found on HP-UX 11 and Solaris 7.
7427
7428 2011-01-02  Bruno Haible  <bruno@clisp.org>
7429
7430         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7431         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7432         C linkage.
7433         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7434
7435 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7436
7437         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7438         for consistency, since the "cluster" term is not used elsewhere.
7439         * lib/unigbrk.in.h: Update name.
7440         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7441         * lib/unigbrk/u16-grapheme-next.c: Update name.
7442         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7443         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7444         * lib/unigbrk/u32-grapheme-next.c: Update name.
7445         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7446         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7447         * lib/unigbrk/u8-grapheme-next.c: Update name.
7448         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7449         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7450         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7451         Suggested by Bruno Haible.
7452
7453 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7454
7455         Remove module 'u8-grapheme-len' as too redundant with
7456         'u8-grapheme-next'.
7457         * modules/unigbrk/u8-grapheme-len: Delete file.
7458         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7459         * lib/unigbrk.in.h: Remove prototype for deleted function.
7460         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7461         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7462
7463         Remove module 'u16-grapheme-len' as too redundant with
7464         'u16-grapheme-next'.
7465         * modules/unigbrk/u16-grapheme-len: Delete file.
7466         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7467         * lib/unigbrk.in.h: Remove prototype for deleted function.
7468         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7469         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7470
7471         Remove module 'u32-grapheme-len' as too redundant with
7472         'u32-grapheme-next'.
7473         * modules/unigbrk/u32-grapheme-len: Delete file.
7474         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
7475         * lib/unigbrk.in.h: Remove prototype for deleted function.
7476         * lib/unigbrk/u32-grapheme-len.c: Delete file.
7477         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
7478
7479         Suggested by Bruno Haible.
7480
7481 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7482
7483         * unigbrk.in.h: Fix typo: "ben" => "been".
7484         Reported by Bruno Haible.
7485
7486 2011-01-01  Jim Meyering  <meyering@redhat.com>
7487
7488         maint: update almost all copyright ranges to include 2011
7489         Run the new "make update-copyright" rule.
7490
7491 2011-01-01  Jim Meyering  <meyering@redhat.com>
7492
7493         maint: update-copyright: exempt doc/INSTALL*
7494         * Makefile (update-copyright): Also exclude doc/INSTALL*,
7495         since they are generated.  Suggested by Bruno Haible.
7496
7497 2011-01-01  Jim Meyering  <meyering@redhat.com>
7498
7499         maint: refine the update-copyright rule
7500         * Makefile (update-copyright): Also exclude any file that includes
7501         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
7502         code that merely generates the comment.
7503
7504 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7505
7506         New module 'u8-grapheme-len'.
7507         * modules/unigbrk/u8-grapheme-len: New file.
7508         * modules/unigbrk/u8-grapheme-len-tests: New file.
7509         * lib/unigbrk.in.h: Add prototype for new function.
7510         * lib/unigbrk/u8-grapheme-len.c: New file.
7511         * tests/unigbrk/test-u8-grapheme-len.c: New file.
7512
7513         New module 'u16-grapheme-len'.
7514         * modules/unigbrk/u16-grapheme-len: New file.
7515         * modules/unigbrk/u16-grapheme-len-tests: New file.
7516         * lib/unigbrk.in.h: Add prototype for new function.
7517         * lib/unigbrk/u16-grapheme-len.c: New file.
7518         * tests/unigbrk/test-u16-grapheme-len.c: New file.
7519
7520         New module 'u32-grapheme-len'.
7521         * modules/unigbrk/u32-grapheme-len: New file.
7522         * modules/unigbrk/u32-grapheme-len-tests: New file.
7523         * lib/unigbrk.in.h: Add prototype for new function.
7524         * lib/unigbrk/u32-grapheme-len.c: New file.
7525         * tests/unigbrk/test-u32-grapheme-len.c: New file.
7526
7527         New module 'u8-grapheme-next'.
7528         * modules/unigbrk/u8-grapheme-next: New file.
7529         * modules/unigbrk/u8-grapheme-next-tests: New file.
7530         * lib/unigbrk.in.h: Add prototype for new function.
7531         * lib/unigbrk/u8-grapheme-next.c: New file.
7532         * tests/unigbrk/test-u8-grapheme-next.c: New file.
7533
7534         New module 'u16-grapheme-next'.
7535         * modules/unigbrk/u16-grapheme-next: New file.
7536         * modules/unigbrk/u16-grapheme-next-tests: New file.
7537         * lib/unigbrk.in.h: Add prototype for new function.
7538         * lib/unigbrk/u16-grapheme-next.c: New file.
7539         * tests/unigbrk/test-u16-grapheme-next.c: New file.
7540
7541         New module 'u32-grapheme-next'.
7542         * modules/unigbrk/u32-grapheme-next: New file.
7543         * modules/unigbrk/u32-grapheme-next-tests: New file.
7544         * lib/unigbrk.in.h: Add prototype for new function.
7545         * lib/unigbrk/u32-grapheme-next.c: New file.
7546         * tests/unigbrk/test-u32-grapheme-next.c: New file.
7547
7548         New module 'u8-grapheme-prev'.
7549         * modules/unigbrk/u8-grapheme-prev: New file.
7550         * modules/unigbrk/u8-grapheme-prev-tests: New file.
7551         * lib/unigbrk.in.h: Add prototype for new function.
7552         * lib/unigbrk/u8-grapheme-prev.c: New file.
7553         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
7554
7555         New module 'u16-grapheme-prev'.
7556         * modules/unigbrk/u16-grapheme-prev: New file.
7557         * modules/unigbrk/u16-grapheme-prev-tests: New file.
7558         * lib/unigbrk.in.h: Add prototype for new function.
7559         * lib/unigbrk/u16-grapheme-prev.c: New file.
7560         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
7561
7562         New module 'u32-grapheme-prev'.
7563         * modules/unigbrk/u32-grapheme-prev: New file.
7564         * modules/unigbrk/u32-grapheme-prev-tests: New file.
7565         * lib/unigbrk.in.h: Add prototype for new function.
7566         * lib/unigbrk/u32-grapheme-prev.c: New file.
7567         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
7568
7569         New module 'u8-grapheme-breaks'.
7570         * modules/unigbrk/u8-grapheme-breaks: New file.
7571         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
7572         * lib/unigbrk.in.h: Add prototype for new function.
7573         * lib/unigbrk/u8-grapheme-breaks.c: New file.
7574         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
7575
7576         New module 'u16-grapheme-breaks'.
7577         * modules/unigbrk/u16-grapheme-breaks: New file.
7578         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
7579         * lib/unigbrk.in.h: Add prototype for new function.
7580         * lib/unigbrk/u16-grapheme-breaks.c: New file.
7581         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
7582
7583         New module 'u32-grapheme-breaks'.
7584         * modules/unigbrk/u32-grapheme-breaks: New file.
7585         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
7586         * lib/unigbrk.in.h: Add prototype for new function.
7587         * lib/unigbrk/u32-grapheme-breaks.c: New file.
7588         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
7589
7590         New module 'ulc-grapheme-breaks'.
7591         * modules/unigbrk/ulc-grapheme-breaks: New file.
7592         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
7593         * m4/locale-ar.m4: New file.
7594         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
7595         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
7596         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
7597
7598 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7599
7600         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
7601         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
7602         modified how this file was generated before I initially submitted
7603         the module, but failed to regenerate it.  This meant that several
7604         of the level2 entries were wrong.
7605         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
7606         Remove the division-by-2 that is folded into the table now that
7607         gbrkprop.h has been regenerated properly.  Now -1 entries are
7608         handled correctly.
7609
7610         New module 'unigbrk/uc-gbrk-prop-tests'.
7611         * modules/unigbrk/uc-gbrk-prop-tests: New file.
7612         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
7613         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
7614         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
7615
7616 2011-01-01  Bruno Haible  <bruno@clisp.org>
7617
7618         Avoid use of hexadecimal escapes.
7619         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
7620         instead of hexadecimal escapes.
7621
7622 2011-01-01  Jim Meyering  <meyering@redhat.com>
7623
7624         maint: new rule to update copyright year ranges
7625         * Makefile (update-copyright): New rule.
7626
7627         maint: indent with TABs in Makefile
7628         * Makefile: Expand leading sequences of spaces to TABs
7629
7630         version-etc: update the copyright year it reports
7631         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
7632
7633 2010-12-31  Bruno Haible  <bruno@clisp.org>
7634
7635         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
7636         * lib/isfinite.c (zerof, zerod, zerol): New variables.
7637         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
7638         zero.
7639
7640 2010-12-31  Bruno Haible  <bruno@clisp.org>
7641
7642         pwrite: Work around HP-UX 11.11 bug.
7643         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
7644         works and set REPLACE_PWRITE if not.
7645         * lib/pwrite.c (pwrite): Add an implementation that uses the system
7646         function.
7647         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
7648
7649 2010-12-31  Bruno Haible  <bruno@clisp.org>
7650
7651         pread: Work around HP-UX 11 bugs.
7652         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
7653         and set REPLACE_PREAD if not.
7654         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
7655
7656 2010-12-31  Eric Blake  <eblake@redhat.com>
7657
7658         nl_langinfo: fix YESEXPR on Irix 6.5
7659         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
7660         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
7661         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
7662         it.
7663
7664 2010-12-31  Bruno Haible  <bruno@clisp.org>
7665
7666         iconv: Document HP-UX 11 bug.
7667         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
7668
7669 2010-12-31  Bruno Haible  <bruno@clisp.org>
7670
7671         ldexpl: Fix link error on HP-UX 11.
7672         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
7673         LDEXPL_LIBM, using $ISNANL_LIBM.
7674
7675 2010-12-31  Eric Blake  <eblake@redhat.com>
7676
7677         ftello: avoid compilation failure with SunStudio c89
7678         * lib/ftello.c (ftello): Use lseek, not llseek.
7679
7680         tests: avoid failing coreutils tests on cygwin
7681         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
7682         (create_exe_shims_): Return 0 when skipping.
7683
7684 2010-12-31  Bruno Haible  <bruno@clisp.org>
7685
7686         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
7687         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
7688
7689 2010-12-31  Bruno Haible  <bruno@clisp.org>
7690
7691         waitpid: Fix link error in C++ mode.
7692         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
7693
7694 2010-12-31  Bruno Haible  <bruno@clisp.org>
7695
7696         isnan: Use GCC built-ins when possible.
7697         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
7698         __builtin_isnan.
7699         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
7700         (isnan): Define using GCC built-ins for GCC >= 4.0.
7701
7702 2010-12-31  Bruno Haible  <bruno@clisp.org>
7703
7704         isnand: Fix mistake.
7705         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
7706         __builtin_isnand.
7707
7708 2010-12-31  Bruno Haible  <bruno@clisp.org>
7709
7710         open: Avoid C++ error on HP-UX 11.
7711         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
7712
7713 2010-12-31  Bruno Haible  <bruno@clisp.org>
7714
7715         time_r: Add missing declarations on HP-UX 11.
7716         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
7717         instead of HAVE_LOCALTIME_R.
7718         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
7719         HAVE_LOCALTIME_R always.
7720         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
7721         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
7722         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
7723         HAVE_LOCALTIME_R.
7724         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
7725         * doc/posix-functions/localtime_r.texi: Likewise.
7726
7727 2010-12-29  Eric Blake  <eblake@redhat.com>
7728
7729         mountlist: tweak previous commit
7730         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
7731         Reported by Paul Eggert.
7732
7733         mountlist: fix local drive detection on cygwin
7734         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
7735         that works for cygwin.
7736
7737 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7738
7739         ftoastr, snprintf: ftoastr + snprintf module
7740         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
7741         since the snprintf module now should be good enough here.
7742         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
7743         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
7744         and gl_MODULE_INDICATOR([snprintf]), but the former enables
7745         GNULIB_SNPRINTF only for the test directory, and the latter
7746         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
7747         seems to suffice by itself.
7748
7749 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7750
7751         alloca: one step towards thread-safety
7752         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
7753         need for a static variable.  All callers changed.  This does not
7754         make the alloca replacement thread-safe, but it's one step.
7755
7756         tests: minor indenting change
7757         * tests/init.sh: Sync from coreutils housekeeping patch
7758         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
7759         to keep lines within 80 columns.
7760
7761 2010-12-28  Jim Meyering  <meyering@redhat.com>
7762
7763         regex: don't infloop on persistent failing calloc
7764         * lib/regexec.c (build_trtable): Return failure indication upon
7765         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
7766         In glibc, this was fixed for version 2.13:
7767         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
7768
7769 2010-12-28  Bruno Haible  <bruno@clisp.org>
7770             Paul Eggert <eggert@cs.ucla.edu>
7771
7772         linkat: Make implementation robust against system behaviour variations.
7773         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
7774         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
7775         way, and to -2 if it needs a generic runtime test.
7776         * lib/linkat.c (solaris_optimized_link_immediate,
7777         solaris_optimized_link_follow): New functions.
7778         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
7779         (check_same_link): Use it.
7780
7781 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
7782
7783         New module 'unigbrk/base'.
7784         * modules/unigbrk/base: New file.
7785         * lib/unigbrk.in.h: New file.
7786
7787         New module 'unigbrk/uc-gbrk-prop'.
7788         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
7789         * modules/unigbrk/uc-gbrk-prop: New file.
7790         * lib/unigbrk/gbrkprop.h: New file.
7791         * lib/unigbrk/uc-gbrk-prop.c: New file.
7792
7793         New module 'unigbrk/uc-is-grapheme-break'.
7794         * modules/unigbrk/uc-is-grapheme-break: New file.
7795         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
7796         * lib/unigbrk/uc-is-grapheme-break.c: New file.
7797         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
7798         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
7799         * tests/unigbrk/GraphemeBreakTest.txt: New file.
7800
7801         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
7802
7803 2010-12-27  Bruno Haible  <bruno@clisp.org>
7804
7805         linkat test: Avoid failure on Solaris 11 2010-11.
7806         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
7807
7808 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7809
7810         utimens: work around glibc rounding bug on more platforms
7811         * lib/utimens.c (fdutimens): Work around rounding bug even if
7812         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
7813         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
7814
7815 2010-12-27  Bruno Haible  <bruno@clisp.org>
7816
7817         select tests: Improve comments.
7818         * tests/test-select.c (do_select): Add comments.
7819
7820 2010-12-27  Bruno Haible  <bruno@clisp.org>
7821
7822         select tests: Safer way of handling timeout.
7823         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
7824         at every invocation.
7825
7826 2010-12-27  Bruno Haible  <bruno@clisp.org>
7827
7828         select tests: Use 'bool' where appropriate.
7829         * tests/test-select.c (connect_to_socket): Change argument type to
7830         'bool'.
7831
7832 2010-12-27  Bruno Haible  <bruno@clisp.org>
7833
7834         select tests: Use existing modules.
7835         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
7836         (configure.ac): Don't test for unistd.h.
7837         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
7838         declared in <unistd.h>.
7839
7840 2010-12-27  Bruno Haible  <bruno@clisp.org>
7841
7842         mbrtowc: Work around a Solaris 7 bug.
7843         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
7844         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
7845         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
7846         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
7847         MBRTOWC_NULL_ARG1_BUG.
7848         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
7849         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
7850         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
7851         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
7852
7853 2010-12-27  Jim Meyering  <meyering@redhat.com>
7854
7855         read-file.c: tweak syntax
7856         * lib/read-file.c (fread_file): Remove space after "*" in function
7857         definitions.
7858
7859 2010-12-27  Bruno Haible  <bruno@clisp.org>
7860
7861         times test: Avoid gcc warnings on OSF/1.
7862         * tests/test-times.c (main): Cast printf arguments from clock_t to
7863         'long int'.
7864
7865 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7866
7867         utimens: work around glibc rounding bug on older Linux kernels
7868         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
7869         on Linux with a glibc whose utimes might not work, then work
7870         around a longstanding glibc bug involving rounding rather than
7871         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
7872         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7873
7874 2010-12-26  Bruno Haible  <bruno@clisp.org>
7875
7876         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
7877         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
7878         _GL_CXXALIAS_SYS.
7879         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7880
7881 2010-12-26  Bruno Haible  <bruno@clisp.org>
7882
7883         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
7884         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
7885         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7886         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
7887         looking for the declaration.
7888         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7889         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
7890         problem.
7891         * doc/posix-functions/inet_pton.texi: Likewise.
7892
7893 2010-12-26  Bruno Haible  <bruno@clisp.org>
7894
7895         arpa_inet: Use the common idioms with C++ support.
7896         * lib/arpa_inet.in.h: Include c++defs.h.
7897         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
7898         support.
7899         * modules/arpa_inet (Depends-on): Add c++defs.
7900         (Makefile.am): Substitute the contents of c++defs.h.
7901         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
7902         * modules/arpa_inet-c++-tests: New file.
7903         * tests/test-arpa_inet-c++.cc: New file.
7904
7905 2010-12-25  Bruno Haible  <bruno@clisp.org>
7906
7907         Fix more C++ link errors on Solaris 8.
7908         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
7909         $(LIB_EACCESS).
7910         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
7911         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
7912         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
7913         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
7914         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
7915
7916 2010-12-25  Bruno Haible  <bruno@clisp.org>
7917
7918         printf-posix: Fix link error when a non-GCC compiler is used.
7919         * lib/stdio.in.h (printf): When not using GCC, override printf
7920         correctly.
7921         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7922
7923 2010-12-25  Bruno Haible  <bruno@clisp.org>
7924
7925         strerror_r-posix: Update doc.
7926         * doc/posix-functions/strerror_r.texi: Update doc about the return
7927         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
7928
7929 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7930
7931         utimens: simplify the logic of the previous change
7932         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
7933         This should not affect whether the test succeeds or fails.
7934
7935         utimens: configure better on hosts with NFS clock skew
7936         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
7937         uses the clock of the local host.  It might use the clock of the
7938         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
7939         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7940
7941 2010-12-25  Bruno Haible  <bruno@clisp.org>
7942
7943         ptsname test: Avoid failure on Solaris.
7944         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
7945         open a pseudo-terminal; don't use BSD-style ptys.
7946         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
7947
7948 2010-12-25  Bruno Haible  <bruno@clisp.org>
7949
7950         ptsname: Avoid ERANGE failure on some systems.
7951         * lib/ptsname.c (buffer): Increase size.
7952
7953 2010-12-25  Bruno Haible  <bruno@clisp.org>
7954
7955         rename, renameat: Avoid test failures at NFS mounted locations.
7956         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
7957         so that subsequent mkdir calls succeed.
7958
7959 2010-12-25  Bruno Haible  <bruno@clisp.org>
7960
7961         iswblank: Fix C++ link error on Solaris 8.
7962         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
7963         _GL_FUNCDECL_SYS.
7964
7965 2010-12-25  Bruno Haible  <bruno@clisp.org>
7966
7967         unistd: Fix C++ link error on Solaris 8.
7968         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
7969
7970 2010-12-25  Bruno Haible  <bruno@clisp.org>
7971
7972         readlink doc: Mention an old glibc bug.
7973         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
7974
7975 2010-12-25  Bruno Haible  <bruno@clisp.org>
7976
7977         fcntl-h: Fix for use of C++ on glibc systems.
7978         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7979         also on glibc systems in C++ mode.
7980         Reported by Gary V. Vaughan <gary@gnu.org>.
7981
7982 2010-12-25  Bruno Haible  <bruno@clisp.org>
7983
7984         roundl-ieee: Make it work on OSF/1 5.1 with cc.
7985         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
7986
7987 2010-12-25  Bruno Haible  <bruno@clisp.org>
7988
7989         truncl-ieee: Make it work on OSF/1 5.1 with cc.
7990         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
7991         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
7992         test whether truncl works according to ISO C 99 with IEC 60559.
7993         * m4/truncl-ieee.m4: New file.
7994         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
7995         m4/signbit.m4.
7996         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
7997
7998 2010-12-25  Bruno Haible  <bruno@clisp.org>
7999
8000         ceill-ieee: Make it work on OSF/1 5.1 with cc.
8001         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
8002         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
8003         test whether ceill works according to ISO C 99 with IEC 60559.
8004         * m4/ceill-ieee.m4: New file.
8005         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
8006         m4/signbit.m4.
8007         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
8008
8009 2010-12-25  Bruno Haible  <bruno@clisp.org>
8010
8011         Ensure all prerequisites of <wchar.h> are included.
8012         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
8013         before <wchar.h>.
8014         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8015         gl_MBRLEN_NUL_RETVAL): Likewise.
8016         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8017         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
8018         AC_FUNC_MBRTOWC): Likewise.
8019         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8020         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
8021         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8022         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
8023         Likewise.
8024         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8025         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
8026         (gl_WCHAR_H): Improve comments.
8027         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8028
8029 2010-12-25  Bruno Haible  <bruno@clisp.org>
8030
8031         strtok_r: Fix C syntax error in autoconf macro.
8032         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
8033         characters in test program.
8034
8035 2010-12-24  Bruno Haible  <bruno@clisp.org>
8036
8037         ceil, trunc, round: Fix gcc warnings.
8038         * lib/ceil.c (MIN): Undefine before redefining.
8039         * lib/trunc.c (MIN): Likewise.
8040         * lib/round.c (MIN): Likewise.
8041         Include <math.h> first.
8042
8043 2010-12-24  Bruno Haible  <bruno@clisp.org>
8044
8045         select tests: Avoid failures on OSF/1 5.1.
8046         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
8047         failure of closing the last socket; it may fail with ECONNRESET.
8048
8049 2010-12-24  Eric Blake  <eblake@redhat.com>
8050
8051         stdint: avoid HP-UX 10.20 preprocessor bug
8052         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
8053         than #if.
8054         * tests/test-floor2.c (main): Likewise.
8055         Reported by Peter O'Gorman.
8056
8057         pipe: make obsoletion transition easier
8058         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
8059         * modules/pipe (Files): Include revived file.
8060         (Include): Drop reference, to mirror getdate's behavior.
8061
8062 2010-12-24  Bruno Haible  <bruno@clisp.org>
8063
8064         sys_socket: Hide mismatch of declarations on NonStop Kernel.
8065         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
8066         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
8067         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8068
8069 2010-12-24  Bruno Haible  <bruno@clisp.org>
8070
8071         gethostname: Ensure declaration on NonStop Kernel.
8072         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
8073         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8074
8075 2010-12-24  Bruno Haible  <bruno@clisp.org>
8076
8077         sys_select: Ensure all necessary types on NonStop Kernel.
8078         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
8079         include <sys/time.h>.
8080         * doc/posix-headers/sys_select.texi: Mention that it's missing on
8081         NonStop Kernel.
8082         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8083
8084 2010-12-24  Bruno Haible  <bruno@clisp.org>
8085
8086         sys_select: Remove unneeded include.
8087         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
8088         have <sys/select.h>.
8089
8090 2010-12-24  Bruno Haible  <bruno@clisp.org>
8091
8092         gethostname: Provide a fallback for HOST_NAME_MAX.
8093         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
8094         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
8095         instead.
8096         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8097
8098 2010-12-24  Bruno Haible  <bruno@clisp.org>
8099
8100         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
8101         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
8102         (SA_RESTART): Likewise.
8103         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8104
8105 2010-12-24  Bruno Haible  <bruno@clisp.org>
8106
8107         signal: Define NSIG.
8108         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
8109         * tests/test-signal.c (nsig): New variable.
8110         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8111
8112 2010-12-24  Bruno Haible  <bruno@clisp.org>
8113
8114         rename, renameat: Avoid test failures on OSF/1 5.1.
8115         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
8116         alternative error codes.
8117         * tests/test-renameat.c (main): Likewise.
8118
8119 2010-12-24  Bruno Haible  <bruno@clisp.org>
8120
8121         *printf: Detect large precisions bug on Solaris 10/SPARC.
8122         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
8123         by Paul Eggert.
8124         * tests/test-snprintf-posix.h (test_function): Add this test code here
8125         too.
8126         * tests/test-sprintf-posix.h (test_function): Likewise.
8127         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8128         * tests/test-vasprintf-posix.c (test_function): Likewise.
8129         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
8130         around by gnulib.
8131         * doc/posix-functions/printf.texi: Likewise.
8132         * doc/posix-functions/snprintf.texi: Likewise.
8133         * doc/posix-functions/sprintf.texi: Likewise.
8134         * doc/posix-functions/vfprintf.texi: Likewise.
8135         * doc/posix-functions/vprintf.texi: Likewise.
8136         * doc/posix-functions/vsnprintf.texi: Likewise.
8137         * doc/posix-functions/vsprintf.texi: Likewise.
8138         * doc/posix-functions/dprintf.texi: Undo last commit.
8139         * doc/posix-functions/vdprintf.texi: Likewise.
8140
8141 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8142
8143         tests: port test-fdutimensat.c to Solaris 8
8144         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
8145         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
8146         On Solaris 8, it fails with errno == ENOSYS, because there is no
8147         futimens (so it can't use the fd), and there is no lutimens (so it
8148         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
8149
8150         vsnprintf: make more consistent with snprintf; doc fixes
8151
8152         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
8153         the byte count return problem was promoted from the snprintf-posix
8154         to the snprintf module.
8155         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8156         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
8157         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
8158         * tests/test-snprintf.c (main): Check the byte count returned.
8159         * tests/test-vsnprintf.c (main): Likewise.
8160
8161 2010-12-23  Eric Blake  <eblake@redhat.com>
8162
8163         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
8164         * modules/sigpipe (License): Relax license.
8165
8166 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8167
8168         doc: document Solaris printf bug with large float precisions
8169         * doc/posix-functions/dprintf.texi (dprintf):
8170         * doc/posix-functions/fprintf.texi (fprintf):
8171         * doc/posix-functions/printf.texi (printf):
8172         * doc/posix-functions/snprintf.texi (snprintf):
8173         * doc/posix-functions/sprintf.texi (sprintf):
8174         * doc/posix-functions/vdprintf.texi (vdprintf):
8175         * doc/posix-functions/vfprintf.texi (vfprintf):
8176         * doc/posix-functions/vprintf.texi (vprintf):
8177         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8178         * doc/posix-functions/vsprintf.texi (vsprintf):
8179         Mention that these functions mishandle large floating point
8180         precisions on Solaris 10.  The same bug is also present in Solaris
8181         8, and I assume earlier.  This causes "cd gnulib-tests; make
8182         check" to fail on Solaris 8 (and I assume, later) when building
8183         the latest coreutils, in test-vasprintf-posix's call to
8184         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
8185         the wide flavors (e.g., wprintf) so this patch just updates the
8186         documentation for the narrow ones.
8187
8188         test-posixtm.c: add two tests
8189         * tests/test-posixtm.c: Add two tests, to highlight the
8190         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
8191         around this bug; this is merely to document it.
8192
8193 2010-12-22  Bruno Haible  <bruno@clisp.org>
8194
8195         getlogin_r: Work around portability problem on OSF/1.
8196         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8197         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8198         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8199         test for a truncated result.
8200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8201         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8202         * modules/getlogin_r (Depends-on): Add memchr.
8203         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8204
8205 2010-12-22  Bruno Haible  <bruno@clisp.org>
8206
8207         ptsname: Avoid test failure on OSF/1 5.1.
8208         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8209         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8210         (same_slave): New function.
8211         (main): Use it to compare ptsname's result with the expected file name.
8212
8213 2010-12-22  Bruno Haible  <bruno@clisp.org>
8214
8215         Port extended stdio modules to HP NonStop Kernel.
8216         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8217         macros.
8218         * lib/fbufmode.c: Update comments.
8219         * lib/fflush.c: Likewise.
8220         * lib/fpurge.c: Likewise.
8221         * lib/freadable.c: Likewise.
8222         * lib/freadahead.c: Likewise.
8223         * lib/freading.c: Likewise.
8224         * lib/freadptr.c: Likewise.
8225         * lib/freadseek.c: Likewise.
8226         * lib/fseeko.c: Likewise.
8227         * lib/fseterr.c: Likewise.
8228         * lib/fwritable.c: Likewise.
8229         * lib/fwriting.c: Likewise.
8230         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8231
8232 2010-12-22  Bruno Haible  <bruno@clisp.org>
8233
8234         ttyname_r: Work around bug on OSF/1 5.1.
8235         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8236         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8237         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8238         present.
8239         * lib/ttyname_r.c (ttyname_r): Update comments.
8240
8241 2010-12-22  Bruno Haible  <bruno@clisp.org>
8242
8243         round: Implement result sign according to IEEE 754.
8244         * lib/round.c (MIN, MINUS_ZERO): New macros.
8245         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8246         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8247         * tests/test-round-ieee.c (main): Likewise.
8248         * tests/test-roundl-ieee.c (main): Likewise.
8249
8250         trunc: Implement result sign according to IEEE 754.
8251         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8252         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8253         * tests/test-trunc2.c: Include minus-zero.h.
8254         (MINUS_ZERO): New macro.
8255         (trunc_reference): Keep in sync with lib/trunc.c.
8256         * tests/test-truncf2.c: Include minus-zero.h.
8257         (MINUS_ZERO): New macro.
8258         (truncf_reference): Keep in sync with lib/trunc.c.
8259         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8260         * tests/test-trunc-ieee.c (main): Likewise.
8261         * tests/test-truncl-ieee.c (main): Likewise.
8262
8263         ceil: Implement result sign according to IEEE 754.
8264         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
8265         (FUNC): Return -0.0 for -1 < x < 0.
8266         * tests/test-ceil2.c: Include minus-zero.h.
8267         (MINUS_ZERO): New macro.
8268         (ceil_reference): Keep in sync with lib/ceil.c.
8269         * tests/test-ceilf2.c: Include minus-zero.h.
8270         (MINUS_ZERO): New macro.
8271         (ceilf_reference): Keep in sync with lib/ceil.c.
8272         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
8273         * tests/test-ceil-ieee.c (main): Likewise.
8274         * tests/test-ceill-ieee.c (main): Likewise.
8275
8276         floor: Implement result sign according to IEEE 754.
8277         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
8278         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
8279         * tests/test-floorf2.c (floorf_reference): Likewise.
8280         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
8281         * tests/test-floor-ieee.c (main): Likewise.
8282         * tests/test-floorl-ieee.c (main): Likewise.
8283
8284 2010-12-22  Bruno Haible  <bruno@clisp.org>
8285
8286         getaddrinfo: Update doc.
8287         * doc/posix-functions/gai_strerror.texi: Return type is also different
8288         on AIX and HP-UX.
8289
8290 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8291
8292         getaddrinfo, inet_ntop: Update doc for Solaris.
8293         * doc/posix-functions/gai_strerror.texi: Return type is also an
8294         issue on Solaris 9 and earlier.
8295         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
8296         on Solaris 10 and earlier.
8297
8298 2010-12-21  Bruno Haible  <bruno@clisp.org>
8299
8300         New module 'roundl-ieee'.
8301         * modules/roundl-ieee: New file.
8302         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
8303         test whether roundl works according to ISO C 99 with IEC 60559.
8304         * m4/roundl-ieee.m4: New file.
8305         * modules/roundl-ieee-tests: New file.
8306         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
8307         * tests/test-roundl.c (main): Remove signbit tests.
8308         * modules/roundl-tests (Depends-on): Remove signbit.
8309         * doc/posix-functions/roundl.texi: Mention the new module.
8310
8311 2010-12-21  Bruno Haible  <bruno@clisp.org>
8312
8313         New module 'truncl-ieee'.
8314         * modules/truncl-ieee: New file.
8315         * modules/truncl-ieee-tests: New file.
8316         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8317         * tests/test-truncl.c (main): Remove signbit tests.
8318         * modules/truncl-tests (Depends-on): Remove signbit.
8319         * doc/posix-functions/truncl.texi: Mention the new module.
8320
8321 2010-12-21  Bruno Haible  <bruno@clisp.org>
8322
8323         New module 'ceill-ieee'.
8324         * modules/ceill-ieee: New file.
8325         * modules/ceill-ieee-tests: New file.
8326         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8327         * tests/test-ceill.c (main): Remove signbit tests.
8328         * modules/ceill-tests (Depends-on): Remove signbit.
8329         * doc/posix-functions/ceill.texi: Mention the new module.
8330
8331 2010-12-21  Bruno Haible  <bruno@clisp.org>
8332
8333         New module 'floorl-ieee'.
8334         * modules/floorl-ieee: New file.
8335         * modules/floorl-ieee-tests: New file.
8336         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8337         * tests/test-floorl.c (main): Remove signbit tests.
8338         * modules/floorl-tests (Depends-on): Remove signbit.
8339         * doc/posix-functions/floorl.texi: Mention the new module.
8340
8341 2010-12-21  Bruno Haible  <bruno@clisp.org>
8342
8343         New module 'round-ieee'.
8344         * modules/round-ieee: New file.
8345         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8346         whether round works according to ISO C 99 with IEC 60559.
8347         * m4/round-ieee.m4: New file.
8348         * modules/round-ieee-tests: New file.
8349         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8350         * tests/test-round1.c (main): Remove signbit tests.
8351         * modules/round-tests (Depends-on): Remove 'signbit'.
8352         * doc/posix-functions/round.texi: Mention the new module.
8353
8354 2010-12-21  Bruno Haible  <bruno@clisp.org>
8355
8356         New module 'trunc-ieee'.
8357         * modules/trunc-ieee: New file.
8358         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8359         whether trunc works according to ISO C 99 with IEC 60559.
8360         * m4/trunc-ieee.m4: New file.
8361         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8363         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8364         * modules/trunc-ieee-tests: New file.
8365         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8366         * tests/test-trunc1.c (main): Remove signbit tests.
8367         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8368         * doc/posix-functions/trunc.texi: Mention the new module.
8369
8370 2010-12-21  Bruno Haible  <bruno@clisp.org>
8371
8372         New module 'ceil-ieee'.
8373         * modules/ceil-ieee: New file.
8374         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8375         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8376         ISO C 99 with IEC 60559.
8377         * m4/ceil-ieee.m4: New file.
8378         * modules/ceil (Files): Add lib/ceil.c.
8379         (Depends-on): Add 'float'.
8380         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8381         * lib/math.in.h (ceil): New declaration.
8382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8383         REPLACE_CEIL.
8384         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8385         * modules/ceil-ieee-tests: New file.
8386         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8387         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8388         * doc/posix-functions/ceil.texi: Mention the new module.
8389
8390 2010-12-21  Bruno Haible  <bruno@clisp.org>
8391
8392         New module 'floor-ieee'.
8393         * modules/floor-ieee: New file.
8394         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8395         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8396         ISO C 99 with IEC 60559.
8397         * m4/floor-ieee.m4: New file.
8398         * modules/floor (Files): Add lib/floor.c.
8399         (Depends-on): Add 'float'.
8400         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8401         * lib/math.in.h (floor): New declaration.
8402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8403         REPLACE_FLOOR.
8404         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8405         * modules/floor-ieee-tests: New file.
8406         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8407         * tests/test-math-c++.cc: Check the signature of 'floor'.
8408         * doc/posix-functions/floor.texi: Mention the new module.
8409
8410 2010-12-21  Bruno Haible  <bruno@clisp.org>
8411
8412         New module 'roundf-ieee'.
8413         * modules/roundf-ieee: New file.
8414         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8415         test whether roundf works according to ISO C 99 with IEC 60559.
8416         * m4/roundf-ieee.m4: New file.
8417         * modules/roundf-ieee-tests: New file.
8418         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8419         * tests/test-roundf1.c (main): Remove signbit tests.
8420         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8421         * doc/posix-functions/roundf.texi: Mention the new module.
8422
8423 2010-12-21  Bruno Haible  <bruno@clisp.org>
8424
8425         New module 'truncf-ieee'.
8426         * modules/truncf-ieee: New file.
8427         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8428         test whether truncf works according to ISO C 99 with IEC 60559.
8429         * m4/truncf-ieee.m4: New file.
8430         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8432         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8433         * modules/truncf-ieee-tests: New file.
8434         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8435         * tests/test-truncf1.c (main): Remove signbit tests.
8436         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8437         * doc/posix-functions/truncf.texi: Mention the new module.
8438
8439 2010-12-21  Bruno Haible  <bruno@clisp.org>
8440
8441         New module 'ceilf-ieee'.
8442         * modules/ceilf-ieee: New file.
8443         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8444         test whether ceilf works according to ISO C 99 with IEC 60559.
8445         * m4/ceilf-ieee.m4: New file.
8446         * modules/ceilf-ieee-tests: New file.
8447         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8448         * tests/test-ceilf1.c (main): Remove signbit tests.
8449         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8450         * doc/posix-functions/ceilf.texi: Mention the new module.
8451
8452 2010-12-21  Bruno Haible  <bruno@clisp.org>
8453
8454         New module 'floorf-ieee'.
8455         * modules/floorf-ieee: New file.
8456         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8457         test whether floorf works according to ISO C 99 with IEC 60559.
8458         * m4/floorf-ieee.m4: New file.
8459         * modules/floorf-ieee-tests: New file.
8460         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8461         * tests/test-floorf1.c (main): Remove signbit tests.
8462         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8463         * doc/posix-functions/floorf.texi: Mention the new module.
8464
8465 2010-12-21  Bruno Haible  <bruno@clisp.org>
8466
8467         Support for minus zero in autoconf macros.
8468         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8469         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8470         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8471         * tests/minus-zero.h: Update comments.
8472
8473 2010-12-21  Bruno Haible  <bruno@clisp.org>
8474
8475         Tests for module 'ceil'.
8476         * modules/ceil-tests: New file.
8477         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
8478         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
8479
8480 2010-12-21  Bruno Haible  <bruno@clisp.org>
8481
8482         Tests for module 'floor'.
8483         * modules/floor-tests: New file.
8484         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
8485         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
8486
8487 2010-12-21  Bruno Haible  <bruno@clisp.org>
8488
8489         math: Fix indentation.
8490         * lib/math.in.h (floorf): Fix indentation.
8491
8492 2010-12-21  Bruno Haible  <bruno@clisp.org>
8493
8494         Fix cross-compilation guesses on Solaris.
8495         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
8496         not match "solaris2.10".
8497         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8498         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
8499         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8500
8501 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8502
8503         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
8504         This fixes a problem observed with the latest coreutils snapshot
8505         that caused a test to fail on Solaris 8.  src/csplit.c's call
8506         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
8507         earlier, instead of returning the number of bytes that would have
8508         been generated; this causes csplit to incorrectly report memory
8509         exhaustion.
8510         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
8511         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
8512         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
8513         comments to match.
8514         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
8515         Fix typo in matching older versions of Solaris: "solaris2.10"
8516         is matched by the shell pattern "solaris2.[0-9]*".  This matters
8517         only for guessing while cross-compiling.
8518         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
8519
8520 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8521
8522         ftoastr: fix comment again
8523         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8524         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
8525         Also, simplify example a bit by using flags = 0.
8526
8527 2010-12-20  Bruno Haible  <bruno@clisp.org>
8528
8529         round*, trunc*: Update documentation regarding glibc.
8530         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
8531         * doc/posix-functions/round.texi: Likewise.
8532         * doc/posix-functions/roundl.texi: Likewise.
8533         * doc/posix-functions/truncf.texi: Likewise.
8534         * doc/posix-functions/trunc.texi: Likewise.
8535         * doc/posix-functions/truncl.texi: Likewise.
8536
8537 2010-12-20  Bruno Haible  <bruno@clisp.org>
8538
8539         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
8540         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
8541         * doc/posix-functions/round.texi: Likewise.
8542         * doc/posix-functions/roundl.texi: Likewise.
8543
8544 2010-12-20  Bruno Haible  <bruno@clisp.org>
8545
8546         ttyname_r: Add missing declaration on HP-UX 11.
8547         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
8548         HAVE_TTYNAME_R.
8549         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
8550         declared. Set HAVE_TTYNAME_R always.
8551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8552         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
8553         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
8554         HAVE_TTYNAME_R.
8555         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
8556
8557 2010-12-20  Bruno Haible  <bruno@clisp.org>
8558
8559         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
8560         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
8561         * doc/posix-functions/getlogin_r.texi: Likewise.
8562         * tests/test-getlogin.c: Include <errno.h>.
8563         (main): Avoid test failure on HP-UX 11.11.
8564         * tests/test-getlogin_r.c (main): Likewise.
8565
8566 2010-12-20  Bruno Haible  <bruno@clisp.org>
8567
8568         getlogin_r: Add missing declaration on HP-UX 11.
8569         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
8570         declared also when it exists as a function.
8571         * doc/posix-functions/getlogin_r.texi: Document this workaround.
8572
8573 2010-12-20  Bruno Haible  <bruno@clisp.org>
8574
8575         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
8576         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
8577         through wcrtomb.
8578
8579 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8580
8581         ftoastr: fix comment
8582         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8583         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
8584
8585 2010-12-19  Bruno Haible  <bruno@clisp.org>
8586
8587         isnan: Ensure it is a macro.
8588         * lib/math.in.h (isnan): Define as a macro if not already a macro.
8589         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
8590         Solaris.
8591
8592 2010-12-19  Bruno Haible  <bruno@clisp.org>
8593
8594         ldexpl test: Fix link error on OSF/1 5.1.
8595         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
8596
8597 2010-12-19  Bruno Haible  <bruno@clisp.org>
8598
8599         wctype: Make it work in C++ mode on OSF/1 5.1.
8600         * lib/wctype.in.h (iswblank): Declare but not define here.
8601         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
8602         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
8603         * modules/wctype (Files): Add lib/iswblank.c.
8604
8605 2010-12-19  Bruno Haible  <bruno@clisp.org>
8606
8607         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
8608         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
8609         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
8610
8611 2010-12-19  Bruno Haible  <bruno@clisp.org>
8612
8613         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
8614         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
8615         _POSIX_PII_SOCKET.
8616         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
8617         * doc/posix-functions/recvfrom.texi: Likewise.
8618         * doc/posix-functions/send.texi: Likewise.
8619         * doc/posix-functions/sendto.texi: Likewise.
8620
8621 2010-12-19  Bruno Haible  <bruno@clisp.org>
8622
8623         tcgetsid: Add missing declaration on OSF/1 5.1.
8624         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
8625         HAVE_TCGETSID.
8626         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
8627         Don't set HAVE_TCGETSID.
8628         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
8629         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
8630         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
8631         HAVE_TCGETSID.
8632         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
8633
8634 2010-12-19  Bruno Haible  <bruno@clisp.org>
8635
8636         stdio: Fix problem with popen() declaration on OSF/1 5.1.
8637         * lib/stdio.in.h: During the include_next statement, let recursive
8638         includes of this file include only the system header file.
8639
8640 2010-12-19  Bruno Haible  <bruno@clisp.org>
8641
8642         iconv_open: Fix regression from 2010-12-04.
8643         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
8644         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
8645
8646 2010-12-19  Bruno Haible  <bruno@clisp.org>
8647
8648         stdbool test: Avoid a gcc warning.
8649         * tests/test-stdbool.c (main): Fail if e1 is false.
8650         Reported by Jim Meyering.
8651
8652 2010-12-19  Jim Meyering  <meyering@redhat.com>
8653
8654         setenv: restore to working order
8655         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
8656         mistakenly removed.
8657         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
8658         HAVE_SETENV.
8659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
8660         HAVE_SETENV.
8661
8662 2010-12-19  Bruno Haible  <bruno@clisp.org>
8663
8664         Document some different function declarations on OSF/1 5.1.
8665         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
8666         * doc/posix-functions/inet_ntop.texi: Likewise.
8667         * doc/posix-functions/gethostname.texi: Likewise.
8668         * lib/unistd.in.h (gethostname): Update comment.
8669
8670 2010-12-19  Bruno Haible  <bruno@clisp.org>
8671
8672         doc: Mention vasprintf-posix module.
8673         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
8674         the 'vasprintf-posix' module.
8675         * doc/glibc-functions/vasprintf.texi: Likewise.
8676
8677 2010-12-19  Bruno Haible  <bruno@clisp.org>
8678
8679         unsetenv: Add missing declaration on OSF/1 5.1.
8680         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
8681         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
8682         Don't set HAVE_UNSETENV. In the test program, set _BSD.
8683         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
8684         not HAVE_UNSETENV.
8685         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
8686         HAVE_UNSETENV.
8687         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
8688
8689 2010-12-19  Bruno Haible  <bruno@clisp.org>
8690
8691         setenv: Add missing declaration on OSF/1 5.1.
8692         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
8693         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
8694         declared. Don't set HAVE_SETENV.
8695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
8696         not HAVE_SETENV.
8697         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
8698         HAVE_SETENV.
8699         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
8700
8701 2010-12-19  Bruno Haible  <bruno@clisp.org>
8702
8703         nl_langinfo tests: Avoid gcc warning.
8704         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
8705
8706 2010-12-19  Bruno Haible  <bruno@clisp.org>
8707
8708         mknod: Avoid error in C++ mode on OSF/1 with GCC.
8709         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
8710         _GL_CXXALIAS_SYS.
8711
8712 2010-12-19  Bruno Haible  <bruno@clisp.org>
8713
8714         stdbool: Relax test.
8715         * tests/test-stdbool.c (e): Don't require that casts from a variable's
8716         address to 'bool' work in static initializer, for compilers other than
8717         GCC.
8718
8719 2010-12-19  Bruno Haible  <bruno@clisp.org>
8720
8721         ftello: Add missing declaration on OSF/1 5.1.
8722         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
8723         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
8724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
8725         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
8726         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
8727
8728 2010-12-19  Bruno Haible  <bruno@clisp.org>
8729
8730         fseeko: Add missing declaration on OSF/1 5.1.
8731         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
8732         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
8733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
8734         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
8735         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
8736
8737 2010-12-19  Bruno Haible  <bruno@clisp.org>
8738
8739         fchdir: Add missing declaration on OSF/1 5.1.
8740         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
8741         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
8742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
8743         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
8744         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
8745
8746 2010-12-19  Bruno Haible  <bruno@clisp.org>
8747
8748         relocatable-prog-wrapper: Separate from relocatable-prog.
8749         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
8750         uninstall-relocwrapper rule here.
8751         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
8752         Reported by Ian Beckwith <ianb@erislabs.net>.
8753
8754 2010-12-19  Bruno Haible  <bruno@clisp.org>
8755
8756         unistr/u8-mbsnlen: Add missing dependency.
8757         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
8758         Reported by Ian Beckwith <ianb@erislabs.net>.
8759
8760 2010-12-19  Bruno Haible  <bruno@clisp.org>
8761
8762         iconv: Make it possible again to use this module without 'iconv-h'.
8763         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
8764         if it is not defined.
8765         Reported by Ian Beckwith <ianb@erislabs.net>.
8766
8767 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8768
8769         acl: port to Solaris 8 when copying from tmpfs to ufs
8770         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
8771         error number.  Problem observed on Solaris 8 with latest
8772         coreutils, with "mv A B", where A is on a tmpfs file system and B
8773         is on a ufs file system.  This caused coreutils' mv/part-symlink
8774         test to fail.
8775
8776         tests: set fail=0 at start
8777         * tests/init.sh (setup_): Move fail=0 initialization here ...
8778         (mktempd_): ... from here, so that tests can rely on fail being
8779         set to 0 initially.  This fixes a problem in coreutils; see:
8780         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
8781
8782 2010-12-18  Bruno Haible  <bruno@clisp.org>
8783
8784         memmem-simple: Stylistic changes.
8785         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
8786         Fix preprocessor directive indentation.
8787
8788 2010-12-15  Pádraig Brady <P@draigBrady.com>
8789
8790         memmem, memmem-simple: reorganize and expand empty needle check
8791         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
8792         functional checks to memmem-simple so that one has a fully functional
8793         memmem by using just this module.
8794         Restrict the performance only check to the memmem module.
8795         Also expand the empty needle check to ensure the correct
8796         pointer is returned, not just a non NULL pointer.
8797         * doc/glibc-functions/memmem.texi: Rearrange the portability
8798         documentation to correlate with the rearranged checks.
8799         Clarify exactly how the memmem and memmem-simple modules
8800         relate to each other.
8801
8802 2010-12-15  Pádraig Brady <P@draigBrady.com>
8803             Bruno Haible  <bruno@clisp.org>
8804
8805         Improve cross-compilation guesses for uClibc.
8806         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
8807         that uClibc does not have the glibc bug.
8808         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
8809         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
8810
8811 2010-12-14  Eric Blake  <eblake@redhat.com>
8812
8813         configmake: provide fallbacks for oldest supported autotools
8814         * m4/configmake.m4: New file.
8815         * modules/configmake (Files): Ship it.
8816         (configure.ac): Use it to guarantee fallbacks.
8817
8818 2010-12-13  Pádraig Brady <P@draigBrady.com>
8819
8820         read-file: Improve handling of large files
8821         * lib/read-file.c (fread_file): Minimize realloc()s
8822         for regular files, and better manage sizes around SIZE_MAX.
8823
8824 2010-12-13  Eric Blake  <eblake@redhat.com>
8825
8826         cloexec, fcntl: relax license
8827         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
8828         consent from all contributors.
8829         * modules/fcntl (License): Likewise.
8830
8831 2010-12-10  Bruno Haible  <bruno@clisp.org>
8832
8833         Tests for module 'pipe-posix'.
8834         * modules/pipe-posix-tests: New file.
8835         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
8836
8837 2010-12-10  Bruno Haible  <bruno@clisp.org>
8838
8839         pipe-posix: Make it work in C++ mode.
8840         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
8841         (pipe): Use common idiom, not a macro definition.
8842         * lib/pipe.c: New file.
8843         * m4/pipe.m4: New file.
8844         * modules/pipe-posix (Description): Enhance.
8845         (Files): Add lib/pipe.c, m4/pipe.m4.
8846         (configure.ac): Invoke gl_FUNC_PIPE.
8847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
8848         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
8849         * tests/test-unistd-c++.cc: Check the signature of pipe.
8850
8851 2010-12-10  Bruno Haible  <bruno@clisp.org>
8852
8853         Rename module 'pipe' to 'spawn-pipe'.
8854         * modules/spawn-pipe: New file, renamed from modules/pipe.
8855         (Files, configure.ac, Makefile.am): Update.
8856         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
8857         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
8858         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
8859         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
8860         "spawn-pipe.h" instead of "pipe.h".
8861         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
8862         to gl_SPAWN_PIPE.
8863         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
8864         (Files, Makefile.am): Update.
8865         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
8866         Update.
8867         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
8868         Include "spawn-pipe.h" instead of "pipe.h".
8869         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
8870         * lib/javacomp.c: Likewise.
8871         * lib/javaversion.c: Likewise.
8872         * lib/pipe-filter-gi.c: Likewise.
8873         * lib/pipe-filter-ii.c: Likewise.
8874         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
8875         * modules/javacomp (Depends-on): Likewise.
8876         * modules/javaversion (Depends-on): Likewise.
8877         * modules/pipe-filter-gi (Depends-on): Likewise.
8878         * modules/pipe-filter-ii (Depends-on): Likewise.
8879         * MODULES.html.sh (Executing programs): Update.
8880         * NEWS: Mention the change.
8881
8882 2010-12-10  Eric Blake  <eblake@redhat.com>
8883
8884         pipe-posix: new module
8885         * modules/pipe-posix: New file.
8886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
8887         (gl_UNISTD_H): Check for declaration.
8888         * modules/unistd (Makefile.am): Substitute it.
8889         * lib/unistd.in.h (pipe): Provide it for mingw.
8890         * doc/posix-functions/pipe.texi (pipe): Update documentation.
8891         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
8892
8893 2010-12-07  Bruno Haible  <bruno@clisp.org>
8894
8895         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
8896         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
8897         u8_strcmp_gnu.
8898         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
8899
8900 2010-12-06  Bruno Haible  <bruno@clisp.org>
8901
8902         Update internal documentation.
8903         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
8904
8905 2010-12-04  Bruno Haible  <bruno@clisp.org>
8906
8907         Put more information about failed tests into the test return codes.
8908         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
8909         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
8910         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8911         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8912         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
8913         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8914         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8915         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8916         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
8917         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8918         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
8919         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8920         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8921         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8922         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
8923         returns a bit mask.
8924         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
8925         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
8926         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
8927         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
8928         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8929         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8930         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8931         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8932         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8933         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8934         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8935         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8936         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8937         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8938         * m4/link.m4 (gl_FUNC_LINK): Likewise.
8939         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8940         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
8941         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
8942         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8943         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
8944         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8945         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8946         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
8947         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8948         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8949         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8950         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
8951         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8952         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8953         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
8954         gl_PRINTF_PRECISION): Likewise.
8955         * m4/regex.m4 (gl_REGEX): Likewise.
8956         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8957         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8958         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
8959         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8960         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8961         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8962         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8963         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
8964         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8965         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8966         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8967         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8968         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8969         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
8970         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8971         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8972         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
8973         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8975         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
8976         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
8977         enumerated value.
8978         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
8979
8980 2010-12-04  Bruno Haible  <bruno@clisp.org>
8981
8982         Update for Solaris 11 2010-11.
8983         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
8984         Express, released in November 2010.
8985
8986 2010-12-04  Bruno Haible  <bruno@clisp.org>
8987
8988         nproc: Relax license.
8989         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
8990         and Paul Eggert.
8991         Requested by Ludovic Courtès <ludo@gnu.org>.
8992
8993 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
8994
8995         utimecmp: fine-grained src to nearby coarse-grained dest
8996
8997         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
8998         and the source is on a file system with higher-resolution time
8999         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
9000         not work, and the time stamps are close together, the algorithm to
9001         determine the exact resolution from the read-back mtime was buggy:
9002         it had a "!=" where it should have had an "==".  This bug has been
9003         in the code ever since it was introduced to gnulib.
9004         Problem reported by Dan Jacobson in
9005         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
9006
9007 2010-11-30  Bruno Haible  <bruno@clisp.org>
9008
9009         strerror_r-posix: Fix autoconf test.
9010         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
9011
9012 2010-11-28  Bruno Haible  <bruno@clisp.org>
9013             Paul Eggert  <eggert@cs.ucla.edu>
9014
9015         Tests for module 'getdomainname'.
9016         * modules/getdomainname-tests: New file.
9017         * tests/test-getdomainname.c: New file, based on
9018         tests/test-gethostname.c.
9019
9020 2010-11-28  Bruno Haible  <bruno@clisp.org>
9021             Paul Eggert  <eggert@cs.ucla.edu>
9022
9023         getdomainname: Use the system function when possible.
9024         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
9025         (getdomainname): Replace if needed. Provide the declaration if it is
9026         missing. Don't use _GL_CXXALIAS_SYS_CAST.
9027         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
9028         (getdomainname): When the system has getdomainname, call the system
9029         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
9030         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9031         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
9032         found in libnsl. Look for the declaration also in <netdb.h>. Replace
9033         the function if its second argument is of type 'int' or if it is found
9034         in libnsl.
9035         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
9036         <sys/systeminfo.h> and sysinfo().
9037         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
9038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9039         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
9040         HAVE_GETDOMAINNAME.
9041         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
9042         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
9043         * doc/glibc-functions/getdomainname.texi: Document the problems with
9044         the getdomainname declaration.
9045
9046 2010-11-28  Bruno Haible  <bruno@clisp.org>
9047
9048         sys_socket: Ensure ss_family field on AIX.
9049         * lib/sys_socket.in.h (ss_family): New macro definition.
9050         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
9051         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
9052         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9053         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9054         * modules/sys_socket (Makefile.am): Substitute
9055         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9056         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
9057
9058 2010-11-27  Bruno Haible  <bruno@clisp.org>
9059
9060         readline: Improve configure output.
9061         * m4/readline.m4 (gl_FUNC_READLINE): Make the
9062         "checking for readline..." result understandable.
9063
9064 2010-11-27  Bruno Haible  <bruno@clisp.org>
9065
9066         *printf-posix: Detect a bug on Solaris 10/x86.
9067         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
9068         for floating-point output.
9069         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
9070         directive.
9071         * tests/test-snprintf-posix.h (test_function): Likewise.
9072         * tests/test-sprintf-posix.h (test_function): Likewise.
9073         * tests/test-vasprintf-posix.c (test_function): Likewise.
9074         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
9075         * doc/posix-functions/printf.texi: Likewise.
9076         * doc/posix-functions/snprintf.texi: Likewise.
9077         * doc/posix-functions/sprintf.texi: Likewise.
9078         * doc/posix-functions/vfprintf.texi: Likewise.
9079         * doc/posix-functions/vprintf.texi: Likewise.
9080         * doc/posix-functions/vsnprintf.texi: Likewise.
9081         * doc/posix-functions/vsprintf.texi: Likewise.
9082         * doc/glibc-functions/obstack_printf.texi: Likewise.
9083         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9084
9085 2010-11-27  Bruno Haible  <bruno@clisp.org>
9086
9087         Fix link error when module libunistring-optional is in use.
9088         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
9089         * modules/striconveha-tests (Makefile.am): Likewise.
9090
9091 2010-11-27  Bruno Haible  <bruno@clisp.org>
9092
9093         regex: Mention link dependencies.
9094         * modules/regex (Link): New section.
9095         * modules/rpmatch (Link): Likewise.
9096         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
9097
9098 2010-11-27  Bruno Haible  <bruno@clisp.org>
9099
9100         ftoastr: Fix compilation error on Solaris.
9101         * lib/ftoastr.c: Include <config.h>.
9102
9103 2010-11-27  Bruno Haible  <bruno@clisp.org>
9104
9105         getloadavg: Update documentation.
9106         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
9107
9108 2010-11-27  Bruno Haible  <bruno@clisp.org>
9109
9110         sys_socket: Fix test whether the functions are declared.
9111         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
9112         not <sys/select.h>.
9113
9114 2010-11-27  Bruno Haible  <bruno@clisp.org>
9115
9116         getpass: Make sure to get system declaration on some platforms.
9117         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
9118         gl_USE_SYSTEM_EXTENSIONS.
9119         * modules/getpass (Depends-on): Add extensions.
9120
9121 2010-11-26  Bruno Haible  <bruno@clisp.org>
9122
9123         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
9124         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
9125         'iconv' module is present.
9126         (ICONV_CONST): New macro.
9127         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
9128         ICONV_CONST.
9129         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
9130         set ICONV_CONST.
9131         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
9132         here.
9133         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
9134         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
9135         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
9136         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
9137         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
9138         present.
9139
9140 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9141
9142         ftoastr: comment fix
9143         * lib/ftoastr.c: "little" -> "little or no" in comment
9144
9145 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9146
9147         stdint: port to GCC 4.3 + OSX + Octave
9148         On this platform, stdint.h is buggy and defines int64_t to long
9149         long int.  The replacement defined it to long int, causing
9150         problems with C++ style name mangling.  Instead, trust the system
9151         definition if INT64_MAX is defined, and likewise for the unsigned
9152         variant.   Problem reported by Jarno Rajahalme in
9153         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
9154         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
9155         and don't mess with int64_t and INT64_MAX in this case.
9156         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
9157
9158 2010-11-24  Bruno Haible  <bruno@clisp.org>
9159
9160         doc: Corrections regarding MacOS X 10.4 and 10.5.
9161         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
9162         MacOS X.
9163         Reported by Simon Josefsson.
9164
9165 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9166
9167         Uninstall ".bin" files installed by relocwrapper.
9168         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
9169         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
9170         unless it is already there.
9171
9172 2010-11-21  Bruno Haible  <bruno@clisp.org>
9173
9174         Update for NetBSD 5.0.
9175         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9176         NetBSD; the test fails on NetBSD 5.0.
9177         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9178         about NetBSD.
9179
9180 2010-11-21  Bruno Haible  <bruno@clisp.org>
9181
9182         Update for HP-UX 11.23 and HP-UX 11.31.
9183         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
9184         HP-UX.
9185
9186 2010-11-21  Bruno Haible  <bruno@clisp.org>
9187
9188         Update for MacOS X 10.5.
9189         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9190         MacOS X; the test fails on MacOS X 10.5.8.
9191         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9192         about MacOS X.
9193
9194 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9195
9196         bootstrap: add bootstrap_sync option.
9197         See discussion at
9198         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9199         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9200         * build-aux/bootstrap: Accept --bootstrap-sync to update
9201         bootstrap if it is not identical to the local gnulib's
9202         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9203         enable this by default.  Accept --no-bootstrap-sync to disable
9204         it.
9205
9206 2010-11-20  Bruno Haible  <bruno@clisp.org>
9207
9208         Ensure that <features.h> is included before __GLIBC__ is tested.
9209         * lib/printf-parse.h: Include <features.h>.
9210         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9211         Reported by Mike Frysinger <vapier@gentoo.org>.
9212
9213         Ensure that <features.h> is included before __GLIBC__ is tested.
9214         * lib/wchar.in.h: Include <features.h>.
9215         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9216         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9217         Reported by Mike Frysinger <vapier@gentoo.org>.
9218
9219         Ensure that <features.h> is included before __GLIBC__ is tested.
9220         * lib/arpa_inet.in.h: Include <features.h>.
9221         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9222         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9223         Reported by Mike Frysinger <vapier@gentoo.org>.
9224
9225         Ensure that <features.h> is included before __GLIBC__ is tested.
9226         * build-aux/link-warning.h: Include <features.h>.
9227         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9228         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9229         Reported by Mike Frysinger <vapier@gentoo.org>.
9230
9231         Ensure that <features.h> is included before __GLIBC__ is tested.
9232         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9233         Reported by Mike Frysinger <vapier@gentoo.org>.
9234
9235 2010-11-20  Bruno Haible  <bruno@clisp.org>
9236
9237         memmem: Fix autoconf test.
9238         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9239
9240 2010-11-20  Bruno Haible  <bruno@clisp.org>
9241
9242         Port to uClibc.
9243         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9244         * lib/fcntl.in.h: Likewise.
9245         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9246         * lib/mbrtowc.c (mbrtowc): Likewise.
9247         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9248         * lib/strerror_r.c: Likewise.
9249         * lib/unistr/u8-strnlen.c: Likewise.
9250         * lib/vasnprintf.c (decimal_point_char): Likewise.
9251         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9252         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9253         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9254         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9255         * tests/test-sigaction.c (handler, main): Likewise.
9256         * lib/freading.h: Treat uClibc like a non-glibc platform.
9257         * lib/freading.c: Likewise.
9258         * lib/gettext.h: Likewise.
9259         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9260         Likewise.
9261         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9262         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9263         * lib/propername.c (proper_name_utf8): Likewise.
9264         * lib/spawn.in.h: Likewise.
9265         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
9266         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
9267         mem_cd_iconveh_internal): Likewise.
9268         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
9269         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9270         strstr, strcasestr): Likewise.
9271         * lib/unicodeio.c (unicode_to_mb): Likewise.
9272         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
9273         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
9274         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
9275         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
9276         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
9277         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
9278         * lib/unistr/u8-stpncpy.c: Likewise.
9279         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9280         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
9281         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9282         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9283         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9284         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
9285         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
9286         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
9287         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9288         Likewise.
9289         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9290         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9291         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9292         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9293         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9294         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9295         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9296         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9297         * tests/test-getopt.h (OPTIND_MIN): Likewise.
9298         * tests/test-striconveha.c (main): Likewise.
9299         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9300         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
9301         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
9302         * doc/posix-functions/getline.texi: Likewise.
9303         Reported by Mike Frysinger <vapier@gentoo.org>.
9304
9305 2010-11-20  Bruno Haible  <bruno@clisp.org>
9306
9307         nproc: Fix condition.
9308         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
9309         HAVE_PTHREAD_AFFINITY_NP.
9310
9311 2010-11-20  Bruno Haible  <bruno@clisp.org>
9312
9313         Fix a comment.
9314         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9315
9316 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9317
9318         ftoastr: don't assume snprintf
9319         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
9320         Implement a subset of snprintf here, by using sprintf safely.
9321         * modules/ftoastr (Depends-on): Remove snprintf.
9322
9323 2010-11-19  Jim Meyering  <meyering@redhat.com>
9324
9325         test-rename.h: fix compilation failure
9326         * tests/test-rename.h (test_rename): Add omitted "}".
9327
9328 2010-11-17  Jim Meyering  <meyering@redhat.com>
9329
9330         maint.mk: add a URL discussing the no-@acronym policy
9331         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9332
9333 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9334
9335         ftoastr: depend on snprintf, improve comments
9336         * lib/ftoastr.c: Also mention Loitsch's draft.
9337         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9338         needed in the current implementation, but it might simplify
9339         speeding up the code later.
9340         * modules/ftoastr: Depend on snprintf; this improves portability.
9341         Suggested by Bruno Haible in the same email.
9342
9343         ftoastr: port to hosts lacking strtof and strtold
9344         Problem reported by Bruno Haible in
9345         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9346         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9347         environment and strtold (and presumably strtof) are not available.
9348         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9349         (configure.ac): Require gl_C99_STRTOLD.
9350
9351 2010-11-18  Bruno Haible  <bruno@clisp.org>
9352
9353         c-strtold: Avoid link error on AIX 7.
9354         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9355         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9356         (gl_C_STRTOLD): Test whether strtold_l exists.
9357         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9358
9359 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9360
9361         intprops: new macro INT_BITS_STRLEN_BOUND
9362         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9363         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9364         not exposed.  Also, it uses a slightly tighter bound than before;
9365         though this makes no practical difference, we might as well be as
9366         tight as we easily can.
9367
9368         ftoastr: new module, for lossless conversion of floats to short strings
9369         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9370         * modules/ftoastr: New files.
9371
9372 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9373
9374         bootstrap: port to Solaris sed
9375         * build-aux/bootstrap (get_version): Port to Solaris sed.
9376         See Ralf Wildenhues's note in
9377         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9378
9379 2010-11-14  Jim Meyering  <meyering@redhat.com>
9380
9381         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9382         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9383         and move definition closer to sole use.
9384
9385 2010-11-13  Jim Meyering  <meyering@redhat.com>
9386
9387         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9388         Now we require at least autoconf-2.59, which means the work-around
9389         is no longer needed.
9390         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9391         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9392         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9393         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9394         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9395
9396 2010-11-13  Bruno Haible  <bruno@clisp.org>
9397
9398         rename, renameat: Avoid test failures at NFS mounted locations.
9399         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9400         functions.
9401         (test_rename): Use assert_nonexistent.
9402         * tests/test-rename.c: Include <dirent.h>.
9403         * tests/test-renameat.c: Likewise.
9404         Reported by Gary V. Vaughan <gary@gnu.org>.
9405
9406         rename, renameat: Document Linux bug with NFS
9407         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9408         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9409         * doc/posix-functions/renameat.texi: Likewise.
9410         Suggested by Eric Blake.
9411
9412 2010-11-13  Bruno Haible  <bruno@clisp.org>
9413
9414         rename test: Add comments.
9415         * tests/test-rename.h (test_rename): Add structure and comments.
9416
9417 2010-11-13  Eric Blake  <eblake@redhat.com>
9418
9419         maintainer-makefile: cover a few more files
9420         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9421         scripts generated within C files, for libvirt.
9422
9423 2010-11-13  Bruno Haible  <bruno@clisp.org>
9424
9425         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9426         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9427         character, return the number of bytes that belong together, not always
9428         1.
9429         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9430         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9431         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9432         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9433         number of bytes of an invalid character.
9434         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9435         (main): Invoke it.
9436         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9437         results.
9438         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9439         malformed byte sequences.
9440         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9441         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9442         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9443         Reported by Ben Pfaff and Paolo Bonzini.
9444
9445 2010-11-13  Bruno Haible  <bruno@clisp.org>
9446
9447         openat: Work around glibc bug with fchownat() and empty file names.
9448         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9449         (gl_FUNC_FCHOWNAT): Invoke it.
9450         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9451         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9452         Reported by Gary V. Vaughan <gary@gnu.org>.
9453
9454 2010-11-13  Bruno Haible  <bruno@clisp.org>
9455
9456         openat: Ensure autoconf macro ordering.
9457         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9458         gl_USE_SYSTEM_EXTENSIONS.
9459         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9460
9461 2010-11-13  Bruno Haible  <bruno@clisp.org>
9462
9463         Update comments.
9464         * lib/unistr/u8-check.c: Update file name in comments.
9465         * lib/unistr/u8-mblen.c: Likewise.
9466         * lib/unistr/u8-prev.c: Likewise.
9467         * lib/unistr/u8-strmblen.c: Likewise.
9468         * lib/unistr/u8-strmbtouc.c: Likewise.
9469
9470 2010-11-13  Jim Meyering  <meyering@redhat.com>
9471
9472         tests: avoid test failure on Solaris 10 due to lack of PATH export
9473         * tests/test-update-copyright.sh: Don't forget to export PATH.
9474
9475         init.sh: ensure that IFS is defined, just in case...
9476         * tests/init.sh (setup_): Ensure that IFS is defined,
9477         so that saving and restoring it works as expected.  This
9478         appears to be useful at least for an old version of dash
9479         from a long time ago (RH 6).  See here for details:
9480         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
9481
9482         maint.mk: tighten "test a == b" check
9483         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
9484         test to files that contain something like #!/bin/sh.
9485         Without this, coreutils would get two false positives in
9486         the comments of C source files.
9487
9488 2010-11-12  Eric Blake  <eblake@redhat.com>
9489
9490         bootstrap: fix typo in previous attempt
9491         * build-aux/bootstrap (buildreq): Correct the grouping.
9492         Reported by Paul Eggert.
9493
9494         maintainer-makefile: prohibit test x == x
9495         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
9496         Based on a report by Matthias Bolte.
9497
9498         bootstrap: allow FreeBSD gzip
9499         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
9500         which has no '.' and goes to stderr.
9501         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
9502         Reported by Matthias Bolte.
9503
9504         maintainer-makefile: check for i18n setup
9505         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
9506         will likely work.
9507
9508 2010-11-12  Bruno Haible  <bruno@clisp.org>
9509
9510         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
9511         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
9512         * lib/nanosleep.c (nanosleep): Likewise.
9513
9514 2010-11-11  Bruno Haible  <bruno@clisp.org>
9515
9516         fcntl-h: Fix for use of C++ on glibc systems.
9517         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9518         also on glibc systems in C++ mode.
9519         Reported by Gary V. Vaughan <gary@gnu.org>.
9520
9521 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9522
9523         mknod: avoid false failure with dash
9524         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
9525
9526 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9527
9528         unlink: Fix "is it should" typo in diagnostic.
9529         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
9530         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
9531
9532 2010-11-11  Bruno Haible  <bruno@clisp.org>
9533
9534         Tests for module 'strerror_r-posix'.
9535         * modules/strerror_r-posix-tests: New file.
9536         * tests/test-strerror_r.c: New file.
9537         * tests/test-string-c++.cc: Check the signature of strerror_r.
9538
9539         New module 'strerror_r-posix'.
9540         * lib/string.in.h (strerror_r): New declaration.
9541         * lib/strerror_r.c: New file.
9542         * m4/strerror_r.m4: New file.
9543         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
9544         of strerror_r.
9545         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
9546         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9547         * modules/strerror_r-posix: New file.
9548         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
9549         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9550         * doc/posix-functions/strerror_r.texi: Mention the new module and the
9551         portability problems.
9552
9553 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
9554
9555         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
9556         line is also considered for output. Quoted function name in shell
9557         command, so temporary files for functions like MyClass::operator()
9558         are removed correctly without errors.
9559
9560 2010-11-09  Bruno Haible  <bruno@clisp.org>
9561
9562         * doc/posix-functions/strerror.texi: List more failing platforms.
9563
9564         * doc/posix-functions/strerror.texi: Add a comment.
9565
9566 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9567
9568         fdopendir: fix bug on MacOS X when low on file descriptors
9569
9570         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
9571         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
9572         All callers changed.
9573         (fdopendir): Invoke save_cwd at the top level, not after using
9574         multiple dup() calls to use up file descriptors.  Then retry
9575         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
9576         less than the maximum number of open file descriptors, because
9577         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
9578         on Mac OS X 10.6.4 for tar 1.24
9579         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
9580         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
9581         and for tar 1.25
9582         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
9583
9584 2010-11-07  Bruno Haible  <bruno@clisp.org>
9585
9586         vasnprintf: Support I flag on glibc systems.
9587         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
9588         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
9589         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
9590         snprintf function.
9591         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
9592         glibc systems.
9593         * tests/test-vasnprintf-posix3.c: New file.
9594         * modules/vasnprintf-posix-tests (Files): Add it.
9595         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
9596
9597 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9598
9599         [html] Fix copy/paste bug: Use unique name for compiler warnings.
9600         * MODULES.html.sh: For compiler warnings, use name
9601         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
9602
9603 2010-11-05  Eric Blake  <eblake@redhat.com>
9604
9605         ceil, floor: avoid spurious failure with icc
9606         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
9607         [denormals-as-zero] when optimizing without -mieee-fp option.
9608         * tests/test-floorf2.c (floorf_reference): Likewise.
9609         * tests/test-ceilf1.c (dummy): New function.
9610         (main): Use it to outsmart icc's optimization.
9611         * tests/test-floorf1.c (dummy, main): Likewise.
9612
9613         tests: require working signbit
9614         * modules/ceilf-tests (Depends-on): Add signbit.
9615         * modules/ceill-tests (Depends-on): Likewise.
9616         * modules/floorf-tests (Depends-on): Likewise.
9617         * modules/floorl-tests (Depends-on): Likewise.
9618         * modules/round-tests (Depends-on): Likewise.
9619         * modules/roundf-tests (Depends-on): Likewise.
9620         * modules/roundl-tests (Depends-on): Likewise.
9621         * modules/trunc-tests (Depends-on): Likewise.
9622         * modules/truncf-tests (Depends-on): Likewise.
9623         * modules/truncl-tests (Depends-on): Likewise.
9624
9625         strtod: work around icc bug
9626         * lib/strtod.c (minus_zero): Define to working value.
9627         (strtod): Use it to avoid icc bug.
9628
9629         copysign: enhance tests
9630         * modules/copysign-tests (Files): Add minus-zero.h.
9631         * tests/test-copysign.c (main): Also test zeros.
9632
9633 2010-11-04  Eric Blake  <eblake@redhat.com>
9634
9635         ceil, floor, round, trunc: enhance tests of -0
9636         * tests/test-ceilf1.c (main): Ensure correct sign of result.
9637         * tests/test-ceill.c (main): Likewise.
9638         * tests/test-floorf1.c (main): Likewise.
9639         * tests/test-floorl.c (main): Likewise.
9640         * tests/test-round1.c (main): Likewise.
9641         * tests/test-roundf1.c (main): Likewise.
9642         * tests/test-roundl.c (main): Likewise.
9643         * tests/test-trunc1.c (main): Likewise.
9644         * tests/test-truncf1.c (main): Likewise.
9645         * tests/test-truncl.c (main): Likewise.
9646
9647 2010-11-04  Eric Blake  <eblake@redhat.com>
9648
9649         frexp, tests: work around ICC bug with -zero
9650         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
9651         works with more compilers.
9652         * tests/minus-zero.h: New file.
9653         * modules/ceilf-tests (Files): Include it.
9654         * modules/ceill-tests (Files): Likewise.
9655         * modules/floorf-tests (Files): Likewise.
9656         * modules/floorl-tests (Files): Likewise.
9657         * modules/frexp-nolibm-tests (Files): Likewise.
9658         * modules/frexp-tests (Files): Likewise.
9659         * modules/frexpl-nolibm-tests (Files): Likewise.
9660         * modules/frexpl-tests (Files): Likewise.
9661         * modules/isnan-tests (Files): Likewise.
9662         * modules/isnand-nolibm-tests (Files): Likewise.
9663         * modules/isnand-tests (Files): Likewise.
9664         * modules/isnanf-nolibm-tests (Files): Likewise.
9665         * modules/isnanf-tests (Files): Likewise.
9666         * modules/isnanl-nolibm-tests (Files): Likewise.
9667         * modules/isnanl-tests (Files): Likewise.
9668         * modules/round-tests (Files): Likewise.
9669         * modules/roundf-tests (Files): Likewise.
9670         * modules/roundl-tests (Files): Likewise.
9671         * modules/ldexpl-tests (Files): Likewise.
9672         * modules/signbit-tests (Files): Likewise.
9673         * modules/snprintf-posix-tests (Files): Likewise.
9674         * modules/sprintf-posix-tests (Files): Likewise.
9675         * modules/strtod-tests (Files): Likewise.
9676         * modules/trunc-tests (Files): Likewise.
9677         * modules/truncf-tests (Files): Likewise.
9678         * modules/truncl-tests (Files): Likewise.
9679         * modules/vsnprintf-posix-tests (Files): Likewise.
9680         * modules/vsprintf-posix-tests (Files): Likewise.
9681         * modules/vasnprintf-posix-tests (Files): Likewise.
9682         * modules/vasprintf-posix-tests (Files): Likewise.
9683         * tests/test-ceilf1.c (main): Use it.
9684         * tests/test-ceill.c (main): Likewise.
9685         * tests/test-floorf1.c (main): Likewise.
9686         * tests/test-floorl.c (main): Likewise.
9687         * tests/test-frexp.c (main): Likewise.
9688         * tests/test-frexpl.c (main): Likewise.
9689         * tests/test-isnan.c (main): Likewise.
9690         * tests/test-isnand.h (main): Likewise.
9691         * tests/test-isnanf.h (main): Likewise.
9692         * tests/test-isnanl.h (main): Likewise.
9693         * tests/test-ldexpl.c (main): Likewise.
9694         * tests/test-round.c (main): Likewise.
9695         * tests/test-roundf.c (main): Likewise.
9696         * tests/test-roundl.c (main): Likewise.
9697         * tests/test-signbit.c (test_signbitf, test_signbitd)
9698         (test_signbitl): Likewise.
9699         * tests/test-snprintf-posix.h (test_function): Likewise.
9700         * tests/test-sprintf-posix.h (test_function): Likewise.
9701         * tests/test-strtod.c (main): Likewise.
9702         * tests/test-trunc1.c (main): Likewise.
9703         * tests/test-truncf1.c (main): Likewise.
9704         * tests/test-truncl.c (main): Likewise.
9705
9706         isnanl: work around icc bug
9707         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
9708
9709 2010-11-03  Eric Blake  <eblake@redhat.com>
9710
9711         tests: fix compiler warnings
9712         * tests/test-getopt.h (test_getopt): Fix condition.
9713         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9714         * tests/test-pipe2.c (main): Likewise.
9715         * tests/test-quotearg-simple.c (main): Avoid icc warning.
9716
9717         utimens: fix broken m4 test
9718         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
9719
9720 2010-10-28  Bruno Haible  <bruno@clisp.org>
9721
9722         posix_spawn*, getdtablesize: Relax license.
9723         * modules/posix_spawn (License): Change to LGPLv2+.
9724         * modules/posix_spawnp (License): Likewise.
9725         * modules/posix_spawn-internal (License): Likewise.
9726         * modules/posix_spawnattr_init (License): Likewise.
9727         * modules/posix_spawnattr_getflags (License): Likewise.
9728         * modules/posix_spawnattr_setflags (License): Likewise.
9729         * modules/posix_spawnattr_getpgroup (License): Likewise.
9730         * modules/posix_spawnattr_setpgroup (License): Likewise.
9731         * modules/posix_spawnattr_getschedparam (License): Likewise.
9732         * modules/posix_spawnattr_setschedparam (License): Likewise.
9733         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
9734         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
9735         * modules/posix_spawnattr_getsigdefault (License): Likewise.
9736         * modules/posix_spawnattr_setsigdefault (License): Likewise.
9737         * modules/posix_spawnattr_getsigmask (License): Likewise.
9738         * modules/posix_spawnattr_setsigmask (License): Likewise.
9739         * modules/posix_spawnattr_destroy (License): Likewise.
9740         * modules/posix_spawn_file_actions_init (License): Likewise.
9741         * modules/posix_spawn_file_actions_addclose (License): Likewise.
9742         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
9743         * modules/posix_spawn_file_actions_addopen (License): Likewise.
9744         * modules/posix_spawn_file_actions_destroy (License): Likewise.
9745         * modules/getdtablesize (License): Likewise.
9746         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
9747
9748 2010-10-26  Bruno Haible  <bruno@clisp.org>
9749
9750         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
9751         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
9752         Cygwin and mingw.
9753         Suggested by Eric Blake.
9754
9755 2010-10-26  Bruno Haible  <bruno@clisp.org>
9756
9757         stdio: Work around compilation error due to renameat() on Solaris 10.
9758         * lib/stdio.in.h: Include <unistd.h> on Solaris.
9759         * lib/renameat.c: Don't include <unistd.h> here.
9760         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
9761         Reported by Paul Eggert and Eric Blake.
9762
9763 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9764
9765         renameat: port to Solaris 10, which declares renameat in unistd.h
9766
9767         * lib/renameat.c: Include unistd.h before stdio.h, because
9768         Solaris 10 declares renameat in unistd.h.  Problem encountered
9769         when building GNU tar 1.24 on Solaris 10.
9770
9771 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9772
9773         fdopendir: fix C89 compilation
9774         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
9775         compilers.
9776
9777 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9778
9779         inttostr: simplify by removing unnecessary redundancy
9780         * lib/anytostr.c: Don't include verify.h.
9781         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
9782         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
9783         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
9784         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
9785         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
9786         Likewise.
9787         * modules/inttostr (Depends-on): Remove 'verify'.
9788
9789 2010-10-23  Bruno Haible  <bruno@clisp.org>
9790
9791         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
9792         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
9793         Reported by Eric Blake.
9794
9795 2010-10-23  Bruno Haible  <bruno@clisp.org>
9796
9797         Tests: Fix LOCALE_JA on MirBSD 10.
9798         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
9799         to an UTF-8 locale.
9800         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
9801         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9802         Reported by Eric Blake.
9803
9804 2010-10-21  Bruno Haible  <bruno@clisp.org>
9805
9806         nl_langinfo test: Avoid test failure on NetBSD 5.
9807         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
9808         Reported by Eric Blake.
9809
9810 2010-10-21  Eric Blake  <eblake@redhat.com>
9811
9812         c-stack: work around libsigsegv 2.8 bug
9813         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
9814         overflow on at least PowerPC64.
9815
9816 2010-10-17  Bruno Haible  <bruno@clisp.org>
9817
9818         userspec: Drop redundant file.
9819         * modules/userspec (Files): Remove lib/inttostr.h.
9820
9821 2010-10-17  Bruno Haible  <bruno@clisp.org>
9822
9823         nl_langinfo tests: Silence some warnings.
9824         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
9825         Reported by Jim Meyering.
9826
9827 2010-10-17  Bruno Haible  <bruno@clisp.org>
9828
9829         Make use of GCC's attribute __alloc_size__.
9830         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
9831         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
9832         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
9833         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
9834         __alloc_size__.
9835         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9836         Suggested by Jim Meyering.
9837
9838 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
9839
9840         bootstrap: anchor .gitignore entries.
9841         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
9842         with...
9843         (insert_vc_ignore): ... this new function, which prepends `/' to
9844         all .gitignore entries before passing them to
9845         insert_sorted_if_absent.
9846
9847 2010-10-16  Bruno Haible  <bruno@clisp.org>
9848
9849         nextafter: Fix configure check.
9850         * modules/nextafter (configure.ac): Correct expected prototype.
9851
9852 2010-10-16  Bruno Haible  <bruno@clisp.org>
9853
9854         termios: Update documentation.
9855         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
9856
9857 2010-10-16  Bruno Haible  <bruno@clisp.org>
9858
9859         tests: Make them compile with TinyCC.
9860         * tests/test-strstr.c (main): Remove parentheses around array
9861         initializer.
9862
9863 2010-10-15  Eric Blake  <eblake@redhat.com>
9864
9865         ignore-value: make header idempotent
9866         * lib/ignore-value.h: Add double-inclusion guards.
9867         Reported by Stefan Berger.
9868
9869 2010-10-15  Jim Meyering  <meyering@redhat.com>
9870
9871         GNUmakefile: handle "stable" target, not "major"
9872         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
9873         lists in maint.mk and announce-gen.  Without this, "make stable"
9874         would fail to ensure that $(VERSION) is up to date.
9875
9876 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
9877
9878         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
9879         & co.
9880
9881 2010-10-14  Bruno Haible  <bruno@clisp.org>
9882
9883         vasnprintf: Don't set errno to 0.
9884         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
9885         block that sets it to 0.
9886         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
9887
9888 2010-10-14  Bruno Haible  <bruno@clisp.org>
9889
9890         socketlib: Fix.
9891         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
9892         gl_PREREQ_SYS_H_WINSOCK2.
9893         Reported by Ian Beckwith <ianb@erislabs.net>.
9894
9895 2010-10-13  Jim Meyering  <meyering@redhat.com>
9896
9897         test-select-stdin.c: avoid warn_unused_result warnings
9898         * tests/test-select-stdin.c: Include "macros.h".
9899         ASSERT that read and fflush succeed.
9900
9901 2010-10-13  Jim Meyering  <meyering@redhat.com>
9902
9903         git-version-gen: do require git-VC'd files in cwd
9904         * build-aux/git-version-gen: Reject a git version string
9905         if there are no commits associated with the current directory.
9906         This avoids an unlikely false-positive (unrelated dir whose parent
9907         repository also contains a tag matching v*), as pointed out
9908         by Giuseppe Scrivano in
9909         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
9910
9911 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9912
9913         argv-iter: omit nonconforming declaration
9914         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
9915         enum arg_iter_err declaration, which doesn't conform to C99.
9916         Solaris 10 cc warns about this.
9917
9918 2010-10-13  Eric Blake  <eblake@redhat.com>
9919
9920         termios: fix compilation on mingw
9921         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
9922         (gl_TERMIOS_H): Adjust it on mingw.
9923         * modules/termios (Makefile.am): Substitute new key.
9924         * lib/termios.in.h (includes): Make include_next conditional.
9925         * doc/posix-headers/termios.texi (termios.h): Update
9926         documentation.
9927         Reported by Daniel P. Berrange.
9928
9929 2010-10-13  Jim Meyering  <meyering@redhat.com>
9930
9931         git-version-gen: don't require that .git/ be in the current dir
9932         * build-aux/git-version-gen: Adjust this script so that it works
9933         when run from any working directory beneath the top-level .git/-
9934         containing directory.  Inspired by a patch from Giuseppe Scrivano,
9935         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
9936
9937         test-select: avoid warn_unused_result warnings
9938         * tests/test-select.c: Include "macros.h".
9939         ASSERT that each call to read, write, and pipe succeeds.
9940         While not technically required, also check each "close".
9941         * modules/select-tests (Files): Add tests/macros.h.
9942
9943         test-symlinkat: remove declaration of unused local
9944         * tests/test-symlinkat.c (main): Remove unused local, "buf".
9945
9946         test-inttostr: avoid shadowing warnings
9947         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
9948         and use malloc rather than the stack for the same reason as
9949         mentioned in the comment justifying the other allocation.
9950
9951 2010-10-11  Bruno Haible  <bruno@clisp.org>
9952
9953         stdlib: Allow multiple gnulib generated replacements to coexist.
9954         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
9955         Reported by Sam Steingold <sds@gnu.org>.
9956
9957 2010-10-11  Jim Meyering  <meyering@redhat.com>
9958
9959         fix a documentation typo
9960         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
9961
9962 2010-10-11  Eric Blake  <eblake@redhat.com>
9963
9964         futimens: work around Solaris 11 bug
9965         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
9966         * tests/test-futimens.h (test_futimens): Enhance, rather than
9967         weaken test.
9968         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9969
9970 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9971
9972         Indentation.
9973         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
9974         higher-level operators more to the left.
9975
9976 2010-10-11  Jim Meyering  <meyering@redhat.com>
9977
9978         test-futimens: avoid unwarranted test failure on Solaris 5.11
9979         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
9980         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
9981         because it tries to dereference the NULL name argument.
9982
9983 2010-10-11  Bruno Haible  <bruno@clisp.org>
9984
9985         Indentation.
9986         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
9987         indentation.
9988
9989 2010-10-11  Jim Meyering  <meyering@redhat.com>
9990
9991         spawn.in.h: make indentation consistent with parentheses
9992         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
9993         Make indentation consistent with parentheses.
9994
9995 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
9996
9997         Fix mismatched parens in previous commit
9998         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
9999         parens.
10000
10001 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10002
10003         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
10004
10005         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
10006         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
10007         * lib/malloca.c: Include "verify.h".
10008         (verify1): Remove, replacing with a verify call.
10009         * lib/relocwrapper.c (verify1): Likewise.
10010         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
10011         Likewise.
10012         * modules/malloca (Depends-on): Add 'verify'.
10013         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
10014         * modules/vasnprintf (Depends-on): Add 'verify'.
10015         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10016         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10017         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10018         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10019         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10020         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10021         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10022
10023         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
10024
10025         Formerly the style was sometimes 2*X - 1, because the C standard
10026         was wrongly thought to disallow ?: in integral constant expressions.
10027         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
10028         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
10029         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10030         * lib/stdint.in.h (_verify_intmax_size): Likewise.
10031         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
10032         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
10033         verify that time_t cannot be floating.
10034
10035 2010-10-08  Eric Blake  <eblake@redhat.com>
10036
10037         time: enforce recent POSIX ruling that time_t is integral
10038         * lib/time.in.h (__time_t_must_be_integral): Detect any
10039         problematic systems, allowing the rest of gnulib to assume POSIX.
10040
10041 2010-10-08  Jim Meyering  <meyering@redhat.com>
10042
10043         fdopendir: fix a bug on systems lacking openat and /proc support
10044         OpenBSD 4.7 is one such system.  The most noticeable effect was
10045         failure of any application making nontrivial use of fts: rm, du,
10046         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
10047           ./rm: traversal failed: `a': Bad file descriptor
10048         Debugging that, you see that even though FD 6 was closed just
10049         prior to the opendir call in fd_clone_opendir, its resulting
10050         dir->dd_fd was 8, rather than the expected value of 6:
10051
10052         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
10053         93                close (fd);
10054         (gdb) n
10055         94                dir = fd_clone_opendir (dupfd);
10056         (gdb) n
10057         95                saved_errno = errno;
10058         (gdb) p dir->dd_fd
10059         $11 = 8
10060
10061         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
10062         The problem is that on OpenBSD, fd_clone_opendir has to resort
10063         to using the old-style save/restore CWD mechanism, due to its
10064         lack of openat/proc support, and *that* would steal the FD (6)
10065         that opendir was supposed to use.
10066
10067         The fix is to squirrel away the desired FD so that save_cwd uses a
10068         different one, and then free the dest FD right before calling opendir.
10069         That guarantees opendir will use the required file descriptor.
10070
10071         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
10072
10073 2010-10-08  Bruno Haible  <bruno@clisp.org>
10074
10075         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
10076         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
10077
10078 2010-10-08  Bruno Haible  <bruno@clisp.org>
10079
10080         nanosleep: Make replacement POSIX compliant.
10081         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
10082         is out of range.
10083         Reported by Jim Meyering.
10084
10085 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10086
10087         bootstrap: add hook for altering gnulib.mk, for Bison
10088         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
10089         the Bison bootstrapping process can rewrite file names and variables
10090         in this file before later parts of 'bootstrap' use the file.
10091         Bison wants to include lib/gnulib.mk from the top-level makefile,
10092         so it needs the file names in this file to be relative to the top
10093         level, not relative to lib; plus it needs variable names to be
10094         rewritten.
10095         (slurp): Use the new function.
10096
10097         bootstrap: reformat for readability
10098         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
10099
10100 2010-10-08  Eric Blake  <eblake@redhat.com>
10101
10102         docs: update cygwin progress
10103         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
10104         1.7.7.
10105         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
10106         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
10107         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
10108         * doc/posix-functions/carg.texi (carg): Likewise.
10109         * doc/posix-functions/cargf.texi (cargf): Likewise.
10110         * doc/posix-functions/casin.texi (casin): Likewise.
10111         * doc/posix-functions/casinf.texi (casinf): Likewise.
10112         * doc/posix-functions/casinh.texi (casinh): Likewise.
10113         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
10114         * doc/posix-functions/catan.texi (catan): Likewise.
10115         * doc/posix-functions/catanf.texi (catanf): Likewise.
10116         * doc/posix-functions/catanh.texi (catanh): Likewise.
10117         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
10118         * doc/posix-functions/ccos.texi (ccos): Likewise.
10119         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
10120         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
10121         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
10122         * doc/posix-functions/cexp.texi (cexp): Likewise.
10123         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
10124         * doc/posix-functions/cimag.texi (cimag): Likewise.
10125         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
10126         * doc/posix-functions/clog.texi (clog): Likewise.
10127         * doc/posix-functions/clogf.texi (clogf): Likewise.
10128         * doc/posix-functions/conj.texi (conj): Likewise.
10129         * doc/posix-functions/conjf.texi (conjf): Likewise.
10130         * doc/posix-functions/cpow.texi (cpow): Likewise.
10131         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
10132         * doc/posix-functions/cproj.texi (cproj): Likewise.
10133         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
10134         * doc/posix-functions/creal.texi (creal): Likewise.
10135         * doc/posix-functions/crealf.texi (crealf): Likewise.
10136         * doc/posix-functions/csin.texi (csin): Likewise.
10137         * doc/posix-functions/csinf.texi (csinf): Likewise.
10138         * doc/posix-functions/csinh.texi (csinh): Likewise.
10139         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
10140         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
10141         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
10142         * doc/posix-functions/ctan.texi (ctan): Likewise.
10143         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
10144         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
10145         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
10146         * doc/posix-headers/complex.texi (complex.h): Likewise.
10147
10148 2010-10-07  Jim Meyering  <meyering@redhat.com>
10149
10150         parse-datetime: avoid compilation failure on OpenBSD 4.7
10151         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
10152         This works around a compilation failure on OpenBSD 4.7:
10153         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
10154
10155 2010-10-07  Eric Blake  <eblake@redhat.com>
10156
10157         docs: update cygwin progress
10158         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
10159         1.7.6.
10160         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
10161         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
10162         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
10163         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
10164         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
10165         Likewise.
10166         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
10167         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
10168         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
10169         Likewise.
10170         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
10171         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
10172         Likewise.
10173         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
10174         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
10175         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
10176         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
10177         Likewise.
10178         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
10179         Likewise.
10180         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
10181
10182         docs: update parse-datetime history
10183         * doc/parse-datetime.texi (Authors of parse_datetime): Better
10184         documentation of this function's history and alternatives.
10185
10186         cygwin: use more robust version check
10187         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
10188         exclude an eventual cygwin 1.9.1.
10189         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10190         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10191         (gl_FUNC_STRCASESTR): Likewise.
10192         Reported by Bruno Haible.
10193
10194 2010-10-06  Bruno Haible  <bruno@clisp.org>
10195
10196         string, sys_select: Avoid #including large headers unless necessary.
10197         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10198         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10199         OSF/1, BeOS, Haiku.
10200         Reported by Jim Meyering.
10201
10202 2010-10-05  Eric Blake  <eblake@redhat.com>
10203
10204         memmem, strstr, strcasestr: fix bug with long periodic needle
10205         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10206         periodic needle having false positive.
10207         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10208         and cygwin 1.7.7.
10209         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10210         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10211         (gl_FUNC_STRCASESTR): Likewise.
10212         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10213         * tests/test-memmem.c (main): Expose the bug.
10214         * tests/test-strcasestr.c (main): Likewise.
10215         * tests/test-strstr.c (main): Likewise.
10216         * tests/test-c-strcasestr.c (main): Likewise.
10217         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10218         * doc/posix-functions/strstr.texi (strstr): Likewise.
10219         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10220         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10221
10222 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10223
10224         parse-datetime: do some more renaming
10225         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10226         parse_datetime, not get_date.  Mention the renaming.
10227         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10228         in comments.
10229         * m4/bison.m4: Likewise.
10230
10231 2010-10-05  Eric Blake  <eblake@redhat.com>
10232
10233         parse-datetime: better name than get_date
10234         * NEWS: Reword the deprecation notice.
10235         * modules/get_date: Rename to modules/parse-datetime.
10236         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10237         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10238         * lib/get_date.y: Rename to lib/parse-datetime.y.
10239         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10240         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10241         * doc/getdate.texi: Provide fallback wrapper.
10242         * lib/getdate.h: Move guts, and wrap...
10243         * lib/parse-datetime.h: ...new file.
10244         * lib/parse-datetime.y (get_date): Rename...
10245         (parse_datetime): ...to this.
10246         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10247         (gl_PARSE_DATETIME): ...to this.
10248         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10249         documentation.
10250         * modules/getdate (Files): Provide fallback docs and header.
10251         (Notice, Depends-on): Update references.
10252         * tests/test-parse-datetime.c: Likewise.
10253         * DEPENDENCIES: Likewise.
10254         * MODULES.html.sh (Date and time <time.h>): Likewise.
10255         * doc/parse-datetime.texi (Date input formats)
10256         (Authors of parse_datetime): Likewise.
10257         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10258         (Include): Likewise.
10259         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10260         * gnulib-tool: Likewise.
10261         * m4/bison.m4 (gl_BISON): Likewise.
10262         Suggested by Bruno Haible.
10263
10264 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10265
10266         more ports to Solaris tr, which needs [] around ranges
10267         * gnulib-tool: Solaris tr needs [] around ranges.
10268         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10269         * tests/test-pipe-filter-gi1.c (main): Likewise.
10270         * tests/test-pipe-filter-ii1.c (main): Likewise.
10271
10272 2010-10-05  Eric Blake  <eblake@redhat.com>
10273
10274         bootstrap: fix Solaris regression
10275         * build-aux/bootstrap (check_versions): Solaris tr still needs []
10276         around ranges.
10277         Reported by Pádraig Brady.
10278
10279         bootstrap: work with pkg-config
10280         * build-aux/bootstrap (check_versions): Also transliterate - in
10281         prerequisite name.
10282         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
10283         prerequisites that were already found, to avoid confusion.
10284         Reported by Justin Clift.
10285
10286         faccessat: remove unused wrappers
10287         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
10288         presence of these wrappers dragged in -lgen on Solaris.
10289         Reported by Clemens Brogi; fix suggested by Paul Eggert.
10290
10291 2010-10-05  Jim Meyering  <meyering@redhat.com>
10292
10293         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
10294         * Makefile (sc_pragma_columns): New syntax-check rule.
10295
10296 2010-10-04  Bruno Haible  <bruno@clisp.org>
10297
10298         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
10299         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
10300         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
10301         Reported by Bruce Korb and Eric Blake.
10302
10303 2010-10-04  Bruno Haible  <bruno@clisp.org>
10304
10305         threadlib: Make option --with-libpth-prefix work.
10306         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
10307         use $LIBPTH, not just -lpth.
10308
10309 2010-10-04  Bruno Haible  <bruno@clisp.org>
10310
10311         Avoid line length limitation from HP NonStop system header files.
10312         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
10313         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
10314         * lib/ctype.in.h: Likewise.
10315         * lib/dirent.in.h: Likewise.
10316         * lib/errno.in.h: Likewise.
10317         * lib/fcntl.in.h: Likewise.
10318         * lib/float.in.h: Likewise.
10319         * lib/getopt.in.h: Likewise.
10320         * lib/iconv.in.h: Likewise.
10321         * lib/inttypes.in.h: Likewise.
10322         * lib/langinfo.in.h: Likewise.
10323         * lib/locale.in.h: Likewise.
10324         * lib/math.in.h: Likewise.
10325         * lib/netdb.in.h: Likewise.
10326         * lib/netinet_in.in.h: Likewise.
10327         * lib/poll.in.h: Likewise.
10328         * lib/pthread.in.h: Likewise.
10329         * lib/pty.in.h: Likewise.
10330         * lib/sched.in.h: Likewise.
10331         * lib/se-selinux.in.h: Likewise.
10332         * lib/search.in.h: Likewise.
10333         * lib/signal.in.h: Likewise.
10334         * lib/spawn.in.h: Likewise.
10335         * lib/stdarg.in.h: Likewise.
10336         * lib/stddef.in.h: Likewise.
10337         * lib/stdint.in.h: Likewise.
10338         * lib/stdio.in.h: Likewise.
10339         * lib/stdlib.in.h: Likewise.
10340         * lib/string.in.h: Likewise.
10341         * lib/strings.in.h: Likewise.
10342         * lib/sys_file.in.h: Likewise.
10343         * lib/sys_ioctl.in.h: Likewise.
10344         * lib/sys_select.in.h: Likewise.
10345         * lib/sys_socket.in.h: Likewise.
10346         * lib/sys_stat.in.h: Likewise.
10347         * lib/sys_time.in.h: Likewise.
10348         * lib/sys_times.in.h: Likewise.
10349         * lib/sys_utsname.in.h: Likewise.
10350         * lib/sys_wait.in.h: Likewise.
10351         * lib/sysexits.in.h: Likewise.
10352         * lib/termios.in.h: Likewise.
10353         * lib/time.in.h: Likewise.
10354         * lib/unistd.in.h: Likewise.
10355         * lib/wchar.in.h: Likewise.
10356         * lib/wctype.in.h: Likewise.
10357         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10358         * modules/ctype (Makefile.am): Likewise.
10359         * modules/dirent (Makefile.am): Likewise.
10360         * modules/errno (Makefile.am): Likewise.
10361         * modules/fcntl-h (Makefile.am): Likewise.
10362         * modules/float (Makefile.am): Likewise.
10363         * modules/getopt-posix (Makefile.am): Likewise.
10364         * modules/iconv-h (Makefile.am): Likewise.
10365         * modules/inttypes (Makefile.am): Likewise.
10366         * modules/langinfo (Makefile.am): Likewise.
10367         * modules/locale (Makefile.am): Likewise.
10368         * modules/math (Makefile.am): Likewise.
10369         * modules/netdb (Makefile.am): Likewise.
10370         * modules/netinet_in (Makefile.am): Likewise.
10371         * modules/poll-h (Makefile.am): Likewise.
10372         * modules/pthread (Makefile.am): Likewise.
10373         * modules/pty (Makefile.am): Likewise.
10374         * modules/sched (Makefile.am): Likewise.
10375         * modules/search (Makefile.am): Likewise.
10376         * modules/selinux-h (Makefile.am): Likewise.
10377         * modules/signal (Makefile.am): Likewise.
10378         * modules/spawn (Makefile.am): Likewise.
10379         * modules/stdarg (Makefile.am): Likewise.
10380         * modules/stddef (Makefile.am): Likewise.
10381         * modules/stdint (Makefile.am): Likewise.
10382         * modules/stdio (Makefile.am): Likewise.
10383         * modules/stdlib (Makefile.am): Likewise.
10384         * modules/string (Makefile.am): Likewise.
10385         * modules/strings (Makefile.am): Likewise.
10386         * modules/sys_file (Makefile.am): Likewise.
10387         * modules/sys_ioctl (Makefile.am): Likewise.
10388         * modules/sys_select (Makefile.am): Likewise.
10389         * modules/sys_socket (Makefile.am): Likewise.
10390         * modules/sys_stat (Makefile.am): Likewise.
10391         * modules/sys_time (Makefile.am): Likewise.
10392         * modules/sys_times (Makefile.am): Likewise.
10393         * modules/sys_utsname (Makefile.am): Likewise.
10394         * modules/sys_wait (Makefile.am): Likewise.
10395         * modules/sysexits (Makefile.am): Likewise.
10396         * modules/termios (Makefile.am): Likewise.
10397         * modules/time (Makefile.am): Likewise.
10398         * modules/unistd (Makefile.am): Likewise.
10399         * modules/wchar (Makefile.am): Likewise.
10400         * modules/wctype (Makefile.am): Likewise.
10401
10402 2010-10-04  Bruno Haible  <bruno@clisp.org>
10403
10404         read-file tests: Avoid a test failure on NonStop Kernel.
10405         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10406         a regular file.
10407         Reported by Joachim Schmitz <schmitz@hp.com>.
10408
10409 2010-10-03  Bruno Haible  <bruno@clisp.org>
10410
10411         gnulib-tool: Fixes for --create-testdir with --libtool.
10412         * gnulib-tool (func_get_automake_snippet): Don't augment
10413         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10414         an executable.
10415         (func_create_testdir): Handle module 'alloca' like func_import.
10416         Reported by Bruce Korb <bruce.korb@gmail.com>.
10417
10418 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10419
10420         Avoid some lines longer than 80 characters.
10421         * lib/stdint.in.h: Break long comment lines.
10422         * lib/math.in.h: Likewise.
10423         (_GL_NUM_UINT_WORDS): New macro, for readability.
10424         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10425         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10426         * lib/stdlib.in.h: Likewise.
10427         * lib/spawn.in.h: Likewise.
10428         * lib/sys_socket.in.h: Update an URL.
10429         * lib/sys_stat.in.h: Break long line.
10430
10431 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10432
10433         Improve pmccabe2html.
10434         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10435         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10436         when the sources change. Remove the line in the HTML about "Used
10437         ranges" (which implied that there might be other unused ranges),
10438         rename "Resume" to "Summary" (easier to understand for more users).
10439         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10440         styles, and some unnecessary blank lines.
10441
10442 2010-10-03  Bruno Haible  <bruno@clisp.org>
10443             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10444
10445         acl: Add support for ACLs on NonStop Kernel.
10446         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10447         Check whether the function aclsort() exists.
10448         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10449         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10450         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10451         (acl_nontrivial [HAVE_ACLSORT]: New function.
10452         (file_has_acl): Implement for NonStop Kernel.
10453         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10454         (qset_acl): Implement for NonStop Kernel.
10455         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10456         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10457         (main): Implement for NonStop Kernel.
10458         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10459         Kernel. Handle this flavor.
10460         * tests/test-set-mode-acl.sh: Likewise.
10461         * tests/test-copy-acl.sh: Likewise.
10462         * tests/test-copy-file.sh: Likewise.
10463
10464 2010-10-03  Bruno Haible  <bruno@clisp.org>
10465
10466         Info about ACLs on NonStop Kernel.
10467         * doc/acl-resources.txt: Add info about NonStop Kernel.
10468         References by Joachim Schmitz <schmitz@hp.com>.
10469
10470 2010-10-02  Bruno Haible  <bruno@clisp.org>
10471
10472         Define missing EDQUOT on NonStop Kernel.
10473         * lib/errno.in.h (EDQUOT): Assign a value if missing.
10474         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
10475         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
10476         missing.
10477         * doc/posix-headers/errno.texi: Mention the NSK bug.
10478         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
10479         Reported by Joachim Schmitz <schmitz@hp.com>.
10480
10481 2010-10-02  Bruno Haible  <bruno@clisp.org>
10482
10483         Update doc for POSIX:2008.
10484         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
10485         Update URL of POSIX specification.
10486
10487 2010-10-02  Bruno Haible  <bruno@clisp.org>
10488
10489         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
10490         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
10491         from gnulib, not from Automake.
10492
10493 2010-10-02  Bruno Haible  <bruno@clisp.org>
10494
10495         New module 'system-posix'.
10496         * modules/system-posix: New file.
10497         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
10498         module is present.
10499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10500         GNULIB_SYSTEM_POSIX.
10501         * modules/stdlib (Depends-on): Remove sys_wait.
10502         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
10503         * doc/posix-functions/system.texi: Mention the new module.
10504         * doc/posix-headers/stdlib.texi: Likewise.
10505         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
10506         define test_sys_wait_macros to a no-op.
10507         Reported by Sam Steingold <sds@gnu.org>.
10508
10509 2010-09-30  Bruno Haible  <bruno@clisp.org>
10510
10511         More renaming from 'getdate' to 'get_date'.
10512         * doc/get_date.texi: Renamed from doc/getdate.texi.
10513         * modules/get_date (Files): Update.
10514         * MODULES.html.sh (Date and time <time.h>): Update.
10515         * DEPENDENCIES: Update.
10516         * gnulib-tool: Update comment.
10517         * m4/bison.m4 (gl_BISON): Likewise.
10518         * m4/get_date.m4 (gl_GET_DATE): Likewise.
10519
10520 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
10521
10522         bootstrap: support ACLOCAL_FLAGS during aclocal
10523         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
10524         can add additional -I dir for third-party .m4 files.
10525
10526 2010-09-30  Eric Blake  <eblake@redhat.com>
10527
10528         bootstrap: use glibtoolize on MacOS
10529         * build-aux/bootstrap (check_versions): Convert libtool into
10530         libtoolize.
10531         (tool search): Move libtool check earlier, and look for
10532         glibtoolize for MacOS.
10533         (gnulib_tool_options): Auto-add --libtool when appropriate.
10534         Reported by Justin Clift.
10535
10536         poll: fix typo that broke test on MacOS
10537         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
10538         Reported by Justin Clift.
10539
10540         getdate: rename to get_date
10541         Note: getdate.h is not renamed, to minimize client impact.
10542         * modules/getdate: Mark obsolete.  Move old contents...
10543         * modules/get_date: ...to new module name.
10544         * modules/getdate-tests: Move...
10545         * modules/get_date-tests: ...here.
10546         * m4/getdate.m4: Move...
10547         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
10548         * lib/getdate.y: Move...
10549         * lib/get_date.y: ...here.
10550         * tests/test-getdate.c: Move...
10551         * tests/test-get_date.c: ...here.
10552         * doc/posix-functions/getdate.texi (getdate): Update name.
10553         * NEWS: Mention the change.
10554
10555 2010-09-29  Bruno Haible  <bruno@clisp.org>
10556
10557         Separate the module 'waitpid' from the module 'sys_wait'.
10558         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
10559         present.
10560         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
10561         gl_MODULE_INDICATOR_FOR_TESTS.
10562         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
10563         * modules/sys_wait (Depends-on): Remove waitpid.
10564         (Makefile.am): Substitute GNULIB_WAITPID.
10565         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
10566         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
10567         signature only if the 'waitpid' module is present.
10568         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
10569         * NEWS: Mention the change.
10570         * modules/grantpt (Depends-on): Add waitpid.
10571         * modules/wait-process (Depends-on): Likewise.
10572
10573 2010-09-29  Bruno Haible  <bruno@clisp.org>
10574
10575         More tests for module 'sys_wait'.
10576         * modules/sys_wait-c++-tests: New file.
10577         * tests/test-sys_wait-c++.cc: New file.
10578         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
10579         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10580
10581 2010-09-29  Bruno Haible  <bruno@clisp.org>
10582
10583         New module 'waitpid'.
10584         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
10585         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
10586         Don't include <process.h>.
10587         (waitpid): Declare only, using modern idiom.
10588         * m4/waitpid.m4: New file.
10589         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
10590         * modules/waitpid: New file.
10591         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
10592         (Makefile.am): Update.
10593         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10594
10595 2010-09-28  Bruno Haible  <bruno@clisp.org>
10596
10597         poll: Assume ANSI C.
10598         * lib/poll.c (poll): Use an ANSI C declaration.
10599
10600 2010-09-28  Bruno Haible  <bruno@clisp.org>
10601
10602         poll-h: Create poll.h on all platforms.
10603         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
10604         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
10605         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
10606         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
10607         (gl_REPLACE_POLL_H): Don't set POLL_H.
10608         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
10609         * modules/poll-h (Depends-on): Add include_next.
10610         (Makefile.am): Create poll.h unconditionally. Substitute also
10611         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
10612
10613 2010-09-28  Bruno Haible  <bruno@clisp.org>
10614
10615         Tests for module 'poll-h'.
10616         * modules/poll-h-c++-tests: New file.
10617         * tests/test-poll-h-c++.cc: New file.
10618
10619         Tests for module 'poll-h'.
10620         * modules/poll-h-tests: New file.
10621         * tests/test-poll-h.c: New file.
10622
10623 2010-09-28  Bruno Haible  <bruno@clisp.org>
10624
10625         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
10626         * modules/poll-h (Depends-on): Add 'extensions'.
10627
10628 2010-09-28  Bruno Haible  <bruno@clisp.org>
10629
10630         New module 'poll-h'.
10631         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
10632         (poll): Use modern idiom.
10633         * modules/poll-h: New file.
10634         * modules/poll (Files): Remove lib/poll.in.h.
10635         (Depends-on): Add poll-h.
10636         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
10637         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
10638         * m4/poll_h.m4: New file.
10639         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
10640         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
10641         and invoke gl_REPLACE_POLL_H.
10642         * lib/poll.c: Use common idiom.
10643         * tests/test-poll.c: Likewise.
10644         * doc/posix-headers/poll.texi: Mention the poll-h module.
10645         Suggested by Eric Blake.
10646
10647 2010-09-26  Bruno Haible  <bruno@clisp.org>
10648
10649         sys_wait: Implement WSTOPSIG.
10650         * lib/sys_wait.in.h (WSTOPSIG): New macro.
10651         Reported by Simon Josefsson.
10652
10653 2010-09-26  Simon Josefsson  <simon@josefsson.org>
10654
10655         stdlib, sys_wait: Avoid compilation error on mingw.
10656         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
10657
10658 2010-09-26  Bruno Haible  <bruno@clisp.org>
10659
10660         stdlib tests: Avoid code duplication.
10661         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
10662         * modules/sys_wait-tests (Files): Likewise.
10663         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
10664         * tests/test-stdlib.c: Include test-sys_wait.h.
10665         (main): Invoke test_sys_wait_macros.
10666         * tests/test-sys_wait.c: Include test-sys_wait.h.
10667         (main): Invoke test_sys_wait_macros.
10668
10669 2010-09-25  Simon Josefsson  <simon@josefsson.org>
10670
10671         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
10672         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
10673         sure Windows sockets are working before calling getaddrinfo.
10674         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
10675         * doc/gnulib.texi (Windows sockets): Fix typo.
10676
10677 2010-09-25  Bruno Haible  <bruno@clisp.org>
10678
10679         Tests for module 'regex-quote'.
10680         * modules/regex-quote-tests: New file.
10681         * tests/test-regex-quote.c: New file.
10682
10683         New module 'regex-quote'.
10684         * lib/regex-quote.h: New file.
10685         * lib/regex-quote.c: New file.
10686         * modules/regex-quote: New file.
10687         Suggested by Reuben Thomas <rrt@sc3d.org>.
10688
10689 2010-09-24  Bruno Haible  <bruno@clisp.org>
10690
10691         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
10692         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
10693
10694 2010-09-23  Bruno Haible  <bruno@clisp.org>
10695
10696         setenv: Relax license.
10697         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
10698         Blake.
10699         Requested by Eric Blake.
10700
10701 2010-09-22  Bruno Haible  <bruno@clisp.org>
10702
10703         termios: Relax license.
10704         * modules/termios (License): Change to LGPLv2+.
10705         Requested by Eric Blake.
10706
10707 2010-09-22  Bruno Haible  <bruno@clisp.org>
10708
10709         threadlib: Allow the package to change the default to 'no'.
10710         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
10711         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
10712         Reported by Paul Eggert.
10713
10714 2010-09-22  Pádraig Brady  <P@draigbrady.com>
10715             Bruno Haible  <bruno@clisp.org>
10716
10717         Fix endless loop in mbmemcasecoll.
10718         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
10719         byte.
10720         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
10721
10722 2010-09-22  Bruno Haible  <bruno@clisp.org>
10723
10724         Tests for module 'memcoll'.
10725         * modules/memcoll-tests: New file.
10726         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
10727
10728         memcoll, xmemcoll: Clarify size vs. length.
10729         * modules/memcoll.c (memcoll0): Clarify specification.
10730         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
10731         passed to collate_error.
10732
10733 2010-09-22  Bruno Haible  <bruno@clisp.org>
10734
10735         Tests for module 'memcasecmp'.
10736         * modules/memcasecmp-tests: New file.
10737         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
10738
10739 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10740
10741         * lib/pthread.in.h: Add split double-inclusion guard, and include
10742         system <pthread.h> if there is one.  Use @@-style as in other
10743         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
10744         pthread.h doesn't.
10745         (pthread_mutexattr_destroy, pthread_mutexattr_init):
10746         (pthread_mutexattr_settype, pthread_mutex_trylock):
10747         New static inline functions, if there's no system <pthread.h>.
10748         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
10749         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
10750         Approximate with mutexes if the system lacks spinlocks, as in
10751         MacOS.
10752         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
10753         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
10754         @@-style.  Check for spinlocks separately.
10755         (gl_PTHREAD_DEFAULTS): New macro.
10756         * modules/pthread: Redo to use a more typical style for in.h files.
10757
10758 2010-09-21  Eric Blake  <eblake@redhat.com>
10759
10760         net_if: enhance tests
10761         * tests/test-net_if.c (main): Move signature checks earlier.
10762         Print failures to stderr.
10763         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
10764         Document the bug that we do not yet fix.
10765
10766 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10767
10768         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
10769         about gnulib, not GSS.
10770
10771 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10772
10773         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
10774         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
10775         for Emacs.
10776         * build-aux/pmccabe2html: Make Makefile.am example code more
10777         cut-and-paste friendly.
10778
10779 2010-09-21  Simon Josefsson  <simon@josefsson.org>
10780
10781         * tests/test-net_if.c: New file.
10782         * modules/net_if-tests: New file.
10783
10784 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10785
10786         pthread: add pthread_spin_destroy
10787         * lib/pthread.in.h (pthread_spin_destroy): New function.
10788
10789 2010-09-19  Bruno Haible  <bruno@clisp.org>
10790
10791         gnulib-tool: Fix --help output.
10792         * gnulib-tool (func_usage): Fix help message.
10793         Reported by Reuben Thomas <rrt@sc3d.org>.
10794
10795 2010-09-18  Jim Meyering  <meyering@redhat.com>
10796
10797         maint.mk: avoid unexpanded \n in two diagnostics
10798         * top/maint.mk (sc_prohibit_always_true_header_tests):
10799         Don't use a literal \n in a halt=... assignment.  It would not be
10800         expanded, and the two \n bytes would appear in the diagnostic output
10801         rather than the desired newline.  Use halt=$$(printf ... instead.
10802         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10803
10804 2010-09-18  Bruno Haible  <bruno@clisp.org>
10805
10806         netinet_in: Doc tweak.
10807         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
10808         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10809
10810 2010-09-18  Jim Meyering  <meyering@redhat.com>
10811
10812         init.sh: correct an outdated comment
10813         * tests/init.sh (create_exe_shims_):  s/function/alias/
10814
10815         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
10816         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
10817         a file named "*.exe" is removed between the glob expansion and the
10818         processing of that oddly named file.
10819
10820 2010-09-17  Eric Blake  <eblake@redhat.com>
10821
10822         mirbsd: add some more support
10823         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
10824         in BSD family.
10825         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
10826         devices as OpenBSD.
10827         * m4/host-os.m4 (mirbsd): Add MirBSD.
10828
10829         tests: fix unportable assumption on sys/wait.h
10830         * tests/test-sys_wait.c (main): Relax test.
10831         * tests/test-stdlib.c (main): Likewise.
10832
10833         init.sh: accomodate directory with no .exes
10834         * tests/init.sh: Accomodate directory containing only scripts.
10835
10836         tests: avoid compiler warning
10837         * tests/test-stdlib.c (main): Use the variable.
10838
10839         fdutimens, fdutimensat: update signature, again
10840         * lib/utimens.h (gl_futimens): Delete, and move signature...
10841         (fdutimens): ...here.
10842         (fdutimensat): Rearrange signature.
10843         (lutimensat): Rename variable for clarity.
10844         * lib/fdutimensat.c (fdutimensat): Update signature.
10845         * lib/utimens.c (fdutimens): Likewise.
10846         (gl_futimens): Delete.
10847         (utimens, lutimens): Update callers.
10848         * lib/futimens.c (futimens): Likewise.
10849         * tests/test-fdutimensat.c: Likewise.
10850         * tests/test-utimens.c: Likewise.
10851         * tests/test-futimens.h: Update comment.
10852         * NEWS: Mention this.
10853         Suggested by Paul Eggert.
10854
10855 2010-09-17  Bruno Haible  <bruno@clisp.org>
10856
10857         Take over the maintenance of some older macros from Autoconf.
10858         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
10859         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
10860         GNU Autoconf.
10861         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
10862         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
10863
10864 2010-09-17  Eric Blake  <eblake@redhat.com>
10865
10866         fdutimensat: drop atflag validation
10867         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
10868         with valid fd, to close a race scenario where futimens is
10869         unsupported and FILE was replaced by a symlink.
10870         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
10871         accordingly.
10872         Suggested by Paul Eggert.
10873
10874 2010-09-16  Bruno Haible  <bruno@clisp.org>
10875
10876         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
10877         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
10878
10879 2010-09-16  Bruno Haible  <bruno@clisp.org>
10880
10881         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
10882         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
10883         login_tty exists.
10884         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10885
10886 2010-09-16  Bruno Haible  <bruno@clisp.org>
10887
10888         login_tty: Make the replacement code work on BSD systems.
10889         * lib/login_tty.c: Include <sys/ioctl.h>.
10890         (login_tty): Use ioctl TIOCSCTTY when available.
10891         * modules/login_tty (Depends-on): Add sys_ioctl.
10892         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10893
10894 2010-09-16  Bruno Haible  <bruno@clisp.org>
10895
10896         login_tty: Stricter unit test.
10897         * modules/login_tty-tests (Depends-on): Add tcgetsid.
10898         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
10899         and tcgetsid() after login_tty.
10900         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10901
10902 2010-09-16  Bruno Haible  <bruno@clisp.org>
10903
10904         New module 'tcgetsid'.
10905         * lib/tcgetsid.c: New file.
10906         * m4/tcgetsid.m4: New file.
10907         * modules/tcgetsid: New file.
10908         * modules/termios (Depends-on): Add c++defs, warn-on-use.
10909         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
10910         GNULIB_TCGETSID, HAVE_TCGETSID.
10911         * lib/termios.in.h: Include <sys/types.h>.
10912         (tcgetsid): New declaration.
10913         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
10914         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
10915         * doc/posix-functions/tcgetsid.texi: Mention the new module.
10916         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
10917
10918 2010-09-16  Bruno Haible  <bruno@clisp.org>
10919
10920         Tests for module 'termios'.
10921         * modules/termios-c++-tests: New file.
10922         * modules/termios-tests: New file.
10923         * tests/test-termios-c++.cc: New file.
10924         * tests/test-termios.c: New file.
10925
10926         New module 'termios'.
10927         * modules/termios: New file.
10928         * lib/termios.in.h: New file.
10929         * m4/termios_h.m4: New file.
10930         * doc/posix-headers/termios.texi: Mention the new module.
10931
10932 2010-09-16  Eric Blake  <eblake@redhat.com>
10933
10934         fdutimensat: add an atflag parameter
10935         * lib/fdutimensat.c (fdutimensat): Add new parameter.
10936         * lib/utimens.h (fdutimensat): Update prototype.
10937         * tests/test-fdutimensat.c: Adjust test to match.
10938         * NEWS: Document the change.
10939         Suggested by Paul Eggert.
10940
10941 2010-09-16  Bruno Haible  <bruno@clisp.org>
10942
10943         Fix typos in comments.
10944         * lib/striconveh.h: Fix typo in comment.
10945         * lib/login_tty.c (login_tty): Likewise.
10946
10947 2010-09-15  Bruno Haible  <bruno@clisp.org>
10948
10949         stdlib: clarify MirBSD WEXITSTATUS bug
10950         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
10951         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10952
10953 2010-09-15  Eric Blake  <eblake@redhat.com>
10954
10955         stdlib: work around MirBSD WEXITSTATUS bug
10956         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
10957         * modules/stdlib (Depends-on): Add sys_wait.
10958         * tests/test-sys_wait.c (main): Enhance test.
10959         * tests/test-stdlib.c (main): Likewise.
10960         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
10961
10962         docs: mention MacOS issue with WEXITSTATUS(constant)
10963         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
10964         issue.
10965         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10966
10967         strnlen: add tests
10968         * modules/strnlen-tests: New file.
10969         * tests/test-strnlen.c: Likewise.
10970
10971 2010-09-14  Bruno Haible  <bruno@clisp.org>
10972
10973         unistr/base: Avoid link errors when module 'libunistring' is also used.
10974         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
10975         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
10976         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
10977         Declare also when HAVE_LIBUNISTRING is set.
10978         Reported by Pádraig Brady <P@draigbrady.com>.
10979
10980 2010-09-14  Eric Blake  <eblake@redhat.com>
10981
10982         test-rawmemchr: make more robust
10983         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
10984         (Depends-on, configure.ac): Add needed prerequisites to use it.
10985         * modules/memchr-tests (Files, Depends-on, configure.ac):
10986         Likewise, to avoid implicit reliance on memchr module prereqs.
10987         * tests/test-memchr.c (main): Ensure proper masking.
10988         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
10989         reads.
10990
10991         memchr: detect glibc Alpha bug
10992         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
10993         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
10994         Alpha.
10995         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
10996         * tests/test-memchr.c (main): Enhance test.
10997         Reported by Nelson H. F. Beebe.
10998
10999 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11000
11001         fts, getcwd, glob: audit for dirfd returning -1
11002         * lib/fts.c (opendir): Remove #define; no longer used.
11003         (opendirat): New arg PDIR_FD.  All callers changed.
11004         (fts_build, _opendir2): Use new opendirat to avoid the need for
11005         dirfd, or for checking whether dirfd returns a negative value.
11006         Don't use opendir; always use openat followed by fdopendir.
11007         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
11008         it.
11009         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
11010         returns -1 here.
11011         * modules/fts (Depends-on): Remove dirfd.
11012         * modules/getcwd (Depends-on): Likewise.
11013
11014 2010-09-13  Eric Blake  <eblake@redhat.com>
11015
11016         float: fix broken MirBSD header
11017         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
11018         * doc/posix-headers/float.texi (float.h): Document it.
11019
11020 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11021
11022         fts: use O_NOFOLLOW to avoid race condition when opening a directory
11023         * lib/fts.c (opendirat): New arg extra_flags.
11024         (__opendir2): Use it to avoid following symlinks when opening
11025         a directory, if symlinks are not supposed to be followed.  See
11026         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
11027
11028         fdopendir: preserve argument fd before returning
11029         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
11030         (fdopendir_with_dup, fd_clone_opendir): New static functions.
11031         (fdopendir): Use them, arranging for FD to be open to the same
11032         directory that it was when it started.  (It might be temporarily
11033         closed while fdopendir is running, so this not thread- or
11034         signal-safe.)  Be careful to do the right thing even when file
11035         descriptors are scarce and dup fails with errno == EMFILE.  See
11036         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
11037
11038 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
11039
11040         regex: Pass the system regex if its only problem is 32-bit regoff_t.
11041         * NEWS: Document change.
11042         * m4/regex.m4: Disable test for regoff_t size.
11043
11044 2010-09-13  Jim Meyering  <meyering@redhat.com>
11045
11046         fts: don't operate on an invalid file descriptor after failed dup
11047         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
11048         negative file descriptor.
11049
11050 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11051
11052         savedir: add streamsavedir, deprecate fdsavedir
11053         * NEWS: Mention deprecation of fdsavedir.
11054         * lib/savedir.c (streamsavedir): New extern function, whose name
11055         ends in "savedir" to be consistent with the others.  This differs
11056         from savedirstream in that it doesn't close its argument.  The
11057         next version of GNU tar will use this instead of fdsavedir, to
11058         avoid some race conditions and conserve file descriptors.
11059         (savedirstream): Reimplement as a wrapper around streamsavedir.
11060         (fdsavedir): Add a comment deprecating this function.  As far as
11061         I know, only GNU tar used it, and GNU tar doesn't need it any more.
11062         * lib/savedir.h (streamsavedir): New decl.
11063         (fdsavedir): Add a comment deprecating this.
11064
11065 2010-09-10  Bruno Haible  <bruno@clisp.org>
11066
11067         langinfo: Fix last commit.
11068         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
11069         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
11070         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11071
11072 2010-09-10  Bruno Haible  <bruno@clisp.org>
11073
11074         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
11075         * lib/progreloc.c (O_EXEC): Define fallback.
11076
11077 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
11078
11079         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
11080         * NEWS: Document recent changes to fcntl-h.
11081         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
11082         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
11083         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
11084         Similarly for O_SEARCH; this last was already true, but not documented.
11085         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
11086         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
11087         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
11088         Likewise.
11089         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
11090         is zero, not whether it is defined.
11091         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
11092         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
11093         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
11094
11095 2010-09-10  Bruno Haible  <bruno@clisp.org>
11096
11097         langinfo, nl_langinfo: Fix for IRIX 5.3.
11098         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
11099         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
11100         HAVE_LANGINFO_YESEXPR.
11101         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
11102         HAVE_LANGINFO_YESEXPR.
11103         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
11104         HAVE_LANGINFO_T_FMT_AMPM is 0.
11105         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
11106         HAVE_LANGINFO_YESEXPR is 0.
11107         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
11108         NOEXPR.
11109         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
11110         * doc/posix-functions/nl_langinfo.texi: Likewise.
11111         Reported by Eric Blake.
11112
11113 2010-09-10  Bruno Haible  <bruno@clisp.org>
11114
11115         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
11116         * doc/glibc-functions/login_tty.texi: Mention the include file problem
11117         on FreeBSD 8.0 and OpenBSD 4.6.
11118         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
11119         * m4/pty_h.m4 (gl_PTY_H): Likewise.
11120         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
11121         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
11122         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
11123         ac_includes_default.
11124         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11125
11126 2010-09-09  Eric Blake  <eblake@redhat.com>
11127
11128         strsignal: work around NetBSD bug
11129         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
11130         * lib/string.in.h (includes): Likewise.
11131         * doc/posix-functions/strsignal.texi (strsignal): Document the
11132         bug.
11133         Reported by Nelson H. F. Beebe.
11134
11135         gnulib-tool: work with NetBSD /bin/sh
11136         * gnulib-tool (func_cache_var, func_cache_lookup_module)
11137         (func_get_description, func_get_comment, func_get_status)
11138         (func_get_notice, func_get_applicability, func_get_filelist)
11139         (func_get_dependencies, func_get_autoconf_early_snippet)
11140         (func_get_autoconf_snippet, func_get_automake_snippet)
11141         (func_get_include_directive, func_get_link_directive)
11142         (func_get_license, func_get_maintainer, func_import): Avoid
11143         shell syntax errors from parsing syntax extensions.
11144
11145 2010-09-09  Bruno Haible  <bruno@clisp.org>
11146
11147         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11148         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
11149         a reliable way to determine whether the 'alias' command works.
11150
11151 2010-09-08  Jim Meyering  <meyering@redhat.com>
11152
11153         init.sh: penalize a set-x-impaired shell; don't disqualify it
11154         * tests/init.sh: Too many shells corrupt application stderr when
11155         you set -x, so we can't afford to disqualify them, since at least
11156         on Irix-6.5, that would disqualify all bourne shells.
11157         Instead, use a two-pass approach.
11158         On the first pass, try to find a shell that meets the stricter
11159         condition that set -x does not corrupt stderr.
11160         If no shell meets the stricter condition, retest each candidate
11161         shell, but without that extra condition.  Finally, when
11162         VERBOSE=yes is requested and set -x might cause trouble, simply
11163         issue a warning and refrain from enabling debug output.
11164
11165 2010-09-08  Eric Blake  <eblake@redhat.com>
11166
11167         unsetenv: fix OpenBSD bug
11168         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
11169         * doc/posix-functions/unsetenv.texi (unsetenv): Update
11170         documentation.
11171         Reported by Jim Meyering.
11172
11173         strtod: work around IRIX 6.5 bug
11174         * lib/strtod.c (strtod): Reparse number on shorter string if
11175         exponent parse was invalid.
11176         * tests/test-strtod.c (main): Add check for "0x1p 2".
11177         Reported by Tom G. Christensen.
11178
11179         getopt: optimize previous patch
11180         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
11181         empty variable.  Speed up awk script.
11182         Reported by Paolo Bonzini.
11183
11184 2010-09-08  Jim Meyering  <meyering@redhat.com>
11185
11186         test.sh: disqualify shells for which set -x corrupts stderr
11187         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
11188         and OpenBSD 4.7.  They make it so with "set -x", environment settings
11189         appear in stderr output.  For example, this command:
11190             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
11191         prints "P=1" on those two systems:
11192
11193 2010-09-08  Bruno Haible  <bruno@clisp.org>
11194
11195         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11196         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11197         commands, because some shells ignore redirections when there is an
11198         error in the command lookup.
11199         Reported by Eric Blake.
11200
11201 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11202
11203         * lib/regex.h: Fix a mention of `regex_compile' (should be
11204         `re_compile_pattern').
11205         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11206         (re_set_registers): Correct name of parameter in comment.
11207
11208         * doc/regex.texi: Add documentation for missing syntax flags.
11209         Remove commented-out documentation of defunct syntax option
11210         RE_NO_EMPTY_ALTS.
11211         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11212         Add documentation of re_set_registers.
11213         Document trick to re-use a pattern buffer by setting fastmap manually.
11214         Update documentation of struct re_pattern_buffer per public members.
11215         Uncomment documentation of equivalence class operators and
11216         collating symbol operators, since they are now implemented,
11217         Explain leftmost-longest matching in relation to alternatives.
11218         Tidy documentation of substring matching.
11219         Remove POSIX documentation, which is done better in
11220         glibc, and refer the reader there. Keep BSD API documentation, as
11221         that is not readily available elsewhere.
11222
11223 2010-09-07  Eric Blake  <eblake@redhat.com>
11224
11225         getopt: handle POSIXLY_CORRECT set but not exported
11226         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11227         export state of POSIXLY_CORRECT, due to bash set -o posix.
11228         Reported by Dustin J. Mitchell.
11229
11230 2010-09-05  Bruno Haible  <bruno@clisp.org>
11231
11232         gnulib-tool: Highlight the changed options.
11233         * gnulib-tool (func_usage): Display the --import, --add-import,
11234         --remove-import explanations in bold font.
11235
11236 2010-09-06  Karl Berry  <karl@gnu.org>
11237
11238         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11239
11240 2010-09-05  Bruno Haible  <bruno@clisp.org>
11241
11242         uniwidth/width: Update comment.
11243         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11244         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11245
11246 2010-09-05  Bruno Haible  <bruno@clisp.org>
11247
11248         isinf, isnan: Relax license.
11249         * modules/isinf (License): Change from GPL to LGPL, with consent from
11250         Ben Pfaff.
11251         * modules/isnan (License): Likewise.
11252         Requested by Ludovic Courtès.
11253
11254 2010-09-04  Bruno Haible  <bruno@clisp.org>
11255
11256         gnulib-tool: Help migration from --import to --add-import or --update.
11257         * gnulib-tool: Emit a verbose error message when --import is used
11258         without any module name.
11259
11260 2010-09-04  Bruno Haible  <bruno@clisp.org>
11261
11262         Update doc about gnulib-tool.
11263         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
11264         'gnulib-tool --update' in more detail.
11265         Reported by Eric Blake.
11266
11267 2010-09-04  Bruno Haible  <bruno@clisp.org>
11268
11269         gnulib-tool: Change --import. New options --add/remove-import.
11270         * gnulib-tool: New options --add-import, --remove-import.
11271         (func_usage): Document them.
11272         (have_associative): Define always.
11273         (func_import): In import mode, don't merge the specified settings with
11274         the cached settings. Implement remove-import mode.
11275         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
11276         Explain when to use them versus --import.
11277         (Simple update): Use --add-import instead of --import.
11278         * NEWS: Mention the change.
11279
11280 2010-09-04  Bruno Haible  <bruno@clisp.org>
11281
11282         * doc/gnulib-tool.texi (Initial import): Update paragraph about
11283         separate gnulib.mk.
11284
11285 2010-09-04  Bruno Haible  <bruno@clisp.org>
11286
11287         gnulib-tool: Don't talk about CVS any more.
11288         * gnulib-tool (func_usage, func_import): Write "version control"
11289         instead of CVS.
11290
11291 2010-09-04  Jim Meyering  <meyering@redhat.com>
11292
11293         maint.mk: avoid obscure sc_copyright_check failure in coreutils
11294         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
11295         false positives (whose names may be ill-chosen) when searching
11296         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
11297         would cause a false-positive.
11298
11299         avoid coreutils "make distcheck" failure
11300         Coreutils tests with an absolute build directory name that contains
11301         a space.  Not quoting this directory name caused a failure.
11302         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
11303         * tests/test-vc-list-files-cvs.sh: Likewise.
11304
11305 2010-09-04  Bruno Haible  <bruno@clisp.org>
11306
11307         gnulib-tool: Avoid error when run in a package without Makefile.am.
11308         * gnulib-tool: When collecting the m4dirs in a package that does not
11309         have a Makefile.am, eliminate those directories that contain no
11310         gnulib-cache.m4. Fix expression that counts these directories.
11311
11312 2010-09-04  Bruno Haible  <bruno@clisp.org>
11313
11314         update-copyright test: Improve output when perl is missing or too old.
11315         * tests/test-update-copyright.sh: Move test of Perl version down after
11316         the test whether Perl exists. Provide an explanation relating Perl's
11317         error message to Automake's SKIP: message.
11318
11319 2010-09-04  Bruno Haible  <bruno@clisp.org>
11320
11321         Don't augment PATH in TESTS_ENVIRONMENT.
11322         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11323         set abs_aux_dir instead of augmenting PATH.
11324         * modules/vc-list-files-tests (Makefile.am): Likewise.
11325         * tests/test-update-copyright.sh: Augment PATH here.
11326         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11327         path_prepend_.
11328         * tests/test-vc-list-files-git.sh: Likewise.
11329
11330 2010-09-04  Jim Meyering  <meyering@redhat.com>
11331
11332         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11333         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11334
11335 2010-09-04  Bruno Haible  <bruno@clisp.org>
11336
11337         strdup: Fix compilation error in C++ mode.
11338         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11339         the macro.
11340
11341 2010-09-04  Bruno Haible  <bruno@clisp.org>
11342
11343         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11344         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11345         macro into a function.
11346         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11347
11348 2010-09-04  Bruno Haible  <bruno@clisp.org>
11349
11350         Set PATH_SEPARATOR the same way autoconf does.
11351         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11352         the value of PATH_SEPARATOR the same way autoconf-generated configure
11353         scripts do.
11354         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11355         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11356
11357 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11358
11359         Set PATH_SEPARATOR the same way autoconf does.
11360         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11361         the same way autoconf-generated configure scripts do.
11362         * posix-modules: Likewise.
11363
11364 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11365
11366         hash: fix safe_hasher const typo
11367         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11368         const; otherwise, there is a type error later.
11369
11370 2010-09-02  Jim Meyering  <meyering@redhat.com>
11371
11372         test-update-copyright.sh: require perl 5.8.0
11373         * tests/test-update-copyright.sh: Require 5.8.0,
11374         which Tom G. Christensen has confirmed is adequate,
11375         while 5.6.1 is not.
11376
11377 2010-09-02  Eric Blake  <eblake@redhat.com>
11378
11379         tests: init.sh improvements for re-exec'ing with zsh
11380         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11381         -vx through shell re-exec.
11382         Reported by Tom G. Christensen.
11383
11384         wctype: fix typo in previous commit
11385         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11386         Reported by Ludovic Courtès.
11387
11388 2010-09-02  Jim Meyering  <meyering@redhat.com>
11389
11390         test-update-copyright.sh: skip test if Perl is too old
11391         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11392         Reported by Tom G. Christensen.
11393
11394 2010-09-02  Bruno Haible  <bruno@clisp.org>
11395
11396         wctype: Avoid compilation error on IRIX 6.5.30.
11397         * lib/wctype.in.h (iswblank): Declare with a replacement if
11398         REPLACE_ISWBLANK is set.
11399         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11400         declared. Set REPLACE_ISWBLANK.
11401         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11402         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11403         * doc/posix-headers/wctype.texi: Likewise.
11404         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11405
11406 2010-09-01  Bruno Haible  <bruno@clisp.org>
11407
11408         New module 'socketlib'.
11409         * modules/socketlib: New file.
11410         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11411         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11412         * modules/sockets (Depends-on): Add socketlib.
11413         Suggested by Sam Steingold <sds@gnu.org>.
11414
11415 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11416
11417         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11418
11419         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11420         when one needs search access to a directory but not read access.
11421         On systems where it is available, it works in some cases where
11422         O_RDONLY does not, namely on directories that are searchable but
11423         not readable, and which need only to be searchable.  If O_SEARCH
11424         is not available, fall back to the traditional method of using
11425         O_RDONLY.
11426
11427         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11428         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11429         when opening a directory that needs only to be searchable.
11430         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11431         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11432         * lib/openat-proc.c (openat_proc_name): Likewise.
11433         * lib/openat.c (openat_needs_fchdir): Likewise.
11434         * lib/save-cwd.c (save_cwd): Likewise.
11435         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11436
11437 2010-08-28  Bruno Haible  <bruno@clisp.org>
11438
11439         New module 'host-cpu-c-abi'.
11440         * modules/host-cpu-c-abi: New file.
11441         * m4/host-cpu-c-abi.m4: New file, based on part of
11442         clisp/src/m4/general.m4.
11443         Requested by Sam Steingold <sds@gnu.org>.
11444
11445 2010-08-31  Eric Blake  <eblake@redhat.com>
11446         and Jim Meyering  <meyering@redhat.com>
11447
11448         hash: factor, and guard against misbehaving hasher function
11449         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11450         of table->hasher's return value.  Also protect against a hash value
11451         so large that adding it to table->bucket results in a NULL pointer.
11452         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11453         Use it in place of open-coded check-and-abort.
11454
11455 2010-08-30  Bruno Haible  <bruno@clisp.org>
11456
11457         hash: silence spurious clang warning
11458         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11459         Reported by Eric Blake.
11460
11461 2010-08-30  Eric Blake  <eblake@redhat.com>
11462
11463         strstr, memmem, strcasestr: avoid leaked shell message
11464         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11465         FreeBSD.
11466         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11467         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11468
11469         tests: silence clang warning
11470         * tests/test-malloca.c (do_allocation): Avoid dead store.
11471
11472 2010-08-29  Bruno Haible  <bruno@clisp.org>
11473
11474         gettext: Fix recent mistake.
11475         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
11476
11477 2010-08-29  Bruno Haible  <bruno@clisp.org>
11478
11479         selinux-h: Offer a --without-selinux option.
11480         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
11481         --without-selinux was specified, skip all tests and define
11482         HAVE_SELINUX_SELINUX_H to 0.
11483         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
11484         set LIB_SELINUX to empty.
11485         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
11486         gl_LIBSELINUX. If --without-selinux was specified, replace
11487         selinux/context.h.
11488         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
11489
11490 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11491             Bruno Haible  <bruno@clisp.org>
11492
11493         Make the module 'realloc-gnu' work again on AIX and OSF/1.
11494         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
11495         of HAVE_REALLOC.
11496         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
11497         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
11498         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
11499         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11500
11501 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11502             Bruno Haible  <bruno@clisp.org>
11503
11504         Make the module 'calloc-gnu' work again on AIX and OSF/1.
11505         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
11506         HAVE_CALLOC.
11507         * lib/xmalloc.c: Update accordingly.
11508         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
11509         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
11510         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
11511
11512 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11513             Bruno Haible  <bruno@clisp.org>
11514
11515         Make the module 'malloc-gnu' work again on AIX and OSF/1.
11516         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
11517         HAVE_MALLOC.
11518         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
11519         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
11520         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11521
11522 2010-08-29  Bruno Haible  <bruno@clisp.org>
11523
11524         Update modules list.
11525         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11526         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
11527         (String handling <string.h>): Add astrxfrm.
11528         (File system functions): Add readlinkat.
11529
11530 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11531
11532         Tests for module 'realloc-gnu'.
11533         * modules/realloc-gnu-tests: New file.
11534         * tests/test-realloc-gnu.c: New file.
11535
11536         Tests for module 'calloc-gnu'.
11537         * modules/calloc-gnu-tests: New file.
11538         * tests/test-calloc-gnu.c: New file.
11539
11540         Tests for module 'malloc-gnu'.
11541         * modules/malloc-gnu-tests: New file.
11542         * tests/test-malloc-gnu.c: New file.
11543
11544 2010-08-28  Bruno Haible  <bruno@clisp.org>
11545
11546         Rename module 'realloc' -> 'realloc-gnu'.
11547         * modules/realloc-gnu: New file, copied from modules/realloc.
11548         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
11549         obsolete.
11550         * modules/mgetgroups (Depends-on): Update.
11551         * doc/posix-functions/realloc.texi: Update.
11552         * NEWS: Mention the change.
11553
11554         Rename module 'calloc' -> 'calloc-gnu'.
11555         * modules/calloc-gnu: New file, copied from modules/calloc.
11556         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
11557         obsolete.
11558         * doc/posix-functions/calloc.texi: Update.
11559         * NEWS: Mention the change.
11560
11561         Rename module 'malloc' -> 'malloc-gnu'.
11562         * modules/malloc-gnu: New file, copied from modules/malloc.
11563         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
11564         obsolete.
11565         * modules/argp (Depends-on): Update.
11566         * modules/regex (Depends-on): Update.
11567         * doc/posix-functions/malloc.texi: Update.
11568         * NEWS: Mention the change.
11569
11570 2010-08-28  Eric Blake  <eblake@redhat.com>
11571
11572         pread, pwrite: add missing dependency
11573         * modules/pread (Depends-on): Add extensions.
11574         * modules/pwrite (Depends-on): Likewise.
11575
11576 2010-08-28  Bruno Haible  <bruno@clisp.org>
11577
11578         unistr/u*-strchr: Fix tests dependencies.
11579         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
11580         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
11581         Reported by Ian Beckwith <ianb@erislabs.net>.
11582
11583 2010-08-28  Bruno Haible  <bruno@clisp.org>
11584
11585         read-file: Don't occupy too much unused memory.
11586         * lib/read-file.c (fread_file): Shrink the buffer at the end.
11587
11588 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
11589             Eric Blake  <eblake@redhat.com>
11590             Bruno Haible  <bruno@clisp.org>
11591
11592         read-file: Avoid memory reallocations with regular files.
11593         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
11594         (fread_file): With regular files, use the remaining length as the
11595         initial buffer size.  Check against overflow.
11596         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
11597         sys_stat.
11598
11599 2010-08-28  Bruno Haible  <bruno@clisp.org>
11600
11601         ftello: Relax license.
11602         * modules/ftello (License): Relax to LGPLv2+.
11603         Reported by Eric Blake.
11604
11605 2010-08-28  Bruno Haible  <bruno@clisp.org>
11606
11607         Avoid relocwrapper link errors due to gnulib replacement functions.
11608         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
11609         function.
11610         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11611
11612 2010-08-28  Bruno Haible  <bruno@clisp.org>
11613
11614         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
11615         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
11616         defined.
11617         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
11618         Suggested by Eric Blake.
11619
11620 2010-08-28  Bruno Haible  <bruno@clisp.org>
11621
11622         sys_socket, netdb: Ensure socklen_t gets defined.
11623         * modules/sys_socket (Depends-on): Add socklen.
11624         * modules/netdb (Depends-on): Likewise.
11625         * modules/getaddrinfo (Depends-on): Remove socklen.
11626         * modules/getsockopt (Depends-on): Likewise.
11627         * modules/setsockopt (Depends-on): Likewise.
11628         * tests/test-sys_socket.c: Check that socklen_t is defined.
11629         * tests/test-netdb.c: Likewise.
11630         * m4/socklen.m4: Update comments.
11631         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11632
11633 2010-08-27  Eric Blake  <eblake@redhat.com>
11634
11635         login_tty: add missing dependency
11636         * modules/login_tty (Depends-on): Add pty.
11637
11638 2010-08-26  Eric Blake  <eblake@redhat.com>
11639
11640         lib-symbol-versions: fix m4 quoting
11641         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
11642         format for AC_LINK_IFELSE.
11643
11644         glob: fix compile test
11645         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
11646
11647         btowc: fix missing file
11648         * modules/btowc (Files): Also ship locale-fr.m4.
11649
11650         lseek: fix link test
11651         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
11652         AC_LINK_IFELSE.
11653
11654         include_next: silence autoconf 2.68 warning
11655         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
11656         AC_COMPILE_IFELSE as special.
11657         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
11658         autoconf < 2.68.
11659
11660         acl: fix compilation test
11661         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
11662         AC_COMPILE_IFELSE.
11663
11664 2010-08-26  Bruno Haible  <bruno@clisp.org>
11665
11666         Modernize AC_TRY_RUN invocations.
11667         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
11668         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11669         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
11670         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
11671         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
11672         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11673         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11674         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11675         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11676         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11677         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11678         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11679         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11680         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11681         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11682         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11683         gl_MBRLEN_NUL_RETVAL): Likewise.
11684         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11685         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11686         Likewise.
11687         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11688         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11689         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11690         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11691         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
11692         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
11693         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
11694         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11695         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
11696         Likewise.
11697         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11698         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
11699         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11700         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11701         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11702         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11703         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11704         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
11705         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11706         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11707
11708 2010-08-26  Bruno Haible  <bruno@clisp.org>
11709
11710         Modernize AC_TRY_LINK invocations.
11711         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
11712         AC_TRY_LINK.
11713         * m4/argp.m4 (gl_ARGP): Likewise.
11714         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11715         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11716         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
11717         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
11718         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
11719         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
11720         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11721         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11722         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
11723         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
11724         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
11725         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
11726         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
11727         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11728         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11729         * m4/hostent.m4 (gl_HOSTENT): Likewise.
11730         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11731         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
11732         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11733         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
11734         Likewise.
11735         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
11736         Likewise.
11737         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
11738         Likewise.
11739         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11740         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
11741         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
11742         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11743         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11744         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11745         * m4/servent.m4 (gl_SERVENT): Likewise.
11746         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11747         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11748         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11749         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11750         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11751         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11752         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11753         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11754         * modules/tsearch-tests (configure.ac): Likewise.
11755
11756 2010-08-26  Bruno Haible  <bruno@clisp.org>
11757
11758         Modernize AC_TRY_COMPILE invocations.
11759         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
11760         AC_TRY_COMPILE.
11761         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
11762         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
11763         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11764         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11765         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11766         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11767         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11768         * m4/lock.m4 (gl_LOCK): Likewise.
11769         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11770         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11771         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
11772         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11773         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11774         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
11775         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
11776         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
11777         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11778         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11779         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11780         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11781         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
11782         extraneous semicolon.
11783
11784 2010-08-26  Jim Meyering  <meyering@redhat.com>
11785
11786         stat-time: relax license LGPL
11787         * modules/stat-time (License): Change from GPL to LGPL,
11788         with consent from all contributors, for use in libguile.
11789         Requested by Ludovic Courtès.
11790
11791 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
11792
11793         poll: return immediately on POLLHUP.
11794         * lib/poll.c (poll): Always set timeout before wait_timeout is
11795         computed.
11796
11797 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11798
11799         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
11800         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
11801         rmdir ("dir/.//"), unlinkat.
11802
11803 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11804
11805         stdbool: avoid spurious failure with modern xlc
11806         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11807
11808 2010-08-24  Bruno Haible  <bruno@clisp.org>
11809
11810         getloadavg: simplify code
11811         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
11812         gl_have_func. Update comments.
11813
11814 2010-08-24  Eric Blake  <eblake@redhat.com>
11815
11816         getloadavg: don't define SVR4 on cygwin
11817         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
11818         only define SVR4 when -lkvm is required.
11819         Reported by Yaakov Selkowitz.
11820
11821 2010-08-24  Bruno Haible  <bruno@clisp.org>
11822
11823         priv-set: fix comment
11824         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
11825
11826 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11827
11828         priv-set: fix comments
11829         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
11830         to match code, as suggested by David Bartley in:
11831         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
11832
11833 2010-08-23  Eric Blake  <eblake@redhat.com>
11834
11835         stdbool: avoid rejecting clang
11836         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11837         * tests/test-stdbool.c: Enable more tests if using the system
11838         <stdbool.h> instead of the gnulib replacement.
11839         (main): Move xlc bug test to a runtime test for all compilers.
11840         Reported by Anders Kaseorg.
11841
11842         argz: fix shell quoting issue
11843         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
11844         Reported by Charles Wilson.
11845
11846 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
11847             Erik Faye-Lund <kusmabite@gmail.com>
11848
11849         poll, select: handle ERROR_BROKEN_PIPE.
11850         * lib/poll.c (win32_compute_revents): Return POLLHUP when
11851         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11852         * lib/select.c (win32_compute_revents): Do not mark a pipe
11853         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11854
11855 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
11856
11857         fts: allow compilation with C++
11858         * lib/fts_.h: Specify extern "C" linkage with C++.
11859
11860 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11861
11862         Fix gnulib-tool sed script de-commentation for AIX sed.
11863         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
11864         sed.
11865
11866 2010-08-17  Eric Blake  <eblake@redhat.com>
11867
11868         test-stddef: test for (some) offsetof bugs
11869         * tests/test-stddef.c: Enhance test to ensure correct type of
11870         offsetof.
11871         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
11872         that we are not fixing at this time.
11873
11874 2010-08-15  Bruno Haible  <bruno@clisp.org>
11875
11876         stpncpy: Allow stpncpy to be defined as a macro.
11877         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
11878         if it's already correctly declared.
11879         * lib/string.in.h (stpncpy): Undefine before redefining.
11880         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
11881
11882 2010-08-14  Bruno Haible  <bruno@clisp.org>
11883
11884         Rename module 'memxfrm' to 'amemxfrm'.
11885         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
11886         (amemxfrm): Renamed from memxfrm.
11887         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
11888         (amemxfrm): Renamed from memxfrm.
11889         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
11890         * NEWS: Mention the change.
11891         * MODULES.html.sh (String handling <string.h>): Update.
11892         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
11893         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
11894         * lib/unicase/u16-casexfrm.c: Likewise.
11895         * lib/unicase/u32-casexfrm.c: Likewise.
11896         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
11897         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
11898         * lib/uninorm/u16-normxfrm.c: Likewise.
11899         * lib/uninorm/u32-normxfrm.c: Likewise.
11900         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
11901         memxfrm.
11902         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
11903         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
11904         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
11905         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
11906         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
11907         Suggested by Paul Eggert.
11908
11909 2010-08-14  Bruno Haible  <bruno@clisp.org>
11910
11911         Tests for module 'astrxfrm'.
11912         * modules/astrxfrm-tests: New file.
11913         * tests/test-astrxfrm.c: New file.
11914
11915         New module 'astrxfrm'.
11916         * lib/astrxfrm.h: New file.
11917         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
11918         * modules/astrxfrm: New file.
11919
11920 2010-08-14  Reuben Thomas <rrt@sc3d.org>
11921
11922         regex: Tweak doc.
11923         * doc/regex.texi (Overview): Don't mention regex.c.
11924         (GNU Regular Expression Compiling): Likewise.
11925         (Match-end-of-line Operator): Mention 'not_eol'.
11926
11927 2010-08-14  Brian Gough  <bjg@gnu.org>
11928             Bruno Haible  <bruno@clisp.org>
11929
11930         git-merge-changelog: add doc relating to use with bzr and hg.
11931         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
11932
11933 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
11934
11935         pthread: fix pthread.h creation for srcdir != builddir
11936         * modules/pthread (Makefile.am): Fix the rule to work also in a
11937         non-srcdir build.
11938
11939 2010-08-13  Karl Berry  <karl@gnu.org>
11940
11941         * doc/regex.texi (Predefined Syntaxes): @smallexample.
11942         * doc/posix-*/*: force line break before @url of POSIX
11943         specifications.
11944         Suggested by Werner Lemberg.
11945
11946 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11947
11948         strtod: fix const diagnostic
11949         * lib/strtod.c (strtod): Don't assign const char * to char *,
11950         as this elicits a warning from GCC when warnings are enabled.
11951
11952 2010-08-10  Pádraig Brady <P@draigbrady.com>
11953         and Eric Blake  <eblake@redhat.com>
11954
11955         copy-acl: ignore ENOTSUP on HP-UX
11956         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
11957         so that it is available for HP-UX.
11958         * lib/copy-acl.c (qcopy_acl): Use it.
11959         Reported by Patrick M. Callahan.
11960
11961 2010-08-10  Eric Blake  <eblake@redhat.com>
11962
11963         open, chown: relax license
11964         * modules/open (License): Change to LGPLv2+, with consent by all
11965         authors, for use in augeas.
11966         * modules/chown (License): Likewise.
11967         * modules/lchown (Likewise): Likewise.
11968         Requested by Adam Stokes.
11969
11970 2010-08-09  Karl Berry  <karl@gnu.org>
11971
11972         * build-aux/ar-lib: new file, import from Automake.
11973         * config/srclist.txt: autocheck for updates.
11974
11975 2010-08-09  Eric Blake  <eblake@redhat.com>
11976
11977         readlinkat: adjust client modules
11978         * modules/areadlinkat (Depends-on): Use readlinkat, not
11979         symlinkat.
11980         * modules/areadlinkat-with-size (Depends-on): Likewise.
11981
11982         mknod: be more vocal about danger of running tests as root
11983         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
11984         root, since that is just asking for problems.
11985         Suggested by Bruno Haible, based on a report by Rainer Tammer.
11986
11987         readlinkat: split into its own module
11988         * modules/symlinkat: Split readlinkat...
11989         * modules/readlinkat: ...into separate module.
11990         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
11991         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
11992         * lib/symlinkat.c (readlinkat): Move...
11993         * lib/readlinkat.c: ...into new file.
11994         * modules/symlinkat-tests: Split readlinkat test...
11995         * modules/readlinkat-tests: ...into separate module.
11996         * tests/test-symlinkat.c: Split...
11997         * tests/test-readlinkat.c: ...into new file.
11998         * NEWS: Document the split.
11999         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12000         * lib/unistd.in.h (readlinkat): Likewise.
12001         Suggested by Bruno Haible.
12002
12003 2010-08-08  Bruno Haible  <bruno@clisp.org>
12004
12005         memxfrm: Speed up.
12006         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
12007         that usually only one call to strxfrm is necessary for each string
12008         part.
12009         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12010
12011 2010-08-07  Karl Berry  <karl@gnu.org>
12012
12013         * doc/posix-headers/limits.texi,
12014         * doc/posix-functions/malloc.texi,
12015         * doc/posix-functions/strsignal.texi: missing @item.
12016         * doc/ld-version-script.texi: spurious leading i.
12017         * doc/regex.texi (Interval Operators): no commas inside @var.
12018
12019 2010-08-01  Bruno Haible  <bruno@clisp.org>
12020
12021         Integrate the regex documentation.
12022         * doc/gnulib.texi: Define 'cn' index.
12023         (Regular expressions): New a chapter that includes regex.texi and
12024         regexprops-generic.texi.
12025         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
12026         syntax.
12027
12028         Whitespace cleanup.
12029         * doc/regex.texi: Remove trailing spaces.
12030
12031         Add regex documentation.
12032         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
12033         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
12034         Written by Kathy A. Hargreaves and Karl Berry.
12035
12036 2010-08-01  Bruno Haible  <bruno@clisp.org>
12037
12038         link: Update documentation.
12039         * doc/posix-functions/link.texi: Update regarding Solaris.
12040
12041 2010-07-31  Bruno Haible  <bruno@clisp.org>
12042
12043         Update modules list.
12044         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
12045         (String handling <string.h>): Add memcmp2, memxfrm.
12046         (Container data structures): Add xlist, xsublist, xoset.
12047         (Core language properties): Add alignof, unused-parameter.
12048         (Process control, Numeric conversion functions <stdlib.h>): Renamed
12049         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
12050         (Unibyte characters <ctype.h>): New section.
12051         (String handling <string.h>): New section.
12052         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
12053         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
12054         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
12055         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
12056         tan, tanh, tanl, y0, y1, yn.
12057         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
12058         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
12059         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
12060         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
12061         unlockpt, vdprintf, vdprintf-posix.
12062         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
12063         (File system functions): Add concat-filename, sys_file, sys_ioctl,
12064         xconcat-filename.
12065         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
12066         getdtablesize, pipe2, pipe2-safer.
12067         (Security): New section.
12068         (Networking functions): Add accept4.
12069         (Signal handling): Add sigpipe.
12070         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
12071         mbmemcasecoll.
12072         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
12073         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
12074         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
12075         pipe-filter-ii.
12076         (Misc): Add argp-version-etc, login_tty, parse-duration.
12077
12078 2010-07-31  Bruno Haible  <bruno@clisp.org>
12079
12080         Improve doc in MODULES.html.
12081         * modules/linkat (Description): Add the word "function".
12082         * modules/mkfifo (Description): Likewise.
12083         * modules/mknod (Description): Likewise.
12084         * modules/remove (Description): Likewise.
12085         * modules/renameat (Description): Likewise.
12086         * modules/stat (Description): Likewise.
12087         * modules/symlink (Description): Likewise.
12088         * modules/unlink (Description): Likewise.
12089
12090 2010-07-31  Bruno Haible  <bruno@clisp.org>
12091
12092         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
12093         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
12094         option --enable/disable-c++ instead of --enable/disable-cxx.
12095         * NEWS: Mention the change.
12096
12097 2010-07-31  Bruno Haible  <bruno@clisp.org>
12098
12099         readlink, areadlink: Relax test a bit.
12100         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
12101         alternative to ENOTDIR.
12102         * tests/test-areadlink.h (test_areadlink): Likewise.
12103         Reported by Rainer Tammer.
12104
12105 2010-07-31  Bruno Haible  <bruno@clisp.org>
12106
12107         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
12108         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
12109         character, perform the search using U_STRCHR.
12110         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
12111         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
12112         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
12113         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
12114         Suggested by Paolo Bonzini.
12115
12116 2010-07-31  Bruno Haible  <bruno@clisp.org>
12117
12118         unistr/u*-strstr: Fix dependencies.
12119         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
12120         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
12121         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
12122
12123 2010-07-31  Bruno Haible  <bruno@clisp.org>
12124
12125         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
12126         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
12127         the beginning of the loop.
12128         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
12129         cases in 'switch' statement.
12130
12131         unistr/u8-strchr: Fix several bugs.
12132         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
12133         the string. When not found, return NULL, not a pointer near the end.
12134
12135         More tests for unistr/u8-strchr.
12136         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
12137         that the function does not read past the first occurrence of the byte
12138         being searched.
12139         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12140         * tests/unistr/test-u16-strchr.c (main): New function.
12141         * tests/unistr/test-u32-strchr.c (main): New function.
12142
12143 2010-07-31  Bruno Haible  <bruno@clisp.org>
12144
12145         posix-modules: Ignore backup files of documentation files.
12146         * posix-modules: grep only through files named *.texi.
12147
12148 2010-07-31  Bruno Haible  <bruno@clisp.org>
12149
12150         symlinkat: Fix documentation.
12151         * doc/posix-functions/readlinkat.texi: Fix module name.
12152
12153 2010-07-31  Bruno Haible  <bruno@clisp.org>
12154
12155         fchownat: Replace also when chown has the trailing slash bug.
12156         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
12157         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
12158         introduced on 2010-04-10.
12159         Reported by Rainer Tammer.
12160
12161 2010-07-31  Bruno Haible  <bruno@clisp.org>
12162
12163         linkat: Work around AIX 7.1 bug.
12164         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
12165         whether linkat handles trailing slash correctly. If not, replace linkat
12166         and define LINKAT_TRAILING_SLASH_BUG.
12167         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
12168         check whether (fd1,file1) points to a directory if file1 or file2 ends
12169         in a slash. Code taken from lib/link.c.
12170         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
12171         Reported by Rainer Tammer.
12172
12173 2010-07-31  Bruno Haible  <bruno@clisp.org>
12174
12175         Correctly determine whether pow is available in libc on AIX 7 with xlc.
12176         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
12177         This disables an xlc optimization that was causing wrong test results.
12178         Reported by Rainer Tammer.
12179
12180 2010-07-31  Bruno Haible  <bruno@clisp.org>
12181
12182         iconv: Work around AIX 6.1..7.1 bug.
12183         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
12184         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
12185         cross-compiling, guess no on all versions of AIX.
12186         Reported by Rainer Tammer.
12187
12188 2010-07-31  Bruno Haible  <bruno@clisp.org>
12189
12190         readlink: Relax test a bit.
12191         * tests/test-readlink.h (test_readlink): Allow different errno value
12192         when readlink is called with a file name that ends in / and refers to
12193         a file.
12194         Suggested by Eric Blake.
12195         Reported by Rainer Tammer.
12196
12197 2010-07-31  Bruno Haible  <bruno@clisp.org>
12198
12199         copysign: Does not require -lm on glibc systems.
12200         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12201         gl_COMMON_DOUBLE_MATHFUNC.
12202         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12203
12204 2010-07-31  Bruno Haible  <bruno@clisp.org>
12205
12206         duplocale: Work around AIX 7.1 bug.
12207         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12208         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12209         * lib/duplocale.c (rpl_duplocale): Update comment.
12210         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12211         Reported by Rainer Tammer.
12212
12213 2010-07-30  Bruno Haible  <bruno@clisp.org>
12214
12215         dirfd: Avoid link error on AIX 7.1.
12216         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12217         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12218         exist, set REPLACE_DIRFD.
12219         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12220         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12221         * doc/posix-functions/dirfd.texi: Update.
12222         Reported by Rainer Tammer.
12223
12224 2010-07-30  Eric Blake  <eblake@redhat.com>
12225
12226         strtod: next round of AIX fixes
12227         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12228         exponent.
12229         * tests/test-strtod.c (main): Enhance tests.
12230         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12231         Reported by Rainer Tammer.
12232
12233         futimens: fix configure check
12234         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12235         Reported by Bruno Haible.
12236
12237 2010-07-30  Bruno Haible  <bruno@clisp.org>
12238
12239         getline: Update regarding AIX.
12240         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12241         Reported by Rainer Tammer.
12242
12243 2010-07-30  Bruno Haible  <bruno@clisp.org>
12244
12245         wcwidth: Drop replacement on AIX 7.
12246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12247         AIX 7.
12248         Reported by Rainer Tammer.
12249
12250 2010-07-30  Bruno Haible  <bruno@clisp.org>
12251
12252         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12253         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12254         a 'char *'.
12255         Reported by Rainer Tammer.
12256
12257 2010-07-30  Bruno Haible  <bruno@clisp.org>
12258
12259         unlink: Update regarding AIX.
12260         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12261         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12262         Reported by Rainer Tammer.
12263
12264 2010-07-30  Bruno Haible  <bruno@clisp.org>
12265
12266         symlink: Update regarding AIX.
12267         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
12268         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
12269         Reported by Rainer Tammer.
12270
12271 2010-07-30  Bruno Haible  <bruno@clisp.org>
12272
12273         strndup: Update regarding AIX.
12274         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
12275         AIX 7.
12276         Reported by Rainer Tammer.
12277
12278 2010-07-30  Bruno Haible  <bruno@clisp.org>
12279
12280         stat: Update regarding AIX.
12281         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
12282         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
12283         Reported by Rainer Tammer.
12284
12285 2010-07-30  Bruno Haible  <bruno@clisp.org>
12286
12287         truncl: Fix autoconf test.
12288         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
12289         whether truncl works.
12290         Reported by Rainer Tammer.
12291
12292 2010-07-30  Bruno Haible  <bruno@clisp.org>
12293
12294         round: Update regarding AIX.
12295         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
12296         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
12297         Reported by Rainer Tammer.
12298
12299 2010-07-30  Bruno Haible  <bruno@clisp.org>
12300
12301         rename: Update regarding AIX.
12302         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12303         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
12304         Reported by Rainer Tammer.
12305
12306 2010-07-30  Bruno Haible  <bruno@clisp.org>
12307
12308         printf.m4: Update regarding AIX.
12309         * m4/printf.m4: Update comments regarding AIX.
12310         Reported by Rainer Tammer.
12311
12312 2010-07-30  Bruno Haible  <bruno@clisp.org>
12313
12314         iconv: Update regarding AIX.
12315         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
12316         AIX 7.
12317         Reported by Rainer Tammer.
12318
12319 2010-07-30  Bruno Haible  <bruno@clisp.org>
12320
12321         getopt: Update regarding AIX.
12322         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12323         no on AIX.
12324         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12325         Reported by Rainer Tammer.
12326
12327 2010-07-30  Bruno Haible  <bruno@clisp.org>
12328
12329         ldexpl; Update regarding AIX.
12330         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12331         on AIX 7.
12332         Reported by Rainer Tammer.
12333
12334 2010-07-30  Bruno Haible  <bruno@clisp.org>
12335
12336         frexpl: Update regarding AIX.
12337         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12338         on AIX 7.
12339         Reported by Rainer Tammer.
12340
12341 2010-07-30  Bruno Haible  <bruno@clisp.org>
12342
12343         open, fopen: Update regarding AIX.
12344         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12345         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12346         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12347         * doc/posix-functions/fopen.texi: Likewise.
12348         Reported by Rainer Tammer.
12349
12350 2010-07-30  Bruno Haible  <bruno@clisp.org>
12351
12352         chown: Update doc regarding AIX.
12353         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12354         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12355         Reported by Rainer Tammer.
12356
12357 2010-07-30  Eric Blake  <eblake@redhat.com>
12358
12359         strtod: fix bug in replacement function on AIX
12360         * lib/strtod.c (strtod): Special case broken "0x" parse in
12361         underlying strtod.
12362         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12363         * doc/posix-functions/strtod.texi (strtod): Likewise.
12364         Reported by Rainer Tammer.
12365
12366 2010-07-30  Bruno Haible  <bruno@clisp.org>
12367
12368         mbrlen: Fix cross-compilation guess for AIX.
12369         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12370         guess. Leftover from 2008-12-22.
12371
12372 2010-07-30  Bruno Haible  <bruno@clisp.org>
12373
12374         mbrtowc: Fix cross-compilation guess for AIX.
12375         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12376         guess. Leftover from 2008-12-21.
12377
12378 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12379
12380         init.sh: work around trap limitation of some shells
12381         * tests/init.sh (setup_): Move exit trap outside of shell function.
12382
12383 2010-07-29  Eric Blake  <eblake@redhat.com>
12384
12385         strtod: aid debugging
12386         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12387         understanding why strtod is rejected.
12388
12389 2010-07-28  Bruno Haible  <bruno@clisp.org>
12390
12391         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12392         * lib/unistr/u8-chr.c: Include <string.h>.
12393         * tests/unistr/test-u8-chr.c: Likewise.
12394         * tests/unistr/test-u16-chr.c: Likewise.
12395         * tests/unistr/test-u32-chr.c: Likewise.
12396         * tests/unistr/test-u8-strchr.c: Likewise.
12397         * tests/unistr/test-u16-strchr.c: Likewise.
12398         * tests/unistr/test-u32-strchr.c: Likewise.
12399         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12400         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12401         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12402         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12403
12404 2010-07-28  Bruno Haible  <bruno@clisp.org>
12405
12406         Use spaces for indentation, not tabs.
12407         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12408
12409 2010-07-27  Bruno Haible  <bruno@clisp.org>
12410
12411         mbspcasecmp: Fix function specification.
12412         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12413         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12414         Reported by Eric Blake <eblake@redhat.com>.
12415
12416 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12417
12418         timespec: use cast and not conditional, as truncation isn't possible
12419         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12420         instead of a conditional.  Comment about the situation in more detail.
12421         This undoes most of the 2009-10-29 patch.
12422
12423 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12424
12425         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12426         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12427         * lib/unistr/u8-strchr.c: Likewise.
12428         * modules/unistr/u8-chr: Depend on memchr.
12429
12430         unistr/u*-strchr: add tests
12431         * modules/unistr/u8-strchr-tests: New file.
12432         * modules/unistr/u16-strchr-tests: New file.
12433         * modules/unistr/u32-strchr-tests: New file.
12434         * tests/unistr/test-strchr.h: New file.
12435         * tests/unistr/test-u8-strchr.c: New file.
12436         * tests/unistr/test-u16-strchr.c: New file.
12437         * tests/unistr/test-u32-strchr.c: New file.
12438
12439         unistr/u*-chr: test multibyte sequences more
12440         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12441         test vector.
12442         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12443         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12444         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12445
12446         unistr/u*-chr: test multibyte sequences
12447         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12448
12449         unistr/u*-chr: prepare for multibyte tests
12450         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12451         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12452         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12453         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12454         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12455         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12456
12457 2010-07-18  Bruno Haible  <bruno@clisp.org>
12458
12459         unistr/u8-strchr: Optimize non-ASCII argument case.
12460         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12461         because the first byte often matches anyway.
12462         Reported by Pádraig Brady <P@draigbrady.com>.
12463
12464 2010-07-15  Karl Berry  <karl@gnu.org>
12465
12466         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12467
12468 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12469
12470         getcwd: on Solaris, work better if ancestors are inaccessible
12471         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12472         buffer and size, try again with a large buffer.  This works better
12473         on Solaris, since its getcwd succeeds even if the path to the root
12474         is inaccessible, and this is helpful in common cases such as .zfs
12475         hidden directories.  Problem reported by J Chapman Flack in
12476         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
12477         Use system getcwd if it's declared, not merely if it's partly
12478         working; use the partly-working test only to avoid needless effort
12479         if the system getcwd fails.
12480         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
12481         comment that was already obsolete and is now even more obsolete.
12482         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
12483         now might call strdup.
12484
12485 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
12486
12487         pthread: Add enough so that coreutils/src/sort.c compiles.
12488         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
12489         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
12490         gnulib. Include <sched.h> and <time.h>, as per POSIX.
12491         Include <sys/types.h>, in case it defines pthread_t.
12492         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
12493         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
12494         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
12495         (pthread_rwlockattr_t, pthread_spinlock_t):
12496         New typedefs, if HAVE_PTHREAD_T is not defined.
12497         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
12498         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
12499         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
12500         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
12501         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
12502         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
12503         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
12504         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
12505         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
12506         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
12507         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
12508         New macros.
12509         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
12510         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
12511         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
12512         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
12513         (pthread_spin_unlock): New dummy functions.
12514         (pthread_create): Return EAGAIN; don't set errno.
12515         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
12516         require AC_C_INLINE.
12517         * modules/pthread (Depends-on): Add sched, time.
12518         (pthread.h): Use AM_V_GEN.
12519
12520 2010-07-13  Bruno Haible  <bruno@clisp.org>
12521
12522         striconveh: Don't malloc memory if the result buffer is sufficient.
12523         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
12524         buffer if its size is sufficient.
12525         Reported by Ludovic Courtès <ludo@gnu.org>.
12526
12527 2010-07-13  Bruno Haible  <bruno@clisp.org>
12528
12529         strtod: Add safety check.
12530         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
12531
12532 2010-07-12  Bruno Haible  <bruno@clisp.org>
12533
12534         Unify tests that set gl_cv_func_ldexpl_no_libm.
12535         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
12536         gl_FUNC_LDEXPL.
12537         (gl_FUNC_LDEXPL): Invoke it.
12538         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12539
12540 2010-07-12  Bruno Haible  <bruno@clisp.org>
12541
12542         Unify tests that set gl_cv_func_ldexp_no_libm.
12543         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
12544         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
12545         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
12546         (configure.ac): Simply invoke gl_FUNC_LDEXP.
12547         * modules/strtod (Files): Add m4/ldexp.m4.
12548
12549 2010-07-12  Bruno Haible  <bruno@clisp.org>
12550
12551         Unify tests that set gl_cv_func_frexpl_no_libm.
12552         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
12553         gl_FUNC_FREXPL_NO_LIBM.
12554         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
12555         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12556
12557 2010-07-12  Bruno Haible  <bruno@clisp.org>
12558
12559         Unify tests that set gl_cv_func_frexp_no_libm.
12560         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
12561         gl_FUNC_FREXP_NO_LIBM.
12562         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
12563         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12564
12565 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12566
12567         memcoll: clarify sizes versus lengths, document better, and tweak perf
12568         * lib/memcoll.c (strcoll_loop, memcoll0):
12569         Improve quality of descriptive comments.  Name variables
12570         consistently as to whether they are lengths (which do not include
12571         terminating null) versus sizes (which do).
12572         * lib/xmemcoll.c (xmemcoll0): Likewise.
12573         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
12574         returned when s1size == 0; this is easier to compile and saves
12575         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
12576
12577 2010-07-12  Bruno Haible  <bruno@clisp.org>
12578
12579         Tests for module '_Exit'.
12580         * modules/_Exit-tests: New file.
12581         * tests/test-_Exit.sh: New file.
12582         * tests/test-_Exit.c: New file.
12583
12584         New module '_Exit'.
12585         * lib/stdlib.in.h (__attribute__): New macro.
12586         (_Exit): New declaration.
12587         * lib/_Exit.c: New file.
12588         * m4/_Exit.m4: New file.
12589         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
12590         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
12591         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
12592         * modules/_Exit: New file.
12593         * tests/test-stdlib-c++.cc (_Exit): Check signature.
12594         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
12595
12596 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12597
12598         strtod: make it more-accurate typically, and don't require libm
12599         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
12600         Include limits.h.  Don't include string.h.
12601         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
12602         (locale_isspace): New function, so that no casts are needed to
12603         check whether *s is a space.
12604         (ldexp): Provide an unused dummy if not available.
12605         (scale_radix_exp, parse_number, underlying_strtod): New functions.
12606         (strtod): Use them.  This implementation prefers to use the
12607         underlying strtod if available, falling back on our own code
12608         only to fix known bugs.  This is more likely to produce an
12609         accurate result.  Also, it avoids the use of libm functions.
12610         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
12611         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
12612         was absent, but it caused a test failure with coreutils.
12613         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
12614         with libm.
12615         * modules/strtod (Makefile.am, Link): libm is no longer needed.
12616         * modules/strtod-tests (Makefile.am): Likewise.
12617
12618 2010-07-11  Pádraig Brady  <P@draigBrady.com>
12619             Bruno Haible  <bruno@clisp.org>
12620
12621         unistr/u8-strchr: Optimize ASCII argument case.
12622         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
12623
12624 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12625
12626         (x)memcoll: minor tweaks
12627         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
12628         is after the type that it qualifies.
12629         (memcoll0): Likewise.
12630         * lib/memcoll.h (memcoll0): Likewise.
12631         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
12632         * lib/xmemcoll.h (xmemcoll0): Likewise.
12633         * lib/memcoll.c (memcoll0): Correct the comment.  This function
12634         differs from memcoll in that the NUL byte is part of the argument.
12635         Omit the abort-checks, as performance is a real issue here.  Plus,
12636         the checks were wrong anyway (an off-by-one error).  Omit local
12637         variable 'diff', as it's a bit clearer that way.
12638         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
12639         no longer needed.
12640
12641 2010-07-08  Chen Guo <chenguo4@yahoo.com>
12642
12643         (x)memcoll: speedup when input is known to be NUL delimited
12644         * lib/memcoll.c: Include stdlib.
12645         (memcoll0): New function.
12646         (strcoll_loop): New function, refactored for use in both memcoll
12647         and memcoll0.
12648         * lib/memcoll.h (memcoll0): Add prototype.
12649         * lib/xmemcoll.c (xmemcoll0): New function.
12650         (collate_error): New function, refactored for use in both xmemcoll
12651         and xmemcoll0.
12652         * lib/xmemcoll.h (xmemcoll0): Add prototype.
12653         * m4/memcoll.m4: add inline invocation.
12654
12655 2010-07-06  Pádraig Brady  <P@draigBrady.com>
12656
12657         * build-aux/bootstrap: Remove any local translations
12658         from the translation project synchronization directory,
12659         so that local only translations are not distributed.
12660
12661 2010-07-04  Bruno Haible  <bruno@clisp.org>
12662
12663         fsusage: Clarify which code applies to which platforms.
12664         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
12665         platform.
12666         * lib/fsusage.c (get_fs_usage): Likewise.
12667
12668 2010-07-04  Bruno Haible  <bruno@clisp.org>
12669
12670         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
12671         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
12672         Reported by Martin Lambers <marlam@marlam.de>.
12673
12674 2010-07-04  Jim Meyering  <meyering@redhat.com>
12675
12676         hash: once again explicitly disallow insertion of NULL
12677         * lib/hash.c (hash_insert0): Reinstate just-removed test:
12678         inserting a NULL pointer cannot work with these functions.
12679         Add a comment with details.
12680         This reverts part of the 2010-07-01 commit, 5bef1a35
12681         "hash: extend module to deal with non-pointer keys".
12682
12683 2010-07-01  Bruno Haible  <bruno@clisp.org>
12684
12685         stdbool: Update doc.
12686         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
12687         Info from Christian Weisgerber <naddy@mips.inka.de>.
12688
12689 2010-07-01  Jim Meyering  <meyering@redhat.com>
12690
12691         hash: extend module to deal with non-pointer keys
12692         * lib/hash.c (hash_insert0): New interface, much like hash_insert
12693         but that allows insertion of non-pointer entries.
12694         Do not disallow an ENTRY value of NULL.
12695         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
12696         * lib/hash.h (hash_insert0): Declare.
12697
12698 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12699
12700         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
12701         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
12702         not present (i.e. with autoconf 2.59 and when using gettextize, not
12703         gnulib), require AC_GNU_SOURCE instead.
12704
12705 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
12706
12707         idpriv-drop: Fix tests.
12708         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
12709         not to the test-idpriv-droptemp program.
12710
12711 2010-06-29  Bruno Haible  <bruno@clisp.org>
12712
12713         string: Fix syntax error with g++ 2.96.
12714         * lib/string.in.h (__pure__): Remove definition.
12715         (_GL_ATTRIBUTE_PURE): New macro.
12716         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
12717         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
12718         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12719
12720 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
12721
12722         unitypes: Fix bug introduced on 2010-05-18.
12723         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
12724
12725 2010-06-22  Eric Blake  <eblake@redhat.com>
12726
12727         memmem: slight optimization
12728         * lib/str-two-way.h (critical_factorization): Update comments.
12729         Reduce work during factorization phase.
12730         Reported by Carlos Bueno <carlos@bueno.org>.
12731
12732 2010-06-21  Bruno Haible  <bruno@clisp.org>
12733
12734         Fix HAVE_CALLOC_POSIX misnomer.
12735         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
12736         !HAVE_CALLOC_POSIX.
12737         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
12738         HAVE_CALLOC_POSIX.
12739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
12740         instead of HAVE_CALLOC_POSIX.
12741         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
12742         HAVE_CALLOC_POSIX.
12743
12744         Use modern idiom for calloc() replacement.
12745         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
12746         AC_FUNC_CALLOC.
12747         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
12748         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
12749         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12750         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
12751         (gl_REPLACE_CALLOC): New macro.
12752
12753 2010-06-21  Bruno Haible  <bruno@clisp.org>
12754
12755         Fix HAVE_REALLOC_POSIX misnomer.
12756         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
12757         !HAVE_REALLOC_POSIX.
12758         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
12759         HAVE_REALLOC_POSIX.
12760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
12761         instead of HAVE_REALLOC_POSIX.
12762         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
12763         HAVE_REALLOC_POSIX.
12764
12765         Use modern idiom for realloc() replacement.
12766         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
12767         AC_FUNC_REALLOC.
12768         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
12769         Autoconf's AC_FUNC_REALLOC.
12770         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12771         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
12772         (gl_REPLACE_REALLOC): New macro.
12773         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12774
12775 2010-06-21  Bruno Haible  <bruno@clisp.org>
12776
12777         Fix HAVE_MALLOC_POSIX misnomer.
12778         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
12779         !HAVE_MALLOC_POSIX.
12780         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
12781         HAVE_MALLOC_POSIX.
12782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
12783         instead of HAVE_MALLOC_POSIX.
12784         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
12785         HAVE_MALLOC_POSIX.
12786
12787         Use modern idiom for malloc() replacement.
12788         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
12789         AC_FUNC_MALLOC.
12790         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
12791         Autoconf's AC_FUNC_MALLOC.
12792         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12793         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
12794         (gl_REPLACE_MALLOC): New macro.
12795         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12796
12797 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
12798
12799         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
12800         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
12801         This macro takes 3 arguments, not 4.
12802
12803 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
12804
12805         ipv6: fix detection under mingw
12806         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
12807         in6_addr.
12808
12809 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
12810
12811         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
12812         that strtod() works when cross-compiling to a glibc version known
12813         to work.
12814
12815 2010-06-15  Bruno Haible  <bruno@clisp.org>
12816
12817         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
12818
12819 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
12820
12821         select: Correct timeout.
12822         * lib/select.c (rpl_select): Compute wait_timeout correctly.
12823
12824 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12825
12826         git-version-gen: init shell var to avoid env var influence
12827         * build-aux/git-version-gen (v): Init shell var to empty.
12828
12829 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12830
12831         priv-set: Don't assume that priv.h exists merely because getppriv does.
12832         See Jan Andersen's bug report about AIX 5L in
12833         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
12834         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
12835         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
12836         * lib/priv-set.h: Likewise.
12837         * tests/test-priv-set.c: Likewise.
12838
12839 2010-06-13  Bruno Haible  <bruno@clisp.org>
12840
12841         relocatable: Make it easier to test whether to install wrappers.
12842         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
12843         RELOCATABLE_VIA_WRAPPER.
12844
12845 2010-06-13  Bruno Haible  <bruno@clisp.org>
12846
12847         gnulib-tool: Display specified modules and dependencies differently.
12848         * gnulib-tool (func_show_module_list): New function.
12849         (func_import, func_create_testdir): Invoke it.
12850         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12851
12852 2010-06-13  Bruno Haible  <bruno@clisp.org>
12853
12854         gnulib-tool: Align code of func_import and func_create_testdir.
12855         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
12856         specified_modules.
12857
12858 2010-06-12  Jim Meyering  <meyering@redhat.com>
12859
12860         test-inttostr: avoid spurious failure on Solaris 9
12861         * tests/test-inttostr.c (main): Skip the test when snprintf fails
12862         to accept "%ju".  Reported by Bruno Haible.
12863
12864 2010-06-11  Jim Meyering  <meyering@redhat.com>
12865
12866         test-sys_socket: mark variables as used more readably
12867         * tests/test-sys_socket.c (main): Mark otherwise unused variables
12868         as "used" explicitly via (void) statement casts.  This is more
12869         readable than using them in an artificial return expression.
12870         Suggestion from Bruno Haible.
12871
12872 2010-06-11  Bruno Haible  <bruno@clisp.org>
12873
12874         Avoid some more warnings from "gcc -Wwrite-strings".
12875         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
12876         to 'const char *'.
12877         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
12878         * tests/test-c-strcasestr.c (main): Likewise.
12879         * tests/test-mbscasestr1.c (main): Likewise.
12880         * tests/test-mbscasestr2.c (main): Likewise.
12881         * tests/test-memmem.c (main): Likewise.
12882         * tests/test-strstr.c (main): Likewise.
12883         * tests/test-strcasestr.c (main): Likewise.
12884
12885 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12886
12887         init.sh: change framework_failure_ to fail with status 99, not 1
12888         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
12889         automake's parallel-tests rule that this is an unexpected failure,
12890         even if the test is listed in XFAIL_TESTS.
12891
12892 2010-06-11  Jim Meyering  <meyering@redhat.com>
12893
12894         test-inttostr: avoid warnings about 4-6KB literal strings
12895         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
12896         Include "macros.h", for its definition of ASSERT.
12897         (CK): s/assert/ASSERT/
12898         * modules/inttostr-tests (Files): Add macros.h.
12899
12900         init.sh: don't use $ME_ or skip_ before they are defined
12901         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
12902         their first uses.  Also hoist their companions: warn_, fail_,
12903         framework_failure_, $stderr_fileno.  Prompted by a patch from
12904         Stefano Lattarini.
12905
12906         test-sys_socket: avoid set-but-not-used warnings from gcc
12907         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
12908         avoid warning about set-but-not-used variables.
12909
12910         test-xvasprintf: avoid 'const' discard warnings
12911         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
12912         "const" when assigning from literal strings.
12913         (test_xasprintf): Add "void" in function argument list to placate
12914         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
12915
12916         tests: avoid compilation warnings in argmatch and exclude tests...
12917         in packages that define ARGMATCH_DIE_DECL, like coreutils.
12918         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
12919         Since it always exits, declare with the "noreturn" attribute.
12920         * tests/test-argmatch.c: Likewise.
12921
12922         tests: avoid 'const' discard warnings in mbsstr tests
12923         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
12924         * tests/test-mbsstr2.c (main): Likewise.
12925
12926         test-verify: avoid warning from gcc's -Wmissing-declarations
12927         * tests/test-verify.c (function): Declare to be static.
12928
12929         test-inttostr.c: include <string.h> for use of strcmp
12930         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
12931
12932         test-linkat: avoid failed assertion on "other" architectures
12933         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
12934         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
12935         sparc: https://bugs.launchpad.net/bugs/591968
12936
12937 2010-06-11  Jim Meyering  <meyering@redhat.com>
12938
12939         printf.m4: avoid autoconf's "Expanded Before Required" warning
12940         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
12941         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
12942         autoconf warning.
12943
12944 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
12945
12946         Replacement header templates are now named with ".in", not "_".
12947         * doc/gnulib-intro.texi: Correct.
12948
12949 2010-06-10  Jim Meyering  <meyering@redhat.com>
12950
12951         inttostr-tests: depend on snprintf, not snprintf-posix
12952         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
12953         snprintf-posix, to avoid this aclocal failure:
12954           missing file gnulib-tests/vasnprintf.c
12955           configure.ac:45: error: expected source file, required through \
12956           AC_LIBSOURCES, not found
12957
12958 2010-06-10  Jim Meyering  <meyering@redhat.com>
12959
12960         inttostr: add a new function, inttostr, and tests
12961         The namesake function was not available.  The existence of the
12962         template file, inttostr.c makes its addition nontrivial.
12963         * lib/anytostr.c: Rename from inttostr.c.
12964         (anytostr): Rename from inttostr.
12965         * lib/inttostr.c: New file.
12966         * modules/inttostr (Files): Add anytostr.c.
12967         (Makefile.am): Set lib_SOURCES instead of ...
12968         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
12969         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
12970         * lib/offtostr.c: Likewise.
12971         * lib/uinttostr.c: Likewise.
12972         * lib/umaxtostr.c: Likewise.
12973         * modules/inttostr-tests: New file.
12974         * tests/test-inttostr.c: New file.  Test these functions.
12975
12976 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
12977             Bruno Haible  <bruno@clisp.org>
12978
12979         Add "Extending Gnulib" chapter to manual.
12980         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
12981         chapter.
12982         (Extending Gnulib): New chapter.
12983         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
12984         chapter.
12985
12986 2010-06-09  Bruno Haible  <bruno@clisp.org>
12987
12988         Avoid relocwrapper link errors due to gnulib replacement functions.
12989         * lib/areadlink.c: Use the system's malloc, realloc functions.
12990         (areadlink): Set errno to ENOMEM explicitly.
12991         * modules/areadlink (Depends-on): Remove malloc-posix.
12992         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12993
12994 2010-06-09  Bruno Haible  <bruno@clisp.org>
12995
12996         Avoid relocwrapper link errors due to gnulib replacement functions.
12997         * lib/canonicalize-lgpl.c: Use the system's malloc function.
12998         * lib/malloca.c: Likewise.
12999         * lib/relocatable.c: Likewise.
13000         * lib/progreloc.c: Use the system's malloc, sprintf functions.
13001         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
13002         * lib/setenv.c: Use the system's malloc, realloc functions.
13003         * lib/strerror.c: Use the system's sprintf function.
13004         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13005
13006 2010-06-04  Bruno Haible  <bruno@clisp.org>
13007
13008         Prefer documented low-level autoconf macro names.
13009         * m4/lib-link.m4: Use m4_translit instead of translit.
13010         * m4/environ.m4: Likewise.
13011         * m4/mathfunc.m4: Likewise.
13012         * m4/onceonly.m4: Likewise.
13013         * m4/stdint.m4: Likewise.
13014         Suggested by Eric Blake.
13015
13016 2010-06-04  Martin Lambers  <marlam@marlam.de>
13017             Bruno Haible  <bruno@clisp.org>
13018
13019         havelib: Allow library names with '+' characters.
13020         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
13021         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
13022
13023 2010-06-09  Bruno Haible  <bruno@clisp.org>
13024
13025         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
13026         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
13027         realloc failed.
13028
13029 2010-06-08  Peter Simons  <simons@cryp.to>
13030
13031         maint.mk: make the news-check rule more configurable
13032         * top/maint.mk (news-check-lines-spec): New variable.
13033         (news-check): Use "sed -n 1,10p" in place of "head".
13034
13035 2010-06-07  Jim Meyering  <meyering@redhat.com>
13036
13037         do-release-commit-and-tag: fix typo in --help
13038         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
13039
13040         regex: avoid new dead-code warning with gcc-4.6.0
13041         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
13042         if-block containing a while-loop.  It's been unused for at least
13043         5 years.
13044
13045 2010-06-05  Bruno Haible  <bruno@clisp.org>
13046
13047         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
13048         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
13049
13050 2010-06-04  Bruno Haible  <bruno@clisp.org>
13051
13052         Update to GNU gettext 0.18.1.
13053         * modules/gettext (configure.ac): Require gettext infrastructure from
13054         version 0.18.1.
13055
13056 2010-06-03  Bruno Haible  <bruno@clisp.org>
13057
13058         Don't use AC_LIBOBJ with file names in subdirectories.
13059         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
13060         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
13061         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
13062         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
13063         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
13064         gl_LIBUNISTRING_LIBSOURCE.
13065         (Makefile.am): Augment lib_SOURCES here, conditionally.
13066         * NEWS: Drop requirement for Automake option 'subdir-objects'.
13067
13068 2010-06-03  Bruno Haible  <bruno@clisp.org>
13069
13070         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
13071         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
13072         expansion does not end with a newline.
13073         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
13074         unnecessary newline.
13075
13076 2010-06-03  Bruno Haible  <bruno@clisp.org>
13077
13078         Reduce dependencies.
13079         * tests/test-quotearg.h: New file, extracted from
13080         tests/test-quotearg.c.
13081         * tests/test-quotearg-simple.c: New file, extracted from
13082         tests/test-quotearg.c.
13083         * tests/test-quotearg.c: Don't include <ctype.h>.
13084         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
13085         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
13086         use_quote_double_quotes, use_quotearg_colon): Moved to
13087         tests/test-quotearg.h.
13088         (results_g, flag_results, custom_quotes, custom_results): Moved
13089         to tests/test-quotearg-simple.c.
13090         (main): Moved the part that does not depend on gettext to
13091         tests/test-quotearg-simple.c. Return 77 if the test cannot be
13092         performed.
13093         * modules/quotearg-simple: New file.
13094         * modules/quotearg-simple-tests: New file.
13095         * modules/quotearg (Depends-on): Add quotearg-simple.
13096         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
13097         (Files): Add tests/test-quotearg.h.
13098         Reported by Paolo Bonzini.
13099
13100 2010-06-03  Bruno Haible  <bruno@clisp.org>
13101
13102         Reduce dependencies.
13103         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
13104
13105 2010-06-03  Bruno Haible  <bruno@clisp.org>
13106
13107         time: Undefine more broken macros.
13108         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
13109         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
13110         Reported by Eric Blake.
13111
13112 2010-06-03  Bruno Haible  <bruno@clisp.org>
13113
13114         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
13115         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
13116         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
13117         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
13118         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
13119         Reported by Ludovic Courtès <ludo@gnu.org>.
13120
13121 2010-06-02  Eric Blake  <eblake@redhat.com>
13122
13123         time: work with mingw + pthreads-win32 library
13124         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
13125         if timespec is defined only in pthread.h.
13126         * modules/time (Makefile.am): Substitute it.
13127         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
13128         <pthread.h>, when needed.
13129         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
13130         from the library.
13131
13132 2010-05-31  Bruno Haible  <bruno@clisp.org>
13133
13134         Avoid expanding two macros in the wrong order.
13135         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
13136         gl_LIBUNISTRING if it is defined.
13137         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
13138         autoconf >= 2.64.
13139         Reported by Ludovic Courtès <ludo@gnu.org>.
13140
13141 2010-05-27  Jim Meyering  <meyering@redhat.com>
13142
13143         maint.mk: also prohibit "#undef" of always-defined symbols
13144         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
13145         Allow more than one space before the symbol name.
13146         (sc_prohibit_always-defined_macros): Use grep's -E, now that
13147         the regexp uses alternation.
13148
13149 2010-05-26  Eric Blake  <eblake@redhat.com>
13150
13151         maint.mk: avoid echo -e
13152         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
13153         Convert all uses of echo -* to printf.
13154         Reported by Matthias Bolte.
13155
13156 2010-05-25  Bruno Haible  <bruno@clisp.org>
13157
13158         Update to GNU gettext 0.18, part 2.
13159         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
13160         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
13161
13162 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13163
13164         Add missing include in test-pwrite.c.
13165         * tests/test-pwrite.c: Include string.h, for strcmp.
13166
13167 2010-05-24  Bruno Haible  <bruno@clisp.org>
13168
13169         * NEWS: Mention requirement for Automake option 'subdir-objects'.
13170
13171 2010-05-24  Bruno Haible  <bruno@clisp.org>
13172
13173         Don't use conversion with transliteration in u{8,16,32}_strcoll.
13174         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
13175         iconveh_error argument.
13176         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
13177         U_STRCONV_TO_LOCALE.
13178         * lib/unistr/u16-strcoll.c: Likewise.
13179         * lib/unistr/u32-strcoll.c: Likewise.
13180         * modules/unistr/u8-strcoll (Depends-on): Add
13181         uniconv/u8-strconv-to-enc, localcharset. Remove
13182         uniconv/u8-strconv-to-locale.
13183         (configure.ac): Bump version number.
13184         * modules/unistr/u16-strcoll (Depends-on): Add
13185         uniconv/u16-strconv-to-enc, localcharset. Remove
13186         uniconv/u16-strconv-to-locale.
13187         (configure.ac): Bump version number.
13188         * modules/unistr/u32-strcoll (Depends-on): Add
13189         uniconv/u32-strconv-to-enc, localcharset. Remove
13190         uniconv/u32-strconv-to-locale.
13191         (configure.ac): Bump version number.
13192
13193 2010-05-24  Bruno Haible  <bruno@clisp.org>
13194
13195         Avoid a test failure on NetBSD 5.0.
13196         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13197         an iconv() bug.
13198
13199 2010-05-24  Bruno Haible  <bruno@clisp.org>
13200
13201         Adjust #include directive style.
13202         * modules/regex (Includes): Recommend to write <regex.h>.
13203
13204 2010-05-24  Bruno Haible  <bruno@clisp.org>
13205
13206         regex: Don't require alloca.
13207         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13208         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13209         only inside if (0).
13210
13211 2010-05-23  Jim Meyering  <meyering@redhat.com>
13212
13213         test-renameat.c: include <sys/stat.h>
13214         * tests/test-renameat.c: Include <sys/stat.h>; required for
13215         definition of S_IS* macros.
13216
13217 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13218
13219         Update maintainer documentation for 'relocatable-prog' module.
13220         * doc/relocatable-maint.texi: Update.
13221         Comments by Bruno Haible.
13222
13223 2010-05-23  Bruno Haible  <bruno@clisp.org>
13224
13225         git-merge-changelog: Enable --split-merged-entry by default.
13226         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13227         (usage): Don't mention this option any more.
13228         Reported by Ralf Wildenhues.
13229
13230 2010-05-23  Jim Meyering  <meyering@redhat.com>
13231
13232         test-pwrite: do not leave behind a test file named "out"
13233         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13234         The trivial-looking use of init.sh is really necessary.
13235         It ensures that the temporary file, "out", is created in
13236         a temporary directory, and removed upon termination.
13237         * tests/test-pwrite.sh: Re-add file.
13238         * modules/pwrite-tests: Reference it.
13239
13240 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13241
13242         Fix output redirection buglet in init.sh.
13243         * tests/init.sh: Fix redirection of stderr.
13244
13245 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13246
13247         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13248
13249 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13250
13251         * modules/valgrind-tests: New file.
13252         * m4/valgrind-tests.m4: New file.
13253         * doc/valgrind-tests.texi: New file.
13254         * doc/gnulib.texi (Running self-tests under valgrind): New
13255         section.
13256
13257 2010-05-19  Bruno Haible  <bruno@clisp.org>
13258
13259         Clean up dead code in recent commit.
13260         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13261         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13262         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
13263         Suggested by Paolo Bonzini.
13264
13265 2010-05-19  Bruno Haible  <bruno@clisp.org>
13266
13267         Avoid valgrind error reports from libunistring.
13268         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
13269         * modules/libunistring (Files): Add it.
13270         * modules/libunistring-optional (Files): Likewise.
13271
13272 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
13273             Bruno Haible  <bruno@clisp.org>
13274
13275         New module 'libunistring-optional'.
13276         * modules/libunistring-optional: New file.
13277         * m4/libunistring-base.m4: New file.
13278         * m4/libunistring-optional.m4: New file.
13279         * lib/unicase.in.h: Renamed from lib/unicase.h.
13280         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
13281         * lib/unictype.in.h: Renamed from lib/unictype.h.
13282         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
13283         * lib/uniname.in.h: Renamed from lib/uniname.h.
13284         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
13285         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
13286         * lib/unistr.in.h: Renamed from lib/unistr.h.
13287         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
13288         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
13289         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
13290         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
13291         gl_LIBUNISTRING. If the library was found, determine the installed
13292         version and set LIBUNISTRING_VERSION.
13293         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
13294         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
13295         handle a configuration option --with-included-libunistring.
13296         * modules/libunistring (Files): Add m4/absolute-header.m4.
13297         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
13298         Add m4/libunistring-base.m4.
13299         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13300         (Makefile.am): Build unicase.h from unicase.in.h.
13301         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
13302         Add m4/libunistring-base.m4.
13303         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13304         (Makefile.am): Build uniconv.h from uniconv.in.h.
13305         * modules/unictype/base (Files): Use unictype.in.h instead of
13306         unictype.h. Add m4/libunistring-base.m4.
13307         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13308         (Makefile.am): Build unictype.h from unictype.in.h.
13309         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
13310         Add m4/libunistring-base.m4.
13311         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13312         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
13313         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
13314         Add m4/libunistring-base.m4.
13315         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13316         (Makefile.am): Build uniname.h from uniname.in.h.
13317         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
13318         Add m4/libunistring-base.m4.
13319         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13320         (Makefile.am): Build uninorm.h from uninorm.in.h.
13321         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13322         unistdio.h. Add m4/libunistring-base.m4.
13323         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13324         (Makefile.am): Build unistdio.h from unistdio.in.h.
13325         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13326         Add m4/libunistring-base.m4.
13327         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13328         (Makefile.am): Build unistr.h from unistr.in.h.
13329         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13330         Add m4/libunistring-base.m4.
13331         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13332         (Makefile.am): Build unitypes.h from unitypes.in.h.
13333         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13334         Add m4/libunistring-base.m4.
13335         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13336         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13337         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13338         uniwidth.h. Add m4/libunistring-base.m4.
13339         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13340         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13341         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13342         instead of augmenting lib_SOURCES.
13343         * modules/unicase/empty-suffix-context: Likewise.
13344         * modules/unicase/locale-language: Likewise.
13345         * modules/unicase/tolower: Likewise.
13346         * modules/unicase/totitle: Likewise.
13347         * modules/unicase/toupper: Likewise.
13348         * modules/unicase/u8-casecmp: Likewise.
13349         * modules/unicase/u8-casecoll: Likewise.
13350         * modules/unicase/u8-casefold: Likewise.
13351         * modules/unicase/u8-casexfrm: Likewise.
13352         * modules/unicase/u8-ct-casefold: Likewise.
13353         * modules/unicase/u8-ct-tolower: Likewise.
13354         * modules/unicase/u8-ct-totitle: Likewise.
13355         * modules/unicase/u8-ct-toupper: Likewise.
13356         * modules/unicase/u8-is-cased: Likewise.
13357         * modules/unicase/u8-is-casefolded: Likewise.
13358         * modules/unicase/u8-is-lowercase: Likewise.
13359         * modules/unicase/u8-is-titlecase: Likewise.
13360         * modules/unicase/u8-is-uppercase: Likewise.
13361         * modules/unicase/u8-prefix-context: Likewise.
13362         * modules/unicase/u8-suffix-context: Likewise.
13363         * modules/unicase/u8-tolower: Likewise.
13364         * modules/unicase/u8-totitle: Likewise.
13365         * modules/unicase/u8-toupper: Likewise.
13366         * modules/unicase/u16-casecmp: Likewise.
13367         * modules/unicase/u16-casecoll: Likewise.
13368         * modules/unicase/u16-casefold: Likewise.
13369         * modules/unicase/u16-casexfrm: Likewise.
13370         * modules/unicase/u16-ct-casefold: Likewise.
13371         * modules/unicase/u16-ct-tolower: Likewise.
13372         * modules/unicase/u16-ct-totitle: Likewise.
13373         * modules/unicase/u16-ct-toupper: Likewise.
13374         * modules/unicase/u16-is-cased: Likewise.
13375         * modules/unicase/u16-is-casefolded: Likewise.
13376         * modules/unicase/u16-is-lowercase: Likewise.
13377         * modules/unicase/u16-is-titlecase: Likewise.
13378         * modules/unicase/u16-is-uppercase: Likewise.
13379         * modules/unicase/u16-prefix-context: Likewise.
13380         * modules/unicase/u16-suffix-context: Likewise.
13381         * modules/unicase/u16-tolower: Likewise.
13382         * modules/unicase/u16-totitle: Likewise.
13383         * modules/unicase/u16-toupper: Likewise.
13384         * modules/unicase/u32-casecmp: Likewise.
13385         * modules/unicase/u32-casecoll: Likewise.
13386         * modules/unicase/u32-casefold: Likewise.
13387         * modules/unicase/u32-casexfrm: Likewise.
13388         * modules/unicase/u32-ct-casefold: Likewise.
13389         * modules/unicase/u32-ct-tolower: Likewise.
13390         * modules/unicase/u32-ct-totitle: Likewise.
13391         * modules/unicase/u32-ct-toupper: Likewise.
13392         * modules/unicase/u32-is-cased: Likewise.
13393         * modules/unicase/u32-is-casefolded: Likewise.
13394         * modules/unicase/u32-is-lowercase: Likewise.
13395         * modules/unicase/u32-is-titlecase: Likewise.
13396         * modules/unicase/u32-is-uppercase: Likewise.
13397         * modules/unicase/u32-prefix-context: Likewise.
13398         * modules/unicase/u32-suffix-context: Likewise.
13399         * modules/unicase/u32-tolower: Likewise.
13400         * modules/unicase/u32-totitle: Likewise.
13401         * modules/unicase/u32-toupper: Likewise.
13402         * modules/unicase/ulc-casecmp: Likewise.
13403         * modules/unicase/ulc-casecoll: Likewise.
13404         * modules/unicase/ulc-casexfrm: Likewise.
13405         * modules/uniconv/u8-conv-from-enc: Likewise.
13406         * modules/uniconv/u8-conv-to-enc: Likewise.
13407         * modules/uniconv/u8-strconv-from-enc: Likewise.
13408         * modules/uniconv/u8-strconv-from-locale: Likewise.
13409         * modules/uniconv/u8-strconv-to-enc: Likewise.
13410         * modules/uniconv/u8-strconv-to-locale: Likewise.
13411         * modules/uniconv/u16-conv-from-enc: Likewise.
13412         * modules/uniconv/u16-conv-to-enc: Likewise.
13413         * modules/uniconv/u16-strconv-from-enc: Likewise.
13414         * modules/uniconv/u16-strconv-from-locale: Likewise.
13415         * modules/uniconv/u16-strconv-to-enc: Likewise.
13416         * modules/uniconv/u16-strconv-to-locale: Likewise.
13417         * modules/uniconv/u32-conv-from-enc: Likewise.
13418         * modules/uniconv/u32-conv-to-enc: Likewise.
13419         * modules/uniconv/u32-strconv-from-enc: Likewise.
13420         * modules/uniconv/u32-strconv-from-locale: Likewise.
13421         * modules/uniconv/u32-strconv-to-enc: Likewise.
13422         * modules/uniconv/u32-strconv-to-locale: Likewise.
13423         * modules/unictype/bidicategory-byname: Likewise.
13424         * modules/unictype/bidicategory-name: Likewise.
13425         * modules/unictype/bidicategory-of: Likewise.
13426         * modules/unictype/bidicategory-test: Likewise.
13427         * modules/unictype/block-list: Likewise.
13428         * modules/unictype/block-test: Likewise.
13429         * modules/unictype/category-C: Likewise.
13430         * modules/unictype/category-Cc: Likewise.
13431         * modules/unictype/category-Cf: Likewise.
13432         * modules/unictype/category-Cn: Likewise.
13433         * modules/unictype/category-Co: Likewise.
13434         * modules/unictype/category-Cs: Likewise.
13435         * modules/unictype/category-L: Likewise.
13436         * modules/unictype/category-Ll: Likewise.
13437         * modules/unictype/category-Lm: Likewise.
13438         * modules/unictype/category-Lo: Likewise.
13439         * modules/unictype/category-Lt: Likewise.
13440         * modules/unictype/category-Lu: Likewise.
13441         * modules/unictype/category-M: Likewise.
13442         * modules/unictype/category-Mc: Likewise.
13443         * modules/unictype/category-Me: Likewise.
13444         * modules/unictype/category-Mn: Likewise.
13445         * modules/unictype/category-N: Likewise.
13446         * modules/unictype/category-Nd: Likewise.
13447         * modules/unictype/category-Nl: Likewise.
13448         * modules/unictype/category-No: Likewise.
13449         * modules/unictype/category-P: Likewise.
13450         * modules/unictype/category-Pc: Likewise.
13451         * modules/unictype/category-Pd: Likewise.
13452         * modules/unictype/category-Pe: Likewise.
13453         * modules/unictype/category-Pf: Likewise.
13454         * modules/unictype/category-Pi: Likewise.
13455         * modules/unictype/category-Po: Likewise.
13456         * modules/unictype/category-Ps: Likewise.
13457         * modules/unictype/category-S: Likewise.
13458         * modules/unictype/category-Sc: Likewise.
13459         * modules/unictype/category-Sk: Likewise.
13460         * modules/unictype/category-Sm: Likewise.
13461         * modules/unictype/category-So: Likewise.
13462         * modules/unictype/category-Z: Likewise.
13463         * modules/unictype/category-Zl: Likewise.
13464         * modules/unictype/category-Zp: Likewise.
13465         * modules/unictype/category-Zs: Likewise.
13466         * modules/unictype/category-and: Likewise.
13467         * modules/unictype/category-and-not: Likewise.
13468         * modules/unictype/category-byname: Likewise.
13469         * modules/unictype/category-name: Likewise.
13470         * modules/unictype/category-none: Likewise.
13471         * modules/unictype/category-of: Likewise.
13472         * modules/unictype/category-or: Likewise.
13473         * modules/unictype/category-test: Likewise.
13474         * modules/unictype/combining-class: Likewise.
13475         * modules/unictype/ctype-alnum: Likewise.
13476         * modules/unictype/ctype-alpha: Likewise.
13477         * modules/unictype/ctype-blank: Likewise.
13478         * modules/unictype/ctype-cntrl: Likewise.
13479         * modules/unictype/ctype-digit: Likewise.
13480         * modules/unictype/ctype-graph: Likewise.
13481         * modules/unictype/ctype-lower: Likewise.
13482         * modules/unictype/ctype-print: Likewise.
13483         * modules/unictype/ctype-punct: Likewise.
13484         * modules/unictype/ctype-space: Likewise.
13485         * modules/unictype/ctype-upper: Likewise.
13486         * modules/unictype/ctype-xdigit: Likewise.
13487         * modules/unictype/decimal-digit: Likewise.
13488         * modules/unictype/digit: Likewise.
13489         * modules/unictype/mirror: Likewise.
13490         * modules/unictype/numeric: Likewise.
13491         * modules/unictype/property-alphabetic: Likewise.
13492         * modules/unictype/property-ascii-hex-digit: Likewise.
13493         * modules/unictype/property-bidi-arabic-digit: Likewise.
13494         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
13495         * modules/unictype/property-bidi-block-separator: Likewise.
13496         * modules/unictype/property-bidi-boundary-neutral: Likewise.
13497         * modules/unictype/property-bidi-common-separator: Likewise.
13498         * modules/unictype/property-bidi-control: Likewise.
13499         * modules/unictype/property-bidi-embedding-or-override: Likewise.
13500         * modules/unictype/property-bidi-eur-num-separator: Likewise.
13501         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
13502         * modules/unictype/property-bidi-european-digit: Likewise.
13503         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
13504         * modules/unictype/property-bidi-left-to-right: Likewise.
13505         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
13506         * modules/unictype/property-bidi-other-neutral: Likewise.
13507         * modules/unictype/property-bidi-pdf: Likewise.
13508         * modules/unictype/property-bidi-segment-separator: Likewise.
13509         * modules/unictype/property-bidi-whitespace: Likewise.
13510         * modules/unictype/property-byname: Likewise.
13511         * modules/unictype/property-combining: Likewise.
13512         * modules/unictype/property-composite: Likewise.
13513         * modules/unictype/property-currency-symbol: Likewise.
13514         * modules/unictype/property-dash: Likewise.
13515         * modules/unictype/property-decimal-digit: Likewise.
13516         * modules/unictype/property-default-ignorable-code-point: Likewise.
13517         * modules/unictype/property-deprecated: Likewise.
13518         * modules/unictype/property-diacritic: Likewise.
13519         * modules/unictype/property-extender: Likewise.
13520         * modules/unictype/property-format-control: Likewise.
13521         * modules/unictype/property-grapheme-base: Likewise.
13522         * modules/unictype/property-grapheme-extend: Likewise.
13523         * modules/unictype/property-grapheme-link: Likewise.
13524         * modules/unictype/property-hex-digit: Likewise.
13525         * modules/unictype/property-hyphen: Likewise.
13526         * modules/unictype/property-id-continue: Likewise.
13527         * modules/unictype/property-id-start: Likewise.
13528         * modules/unictype/property-ideographic: Likewise.
13529         * modules/unictype/property-ids-binary-operator: Likewise.
13530         * modules/unictype/property-ids-trinary-operator: Likewise.
13531         * modules/unictype/property-ignorable-control: Likewise.
13532         * modules/unictype/property-iso-control: Likewise.
13533         * modules/unictype/property-join-control: Likewise.
13534         * modules/unictype/property-left-of-pair: Likewise.
13535         * modules/unictype/property-line-separator: Likewise.
13536         * modules/unictype/property-logical-order-exception: Likewise.
13537         * modules/unictype/property-lowercase: Likewise.
13538         * modules/unictype/property-math: Likewise.
13539         * modules/unictype/property-non-break: Likewise.
13540         * modules/unictype/property-not-a-character: Likewise.
13541         * modules/unictype/property-numeric: Likewise.
13542         * modules/unictype/property-other-alphabetic: Likewise.
13543         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
13544         * modules/unictype/property-other-grapheme-extend: Likewise.
13545         * modules/unictype/property-other-id-continue: Likewise.
13546         * modules/unictype/property-other-id-start: Likewise.
13547         * modules/unictype/property-other-lowercase: Likewise.
13548         * modules/unictype/property-other-math: Likewise.
13549         * modules/unictype/property-other-uppercase: Likewise.
13550         * modules/unictype/property-paired-punctuation: Likewise.
13551         * modules/unictype/property-paragraph-separator: Likewise.
13552         * modules/unictype/property-pattern-syntax: Likewise.
13553         * modules/unictype/property-pattern-white-space: Likewise.
13554         * modules/unictype/property-private-use: Likewise.
13555         * modules/unictype/property-punctuation: Likewise.
13556         * modules/unictype/property-quotation-mark: Likewise.
13557         * modules/unictype/property-radical: Likewise.
13558         * modules/unictype/property-sentence-terminal: Likewise.
13559         * modules/unictype/property-soft-dotted: Likewise.
13560         * modules/unictype/property-space: Likewise.
13561         * modules/unictype/property-terminal-punctuation: Likewise.
13562         * modules/unictype/property-test: Likewise.
13563         * modules/unictype/property-titlecase: Likewise.
13564         * modules/unictype/property-unassigned-code-value: Likewise.
13565         * modules/unictype/property-unified-ideograph: Likewise.
13566         * modules/unictype/property-uppercase: Likewise.
13567         * modules/unictype/property-variation-selector: Likewise.
13568         * modules/unictype/property-white-space: Likewise.
13569         * modules/unictype/property-xid-continue: Likewise.
13570         * modules/unictype/property-xid-start: Likewise.
13571         * modules/unictype/property-zero-width: Likewise.
13572         * modules/unictype/scripts: Likewise.
13573         * modules/unictype/syntax-c-ident: Likewise.
13574         * modules/unictype/syntax-c-whitespace: Likewise.
13575         * modules/unictype/syntax-java-ident: Likewise.
13576         * modules/unictype/syntax-java-whitespace: Likewise.
13577         * modules/unilbrk/u8-possible-linebreaks: Likewise.
13578         * modules/unilbrk/u8-width-linebreaks: Likewise.
13579         * modules/unilbrk/u16-possible-linebreaks: Likewise.
13580         * modules/unilbrk/u16-width-linebreaks: Likewise.
13581         * modules/unilbrk/u32-possible-linebreaks: Likewise.
13582         * modules/unilbrk/u32-width-linebreaks: Likewise.
13583         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
13584         * modules/unilbrk/ulc-width-linebreaks: Likewise.
13585         * modules/uniname/uniname: Likewise.
13586         * modules/uninorm/canonical-decomposition: Likewise.
13587         * modules/uninorm/composition: Likewise.
13588         * modules/uninorm/decomposing-form: Likewise.
13589         * modules/uninorm/decomposition: Likewise.
13590         * modules/uninorm/filter: Likewise.
13591         * modules/uninorm/nfc: Likewise.
13592         * modules/uninorm/nfd: Likewise.
13593         * modules/uninorm/nfkc: Likewise.
13594         * modules/uninorm/nfkd: Likewise.
13595         * modules/uninorm/u8-normalize: Likewise.
13596         * modules/uninorm/u8-normcmp: Likewise.
13597         * modules/uninorm/u8-normcoll: Likewise.
13598         * modules/uninorm/u8-normxfrm: Likewise.
13599         * modules/uninorm/u16-normalize: Likewise.
13600         * modules/uninorm/u16-normcmp: Likewise.
13601         * modules/uninorm/u16-normcoll: Likewise.
13602         * modules/uninorm/u16-normxfrm: Likewise.
13603         * modules/uninorm/u32-normalize: Likewise.
13604         * modules/uninorm/u32-normcmp: Likewise.
13605         * modules/uninorm/u32-normcoll: Likewise.
13606         * modules/uninorm/u32-normxfrm: Likewise.
13607         * modules/unistdio/u8-asnprintf: Likewise.
13608         * modules/unistdio/u8-asprintf: Likewise.
13609         * modules/unistdio/u8-snprintf: Likewise.
13610         * modules/unistdio/u8-sprintf: Likewise.
13611         * modules/unistdio/u8-u8-asnprintf: Likewise.
13612         * modules/unistdio/u8-u8-asprintf: Likewise.
13613         * modules/unistdio/u8-u8-snprintf: Likewise.
13614         * modules/unistdio/u8-u8-sprintf: Likewise.
13615         * modules/unistdio/u8-u8-vasnprintf: Likewise.
13616         * modules/unistdio/u8-u8-vasprintf: Likewise.
13617         * modules/unistdio/u8-u8-vsnprintf: Likewise.
13618         * modules/unistdio/u8-u8-vsprintf: Likewise.
13619         * modules/unistdio/u8-vasnprintf: Likewise.
13620         * modules/unistdio/u8-vasprintf: Likewise.
13621         * modules/unistdio/u8-vsnprintf: Likewise.
13622         * modules/unistdio/u8-vsprintf: Likewise.
13623         * modules/unistdio/u16-asnprintf: Likewise.
13624         * modules/unistdio/u16-asprintf: Likewise.
13625         * modules/unistdio/u16-snprintf: Likewise.
13626         * modules/unistdio/u16-sprintf: Likewise.
13627         * modules/unistdio/u16-u16-asnprintf: Likewise.
13628         * modules/unistdio/u16-u16-asprintf: Likewise.
13629         * modules/unistdio/u16-u16-snprintf: Likewise.
13630         * modules/unistdio/u16-u16-sprintf: Likewise.
13631         * modules/unistdio/u16-u16-vasnprintf: Likewise.
13632         * modules/unistdio/u16-u16-vasprintf: Likewise.
13633         * modules/unistdio/u16-u16-vsnprintf: Likewise.
13634         * modules/unistdio/u16-u16-vsprintf: Likewise.
13635         * modules/unistdio/u16-vasnprintf: Likewise.
13636         * modules/unistdio/u16-vasprintf: Likewise.
13637         * modules/unistdio/u16-vsnprintf: Likewise.
13638         * modules/unistdio/u16-vsprintf: Likewise.
13639         * modules/unistdio/u32-asnprintf: Likewise.
13640         * modules/unistdio/u32-asprintf: Likewise.
13641         * modules/unistdio/u32-snprintf: Likewise.
13642         * modules/unistdio/u32-sprintf: Likewise.
13643         * modules/unistdio/u32-u32-asnprintf: Likewise.
13644         * modules/unistdio/u32-u32-asprintf: Likewise.
13645         * modules/unistdio/u32-u32-snprintf: Likewise.
13646         * modules/unistdio/u32-u32-sprintf: Likewise.
13647         * modules/unistdio/u32-u32-vasnprintf: Likewise.
13648         * modules/unistdio/u32-u32-vasprintf: Likewise.
13649         * modules/unistdio/u32-u32-vsnprintf: Likewise.
13650         * modules/unistdio/u32-u32-vsprintf: Likewise.
13651         * modules/unistdio/u32-vasnprintf: Likewise.
13652         * modules/unistdio/u32-vasprintf: Likewise.
13653         * modules/unistdio/u32-vsnprintf: Likewise.
13654         * modules/unistdio/u32-vsprintf: Likewise.
13655         * modules/unistdio/ulc-asnprintf: Likewise.
13656         * modules/unistdio/ulc-asprintf: Likewise.
13657         * modules/unistdio/ulc-fprintf: Likewise.
13658         * modules/unistdio/ulc-snprintf: Likewise.
13659         * modules/unistdio/ulc-sprintf: Likewise.
13660         * modules/unistdio/ulc-vasnprintf: Likewise.
13661         * modules/unistdio/ulc-vasprintf: Likewise.
13662         * modules/unistdio/ulc-vfprintf: Likewise.
13663         * modules/unistdio/ulc-vsnprintf: Likewise.
13664         * modules/unistdio/ulc-vsprintf: Likewise.
13665         * modules/unistr/u8-check: Likewise.
13666         * modules/unistr/u8-chr: Likewise.
13667         * modules/unistr/u8-cmp: Likewise.
13668         * modules/unistr/u8-cmp2: Likewise.
13669         * modules/unistr/u8-cpy: Likewise.
13670         * modules/unistr/u8-cpy-alloc: Likewise.
13671         * modules/unistr/u8-endswith: Likewise.
13672         * modules/unistr/u8-mblen: Likewise.
13673         * modules/unistr/u8-mbsnlen: Likewise.
13674         * modules/unistr/u8-mbtouc: Likewise.
13675         * modules/unistr/u8-mbtouc-unsafe: Likewise.
13676         * modules/unistr/u8-mbtoucr: Likewise.
13677         * modules/unistr/u8-move: Likewise.
13678         * modules/unistr/u8-next: Likewise.
13679         * modules/unistr/u8-prev: Likewise.
13680         * modules/unistr/u8-set: Likewise.
13681         * modules/unistr/u8-startswith: Likewise.
13682         * modules/unistr/u8-stpcpy: Likewise.
13683         * modules/unistr/u8-stpncpy: Likewise.
13684         * modules/unistr/u8-strcat: Likewise.
13685         * modules/unistr/u8-strchr: Likewise.
13686         * modules/unistr/u8-strcmp: Likewise.
13687         * modules/unistr/u8-strcoll: Likewise.
13688         * modules/unistr/u8-strcpy: Likewise.
13689         * modules/unistr/u8-strcspn: Likewise.
13690         * modules/unistr/u8-strdup: Likewise.
13691         * modules/unistr/u8-strlen: Likewise.
13692         * modules/unistr/u8-strmblen: Likewise.
13693         * modules/unistr/u8-strmbtouc: Likewise.
13694         * modules/unistr/u8-strncat: Likewise.
13695         * modules/unistr/u8-strncmp: Likewise.
13696         * modules/unistr/u8-strncpy: Likewise.
13697         * modules/unistr/u8-strnlen: Likewise.
13698         * modules/unistr/u8-strpbrk: Likewise.
13699         * modules/unistr/u8-strrchr: Likewise.
13700         * modules/unistr/u8-strspn: Likewise.
13701         * modules/unistr/u8-strstr: Likewise.
13702         * modules/unistr/u8-strtok: Likewise.
13703         * modules/unistr/u8-to-u16: Likewise.
13704         * modules/unistr/u8-to-u32: Likewise.
13705         * modules/unistr/u8-uctomb: Likewise.
13706         * modules/unistr/u16-check: Likewise.
13707         * modules/unistr/u16-chr: Likewise.
13708         * modules/unistr/u16-cmp: Likewise.
13709         * modules/unistr/u16-cmp2: Likewise.
13710         * modules/unistr/u16-cpy: Likewise.
13711         * modules/unistr/u16-cpy-alloc: Likewise.
13712         * modules/unistr/u16-endswith: Likewise.
13713         * modules/unistr/u16-mblen: Likewise.
13714         * modules/unistr/u16-mbsnlen: Likewise.
13715         * modules/unistr/u16-mbtouc: Likewise.
13716         * modules/unistr/u16-mbtouc-unsafe: Likewise.
13717         * modules/unistr/u16-mbtoucr: Likewise.
13718         * modules/unistr/u16-move: Likewise.
13719         * modules/unistr/u16-next: Likewise.
13720         * modules/unistr/u16-prev: Likewise.
13721         * modules/unistr/u16-set: Likewise.
13722         * modules/unistr/u16-startswith: Likewise.
13723         * modules/unistr/u16-stpcpy: Likewise.
13724         * modules/unistr/u16-stpncpy: Likewise.
13725         * modules/unistr/u16-strcat: Likewise.
13726         * modules/unistr/u16-strchr: Likewise.
13727         * modules/unistr/u16-strcmp: Likewise.
13728         * modules/unistr/u16-strcoll: Likewise.
13729         * modules/unistr/u16-strcpy: Likewise.
13730         * modules/unistr/u16-strcspn: Likewise.
13731         * modules/unistr/u16-strdup: Likewise.
13732         * modules/unistr/u16-strlen: Likewise.
13733         * modules/unistr/u16-strmblen: Likewise.
13734         * modules/unistr/u16-strmbtouc: Likewise.
13735         * modules/unistr/u16-strncat: Likewise.
13736         * modules/unistr/u16-strncmp: Likewise.
13737         * modules/unistr/u16-strncpy: Likewise.
13738         * modules/unistr/u16-strnlen: Likewise.
13739         * modules/unistr/u16-strpbrk: Likewise.
13740         * modules/unistr/u16-strrchr: Likewise.
13741         * modules/unistr/u16-strspn: Likewise.
13742         * modules/unistr/u16-strstr: Likewise.
13743         * modules/unistr/u16-strtok: Likewise.
13744         * modules/unistr/u16-to-u32: Likewise.
13745         * modules/unistr/u16-to-u8: Likewise.
13746         * modules/unistr/u16-uctomb: Likewise.
13747         * modules/unistr/u32-check: Likewise.
13748         * modules/unistr/u32-chr: Likewise.
13749         * modules/unistr/u32-cmp: Likewise.
13750         * modules/unistr/u32-cmp2: Likewise.
13751         * modules/unistr/u32-cpy: Likewise.
13752         * modules/unistr/u32-cpy-alloc: Likewise.
13753         * modules/unistr/u32-endswith: Likewise.
13754         * modules/unistr/u32-mblen: Likewise.
13755         * modules/unistr/u32-mbsnlen: Likewise.
13756         * modules/unistr/u32-mbtouc: Likewise.
13757         * modules/unistr/u32-mbtouc-unsafe: Likewise.
13758         * modules/unistr/u32-mbtoucr: Likewise.
13759         * modules/unistr/u32-move: Likewise.
13760         * modules/unistr/u32-next: Likewise.
13761         * modules/unistr/u32-prev: Likewise.
13762         * modules/unistr/u32-set: Likewise.
13763         * modules/unistr/u32-startswith: Likewise.
13764         * modules/unistr/u32-stpcpy: Likewise.
13765         * modules/unistr/u32-stpncpy: Likewise.
13766         * modules/unistr/u32-strcat: Likewise.
13767         * modules/unistr/u32-strchr: Likewise.
13768         * modules/unistr/u32-strcmp: Likewise.
13769         * modules/unistr/u32-strcoll: Likewise.
13770         * modules/unistr/u32-strcpy: Likewise.
13771         * modules/unistr/u32-strcspn: Likewise.
13772         * modules/unistr/u32-strdup: Likewise.
13773         * modules/unistr/u32-strlen: Likewise.
13774         * modules/unistr/u32-strmblen: Likewise.
13775         * modules/unistr/u32-strmbtouc: Likewise.
13776         * modules/unistr/u32-strncat: Likewise.
13777         * modules/unistr/u32-strncmp: Likewise.
13778         * modules/unistr/u32-strncpy: Likewise.
13779         * modules/unistr/u32-strnlen: Likewise.
13780         * modules/unistr/u32-strpbrk: Likewise.
13781         * modules/unistr/u32-strrchr: Likewise.
13782         * modules/unistr/u32-strspn: Likewise.
13783         * modules/unistr/u32-strstr: Likewise.
13784         * modules/unistr/u32-strtok: Likewise.
13785         * modules/unistr/u32-to-u16: Likewise.
13786         * modules/unistr/u32-to-u8: Likewise.
13787         * modules/unistr/u32-uctomb: Likewise.
13788         * modules/uniwbrk/u8-wordbreaks: Likewise.
13789         * modules/uniwbrk/u16-wordbreaks: Likewise.
13790         * modules/uniwbrk/u32-wordbreaks: Likewise.
13791         * modules/uniwbrk/ulc-wordbreaks: Likewise.
13792         * modules/uniwbrk/wordbreak-property: Likewise.
13793         * modules/uniwidth/u8-strwidth: Likewise.
13794         * modules/uniwidth/u8-width: Likewise.
13795         * modules/uniwidth/u16-strwidth: Likewise.
13796         * modules/uniwidth/u16-width: Likewise.
13797         * modules/uniwidth/u32-strwidth: Likewise.
13798         * modules/uniwidth/u32-width: Likewise.
13799         * modules/uniwidth/width: Likewise.
13800         * modules/unicase/cased-tests (Makefile.am): Link all test programs
13801         with $(LIBUNISTRING).
13802         * modules/unicase/ignorable-tests: Likewise.
13803         * modules/unicase/locale-language-tests: Likewise.
13804         * modules/unicase/tolower-tests: Likewise.
13805         * modules/unicase/totitle-tests: Likewise.
13806         * modules/unicase/toupper-tests: Likewise.
13807         * modules/unicase/u8-casecmp-tests: Likewise.
13808         * modules/unicase/u8-casecoll-tests: Likewise.
13809         * modules/unicase/u8-casefold-tests: Likewise.
13810         * modules/unicase/u8-is-cased-tests: Likewise.
13811         * modules/unicase/u8-is-casefolded-tests: Likewise.
13812         * modules/unicase/u8-is-lowercase-tests: Likewise.
13813         * modules/unicase/u8-is-titlecase-tests: Likewise.
13814         * modules/unicase/u8-is-uppercase-tests: Likewise.
13815         * modules/unicase/u8-tolower-tests: Likewise.
13816         * modules/unicase/u8-totitle-tests: Likewise.
13817         * modules/unicase/u8-toupper-tests: Likewise.
13818         * modules/unicase/u16-casecmp-tests: Likewise.
13819         * modules/unicase/u16-casecoll-tests: Likewise.
13820         * modules/unicase/u16-casefold-tests: Likewise.
13821         * modules/unicase/u16-is-cased-tests: Likewise.
13822         * modules/unicase/u16-is-casefolded-tests: Likewise.
13823         * modules/unicase/u16-is-lowercase-tests: Likewise.
13824         * modules/unicase/u16-is-titlecase-tests: Likewise.
13825         * modules/unicase/u16-is-uppercase-tests: Likewise.
13826         * modules/unicase/u16-tolower-tests: Likewise.
13827         * modules/unicase/u16-totitle-tests: Likewise.
13828         * modules/unicase/u16-toupper-tests: Likewise.
13829         * modules/unicase/u32-casecmp-tests: Likewise.
13830         * modules/unicase/u32-casecoll-tests: Likewise.
13831         * modules/unicase/u32-casefold-tests: Likewise.
13832         * modules/unicase/u32-is-cased-tests: Likewise.
13833         * modules/unicase/u32-is-casefolded-tests: Likewise.
13834         * modules/unicase/u32-is-lowercase-tests: Likewise.
13835         * modules/unicase/u32-is-titlecase-tests: Likewise.
13836         * modules/unicase/u32-is-uppercase-tests: Likewise.
13837         * modules/unicase/u32-tolower-tests: Likewise.
13838         * modules/unicase/u32-totitle-tests: Likewise.
13839         * modules/unicase/u32-toupper-tests: Likewise.
13840         * modules/unicase/ulc-casecmp-tests: Likewise.
13841         * modules/unicase/ulc-casecoll-tests: Likewise.
13842         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
13843         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
13844         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
13845         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
13846         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
13847         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
13848         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
13849         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
13850         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
13851         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
13852         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
13853         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
13854         * modules/unictype/bidicategory-byname-tests: Likewise.
13855         * modules/unictype/bidicategory-name-tests: Likewise.
13856         * modules/unictype/bidicategory-of-tests: Likewise.
13857         * modules/unictype/bidicategory-test-tests: Likewise.
13858         * modules/unictype/block-list-tests: Likewise.
13859         * modules/unictype/block-of-tests: Likewise.
13860         * modules/unictype/block-test-tests: Likewise.
13861         * modules/unictype/category-C-tests: Likewise.
13862         * modules/unictype/category-Cc-tests: Likewise.
13863         * modules/unictype/category-Cf-tests: Likewise.
13864         * modules/unictype/category-Cn-tests: Likewise.
13865         * modules/unictype/category-Co-tests: Likewise.
13866         * modules/unictype/category-Cs-tests: Likewise.
13867         * modules/unictype/category-L-tests: Likewise.
13868         * modules/unictype/category-Ll-tests: Likewise.
13869         * modules/unictype/category-Lm-tests: Likewise.
13870         * modules/unictype/category-Lo-tests: Likewise.
13871         * modules/unictype/category-Lt-tests: Likewise.
13872         * modules/unictype/category-Lu-tests: Likewise.
13873         * modules/unictype/category-M-tests: Likewise.
13874         * modules/unictype/category-Mc-tests: Likewise.
13875         * modules/unictype/category-Me-tests: Likewise.
13876         * modules/unictype/category-Mn-tests: Likewise.
13877         * modules/unictype/category-N-tests: Likewise.
13878         * modules/unictype/category-Nd-tests: Likewise.
13879         * modules/unictype/category-Nl-tests: Likewise.
13880         * modules/unictype/category-No-tests: Likewise.
13881         * modules/unictype/category-P-tests: Likewise.
13882         * modules/unictype/category-Pc-tests: Likewise.
13883         * modules/unictype/category-Pd-tests: Likewise.
13884         * modules/unictype/category-Pe-tests: Likewise.
13885         * modules/unictype/category-Pf-tests: Likewise.
13886         * modules/unictype/category-Pi-tests: Likewise.
13887         * modules/unictype/category-Po-tests: Likewise.
13888         * modules/unictype/category-Ps-tests: Likewise.
13889         * modules/unictype/category-S-tests: Likewise.
13890         * modules/unictype/category-Sc-tests: Likewise.
13891         * modules/unictype/category-Sk-tests: Likewise.
13892         * modules/unictype/category-Sm-tests: Likewise.
13893         * modules/unictype/category-So-tests: Likewise.
13894         * modules/unictype/category-Z-tests: Likewise.
13895         * modules/unictype/category-Zl-tests: Likewise.
13896         * modules/unictype/category-Zp-tests: Likewise.
13897         * modules/unictype/category-Zs-tests: Likewise.
13898         * modules/unictype/category-and-not-tests: Likewise.
13899         * modules/unictype/category-and-tests: Likewise.
13900         * modules/unictype/category-byname-tests: Likewise.
13901         * modules/unictype/category-name-tests: Likewise.
13902         * modules/unictype/category-none-tests: Likewise.
13903         * modules/unictype/category-of-tests: Likewise.
13904         * modules/unictype/category-or-tests: Likewise.
13905         * modules/unictype/category-test-withtable-tests: Likewise.
13906         * modules/unictype/combining-class-tests: Likewise.
13907         * modules/unictype/ctype-alnum-tests: Likewise.
13908         * modules/unictype/ctype-alpha-tests: Likewise.
13909         * modules/unictype/ctype-blank-tests: Likewise.
13910         * modules/unictype/ctype-cntrl-tests: Likewise.
13911         * modules/unictype/ctype-digit-tests: Likewise.
13912         * modules/unictype/ctype-graph-tests: Likewise.
13913         * modules/unictype/ctype-lower-tests: Likewise.
13914         * modules/unictype/ctype-print-tests: Likewise.
13915         * modules/unictype/ctype-punct-tests: Likewise.
13916         * modules/unictype/ctype-space-tests: Likewise.
13917         * modules/unictype/ctype-upper-tests: Likewise.
13918         * modules/unictype/ctype-xdigit-tests: Likewise.
13919         * modules/unictype/decimal-digit-tests: Likewise.
13920         * modules/unictype/digit-tests: Likewise.
13921         * modules/unictype/mirror-tests: Likewise.
13922         * modules/unictype/numeric-tests: Likewise.
13923         * modules/unictype/property-alphabetic-tests: Likewise.
13924         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
13925         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
13926         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
13927         * modules/unictype/property-bidi-block-separator-tests: Likewise.
13928         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
13929         * modules/unictype/property-bidi-common-separator-tests: Likewise.
13930         * modules/unictype/property-bidi-control-tests: Likewise.
13931         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
13932         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
13933         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
13934         * modules/unictype/property-bidi-european-digit-tests: Likewise.
13935         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
13936         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
13937         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
13938         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
13939         * modules/unictype/property-bidi-pdf-tests: Likewise.
13940         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
13941         * modules/unictype/property-bidi-whitespace-tests: Likewise.
13942         * modules/unictype/property-byname-tests: Likewise.
13943         * modules/unictype/property-combining-tests: Likewise.
13944         * modules/unictype/property-composite-tests: Likewise.
13945         * modules/unictype/property-currency-symbol-tests: Likewise.
13946         * modules/unictype/property-dash-tests: Likewise.
13947         * modules/unictype/property-decimal-digit-tests: Likewise.
13948         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
13949         * modules/unictype/property-deprecated-tests: Likewise.
13950         * modules/unictype/property-diacritic-tests: Likewise.
13951         * modules/unictype/property-extender-tests: Likewise.
13952         * modules/unictype/property-format-control-tests: Likewise.
13953         * modules/unictype/property-grapheme-base-tests: Likewise.
13954         * modules/unictype/property-grapheme-extend-tests: Likewise.
13955         * modules/unictype/property-grapheme-link-tests: Likewise.
13956         * modules/unictype/property-hex-digit-tests: Likewise.
13957         * modules/unictype/property-hyphen-tests: Likewise.
13958         * modules/unictype/property-id-continue-tests: Likewise.
13959         * modules/unictype/property-id-start-tests: Likewise.
13960         * modules/unictype/property-ideographic-tests: Likewise.
13961         * modules/unictype/property-ids-binary-operator-tests: Likewise.
13962         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
13963         * modules/unictype/property-ignorable-control-tests: Likewise.
13964         * modules/unictype/property-iso-control-tests: Likewise.
13965         * modules/unictype/property-join-control-tests: Likewise.
13966         * modules/unictype/property-left-of-pair-tests: Likewise.
13967         * modules/unictype/property-line-separator-tests: Likewise.
13968         * modules/unictype/property-logical-order-exception-tests: Likewise.
13969         * modules/unictype/property-lowercase-tests: Likewise.
13970         * modules/unictype/property-math-tests: Likewise.
13971         * modules/unictype/property-non-break-tests: Likewise.
13972         * modules/unictype/property-not-a-character-tests: Likewise.
13973         * modules/unictype/property-numeric-tests: Likewise.
13974         * modules/unictype/property-other-alphabetic-tests: Likewise.
13975         * modules/unictype/property-other-default-ignorable-code-point-tests:
13976         Likewise.
13977         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
13978         * modules/unictype/property-other-id-continue-tests: Likewise.
13979         * modules/unictype/property-other-id-start-tests: Likewise.
13980         * modules/unictype/property-other-lowercase-tests: Likewise.
13981         * modules/unictype/property-other-math-tests: Likewise.
13982         * modules/unictype/property-other-uppercase-tests: Likewise.
13983         * modules/unictype/property-paired-punctuation-tests: Likewise.
13984         * modules/unictype/property-paragraph-separator-tests: Likewise.
13985         * modules/unictype/property-pattern-syntax-tests: Likewise.
13986         * modules/unictype/property-pattern-white-space-tests: Likewise.
13987         * modules/unictype/property-private-use-tests: Likewise.
13988         * modules/unictype/property-punctuation-tests: Likewise.
13989         * modules/unictype/property-quotation-mark-tests: Likewise.
13990         * modules/unictype/property-radical-tests: Likewise.
13991         * modules/unictype/property-sentence-terminal-tests: Likewise.
13992         * modules/unictype/property-soft-dotted-tests: Likewise.
13993         * modules/unictype/property-space-tests: Likewise.
13994         * modules/unictype/property-terminal-punctuation-tests: Likewise.
13995         * modules/unictype/property-test-tests: Likewise.
13996         * modules/unictype/property-titlecase-tests: Likewise.
13997         * modules/unictype/property-unassigned-code-value-tests: Likewise.
13998         * modules/unictype/property-unified-ideograph-tests: Likewise.
13999         * modules/unictype/property-uppercase-tests: Likewise.
14000         * modules/unictype/property-variation-selector-tests: Likewise.
14001         * modules/unictype/property-white-space-tests: Likewise.
14002         * modules/unictype/property-xid-continue-tests: Likewise.
14003         * modules/unictype/property-xid-start-tests: Likewise.
14004         * modules/unictype/property-zero-width-tests: Likewise.
14005         * modules/unictype/scripts-tests: Likewise.
14006         * modules/unictype/syntax-c-ident-tests: Likewise.
14007         * modules/unictype/syntax-c-whitespace-tests: Likewise.
14008         * modules/unictype/syntax-java-ident-tests: Likewise.
14009         * modules/unictype/syntax-java-whitespace-tests: Likewise.
14010         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
14011         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
14012         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
14013         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
14014         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
14015         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
14016         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
14017         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
14018         * modules/uniname/uniname-tests: Likewise.
14019         * modules/uninorm/canonical-decomposition-tests: Likewise.
14020         * modules/uninorm/compat-decomposition-tests: Likewise.
14021         * modules/uninorm/composition-tests: Likewise.
14022         * modules/uninorm/decomposing-form-tests: Likewise.
14023         * modules/uninorm/decomposition-tests: Likewise.
14024         * modules/uninorm/filter-tests: Likewise.
14025         * modules/uninorm/nfc-tests: Likewise.
14026         * modules/uninorm/nfd-tests: Likewise.
14027         * modules/uninorm/nfkc-tests: Likewise.
14028         * modules/uninorm/nfkd-tests: Likewise.
14029         * modules/uninorm/u8-normcmp-tests: Likewise.
14030         * modules/uninorm/u8-normcoll-tests: Likewise.
14031         * modules/uninorm/u16-normcmp-tests: Likewise.
14032         * modules/uninorm/u16-normcoll-tests: Likewise.
14033         * modules/uninorm/u32-normcmp-tests: Likewise.
14034         * modules/uninorm/u32-normcoll-tests: Likewise.
14035         * modules/unistdio/u8-asnprintf-tests: Likewise.
14036         * modules/unistdio/u8-vasnprintf-tests: Likewise.
14037         * modules/unistdio/u8-vasprintf-tests: Likewise.
14038         * modules/unistdio/u8-vsnprintf-tests: Likewise.
14039         * modules/unistdio/u8-vsprintf-tests: Likewise.
14040         * modules/unistdio/u16-asnprintf-tests: Likewise.
14041         * modules/unistdio/u16-vasnprintf-tests: Likewise.
14042         * modules/unistdio/u16-vasprintf-tests: Likewise.
14043         * modules/unistdio/u16-vsnprintf-tests: Likewise.
14044         * modules/unistdio/u16-vsprintf-tests: Likewise.
14045         * modules/unistdio/u32-asnprintf-tests: Likewise.
14046         * modules/unistdio/u32-vasnprintf-tests: Likewise.
14047         * modules/unistdio/u32-vasprintf-tests: Likewise.
14048         * modules/unistdio/u32-vsnprintf-tests: Likewise.
14049         * modules/unistdio/u32-vsprintf-tests: Likewise.
14050         * modules/unistdio/ulc-asnprintf-tests: Likewise.
14051         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
14052         * modules/unistdio/ulc-vasprintf-tests: Likewise.
14053         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
14054         * modules/unistdio/ulc-vsprintf-tests: Likewise.
14055         * modules/unistr/u8-check-tests: Likewise.
14056         * modules/unistr/u8-chr-tests: Likewise.
14057         * modules/unistr/u8-cmp-tests: Likewise.
14058         * modules/unistr/u8-cmp2-tests: Likewise.
14059         * modules/unistr/u8-cpy-alloc-tests: Likewise.
14060         * modules/unistr/u8-cpy-tests: Likewise.
14061         * modules/unistr/u8-mblen-tests: Likewise.
14062         * modules/unistr/u8-mbsnlen-tests: Likewise.
14063         * modules/unistr/u8-mbtouc-tests: Likewise.
14064         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
14065         * modules/unistr/u8-mbtoucr-tests: Likewise.
14066         * modules/unistr/u8-move-tests: Likewise.
14067         * modules/unistr/u8-next-tests: Likewise.
14068         * modules/unistr/u8-prev-tests: Likewise.
14069         * modules/unistr/u8-set-tests: Likewise.
14070         * modules/unistr/u8-stpcpy-tests: Likewise.
14071         * modules/unistr/u8-stpncpy-tests: Likewise.
14072         * modules/unistr/u8-strcat-tests: Likewise.
14073         * modules/unistr/u8-strcmp-tests: Likewise.
14074         * modules/unistr/u8-strcoll-tests: Likewise.
14075         * modules/unistr/u8-strcpy-tests: Likewise.
14076         * modules/unistr/u8-strdup-tests: Likewise.
14077         * modules/unistr/u8-strlen-tests: Likewise.
14078         * modules/unistr/u8-strmblen-tests: Likewise.
14079         * modules/unistr/u8-strmbtouc-tests: Likewise.
14080         * modules/unistr/u8-strncat-tests: Likewise.
14081         * modules/unistr/u8-strncmp-tests: Likewise.
14082         * modules/unistr/u8-strncpy-tests: Likewise.
14083         * modules/unistr/u8-strnlen-tests: Likewise.
14084         * modules/unistr/u8-to-u16-tests: Likewise.
14085         * modules/unistr/u8-to-u32-tests: Likewise.
14086         * modules/unistr/u8-uctomb-tests: Likewise.
14087         * modules/unistr/u16-check-tests: Likewise.
14088         * modules/unistr/u16-chr-tests: Likewise.
14089         * modules/unistr/u16-cmp-tests: Likewise.
14090         * modules/unistr/u16-cmp2-tests: Likewise.
14091         * modules/unistr/u16-cpy-alloc-tests: Likewise.
14092         * modules/unistr/u16-cpy-tests: Likewise.
14093         * modules/unistr/u16-mblen-tests: Likewise.
14094         * modules/unistr/u16-mbsnlen-tests: Likewise.
14095         * modules/unistr/u16-mbtouc-tests: Likewise.
14096         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
14097         * modules/unistr/u16-mbtoucr-tests: Likewise.
14098         * modules/unistr/u16-move-tests: Likewise.
14099         * modules/unistr/u16-next-tests: Likewise.
14100         * modules/unistr/u16-prev-tests: Likewise.
14101         * modules/unistr/u16-set-tests: Likewise.
14102         * modules/unistr/u16-stpcpy-tests: Likewise.
14103         * modules/unistr/u16-stpncpy-tests: Likewise.
14104         * modules/unistr/u16-strcat-tests: Likewise.
14105         * modules/unistr/u16-strcmp-tests: Likewise.
14106         * modules/unistr/u16-strcoll-tests: Likewise.
14107         * modules/unistr/u16-strcpy-tests: Likewise.
14108         * modules/unistr/u16-strdup-tests: Likewise.
14109         * modules/unistr/u16-strlen-tests: Likewise.
14110         * modules/unistr/u16-strmblen-tests: Likewise.
14111         * modules/unistr/u16-strmbtouc-tests: Likewise.
14112         * modules/unistr/u16-strncat-tests: Likewise.
14113         * modules/unistr/u16-strncmp-tests: Likewise.
14114         * modules/unistr/u16-strncpy-tests: Likewise.
14115         * modules/unistr/u16-strnlen-tests: Likewise.
14116         * modules/unistr/u16-to-u32-tests: Likewise.
14117         * modules/unistr/u16-to-u8-tests: Likewise.
14118         * modules/unistr/u16-uctomb-tests: Likewise.
14119         * modules/unistr/u32-check-tests: Likewise.
14120         * modules/unistr/u32-chr-tests: Likewise.
14121         * modules/unistr/u32-cmp-tests: Likewise.
14122         * modules/unistr/u32-cmp2-tests: Likewise.
14123         * modules/unistr/u32-cpy-alloc-tests: Likewise.
14124         * modules/unistr/u32-cpy-tests: Likewise.
14125         * modules/unistr/u32-mblen-tests: Likewise.
14126         * modules/unistr/u32-mbsnlen-tests: Likewise.
14127         * modules/unistr/u32-mbtouc-tests: Likewise.
14128         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
14129         * modules/unistr/u32-mbtoucr-tests: Likewise.
14130         * modules/unistr/u32-move-tests: Likewise.
14131         * modules/unistr/u32-next-tests: Likewise.
14132         * modules/unistr/u32-prev-tests: Likewise.
14133         * modules/unistr/u32-set-tests: Likewise.
14134         * modules/unistr/u32-stpcpy-tests: Likewise.
14135         * modules/unistr/u32-stpncpy-tests: Likewise.
14136         * modules/unistr/u32-strcat-tests: Likewise.
14137         * modules/unistr/u32-strcmp-tests: Likewise.
14138         * modules/unistr/u32-strcoll-tests: Likewise.
14139         * modules/unistr/u32-strcpy-tests: Likewise.
14140         * modules/unistr/u32-strdup-tests: Likewise.
14141         * modules/unistr/u32-strlen-tests: Likewise.
14142         * modules/unistr/u32-strmblen-tests: Likewise.
14143         * modules/unistr/u32-strmbtouc-tests: Likewise.
14144         * modules/unistr/u32-strncat-tests: Likewise.
14145         * modules/unistr/u32-strncmp-tests: Likewise.
14146         * modules/unistr/u32-strncpy-tests: Likewise.
14147         * modules/unistr/u32-strnlen-tests: Likewise.
14148         * modules/unistr/u32-to-u16-tests: Likewise.
14149         * modules/unistr/u32-to-u8-tests: Likewise.
14150         * modules/unistr/u32-uctomb-tests: Likewise.
14151         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
14152         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
14153         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
14154         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
14155         * modules/uniwidth/u8-strwidth-tests: Likewise.
14156         * modules/uniwidth/u8-width-tests: Likewise.
14157         * modules/uniwidth/u16-strwidth-tests: Likewise.
14158         * modules/uniwidth/u16-width-tests: Likewise.
14159         * modules/uniwidth/u32-strwidth-tests: Likewise.
14160         * modules/uniwidth/u32-width-tests: Likewise.
14161         * modules/uniwidth/width-tests: Likewise.
14162
14163 2010-05-18  Richard Jones  <rjones@redhat.com>
14164
14165         doc: users.txt: list hivex
14166         * users.txt: Add hivex.
14167
14168 2010-05-18  Richard Jones  <rjones@redhat.com>
14169
14170         doc: users.txt: list febootstrap
14171         * users.txt: Add febootstrap.
14172
14173 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
14174
14175         bootstrap: fix an error when gnulib is not used as a git submodule
14176         * build-aux/bootstrap (gnulib_path): If its length is zero then
14177         assign "gnulib" to it.
14178         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
14179
14180 2010-05-16  Bruno Haible  <bruno@clisp.org>
14181
14182         Avoid autoconf warnings about AM_ICONV.
14183         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
14184         2.64.
14185
14186 2010-05-16  Bruno Haible  <bruno@clisp.org>
14187
14188         absolute-header: Make the macro usable in more situations.
14189         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
14190         from gl_ABSOLUTE_HEADER.
14191         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
14192
14193 2010-05-16  James Youngman  <jay@gnu.org>
14194
14195         doc: update users.txt
14196         * users.txt: Add CSSC.
14197
14198 2010-05-16  Jim Meyering  <meyering@redhat.com>
14199
14200         init.sh: fix an error in the previous change; add more comments
14201         * tests/init.sh: Compare exit code in loop against 9, not 2.
14202         Patch by Bruno Haible.
14203         Make the two tests more similar by adding an empty "then" clause.
14204         Add comments.
14205
14206         init.sh: avoid unnecessary shell re-exec
14207         * tests/init.sh: Improve the re-exec-required check to first test the
14208         current shell.  If it passes the test, do not search for a shell that
14209         does pass, and do not re-exec.  This test is particularly contorted to
14210         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14211         of $(...) evokes a syntax error and causes immediate shell exit with
14212         status 2.  Bruno Haible reported that the re-exec made it impossible
14213         to single-step through any init.sh-using script.
14214
14215 2010-05-16  Bruno Haible  <bruno@clisp.org>
14216
14217         Fix collision between gnulib's and libintl's printf replacements.
14218         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14219         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14220         (printf): When using GNU C, map the __printf__ function to rpl_printf
14221         via __asm__. When not using GNU C, define rpl_printf instead of
14222         __printf__.
14223         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14224         commit.
14225         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14226         commit.
14227         * m4/asm-underscore.m4: New file.
14228         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14229         * modules/stdio (Files): Add m4/asm-underscore.m4.
14230         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14231         Reported by Ben Pfaff.
14232
14233 2010-05-16  Bruno Haible  <bruno@clisp.org>
14234
14235         verify: Avoid skipping the test on openSUSE 11.0.
14236         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14237
14238 2010-05-13  Bruno Haible  <bruno@clisp.org>
14239
14240         Avoid useless warnings from G++.
14241         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14242         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14243         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14244
14245 2010-05-11  Jim Meyering  <meyering@redhat.com>
14246
14247         maint.mk: tweak preceding change
14248         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14249         regexps tighter by anchoring at EOL, and make the new group "shy"
14250         for slightly decreased overhead.
14251
14252 2010-05-11  Eric Blake  <eblake@redhat.com>
14253
14254         maint.mk: gnulib doesn't guarantee NSIG
14255         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14256
14257 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14258
14259         test-pwrite.c: Remove unused variable declaration.
14260         * tests/test-pwrite.c (main): Remove read_buf declaration.
14261
14262         Remove useless test-pwrite.sh file.
14263         * tests/test-pwrite.sh: Delete file.
14264         * modules/pwrite-tests: Remove references.
14265         Reported by Bruno Haible.
14266
14267 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14268
14269         init.sh: fix a typo
14270         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
14271
14272 2010-05-10  Jim Meyering  <meyering@redhat.com>
14273
14274         maint.mk: avoid using a temporary file in the always-defined-macros check
14275         * top/maint.mk (.re-defmac): Remove rule.
14276         (gl_trap_): Remove definition.
14277         (sc_prohibit_always-defined_macros): Rewrite not to create and
14278         depend on a temporary file.  Instead, depend on GNU grep's ability
14279         to read a list of regular expressions from stdin when given "-f -".
14280
14281 2010-05-09  Bruno Haible  <bruno@clisp.org>
14282
14283         Update to GNU gettext 0.18, part 1.
14284         * m4/gettext.m4: Update to GNU gettext 0.18.
14285         * m4/intl.m4: Likewise.
14286         * m4/po.m4: Likewise.
14287         * modules/gettext (Files): Add m4/fcntl-o.m4.
14288         (configure.ac): Require gettext infrastructure from version 0.18.
14289
14290 2010-05-09  Jim Meyering  <meyering@redhat.com>
14291
14292         init.sh: enable MALLOC_PERTURB_
14293         * tests/init.sh: Enable glibc's malloc-perturbing option.
14294
14295         maint.mk: improve sc_cross_check_PATH_usage_in_tests
14296         With my recent change in init.sh from the two-line form:
14297             -#   : ${srcdir=.}
14298             -#   . "$srcdir/init.sh"; path_prepend_ .
14299             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
14300         I noticed that using the one-line form would cause this test
14301         to fail with a false-positive, or to stop working altogether,
14302         depending on whether help-version changed or all the tests did.
14303         * top/maint.mk (_hv_regex): Remove this definition.
14304         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
14305         (_hv_regex_strong): Use a stronger regex to check for conformance.
14306         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
14307         Give a separate diagnostic for lack of conforming use.
14308
14309         maint.mk: prohibit definition of symbols defined by gnulib
14310         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
14311         definition of symbols defined by gnulib.
14312
14313 2010-05-09  Bruno Haible  <bruno@clisp.org>
14314
14315         acl: Avoid test failure on Cygwin-hosted mingw.
14316         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14317
14318 2010-05-09  Bruno Haible  <bruno@clisp.org>
14319
14320         error: Use system's fcntl function.
14321         * lib/error.c (fcntl): Undefine.
14322
14323 2010-05-09  Jim Meyering  <meyering@redhat.com>
14324
14325         verify: adjust formatting to be more consistent
14326         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14327         argument-list '('s, and after one comma.
14328
14329 2010-05-09  Bruno Haible  <bruno@clisp.org>
14330
14331         error: More reliable output on mingw.
14332         * lib/error.c: Include <windows.h>.
14333         (is_open): New function.
14334         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14335         defined.
14336
14337 2010-05-09  Bruno Haible  <bruno@clisp.org>
14338
14339         vasnprintf: Fix syntax errors in libintl build on mingw.
14340         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14341         pad_ourselves and prec_ourselves after use.
14342
14343 2010-05-08  Bruno Haible  <bruno@clisp.org>
14344
14345         * lib/config.charset: Update comments for Cygwin 1.7.
14346         * lib/localcharset.c: Likewise.
14347
14348 2010-05-07  Jim Meyering  <meyering@redhat.com>
14349
14350         init.sh: improve comments
14351         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14352         . "${srcdir=.}/init.sh"; path_prepend_ .
14353         Add a note about path_prepend_ and the alternative of using
14354         TESTS_ENVIRONMENT.
14355
14356 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14357
14358         exclude: Unescape hashed patterns in wildcard mode.
14359         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14360         to the hash list.
14361         * tests/test-exclude8.sh: New test case.
14362         * modules/exclude-tests: Add new test.
14363
14364 2010-05-05  Eric Blake  <eblake@redhat.com>
14365
14366         verify: automate tests
14367         * modules/verify-tests: New module.
14368         * tests/test-verify.sh: New file.
14369         * tests/test-verify.c: Guard each negative test with a unique id.
14370         Also avoid warning about unused left hand of comma expressions.
14371
14372 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14373
14374         Further improvements to verify.h, suggested by Eric Blake.
14375         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14376         the GL_* versions, to avoid collision with OpenGL.
14377         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14378         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14379         than testing merely whether it's defined.
14380
14381         Modify verify.h to pacify gcc -Wredundant_decls.
14382         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14383         These use the prefix "GL_" since they're likely to be useful elsewhere.
14384         We may need to break them out into a different .h file.
14385         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14386         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14387         of verify_function__.
14388
14389 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14390
14391         Tests for module pwrite.
14392         * modules/pwrite-tests: New file.
14393         * tests/test-pwrite.sh: New file.
14394         * tests/test-pwrite.c: New file.
14395
14396         New module pwrite.
14397         * lib/unistd.in.h (pwrite): New declaration.
14398         * lib/pwrite.c: New file, from glibc with modifications.
14399         * m4/pwrite.m4: New file.
14400         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14401         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14402         REPLACE_PWRITE.
14403         * modules/pwrite: New file.
14404         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14405         REPLACE_PWRITE.
14406         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14407         * doc/posix-functions/pwrite.texi: Mention the new module.
14408
14409 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14410
14411         pread: Update documentation.
14412         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14413
14414 2010-05-04  Eric Blake  <eblake@redhat.com>
14415
14416         docs: update cygwin progress
14417         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14418         this bug.
14419         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14420         Added in cygwin 1.7.2.
14421         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14422         Likewise.
14423         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14424         Likewise.
14425         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14426         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14427         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14428         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14429         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14430         Mention nproc module.
14431         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14432         bug in cygwin 1.7.5 addition.
14433         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14434         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14435         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14436         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14437         1.7.5.
14438         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14439         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14440         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14441         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14442         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14443         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14444         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14445         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14446         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14447         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14448         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14449         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14450         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14451         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14452         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14453         Likewise.
14454         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14455         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14456         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14457         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14458         Likewise.
14459         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14460         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14461         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14462         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14463         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14464         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14465         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14466         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14467         Likewise.
14468         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14469         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14470         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14471         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14472         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14473         Likewise.
14474         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
14475         Likewise.
14476         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
14477         Likewise.
14478         * doc/glibc-functions/xdrrec_endofrecord.texi
14479         (xdrrec_endofrecord): Likewise.
14480         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
14481         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
14482         Likewise.
14483         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
14484         Likewise.
14485
14486 2010-05-04  Jim Meyering  <meyering@redhat.com>
14487
14488         gendocs.sh: make its "-s FILE" option more useful
14489         * build-aux/gendocs.sh: When honoring the -s FILE option, update
14490         $PACKAGE to reflect the probably-different basename of "FILE".
14491
14492 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14493
14494         bootstrap: don't ignore download_po_files failure
14495         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
14496         failure.
14497
14498 2010-05-03  Jim Meyering  <meyering@redhat.com>
14499
14500         maint.mk: allow to pass options to gendocs.sh
14501         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
14502         (gendocs_options_): New overridable variable.
14503
14504         gnu-web-doc-update: don't ignore configure or build failure
14505         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
14506
14507         announce-gen: backslash-escape '@'s in --help output
14508         * build-aux/announce-gen: Fix syntax errors.
14509
14510         maint.mk, announce-gen: allow project-specific announcement mail headers
14511         * top/maint.mk (translation_project_): Define default.
14512         (announcement_Cc_, announcement_mail_headers_): Likewise.
14513         (announcement): Invoke announce-gen with new --mail-headers option.
14514         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
14515
14516         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
14517         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
14518         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
14519         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
14520         line in the "err2" output file when running "make check" in verbose
14521         mode (i.e., with set -x enabled).
14522
14523 2010-05-03  Bruno Haible  <bruno@clisp.org>
14524
14525         wctob: Fix for weird platforms.
14526         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
14527         argument value.
14528
14529 2010-05-03  Jim Meyering  <meyering@redhat.com>
14530
14531         maint.mk: prohibit unwarranted use of <strings.h>
14532         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
14533         strings.h in a file that does not also use strcasecmp, strncasecmp,
14534         ffs or ffsll.
14535
14536         maint.mk: remove obsolete comments
14537         * top/maint.mk: Remove stale, commented-out rules.
14538
14539 2010-05-02  Bruno Haible  <bruno@clisp.org>
14540
14541         wcwidth: Declare also when it's aliased.
14542         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
14543         macro.
14544
14545 2010-05-02  Bruno Haible  <bruno@clisp.org>
14546
14547         Fix regression from 2010-04-25.
14548         * gnulib-tool (func_modules_transitive_closure): Check the status of
14549         all modules, not only of the tests that are of the form foo-tests where
14550         foo is a module.
14551
14552 2010-05-02  Bruno Haible  <bruno@clisp.org>
14553
14554         wctob: Work around nasty Cygwin 1.7.2 bug.
14555         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
14556         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
14557
14558 2010-05-01  Bruno Haible  <bruno@clisp.org>
14559
14560         fpurge: Sharper test.
14561         * tests/test-fpurge.c (main): Add one more ftell check.
14562         * modules/fpurge-tests (Depends-on): Add ftell.
14563         Suggested by Eric Blake.
14564
14565 2010-05-01  Bruno Haible  <bruno@clisp.org>
14566
14567         ftello: Another test.
14568         * tests/test-ftello3.c: New file.
14569         * modules/ftello-tests (Files): Add it.
14570         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14571         MOSTLYCLEANFILES.
14572
14573         ftell: Another test.
14574         * tests/test-ftell3.c: New file.
14575         * modules/ftell-tests (Files): Add it.
14576         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14577         MOSTLYCLEANFILES.
14578
14579 2010-05-01  Bruno Haible  <bruno@clisp.org>
14580
14581         ftell, ftello: Work around Solaris bug.
14582         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
14583         * lib/ftello.c: Include stdio-impl.h.
14584         (ftello): On Solaris, when _IOWRT is set, compute the result without
14585         looking at _IOREAD.
14586         * modules/ftello (Files): Add lib/stdio-impl.h.
14587         * doc/posix-functions/ftell.texi: Mention Solaris bug.
14588         * doc/posix-functions/ftello.texi: Likewise.
14589         Reported by Eric Blake.
14590
14591 2010-05-01  Bruno Haible  <bruno@clisp.org>
14592
14593         freading: Adapt to special meaning of _IOREAD flag on Solaris.
14594         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
14595         the _IOWRT flag is also set.
14596
14597 2010-05-01  Bruno Haible  <bruno@clisp.org>
14598
14599         Fix doc about a HP-UX stdio bug.
14600         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
14601         * doc/posix-functions/ftello.texi: Likewise.
14602
14603 2010-05-01  Bruno Haible  <bruno@clisp.org>
14604
14605         lseek test: Fix failure on Solaris.
14606         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
14607         output.
14608
14609 2010-04-30  Jim Meyering  <meyering@redhat.com>
14610
14611         bootstrap: don't ignore failure to generate po*/Makevars
14612         * build-aux/bootstrap (with_gettext): Don't ignore failure
14613         to create po/Makevars or runtime-po/Makevars.
14614
14615 2010-04-29  Eric Blake  <eblake@redhat.com>
14616
14617         headers: relax license to LGPLv2+
14618         * modules/fcntl-h (License): Relax license.
14619         * modules/getopt-posix (License): Likewise.
14620         * modules/locale (License): Likewise.
14621         * modules/math (License): Likewise.
14622         * modules/pty (License): Likewise.
14623         * modules/sched (License): Likewise.
14624         * modules/search (License): Likewise.
14625         * modules/spawn (License): Likewise.
14626         * modules/stdarg (License): Likewise.
14627         * modules/sysexits (License): Likewise.
14628
14629 2010-04-29  Jim Meyering  <meyering@redhat.com>
14630
14631         inttypes: relax license to LGPLv2+
14632         * modules/inttypes (License): Relax license.
14633
14634 2010-04-29  Simon Josefsson  <simon@josefsson.org>
14635
14636         * top/maint.mk (indent): Run twice to produce idempotent results.
14637
14638 2010-04-28  Bruno Haible  <bruno@clisp.org>
14639
14640         getdate: Generate getdate.c in the source directory.
14641         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
14642         MOSTLYCLEANFILES.
14643         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
14644
14645 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
14646
14647         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
14648         is not declared as a const *; avoid warnings in that case.
14649
14650 2010-04-28  Eric Blake  <eblake@redhat.com>
14651
14652         canonicalize-lgpl: avoid compiler warning
14653         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
14654         declaration' / 'extraneous semicolon' warning with some compilers.
14655         Reported by Andreas Gruenbacher.
14656
14657 2010-04-28  Jim Meyering  <meyering@redhat.com>
14658
14659         init.sh: ensure a more reliable exit status when exiting via trap
14660         * tests/init.sh (setup_): Don't rely on $? in signal handler.
14661         Inspired by patches from Dmitry V. Levin.
14662         Also trap on signal 3 (SIGQUIT).
14663
14664 2010-04-27  Bruno Haible  <bruno@clisp.org>
14665
14666         Update doc about utimes().
14667         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
14668         'utimens' module.
14669         Reported by Andreas Gruenbacher <agruen@suse.de>.
14670
14671 2010-04-27  Eric Blake  <eblake@redhat.com>
14672
14673         full-read, full-write: relax license
14674         * modules/full-read (License): Drop to LGPLv2+.
14675         * modules/full-write (License): Likewise.
14676         * modules/safe-read (License): Likewise.
14677         * modules/safe-write (License): Likewise.
14678
14679         pthread: mention library for linking
14680         * modules/pthread (Link): Mention $(LIB_PTHREAD).
14681
14682 2010-04-27  Jim Meyering  <meyering@redhat.com>
14683
14684         maint.mk: fix a bug introduced in last change
14685         * top/maint.mk (gl_assured_headers_): Now that all names are on
14686         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
14687         is not anchored to end of word, it should be adequate.
14688
14689         maint.mk: avoid side-effect in latest syntax-check
14690         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
14691         to run commands via $(shell...), and hence to incur cost only when
14692         the new rule is actually run.
14693
14694         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
14695         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
14696         and use that to create a regexp used to detect all #if HAVE_..._H uses.
14697         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
14698         (gl_assured_headers_, az_, AZ_): Define.
14699         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
14700
14701 2010-04-26  Jim Meyering  <jim@meyering.net>
14702             Bruno Haible  <bruno@clisp.org>
14703
14704         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
14705         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
14706         Prompted by an exchange with Gilles Espinasse.
14707
14708 2010-04-26  Jim Meyering  <meyering@redhat.com>
14709
14710         git-version-gen: aesthetic tweak
14711         * build-aux/git-version-gen: Use "$nl" rather than a literal,
14712         so that the command remains on a single line.
14713
14714 2010-04-26  Eric Blake  <eblake@redhat.com>
14715
14716         git-version-gen: allow use on EBCDIC hosts
14717         * build-aux/git-version-gen (dirty): Use literal rather than tying
14718         ourselves to ascii.
14719         Reported by Steve Goetze.
14720
14721 2010-04-25  Bruno Haible  <bruno@clisp.org>
14722
14723         netdb: Add support for GNULIB_POSIXCHECK.
14724         * lib/netdb.in.h: Include warn-on-use.h.
14725         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
14726         functions are used when GNULIB_POSIXCHECK is defined and the
14727         getaddrinfo module is not in use.
14728         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
14729         freeaddrinfo, gai_strerror, getnameinfo are declared.
14730         * modules/netdb (Depends-on): Add warn-on-use.
14731         (Makefile.am): Include warn-on-use.h in netdb.h.
14732
14733 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
14734
14735         build: avoid "make check" failure without .git/ directory
14736         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
14737         there is no .git/ directory.
14738
14739 2010-04-25  Bruno Haible  <bruno@clisp.org>
14740
14741         ptsname: Fix misuse of ttyname_r.
14742         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
14743         of errno.
14744
14745 2010-04-25  Bruno Haible  <bruno@clisp.org>
14746
14747         ttyname_r: Make it work on Solaris 10.
14748         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
14749         if the system function has the POSIX declaration. Test whether the
14750         function fails if the buffer is less than 128 bytes large.
14751         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
14752         system's ttyname_r function. Provide a reasonably large buffer.
14753         * modules/ttyname_r (Depends-on): Add extensions.
14754         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
14755
14756 2010-04-25  Bruno Haible  <bruno@clisp.org>
14757
14758         Use the 'extensions' module for some more functions on Solaris.
14759         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
14760         module.
14761         * doc/posix-functions/ctime_r.texi: Likewise.
14762         * doc/posix-functions/getgrgid_r.texi: Likewise.
14763         * doc/posix-functions/getgrnam_r.texi: Likewise.
14764         * doc/posix-functions/getpwnam_r.texi: Likewise.
14765         * doc/posix-functions/getpwuid_r.texi: Likewise.
14766         * doc/posix-functions/readdir_r.texi: Likewise.
14767         * doc/posix-functions/sigwait.texi: Likewise.
14768         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
14769         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
14770
14771 2010-04-25  Bruno Haible  <bruno@clisp.org>
14772
14773         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
14774         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
14775         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
14776         * lib/ttyname_r.c: Include <limits.h>.
14777         (ttyname_r): Define using the system's ttyname_r function, if it exists
14778         and not on Solaris.
14779         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
14780         set.
14781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
14782         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
14783         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
14784         Reported by Simon Josefsson.
14785
14786 2010-04-25  Bruno Haible  <bruno@clisp.org>
14787
14788         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
14789         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
14790         * doc/posix-functions/ctime_r.texi: Likewise.
14791         * doc/posix-functions/getgrgid_r.texi: Likewise.
14792         * doc/posix-functions/getgrnam_r.texi: Likewise.
14793         * doc/posix-functions/getlogin_r.texi: Likewise.
14794         * doc/posix-functions/getpwnam_r.texi: Likewise.
14795         * doc/posix-functions/getpwuid_r.texi: Likewise.
14796         * doc/posix-functions/readdir_r.texi: Likewise.
14797         * doc/posix-functions/sigwait.texi: Likewise.
14798         * doc/posix-functions/ttyname_r.texi: Likewise.
14799         Reported by Simon Josefsson.
14800
14801 2010-04-25  Bruno Haible  <bruno@clisp.org>
14802
14803         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
14804         * gnulib-tool (func_usage): Document that --with-*-tests options apply
14805         also to --create-testdir.
14806         (func_acceptable): Don't consider the status of *-tests modules here.
14807         (func_modules_transitive_closure): Consider it here, before including a
14808         test module.
14809         (func_import, func_create_testdir): Set inc_all_direct_tests,
14810         inc_all_indirect_tests.
14811         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
14812         --create-testdir and --create-megatestdir.
14813
14814 2010-04-25  Bruno Haible  <bruno@clisp.org>
14815
14816         gnulib-tool: Add --without-*-tests options.
14817         * gnulib-tool (func_usage): Document the --without-*-tests options.
14818         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
14819         excl_unportable_tests): New variables.
14820         Fail if they are specified with --import or --update.
14821         (func_acceptable): Respect the excl_*_tests variables.
14822         (func_import): Set the excl_*_tests variables to empty.
14823
14824 2010-04-25  Simon Josefsson  <simon@josefsson.org>
14825             Bruno Haible  <bruno@clisp.org>
14826
14827         Work around a MacOS X 10.4 bug with openpty.
14828         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
14829         * tests/test-openpty.c (main): Close the master side explicitly.
14830
14831 2010-04-25  Bruno Haible  <bruno@clisp.org>
14832
14833         strnlen: Fix a C++ test error on MacOS X and Solaris.
14834         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
14835         the function is not declared.
14836         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
14837         Simon Josefsson.
14838
14839 2010-04-24  Bruno Haible  <bruno@clisp.org>
14840
14841         Avoid a gcc warning.
14842         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
14843         of correct type for %08lx directive.
14844         Reported by Eric Blake.
14845
14846 2010-04-24  Bruno Haible  <bruno@clisp.org>
14847
14848         vasnprintf: Correct errno value in case of out-of-memory.
14849         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
14850         or sprintf. Use the errno value from SNPRINTF or sprintf.
14851         Reported by Ian Beckwith <ianb@erislabs.net>.
14852
14853 2010-04-24  Bruno Haible  <bruno@clisp.org>
14854
14855         ansi-c++-opt: Find correct compiler when cross-compiling.
14856         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
14857         AC_CHECK_PROGS.
14858         Reported by Simon Josefsson.
14859
14860 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
14861
14862         vc-list-files: Add support for subversion
14863         * build-aux/vc-list-files: Use "svn list" to generate the list of
14864         files controlled by subversion.
14865
14866 2010-04-23  Jim Meyering  <meyering@redhat.com>
14867
14868         vc-list-files tests: convert to use init.sh
14869         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
14870         path_prepend_.
14871         Use Exit, not exit.
14872         Use skip_ rather than open coding it.
14873         Remove trap set-up and compare definitions.
14874         * tests/test-vc-list-files-git.sh: Likewise.
14875         * modules/vc-list-files-tests (Files): Add tests/init.sh.
14876
14877 2010-04-22  Simon Josefsson  <simon@josefsson.org>
14878
14879         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
14880         backup files.
14881
14882 2010-04-21  Simon Josefsson  <simon@josefsson.org>
14883
14884         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
14885
14886 2010-04-20  Eric Blake  <eblake@redhat.com>
14887
14888         tests: be robust to ignored SIGPIPE
14889         * tests/test-select-in.sh: Consume all output.
14890         * tests/test-lseek.sh: Check correct exit status, while avoiding
14891         EPIPE.
14892
14893 2010-04-20  Simon Josefsson  <simon@josefsson.org>
14894             Bruno Haible  <bruno@clisp.org>
14895
14896         visibility: Don't use -fvisibility if it leads to a warning.
14897         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
14898         yes, don't pretend that visibility works if it leads to a warning.
14899         Reported by Mike Gran <spk121@yahoo.com>.
14900
14901 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
14902
14903         * build-aux/bootstrap: Use "git -h" for testing for supported options
14904         instead of "git --help".  The short-form option only shows a summary,
14905         and doesn't layout the full man page.  Grep for the full option name
14906         in the summary, too.
14907
14908 2010-04-19  Bruno Haible  <bruno@clisp.org>
14909
14910         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
14911         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
14912         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
14913         mention of RELOCATABLE_STRIP.
14914         Reported by Sylvain Beucler <beuc@beuc.net>.
14915
14916 2010-04-19  Bruno Haible  <bruno@clisp.org>
14917
14918         * lib/diffseq.h: Fix typo in comment.
14919         Reported by Eric Blake.
14920
14921 2010-04-19  Bruno Haible  <bruno@clisp.org>
14922
14923         ioctl: Move autoconf macro to a .m4 file.
14924         * m4/ioctl.m4: New file, extracted from modules/ioctl.
14925         * modules/ioctl (Files): Add it.
14926         (configure.ac): Simply invoke gl_FUNC_IOCTL.
14927         Reported by Ian Beckwith <ianb@erislabs.net>.
14928
14929 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
14930             Bruno Haible  <bruno@clisp.org>
14931
14932         diffseq: Accommodate use-case with abstract arrays.
14933         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
14934         is not defined.
14935         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
14936         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
14937
14938 2010-04-18  Bruno Haible  <bruno@clisp.org>
14939
14940         * doc/posix-headers/stdbool.texi: More precise wording.
14941
14942 2010-04-17  Jim Meyering  <meyering@redhat.com>
14943
14944         maint.mk: use gnu-style indentation in an embedded perl script
14945         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
14946         Rename variable: s/two/last_two_bytes/
14947
14948 2010-04-16  Eric Blake  <eblake@redhat.com>
14949
14950         test-stdbool: skip test that fails with Solaris CC
14951         * tests/test-stdbool.c (f): Skip test that causes compilation
14952         error under buggy C++ compiler.
14953         * lib/stdbool.in.h: Document the limitation.
14954         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
14955
14956         setenv: allow compilation with C++
14957         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
14958         register keyword.
14959
14960         stdint: allow test to pass with C++
14961         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
14962
14963         getopt: allow compilation with C++
14964         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
14965         struct.
14966         * lib/getopt.c (_getopt_internal_r): Use correct type.
14967         Reported by Dagobert Michelson, via Joel E. Denny.
14968
14969 2010-04-16  Bruno Haible  <bruno@clisp.org>
14970
14971         Override netdb.h always.
14972         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
14973         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
14974         Reported by Ludovic Courtès <ludo@gnu.org>.
14975
14976 2010-04-15  Bruno Haible  <bruno@clisp.org>
14977
14978         openpty: Fix mistake from 2010-03-21.
14979         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
14980         Reported by Simon Josefsson.
14981
14982 2010-04-15  Eric Blake  <eblake@redhat.com>
14983
14984         test-forkpty: fix expected signature
14985         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
14986         Reported by Simon Josefsson.
14987
14988 2010-04-15  Jim Meyering  <meyering@redhat.com>
14989
14990         maint.mk: texinfo_suffix_re_: correct the default regexp
14991         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
14992
14993         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
14994         make it configurable via texinfo_suffix_re_.
14995
14996 2010-04-14  Eric Blake  <eblake@redhat.com>
14997
14998         strtok_r: relax license to LGPLv2+
14999         * modules/strtok_r (License): Relax license.
15000         Reported by Matthias Bolte.
15001
15002 2010-04-14  Simon Josefsson  <simon@josefsson.org>
15003
15004         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
15005         version 1.4.4 by default instead of requiring the libgcrypt
15006         version used during build.  This makes it possible to use the
15007         application with older but still binary compatible libgcrypt
15008         versions.
15009
15010 2010-04-13  Eric Blake  <eblake@redhat.com>
15011
15012         getopt-gnu: match recent glibc fixes and posix ruling
15013         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
15014         '+' handling, when requesting extensions.
15015         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
15016         'W;' handling.
15017         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
15018         * doc/posix-functions/getopt.texi (getopt): Document this.
15019         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15020         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15021         Likewise.
15022
15023         getopt: merge bug fixes from glibc
15024         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
15025         diagnostics.  Honor '+:' correctly.  Reject ';'.
15026
15027         getopt-posix: detect MacOS bug
15028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
15029         optind when missing a required argument.
15030         * doc/posix-functions/getopt.texi (getopt): Document the bug.
15031         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15032         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15033         Likewise.
15034
15035         getopt-posix: avoid spurious failure on Solaris
15036         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
15037         an indicator that setting optind=1 is sufficient for reset.
15038
15039         getopt-posix: avoid spurious failure on FreeBSD
15040         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
15041         in POSIX mode, since the m4 test uses it.
15042
15043         gnulib-tool: silence warning on BSD sh
15044         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
15045
15046 2010-04-13  Jim Meyering  <meyering@redhat.com>
15047
15048         doc: users.txt: GNU patch now uses gnulib
15049         * users.txt: Add patch.
15050
15051 2010-04-12  Jim Meyering  <meyering@redhat.com>
15052
15053         maint.mk: generate more concise timing data for syntax-check rules
15054         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
15055         " done" from each line that reports a syntax-check test duration.
15056
15057 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
15058
15059         git-version-gen: use "git update-index..." rather than "git status"
15060         * build-aux/git-version-gen: Use git update-index --refresh, not
15061         "git status".  With some versions of git, "git status" would fail
15062         to update the index and result in an unwarranted "-dirty" suffix.
15063
15064 2010-04-11  Jim Meyering  <meyering@redhat.com>
15065
15066         openat: correct formatting (no semantic change)
15067         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
15068         Suggested by Bruno Haible.
15069
15070 2010-04-11  Bruno Haible  <bruno@clisp.org>
15071
15072         Stricter declaration checking in testdirs.
15073         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15074         If for_tests is true, augment AM_CPPFLAGS to define
15075         GNULIB_STRICT_CHECKING.
15076         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
15077         GNULIB_STRICT_CHECKING is defined, verify that the function is
15078         declared.
15079
15080 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
15081             Bruno Haible  <bruno@clisp.org>
15082
15083         libunistring: Improve configure output.
15084         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
15085         Don't say "consider installing GNU libunistring" when checking again
15086         with libiconv.
15087
15088 2010-04-11  Bruno Haible  <bruno@clisp.org>
15089
15090         libunistring: Correct value of $LTLIBUNISTRING.
15091         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
15092         correct the value of $LTLIBUNISTRING.
15093
15094 2010-04-11  Bruno Haible  <bruno@clisp.org>
15095
15096         havelib: Add static libraries to LIBS in the right order.
15097         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
15098         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
15099
15100 2010-04-11  Bruno Haible  <bruno@clisp.org>
15101
15102         libunistring: Detect libunistring also when it depends on libiconv.
15103         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
15104         the second AC_LIB_HAVE_LINKFLAGS invocation.
15105
15106 2010-04-11  James Youngman  <jay@gnu.org>
15107
15108         close-stream: declare local scalars to be "const"
15109         * lib/close-stream.c (close_stream): Make boolean variables const
15110         to document the fact that we set but do not change them.
15111
15112 2010-04-11  Bruno Haible  <bruno@clisp.org>
15113
15114         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
15115
15116 2010-04-11  Jim Meyering  <meyering@redhat.com>
15117
15118         maint.mk: don't include dist-check.mk
15119         * top/maint.mk: Remove bogus include directive.
15120
15121         maint.mk: improve empty-line-at-EOF check
15122         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
15123         solution, rather than tail+Perl-based one.  The latter would read
15124         a few kilobytes from the end of each file, and did not handle empty
15125         files properly.
15126
15127         maint.mk: print the elapsed time for each syntax-check rule
15128         * top/maint.mk (sc_m_rules_): Save start time in a file.
15129         (sc_z_rules_): New rules: remove temp file and print elapsed time.
15130         (local-check): Interpose the .z rules
15131
15132 2010-04-11  Jim Meyering  <meyering@redhat.com>
15133
15134         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
15135         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
15136         empty file with one that ends in an empty line.
15137
15138 2010-04-10  Bruno Haible  <bruno@clisp.org>
15139
15140         mkdir: Make it work on mingw64.
15141         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
15142         * lib/mkdir.c: Update comment.
15143         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
15144
15145 2010-04-10  Bruno Haible  <bruno@clisp.org>
15146
15147         Don't override improved macro from newer autoconf.
15148         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
15149         autoconf >= 2.62.
15150         Reported by Joel E. Denny <jdenny@clemson.edu>.
15151
15152 2010-04-10  Jim Meyering  <meyering@redhat.com>
15153
15154         maint.mk: new syntax-check rule: prohibit empty lines at end of file
15155         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
15156
15157         maint.mk: correct a diagnostic
15158         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
15159         in diagnostic; now use $prohibit.
15160
15161 2010-04-10  Bruno Haible  <address@hidden>
15162
15163         fchownat: Fix a C++ test error on Solaris 8.
15164         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
15165         the function does not exist.
15166
15167 2010-04-10  Bruno Haible  <bruno@clisp.org>
15168
15169         vasnprintf: Add more tests.
15170         * tests/test-vasnprintf-posix.c: Include <errno.h>.
15171         (test_function): Test converting an invalid wide string.
15172
15173         vasnprintf: Correct handling of unconvertible wide string arguments.
15174         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
15175         VASNPRINTF.
15176         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
15177         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
15178         smaller than the expected maximum need for the directive. Set errno to
15179         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
15180         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
15181         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
15182         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
15183         * modules/vasnprintf (Files): Add m4/printf.m4.
15184         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15185
15186 2010-04-10  Bruno Haible  <bruno@clisp.org>
15187
15188         vasnprintf: Fix crash in %ls directive.
15189         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
15190         string is passed as argument to %ls, with no precision and no width.
15191         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15192
15193 2010-04-10  Bruno Haible  <bruno@clisp.org>
15194
15195         vasnprintf: Fix multiple test failures on mingw.
15196         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15197         _snprintf, or snwprintf, not _snwprintf.
15198
15199 2010-04-10  Bruno Haible  <bruno@clisp.org>
15200
15201         write: Fix a C++ test error on mingw.
15202         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15203
15204 2010-04-10  Bruno Haible  <bruno@clisp.org>
15205
15206         vasnprintf test: Reduce code duplication.
15207         * tests/test-vasnprintf.c (test_function): New function, extracted from
15208         test_vasnprintf.
15209         (test_vasnprintf, test_asnprintf): Invoke it.
15210
15211 2010-04-10  Bruno Haible  <bruno@clisp.org>
15212
15213         strnlen: Fix warning in C++ mode on MacOS X.
15214         * lib/string.in.h (strnlen): Use the modern idiom.
15215         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15216         defining strnlen as a macro already in <config.h>.
15217         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15218         REPLACE_STRNLEN.
15219         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15220         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15221
15222 2010-04-08  James Youngman  <jay@gnu.org>
15223
15224         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15225         the example.
15226
15227 2010-04-09  Jim Meyering  <meyering@redhat.com>
15228
15229         maint.mk: print better diagnostic when there is no $(_hv_file)
15230         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15231         announce that when $(_hv_file) (aka help-version) does not exist.
15232
15233         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15234         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15235         not try to interpret its random input bytes.  Jarno Rajahalme reported
15236         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15237         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15238         (mktempd_): Likewise, just in case.
15239
15240         ftruncate: add two years to projected module removal date: 2012
15241         * m4/ftruncate.m4: Adjust comments.
15242
15243         ftruncate: mark module as obsolete; even MinGW provides it, now
15244         * modules/ftruncate (Status): Obsolete.
15245         (Notice): Say that.
15246         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15247         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15248
15249 2010-04-08  Bruno Haible  <bruno@clisp.org>
15250
15251         Fix side effects from tests-related modules.
15252         * modules/dprintf-posix (Comment): New section.
15253         * modules/fprintf-posix (Comment): Likewise.
15254         * modules/obstack-printf-posix (Comment): Likewise.
15255         * modules/printf-posix (Comment): Likewise.
15256         * modules/snprintf-posix (Comment): Likewise.
15257         * modules/sprintf-posix (Comment): Likewise.
15258         * modules/vasnprintf-posix (Comment): Likewise.
15259         * modules/vasprintf-posix (Comment): Likewise.
15260         * modules/vdprintf-posix (Comment): Likewise.
15261         * modules/vfprintf-posix (Comment): Likewise.
15262         * modules/vprintf-posix (Comment): Likewise.
15263         * modules/vsnprintf-posix (Comment): Likewise.
15264         * modules/vsprintf-posix (Comment): Likewise.
15265         * modules/xprintf-posix (Comment): Likewise.
15266         * modules/xvasprintf-posix (Comment): Likewise.
15267         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
15268         * modules/floorf-tests (Depends-on): Likewise.
15269         * modules/round-tests (Depends-on): Likewise.
15270         * modules/roundf-tests (Depends-on): Likewise.
15271         * modules/trunc-tests (Depends-on): Likewise.
15272         * modules/truncf-tests (Depends-on): Likewise.
15273         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
15274         'fprintf-posix' module is not present.
15275         * tests/test-floorf2.c (check): Likewise.
15276         * tests/test-trunc2.c (check): Likewise.
15277         * tests/test-truncf2.c (check): Likewise.
15278         * tests/test-round2.c (equal): Likewise.
15279         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15280
15281 2010-04-07  Karl Berry  <karl@gnu.org>
15282
15283         * config/srclist.txt,
15284         * config/srclistvars.sh,
15285         * config/srclist-update: doc fixes.
15286
15287 2010-04-07  Jim Meyering  <meyering@redhat.com>
15288
15289         maint.mk: add a PATH crosschecking syntax-check rule
15290         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
15291         Useful if you use a test like the one in help-version (coreutils,
15292         diffutils, grep, gzip) that ensures $(VERSION) matches what is
15293         printed by prog --version.
15294
15295 2010-04-06  Bruno Haible  <bruno@clisp.org>
15296
15297         Fix link error on mingw.
15298         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
15299         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
15300
15301 2010-04-06  Bruno Haible  <bruno@clisp.org>
15302
15303         Assume rmdir exists.
15304         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
15305
15306 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
15307
15308         doc: update users.txt
15309         * users.txt: Add gcal.
15310
15311 2010-04-06  Jim Meyering  <meyering@redhat.com>
15312
15313         init.sh: simply unset TMPDIR rather than risking env -i
15314         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15315         although it probably works fine on all Unix-based systems, some
15316         systems (Cygwin?) cannot tolerate a totally cleared environment.
15317         Suggestion from Eric Blake.
15318
15319 2010-04-06  Jim Meyering  <meyering@redhat.com>
15320
15321         init.sh: portability fix: use env's POSIX-specified -i option not -u
15322         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15323         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15324
15325 2010-04-05  Bruno Haible  <bruno@clisp.org>
15326
15327         btowc: Work around Cygwin 1.7.2 bug.
15328         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15329         does not map NUL to 0.
15330         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15331
15332 2010-04-05  Bruno Haible  <bruno@clisp.org>
15333
15334         Make the multithread modules work on Cygwin 1.7.2.
15335         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15336         imported symbols can be declared weak, so that it returns "no" on
15337         Cygwin 1.7.2.
15338
15339 2010-04-05  Bruno Haible  <bruno@clisp.org>
15340
15341         Use the module 'strncat'.
15342         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15343
15344         Tests for module 'strncat'.
15345         * modules/strncat-tests: New file.
15346         * tests/test-strncat.c: New file.
15347
15348         New module 'strncat'.
15349         * lib/string.in.h (strncat): New declaration.
15350         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15351         * m4/strncat.m4: New file, based on m4/memchr.m4.
15352         * modules/strncat: New file.
15353         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15354         is declared.
15355         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15356         REPLACE_STRNCAT.
15357         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15358         REPLACE_STRNCAT.
15359         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15360         module.
15361         * tests/test-string-c++.cc: Check signature of strncat.
15362
15363 2010-04-05  Jim Meyering  <meyering@redhat.com>
15364
15365         xstrtoumax-tests: convert to use init.sh
15366         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15367         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15368         Use Exit, not exit.
15369         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15370
15371         xstrtoimax-tests: convert to use init.sh
15372         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15373         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15374         Use Exit, not exit.
15375         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15376
15377 2010-04-05  Bruno Haible  <bruno@clisp.org>
15378
15379         sys_socket: Avoid #define replacements in C++ mode.
15380         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15381         warning to the function if possible, rather than #defining the symbol
15382         to a dysfunctional alias.
15383
15384 2010-04-05  Bruno Haible  <bruno@clisp.org>
15385
15386         fseeko: Fix C++ test error on mingw.
15387         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15388         gl_FUNC_FSEEKO.
15389         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15390         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15391         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15392         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15393
15394 2010-04-05  Bruno Haible  <bruno@clisp.org>
15395
15396         duplocale: Improve test output.
15397         * tests/test-duplocale.c (main): Print reason for skipped test.
15398
15399 2010-04-05  Bruno Haible  <bruno@clisp.org>
15400
15401         Assume rmdir exists.
15402         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15403         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15404
15405 2010-04-05  Bruno Haible  <bruno@clisp.org>
15406
15407         Fix link error on Solaris 8 with cc.
15408         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15409
15410 2010-04-05  Bruno Haible  <bruno@clisp.org>
15411
15412         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15413         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15414
15415 2010-04-05  Bruno Haible  <bruno@clisp.org>
15416
15417         vasprintf: Update documentation.
15418         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15419
15420 2010-04-05  Bruno Haible  <bruno@clisp.org>
15421
15422         ptsname: Improve test.
15423         * tests/test-ptsname.c (main): Also try the various master names of BSD
15424         systems.
15425
15426 2010-04-05  Bruno Haible  <bruno@clisp.org>
15427
15428         memchr: Avoid a possible C++ test error.
15429         * lib/string.in.h (memchr): Provide declaration if function is missing.
15430         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15431         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15432         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15433         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15434
15435 2010-04-05  Bruno Haible  <bruno@clisp.org>
15436
15437         strtok_r: Improve idiom.
15438         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15439         AC_LIBOBJ is used.
15440
15441 2010-04-05  Bruno Haible  <bruno@clisp.org>
15442
15443         strdup: Improve idiom.
15444         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15445         AC_LIBOBJ is used.
15446         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15447         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15448         when AC_LIBOBJ is used.
15449
15450 2010-04-05  Bruno Haible  <bruno@clisp.org>
15451
15452         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15453         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15454         don't set REPLACE_MBSINIT to 1.
15455         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15456         don't set REPLACE_MBRTOWC to 1.
15457         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15458         exist, don't set REPLACE_MBSRTOWCS to 1.
15459         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15460         exist, don't set REPLACE_MBSNRTOWCS to 1.
15461         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15462         don't set REPLACE_WCRTOMB to 1.
15463         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15464         exist, don't set REPLACE_WCSRTOMBS to 1.
15465         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15466         exist, don't set REPLACE_WCSNRTOMBS to 1.
15467
15468 2010-04-05  Bruno Haible  <bruno@clisp.org>
15469
15470         ldexpl: Improve idiom.
15471         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15472         make sure to set HAVE_DECL_LDEXPL to 0.
15473
15474 2010-04-05  Jim Meyering  <meyering@redhat.com>
15475
15476         xstrtol-tests: convert to use init.sh
15477         * modules/xstrtol-tests (Files): Add tests/init.sh.
15478         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15479         Use Exit, not exit.
15480         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15481
15482         atexit-tests: convert to use init.sh
15483         * modules/atexit-tests (Files): Add tests/init.sh.
15484         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15485         Use Exit, not exit.
15486         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15487
15488         init.sh: fix typo
15489         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
15490
15491         init.sh: make it easier for a test script to write to the tty, ...
15492         when using automake's parallel-tests mode.
15493         * tests/init.sh (stderr_fileno_): Define overridable variable.
15494         (warn_): New function, to use it.
15495         (fail_, skip_, framework_failure_): Use warn_.
15496
15497 2010-04-04  Bruno Haible  <bruno@clisp.org>
15498
15499         btowc: Avoid warning.
15500         * lib/btowc.c: Include <stdlib.h>.
15501         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
15502
15503 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15504             Bruno Haible  <bruno@clisp.org>
15505
15506         wchar: Port to NetBSD 1.5.
15507         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
15508         * lib/wctype.in.h (WEOF): Likewise.
15509
15510 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15511             Bruno Haible  <bruno@clisp.org>
15512
15513         Port extended stdio to NetBSD 1.5.
15514         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
15515         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
15516         older.
15517
15518 2010-04-04  Bruno Haible  <bruno@clisp.org>
15519
15520         string: Remove unused substitution.
15521         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15522         HAVE_DECL_STRERROR.
15523         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
15524
15525 2010-04-04  Bruno Haible  <bruno@clisp.org>
15526
15527         strtod: Avoid a possible C++ test error.
15528         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
15529         set REPLACE_STRTOD.
15530
15531 2010-04-04  Bruno Haible  <bruno@clisp.org>
15532
15533         strerror: Update documentation.
15534         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
15535
15536 2010-04-04  Bruno Haible  <bruno@clisp.org>
15537
15538         stdio: Fix some C++ test errors on Solaris 8 with GCC.
15539         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
15540         _GL_CXXALIAS_SYS_CAST.
15541
15542 2010-04-04  Bruno Haible  <bruno@clisp.org>
15543
15544         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15545         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
15546         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
15547         REPLACE_FREXPL to 1.
15548         * doc/posix-functions/frexpl.texi: Update documentation.
15549
15550 2010-04-04  Bruno Haible  <bruno@clisp.org>
15551
15552         math: Fix some C++ test errors on Solaris 8 and Cygwin.
15553         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
15554
15555 2010-04-04  Bruno Haible  <bruno@clisp.org>
15556
15557         Implement nanosleep for native Windows.
15558         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
15559
15560 2010-04-04  Bruno Haible  <bruno@clisp.org>
15561
15562         math: Fix some C++ test errors on Solaris 8.
15563         * lib/math.in.h (truncf, trunc): Use simpler idiom.
15564
15565 2010-04-04  Bruno Haible  <bruno@clisp.org>
15566
15567         math: Fix some C++ test errors on Cygwin.
15568         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
15569         truncl): Provide declaration if the system does not have it.
15570         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
15571         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
15572         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
15573         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
15574         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
15575         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
15576         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
15577         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
15578         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
15579         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
15580         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
15581         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
15582         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
15583         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
15584         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
15585         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
15586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
15587         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15588         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15589         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
15590         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15591         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15592
15593 2010-04-04  Bruno Haible  <bruno@clisp.org>
15594
15595         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
15596         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15597         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15598         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15599         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15600         * m4/isinf.m4 (gl_ISINF): Likewise.
15601         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15602
15603 2010-04-04  Bruno Haible  <bruno@clisp.org>
15604
15605         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
15606         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15607
15608 2010-04-04  Bruno Haible  <bruno@clisp.org>
15609
15610         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
15611         * modules/tmpfile (configure.ac): Update.
15612
15613         tmpfile: Fix C++ test error on mingw.
15614         * lib/stdio.in.h (tmpfile): New declaration.
15615         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
15616         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
15617         * modules/tmpfile (Depends-on): Add stdio.
15618         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15619         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
15620         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
15621         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
15622         REPLACE_TMPFILE.
15623         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
15624
15625 2010-04-04  Bruno Haible  <bruno@clisp.org>
15626
15627         ioctl: Fix C++ test error on mingw.
15628         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
15629         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
15630         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
15631
15632 2010-04-03  Bruno Haible  <bruno@clisp.org>
15633
15634         wcwidth: Fix C++ test error on mingw.
15635         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
15636         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
15637         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
15638
15639 2010-04-03  Bruno Haible  <bruno@clisp.org>
15640
15641         nanosleep: Fix C++ test error on mingw.
15642         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
15643         * lib/time.in.h (nanosleep): Use modern idiom.
15644         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
15645         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
15646         REPLACE_NANOSLEEP to 1.
15647         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
15648         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
15649
15650 2010-04-03  Bruno Haible  <bruno@clisp.org>
15651
15652         strptime: Fix C++ test error on mingw.
15653         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
15654         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
15655         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
15656         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
15657         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
15658         not REPLACE_STRPTIME.
15659         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
15660         REPLACE_STRPTIME.
15661
15662 2010-04-03  Bruno Haible  <bruno@clisp.org>
15663
15664         timegm: Fix C++ test error on mingw.
15665         * lib/time.in.h (timegm): Use modern idiom.
15666         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
15667         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
15668         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
15669         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
15670
15671 2010-04-03  Bruno Haible  <bruno@clisp.org>
15672
15673         timegm: Assume declaration if function exists.
15674         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
15675         if it exists. Don't clobber ac_cv_func_timegm.
15676
15677 2010-04-03  Bruno Haible  <bruno@clisp.org>
15678
15679         time_r: Fix C++ test error on mingw.
15680         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
15681         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
15682         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
15683         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
15684         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
15685
15686 2010-04-03  Bruno Haible  <bruno@clisp.org>
15687
15688         time_r: Minor updates.
15689         * modules/time_r (Description): Mention the provided functions.
15690         * lib/time_r.c: Don't include <string.h>.
15691         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
15692         * doc/posix-functions/localtime_r.texi: Likewise.
15693
15694 2010-04-03  Bruno Haible  <bruno@clisp.org>
15695
15696         time: Fix regression introduced on 2010-03-08.
15697         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
15698         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
15699
15700 2010-04-03  Jim Meyering  <meyering@redhat.com>
15701
15702         maint.mk: don't silently disable project-specific syntax-check rules
15703         * top/maint.mk (_prohibit_regexp): Define, to help people realize
15704         that they need to convert their project-specific syntax-check rules
15705         to use the new _sc_search_regexp.
15706
15707 2010-04-03  Bruno Haible  <bruno@clisp.org>
15708
15709         fchdir: Fix regression introduced on 2010-03-08.
15710         * lib/unistd.in.h (fchdir): Fix declaration.
15711         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
15712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
15713         REPLACE_FCHDIR.
15714         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
15715         REPLACE_FCHDIR.
15716
15717 2010-04-03  Bruno Haible  <bruno@clisp.org>
15718
15719         getpagesize: Fix C++ test error on mingw.
15720         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
15721         system does not declare the function.
15722         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
15723         declared.
15724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15725         HAVE_DECL_GETPAGESIZE.
15726         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
15727
15728 2010-04-03  Bruno Haible  <bruno@clisp.org>
15729
15730         stdio: Make C++ tests work on mingw.
15731         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
15732         does not declare the function.
15733
15734 2010-04-03  Bruno Haible  <bruno@clisp.org>
15735
15736         ftello: Fix C++ test error on mingw.
15737         * lib/stdio.in.h (ftello): Use modern idiom.
15738         * lib/ftello.c (ftello): Renamed from rpl_ftello.
15739         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
15740         is missing and that it needs to be replaced.
15741         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
15742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
15743         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
15744
15745 2010-04-03  Bruno Haible  <bruno@clisp.org>
15746
15747         fseeko: Fix C++ test error on mingw.
15748         * lib/stdio.in.h (fseeko): Use modern idiom.
15749         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
15750         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
15751         is missing and that it needs to be replaced.
15752         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
15753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
15754         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
15755
15756 2010-04-03  Bruno Haible  <bruno@clisp.org>
15757
15758         mkstemp: Fix C++ test error on mingw.
15759         * lib/stdlib.in.h (mkstemp): Use modern idiom.
15760         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
15761         function is missing and that it needs to be replaced.
15762         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
15763         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
15764
15765 2010-04-03  Bruno Haible  <bruno@clisp.org>
15766
15767         stpncpy: Fix C++ test error on mingw.
15768         * lib/string.in.h (stpncpy): Use modern idiom.
15769         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
15770         function is missing and that it needs to be replaced.
15771         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15772         REPLACE_STPNCPY.
15773         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
15774
15775 2010-04-03  Bruno Haible  <bruno@clisp.org>
15776
15777         sys_stat: Fix C++ test error on mingw.
15778         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
15779         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
15780
15781 2010-04-03  Bruno Haible  <bruno@clisp.org>
15782
15783         pty: Update doc.
15784         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
15785
15786 2010-04-03  Bruno Haible  <bruno@clisp.org>
15787
15788         unistd: Fix C++ test error on mingw.
15789         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
15790
15791 2010-04-03  Bruno Haible  <bruno@clisp.org>
15792
15793         Update doc regarding mingw.
15794         * doc/glibc-functions/openpty.texi: Update regarding mingw.
15795         * doc/glibc-functions/login_tty.texi: Likewise.
15796         * doc/glibc-functions/forkpty.texi: Likewise.
15797
15798 2010-04-03  Bruno Haible  <bruno@clisp.org>
15799
15800         stdlib: Avoid compilation failure of c-strtold on mingw.
15801         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
15802
15803 2010-04-03  Bruno Haible  <bruno@clisp.org>
15804
15805         locale: Make C++ tests work on Cygwin and mingw.
15806         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
15807         cannot provide the function.
15808         Reported by Simon Josefsson.
15809
15810 2010-04-03  Bruno Haible  <bruno@clisp.org>
15811
15812         localename: Port to MacOS X 10.6.
15813         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
15814         memory layout of the locales in MacOS X 10.6 as well.
15815         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
15816
15817 2010-04-02  Bruno Haible  <bruno@clisp.org>
15818
15819         gnulib-tool: Ensure that long-running tests are executed last.
15820         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
15821         running tests after the one for the other tests.
15822
15823 2010-04-02  Bruno Haible  <bruno@clisp.org>
15824
15825         gnulib-tool: Ensure the tests in the main directory are executed first.
15826         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
15827         start with the current directory.
15828
15829 2010-04-02  Bruno Haible  <bruno@clisp.org>
15830
15831         Tests for module 'havelib', moved here from GNU gettext.
15832         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
15833         modifications.
15834         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
15835         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
15836         with modifications.
15837         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
15838         modifications.
15839         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
15840         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
15841         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
15842         with modifications.
15843         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
15844         with modifications.
15845         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
15846         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
15847         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
15848         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
15849         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
15850         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
15851         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
15852         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
15853         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
15854         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
15855         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
15856         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
15857         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
15858         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
15859         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
15860         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
15861         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
15862         with modifications.
15863         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
15864         with modifications.
15865         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
15866         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
15867         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
15868         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
15869         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
15870         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
15871         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
15872         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
15873         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
15874         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
15875         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
15876         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
15877         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
15878         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
15879         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
15880         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
15881         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
15882         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
15883         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
15884         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
15885         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
15886         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
15887         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
15888         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
15889         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
15890         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
15891         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
15892         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
15893         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
15894         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
15895         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
15896         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
15897         * tests/havelib/rpathx/rpathx.c: New file, from
15898         gettext/autoconf-lib-link.
15899         * tests/havelib/rpathx/Makefile.am: New file, from
15900         gettext/autoconf-lib-link.
15901         * tests/havelib/rpathx/configure.ac: New file, from
15902         gettext/autoconf-lib-link with modifications.
15903         * tests/havelib/rpathy/rpathy.c: New file, from
15904         gettext/autoconf-lib-link.
15905         * tests/havelib/rpathy/Makefile.am: New file, from
15906         gettext/autoconf-lib-link.
15907         * tests/havelib/rpathy/configure.ac: New file, from
15908         gettext/autoconf-lib-link with modifications.
15909         * tests/havelib/rpathz/rpathz.c: New file, from
15910         gettext/autoconf-lib-link.
15911         * tests/havelib/rpathz/Makefile.am: New file, from
15912         gettext/autoconf-lib-link.
15913         * tests/havelib/rpathz/configure.ac: New file, from
15914         gettext/autoconf-lib-link with modifications.
15915         * tests/havelib/rpathlx/usex.c: New file, from
15916         gettext/autoconf-lib-link.
15917         * tests/havelib/rpathlx/Makefile.am: New file, from
15918         gettext/autoconf-lib-link.
15919         * tests/havelib/rpathlx/configure.ac: New file, from
15920         gettext/autoconf-lib-link with modifications.
15921         * tests/havelib/rpathly/usey.c: New file, from
15922         gettext/autoconf-lib-link.
15923         * tests/havelib/rpathly/Makefile.am: New file, from
15924         gettext/autoconf-lib-link.
15925         * tests/havelib/rpathly/configure.ac: New file, from
15926         gettext/autoconf-lib-link with modifications.
15927         * tests/havelib/rpathlz/usez.c: New file, from
15928         gettext/autoconf-lib-link.
15929         * tests/havelib/rpathlz/Makefile.am: New file, from
15930         gettext/autoconf-lib-link.
15931         * tests/havelib/rpathlz/configure.ac: New file, from
15932         gettext/autoconf-lib-link with modifications.
15933         * tests/havelib/rpathlyx/usey.c: New file, from
15934         gettext/autoconf-lib-link.
15935         * tests/havelib/rpathlyx/Makefile.am: New file, from
15936         gettext/autoconf-lib-link.
15937         * tests/havelib/rpathlyx/configure.ac: New file, from
15938         gettext/autoconf-lib-link with modifications.
15939         * tests/havelib/rpathlzyx/usez.c: New file, from
15940         gettext/autoconf-lib-link.
15941         * tests/havelib/rpathlzyx/Makefile.am: New file, from
15942         gettext/autoconf-lib-link.
15943         * tests/havelib/rpathlzyx/configure.ac: New file, from
15944         gettext/autoconf-lib-link with modifications.
15945         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
15946         with modifications.
15947
15948 2010-04-02  Bruno Haible  <bruno@clisp.org>
15949
15950         gnulib-tool: Create distributed built sources also for the tests.
15951         * gnulib-tool (func_create_testdir): Also generate distributed built
15952         sources in the tests directory.
15953
15954 2010-04-02  Bruno Haible  <bruno@clisp.org>
15955
15956         gnulib-tool: Obey user's environment variables.
15957         * gnulib-tool (func_create_testdir): When creating built sources,
15958         respect the environment variables for autoconf, automake, etc. given by
15959         the user.
15960
15961 2010-04-02  Bruno Haible  <bruno@clisp.org>
15962
15963         gnulib-tool: Provide the value of --m4-base to modules.
15964         * gnulib-tool (func_import, func_create_testdir): Emit a definition
15965         of gl_m4_base.
15966
15967 2010-04-02  Eric Blake  <eblake@redhat.com>
15968
15969         maint.mk: fix some fallout
15970         * NEWS: Document the incompatible change, and its effect on cfg.mk.
15971         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
15972
15973 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15974
15975         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
15976         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
15977         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
15978         (sc_cast_of_x_alloc_return_value): Likewise.
15979         (sc_cast_of_alloca_return_value): Likewise.
15980         (sc_space_tab): Likewise.
15981         (sc_prohibit_atoi_atof): Likewise.
15982         (sc_prohibit_magic_number_exit): Likewise.
15983         (sc_error_exit_success): Likewise.
15984         (sc_file_system): Likewise.
15985         (sc_prohibit_have_config_h): Likewise.
15986         (sc_require_config_h): Likewise.
15987         (sc_prohibit_HAVE_MBRTOWC): Likewise.
15988         (sc_obsolete_symbols): Likewise.
15989         (sc_changelog): Likewise.
15990         (sc_program_name): Likewise.
15991         (sc_the_the): Likewise.
15992         (sc_trailing_blank): Likewise.
15993         (sc_two_space_separator_in_usage): Likewise.
15994         (sc_useless_cpp_parens): Likewise.
15995         (sc_GPL_version): Likewise.
15996         (sc_GFDL_version): Likewise.
15997         (sc_texinfo_acronym): Likewise.
15998         (sc_prohibit_cvs_keyword): Likewise.
15999         (sc_prohibit_stat_st_blocks): Likewise.
16000         (sc_prohibit_S_IS_definition): Likewise.
16001         (sc_redundant_const): Likewise.
16002         (sc_makefile_TAB_only_indentation): Likewise.
16003         (sc_m4_quote_check): Likewise.
16004         (sc_makefile_path_separator_check): Likewise.
16005         (sc_copyright_check): Likewise.
16006         (sc_Wundef_boolean): Likewise.
16007         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16008
16009         maint.mk: match 0 or more whitespace-before-function-call '('
16010         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
16011         that have zero or two-and-more spaces between the function name
16012         and the open parenthesis.
16013         (sc_error_message_warn_fatal): Likewise.
16014         (sc_error_message_uppercase): Likewise.
16015         (sc_error_message_period): Likewise.
16016
16017 2010-03-31  Eric Blake  <eblake@redhat.com>
16018
16019         maint.mk: check for [ as well as test
16020         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
16021         Based on a libvirt report by Matthias Bolte.
16022
16023         gnumakefile: don't squelch _version output
16024         * top/GNUmakefile (_version): Create one-shot dependency rather
16025         than using $(shell) when version must be regenerated.
16026         (_autoreconf): Run verbosely, by default.
16027
16028         sys_time: avoid compiler warnings
16029         * lib/sys_time.in.h (includes): Ensure gcc pragma is
16030         unconditional, fixing regression from 2010-03-29.
16031         Reported by Simon Josefsson.
16032
16033 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16034
16035         maint.mk: s/_header_without_use/_sc_header_without_use/
16036         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
16037         (sc_prohibit_assert_without_use): Use the new name.
16038         (sc_prohibit_close_stream_without_use): Likewise.
16039         (sc_prohibit_getopt_without_use): Likewise.
16040         (sc_prohibit_quotearg_without_use): Likewise.
16041         (sc_prohibit_quote_without_use): Likewise.
16042         (sc_prohibit_long_options_without_use): Likewise.
16043         (sc_prohibit_inttostr_without_use): Likewise.
16044         (sc_prohibit_ignore_value_without_use): Likewise.
16045         (sc_prohibit_error_without_use): Likewise.
16046         (sc_prohibit_xalloc_without_use): Likewise.
16047         (sc_prohibit_hash_without_use): Likewise.
16048         (sc_prohibit_hash_pjw_without_use): Likewise.
16049         (sc_prohibit_safe_read_without_use): Likewise.
16050         (sc_prohibit_argmatch_without_use): Likewise.
16051         (sc_prohibit_canonicalize_without_use): Likewise.
16052         (sc_prohibit_root_dev_ino_without_use): Likewise.
16053         (sc_prohibit_openat_without_use): Likewise.
16054         (sc_prohibit_c_ctype_without_use): Likewise.
16055         (sc_prohibit_signal_without_use): Likewise.
16056         (sc_prohibit_intprops_without_use): Likewise.
16057
16058 2010-03-30  Eric Blake  <eblake@redhat.com>
16059
16060         maint: improve module indicators
16061         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
16062         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
16063         columns, and avoid extra macro expansion.
16064
16065         fdopendir: work around FreeBSD bug
16066         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16067         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
16068         * modules/dirent (Makefile.am): Substitute it.
16069         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
16070         declaration.
16071         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
16072         fix.
16073         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16074
16075 2010-03-29  Bruno Haible  <bruno@clisp.org>
16076
16077         Emit #pragma system_header after the inclusion guard, not before.
16078         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
16079         guard that spans the entire file, not before. This enables an
16080         optimization in GCC's preprocessor.
16081         * lib/ctype.in.h: Likewise.
16082         * lib/dirent.in.h: Likewise.
16083         * lib/errno.in.h: Likewise.
16084         * lib/float.in.h: Likewise.
16085         * lib/getopt.in.h: Likewise.
16086         * lib/iconv.in.h: Likewise.
16087         * lib/langinfo.in.h: Likewise.
16088         * lib/locale.in.h: Likewise.
16089         * lib/math.in.h: Likewise.
16090         * lib/netdb.in.h: Likewise.
16091         * lib/netinet_in.in.h: Likewise.
16092         * lib/pty.in.h: Likewise.
16093         * lib/sched.in.h: Likewise.
16094         * lib/se-selinux.in.h: Likewise.
16095         * lib/search.in.h: Likewise.
16096         * lib/spawn.in.h: Likewise.
16097         * lib/stdarg.in.h: Likewise.
16098         * lib/stdint.in.h: Likewise.
16099         * lib/string.in.h: Likewise.
16100         * lib/strings.in.h: Likewise.
16101         * lib/sys_file.in.h: Likewise.
16102         * lib/sys_ioctl.in.h: Likewise.
16103         * lib/sys_time.in.h: Likewise.
16104         * lib/sys_times.in.h: Likewise.
16105         * lib/sys_utsname.in.h: Likewise.
16106         * lib/sys_wait.in.h: Likewise.
16107         * lib/sysexits.in.h: Likewise.
16108         * lib/wctype.in.h: Likewise.
16109
16110 2010-03-28  James Youngman  <jay@gnu.org>
16111
16112         save-cwd: don't leak a file descriptor when the caller execs.
16113         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
16114         saved file descriptor.
16115         * modules/save-cwd (Depends-on): Depend on cloexec.
16116
16117 2010-03-29  Bruno Haible  <bruno@clisp.org>
16118
16119         Remove vestiges of fts-lgpl module.
16120         * lib/fts_.h: Assume GNULIB_FTS is 1.
16121         * lib/fts.c: Likewise.
16122         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16123
16124 2010-03-28  Bruno Haible  <bruno@clisp.org>
16125
16126         Fix definition of tests witness macro.
16127         * gnulib-tool (func_import): Fix definition of witness macro.
16128
16129 2010-03-28  Bruno Haible  <bruno@clisp.org>
16130
16131         Fix ioctl's protoype on glibc systems.
16132         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
16133         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
16134         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
16135         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
16136         signature. If not, arrange to replace the ioctl function.
16137         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16138         REPLACE_IOCTL.
16139         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
16140         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
16141         Reported by Ludovic Courtès <ludo@gnu.org>.
16142
16143 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16144
16145         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
16146         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
16147         made it so grep -r --include=GLOB* ... did not work.
16148
16149 2010-03-26  Jim Meyering  <meyering@redhat.com>
16150             Eric Blake  <eblake@redhat.com>
16151
16152         maint.mk: prohibit use of test's -o and -a operators
16153         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
16154
16155 2010-03-28  Bruno Haible  <bruno@clisp.org>
16156
16157         Remove unused GNULIB_XYZ macro definitions.
16158         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
16159         invocation.
16160
16161 2010-03-28  Bruno Haible  <bruno@clisp.org>
16162
16163         Mark privileged tests modules.
16164         * modules/idpriv-drop-tests (Status): New section.
16165         * modules/idpriv-droptemp-tests (Status): New section.
16166
16167 2010-03-28  Bruno Haible  <bruno@clisp.org>
16168
16169         Split C++ tests into separate tests modules.
16170         * modules/dirent-c++-tests: New file, extracted from
16171         modules/dirent-tests.
16172         * modules/dirent-tests: Depend on it.
16173         * modules/fcntl-h-c++-tests: New file, extracted from
16174         modules/fcntl-h-tests.
16175         * modules/fcntl-h-tests: Depend on it.
16176         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
16177         * modules/glob-tests: Depend on it.
16178         * modules/iconv-h-c++-tests: New file, extracted from
16179         modules/iconv-h-tests.
16180         * modules/iconv-h-tests: Depend on it.
16181         * modules/langinfo-c++-tests: New file, extracted from
16182         modules/langinfo-tests.
16183         * modules/langinfo-tests: Depend on it.
16184         * modules/locale-c++-tests: New file, extracted from
16185         modules/locale-tests.
16186         * modules/locale-tests: Depend on it.
16187         * modules/math-c++-tests: New file, extracted from modules/math-tests.
16188         * modules/math-tests: Depend on it.
16189         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
16190         * modules/pty-tests: Depend on it.
16191         * modules/search-c++-tests: New file, extracted from
16192         modules/search-tests.
16193         * modules/search-tests: Depend on it.
16194         * modules/signal-c++-tests: New file, extracted from
16195         modules/signal-tests.
16196         * modules/signal-tests: Depend on it.
16197         * modules/spawn-c++-tests: New file, extracted from
16198         modules/spawn-tests.
16199         * modules/spawn-tests: Depend on it.
16200         * modules/stdio-c++-tests: New file, extracted from
16201         modules/stdio-tests.
16202         * modules/stdio-tests: Depend on it.
16203         * modules/stdlib-c++-tests: New file, extracted from
16204         modules/stdlib-tests.
16205         * modules/stdlib-tests: Depend on it.
16206         * modules/string-c++-tests: New file, extracted from
16207         modules/string-tests.
16208         * modules/string-tests: Depend on it.
16209         * modules/sys_ioctl-c++-tests: New file, extracted from
16210         modules/sys_ioctl-tests.
16211         * modules/sys_ioctl-tests: Depend on it.
16212         * modules/sys_select-c++-tests: New file, extracted from
16213         modules/sys_select-tests.
16214         * modules/sys_select-tests: Depend on it.
16215         * modules/sys_socket-c++-tests: New file, extracted from
16216         modules/sys_socket-tests.
16217         * modules/sys_socket-tests: Depend on it.
16218         * modules/sys_stat-c++-tests: New file, extracted from
16219         modules/sys_stat-tests.
16220         * modules/sys_stat-tests: Depend on it.
16221         * modules/sys_time-c++-tests: New file, extracted from
16222         modules/sys_time-tests.
16223         * modules/sys_time-tests: Depend on it.
16224         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16225         * modules/time-tests: Depend on it.
16226         * modules/unistd-c++-tests: New file, extracted from
16227         modules/unistd-tests.
16228         * modules/unistd-tests: Depend on it.
16229         * modules/wchar-c++-tests: New file, extracted from
16230         modules/wchar-tests.
16231         * modules/wchar-tests: Depend on it.
16232         * modules/wctype-c++-tests: New file, extracted from
16233         modules/wctype-tests.
16234         * modules/wctype-tests: Depend on it.
16235         Reported by Simon Josefsson.
16236
16237 2010-03-28  Bruno Haible  <bruno@clisp.org>
16238
16239         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16240         * gnulib-tool (func_exists_module): New function, extracted from
16241         func_verify_module.
16242         (func_verify_module): Use it.
16243         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16244         'foo' only if 'foo' exists.
16245         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16246         module.
16247
16248 2010-03-28  Bruno Haible  <bruno@clisp.org>
16249
16250         gnulib-tool: Add support for special categories of tests.
16251         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16252         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16253         (func_usage): Document them.
16254         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16255         inc_unportable_tests, inc_all_tests): New variables.
16256         (func_acceptable): Consider these variables.
16257         (func_modules_transitive_closure): Make it work when the 'Status' field
16258         consists of multiple words.
16259         (func_import): Store and restore the values of inc_cxx_tests,
16260         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16261         inc_all_tests in gnulib-comp.m4.
16262         (func_create_testdir): Set inc_all_tests to true.
16263         * doc/gnulib.texi (Extra tests modules): New section.
16264         Suggested by Jim Meyering.
16265
16266 2010-03-28  Bruno Haible  <bruno@clisp.org>
16267
16268         ansi-c++-opt: Allow turning off the C++ build by default.
16269         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
16270         gl_CXX_CHOICE_DEFAULT_NO is defined.
16271         Requested by Eric Blake.
16272
16273 2010-03-28  Bruno Haible  <bruno@clisp.org>
16274
16275         unistd: Avoid #define replacements in C++ mode.
16276         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16277         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16278         setsockopt, shutdown, select): In C++, attach a warning to the function
16279         if possible, rather than #defining the symbol to a dysfunctional alias.
16280         Reported by John W. Eaton <jwe@gnu.org>.
16281
16282 2010-03-28  Bruno Haible  <bruno@clisp.org>
16283
16284         Fix link errors on mingw.
16285         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
16286         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
16287         $(LIBSOCKET).
16288         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
16289         $(LIBSOCKET).
16290
16291 2010-03-28  Bruno Haible  <bruno@clisp.org>
16292             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16293
16294         lib-ignore: Determine different options for different compilers.
16295         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
16296         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
16297         Add comments.
16298         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
16299         * NEWS: Mention the change.
16300
16301 2010-03-27  Bruno Haible  <bruno@clisp.org>
16302
16303         Remove unused GNULIB_XYZ macro definitions.
16304         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16305         * modules/fseek (configure.ac): Likewise.
16306         * modules/ioctl (configure.ac): Likewise.
16307         * modules/open (configure.ac): Likewise.
16308         * modules/stdlib-safer (configure.ac): Likewise.
16309
16310 2010-03-27  Bruno Haible  <bruno@clisp.org>
16311
16312         Add a remark about certain modules.
16313         * modules/malloc (Comment): New section.
16314         * modules/realloc (Comment): Likewise.
16315         * modules/sigpipe (Comment): Likewise.
16316
16317 2010-03-27  Bruno Haible  <bruno@clisp.org>
16318
16319         Resolve conflict between the two kinds of module indicators.
16320         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16321         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16322         * modules/canonicalize (configure.ac): Invoke
16323         gl_MODULE_INDICATOR_FOR_TESTS.
16324         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16325         GNULIB_XYZ.
16326         * tests/test-dirent-c++.cc: Likewise.
16327         * tests/test-dirent-safer.c: Likewise.
16328         * tests/test-dup2.c: Likewise.
16329         * tests/test-fchdir.c: Likewise.
16330         * tests/test-fcntl-h-c++.cc: Likewise.
16331         * tests/test-getopt.c: Likewise.
16332         * tests/test-getopt.h: Likewise.
16333         * tests/test-langinfo-c++.cc: Likewise.
16334         * tests/test-locale-c++.cc: Likewise.
16335         * tests/test-math-c++.cc: Likewise.
16336         * tests/test-pty-c++.cc: Likewise.
16337         * tests/test-search-c++.cc: Likewise.
16338         * tests/test-signal-c++.cc: Likewise.
16339         * tests/test-spawn-c++.cc: Likewise.
16340         * tests/test-stdio-c++.cc: Likewise.
16341         * tests/test-stdlib-c++.cc: Likewise.
16342         * tests/test-string-c++.cc: Likewise.
16343         * tests/test-sys_ioctl-c++.cc: Likewise.
16344         * tests/test-sys_select-c++.cc: Likewise.
16345         * tests/test-sys_socket-c++.cc: Likewise.
16346         * tests/test-sys_stat-c++.cc: Likewise.
16347         * tests/test-sys_time-c++.cc: Likewise.
16348         * tests/test-time-c++.cc: Likewise.
16349         * tests/test-unistd-c++.cc: Likewise.
16350         * tests/test-wchar-c++.cc: Likewise.
16351         * tests/uninorm/test-u8-nfc.c: Likewise.
16352         * tests/uninorm/test-u8-nfd.c: Likewise.
16353         * tests/uninorm/test-u8-nfkc.c: Likewise.
16354         * tests/uninorm/test-u8-nfkd.c: Likewise.
16355         * tests/uninorm/test-u16-nfc.c: Likewise.
16356         * tests/uninorm/test-u16-nfd.c: Likewise.
16357         * tests/uninorm/test-u16-nfkc.c: Likewise.
16358         * tests/uninorm/test-u16-nfkd.c: Likewise.
16359         * tests/uninorm/test-u32-nfc.c: Likewise.
16360         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16361         * tests/uninorm/test-u32-nfd.c: Likewise.
16362         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16363         * tests/uninorm/test-u32-nfkc.c: Likewise.
16364         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16365         * tests/uninorm/test-u32-nfkd.c: Likewise.
16366         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16367         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16368
16369 2010-03-27  Bruno Haible  <bruno@clisp.org>
16370
16371         Distinguish two kinds of module indicators.
16372         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16373         gl_MODULE_INDICATOR.
16374         (gl_MODULE_INDICATOR): New macro.
16375         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16376         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16377         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16378         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16379         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16380         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16381         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16382         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16383         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16384         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16385         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16386         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16387         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16388         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16389         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16390         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16391         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16392         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16393         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16394         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16395         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16396         * modules/cloexec (configure.ac): Likewise.
16397         * modules/getopt-gnu (configure.ac): Likewise.
16398         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16399         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16400         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16401         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16402
16403 2010-03-27  Bruno Haible  <bruno@clisp.org>
16404
16405         New module description field 'Comment'.
16406         * gnulib-tool: New option --extract-comment.
16407         (func_usage): Document it.
16408         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16409         (func_get_comment): New function.
16410         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16411
16412 2010-03-27  Bruno Haible  <bruno@clisp.org>
16413
16414         Addendum to 2010-02-07 commit.
16415         * gnulib-tool (func_usage): Document --extract-applicability option.
16416
16417 2010-03-27  Bruno Haible  <bruno@clisp.org>
16418
16419         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16420         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16421         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16422         rather than link errors.
16423
16424 2010-03-27  Bruno Haible  <bruno@clisp.org>
16425
16426         Avoid side effects from tests-related modules on the compilation of lib.
16427         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16428         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16429         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16430         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16431         macro.
16432         (func_import): Define a witness macro. Assign it a value that depends
16433         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16434         tests-related modules.
16435         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16436         Reported by Jim Meyering.
16437
16438 2010-03-27  Bruno Haible  <bruno@clisp.org>
16439
16440         Factorize common .m4 code.
16441         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16442         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16443         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16444         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16445         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16446         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16447         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16448         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16449         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16450         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16451         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16452         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16453         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16454         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16455         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16456         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16457         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16458         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16459         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16460         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16461         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16462         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16463         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16464         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16465         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16466         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16467         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16468         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16469         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16470         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16471         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16472         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16473
16474 2010-03-27  Bruno Haible  <bruno@clisp.org>
16475
16476         Fix a compilation error on Cygwin with g++ >= 4.3.
16477         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
16478         if it is undefined or if we alias it to chmod.
16479         (lstat): Don't warn about the use of this function if it is undefined
16480         or if we alias it to stat.
16481         Reported by Simon Josefsson.
16482
16483 2010-03-27  Bruno Haible  <bruno@clisp.org>
16484
16485         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
16486         * modules/getlogin (configure.ac): Update.
16487
16488         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
16489         * modules/getlogin_r (configure.ac): Update.
16490
16491         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
16492         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
16493         * modules/inet_ntop (configure.ac): Update.
16494
16495         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
16496         * modules/inet_pton (configure.ac): Update.
16497
16498         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
16499         * modules/mbslen (configure.ac): Update.
16500
16501         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
16502         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
16503         * modules/forkpty (configure.ac): Update.
16504         * modules/openpty (configure.ac): Update.
16505
16506 2010-03-26  Simon Josefsson  <simon@josefsson.org>
16507
16508         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
16509         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
16510
16511 2010-03-25  Eric Blake  <eblake@redhat.com>
16512
16513         maint: use pragma consistently across replacement headers
16514         * lib/ctype.in.h (system_header): Hoist for consistent placement.
16515         * lib/dirent.in.h (system_header): Likewise.
16516         * lib/errno.in.h (system_header): Likewise.
16517         * lib/float.in.h (system_header): Likewise.
16518         * lib/getopt.in.h (system_header): Likewise.
16519         * lib/iconv.in.h (system_header): Likewise.
16520         * lib/inttypes.in.h (system_header): Likewise.
16521         * lib/langinfo.in.h (system_header): Likewise.
16522         * lib/locale.in.h (system_header): Likewise.
16523         * lib/math.in.h (system_header): Likewise.
16524         * lib/netdb.in.h (system_header): Likewise.
16525         * lib/netinet_in.in.h (system_header): Likewise.
16526         * lib/pty.in.h (system_header): Likewise.
16527         * lib/sched.in.h (system_header): Likewise.
16528         * lib/se-selinux.in.h (system_header): Likewise.
16529         * lib/search.in.h (system_header): Likewise.
16530         * lib/spawn.in.h (system_header): Likewise.
16531         * lib/stdarg.in.h (system_header): Likewise.
16532         * lib/stdint.in.h (system_header): Likewise.
16533         * lib/string.in.h (system_header): Likewise.
16534         * lib/strings.in.h (system_header): Likewise.
16535         * lib/sys_file.in.h (system_header): Likewise.
16536         * lib/sys_ioctl.in.h (system_header): Likewise.
16537         * lib/sys_socket.in.h (system_header): Likewise.
16538         * lib/sys_times.in.h (system_header): Likewise.
16539         * lib/sys_utsname.in.h (system_header): Likewise.
16540         * lib/sys_wait.in.h (system_header): Likewise.
16541         * lib/sysexits.in.h (system_header): Likewise.
16542         * lib/unistd.in.h (system_header): Likewise.
16543         * lib/wctype.in.h (system_header): Likewise.
16544
16545         arpa/inet: fix mingw compilation warning
16546         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
16547         Reported by Matthew Bolte.
16548
16549 2010-03-25  Bruno Haible  <bruno@clisp.org>
16550
16551         Avoid collision between gnulib wrapper and libintl wrapper.
16552         * lib/printf.c (printf): Don't define if a printf wrapper is already
16553         defined in intl/printf.c.
16554         Reported by Michel Boaventura <michel@michelboaventura.com>.
16555
16556 2010-03-25  Bruno Haible  <bruno@clisp.org>
16557
16558         Use ANSI C.
16559         * lib/readutmp.h (getutent): Provide ANSI C prototype.
16560
16561 2010-03-25  Bruno Haible  <bruno@clisp.org>
16562
16563         Minor formatting changes.
16564         * lib/acosl.c: Insert space before function argument list.
16565         * lib/argz.c: Likewise.
16566         * lib/asinl.c: Likewise.
16567         * lib/expl.c: Likewise.
16568         * lib/gen-uni-tables.c: Likewise.
16569         * lib/gettext.h: Likewise.
16570         * lib/glthread/lock.h: Likewise.
16571         * lib/tanl.c: Likewise.
16572         * lib/uniname/uniname.c: Likewise.
16573         * tests/test-idpriv-drop.c: Likewise.
16574         * tests/test-idpriv-droptemp.c: Likewise.
16575         * tests/test-lock.c: Likewise.
16576         * tests/test-tls.c: Likewise.
16577         * lib/argp-help.c: Insert space before function-like macro argument
16578         list.
16579         * lib/memcmp.c: Likewise.
16580         * tests/test-base64.c: Likewise.
16581         * lib/localename.c: Insert space before sizeof's argument list.
16582         * lib/safe-alloc.h: Likewise.
16583         * lib/file-set.h: Insert space before macro argument list.
16584         * tests/test-argp.c: Likewise.
16585         * lib/argp-namefrob.h: Insert space before function parameter list.
16586         * lib/getaddrinfo.c: Likewise.
16587         * lib/netdb.in.h: Likewise.
16588         * lib/parse-duration.h: Likewise.
16589         * lib/parse-duration.c: Likewise.
16590         * lib/poll.c: Likewise.
16591         * lib/select.c: Likewise.
16592         * lib/trim.h: Likewise.
16593         * tests/test-usleep.c: Likewise.
16594         * lib/ldexpl.c: Insert space before function parameter list and before
16595         function argument list.
16596         * lib/logl.c: Likewise.
16597         * lib/sqrtl.c: Likewise.
16598         * lib/trim.c: Likewise.
16599         * lib/cosl.c: Use GNU style indentation. Insert space before function
16600         argument list.
16601         * lib/sinl.c: Likewise.
16602         * lib/tsearch.c: Insert space after 'for'.
16603         Reported by Jim Meyering.
16604
16605 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
16606
16607         * maint.mk (sc_Wundef_boolean): Check for the presence of the
16608         config header before grepping, as it's not present before
16609         autoreconf/configure are run.  Reported by Simon Josefsson.
16610
16611 2010-03-23  Bruno Haible  <bruno@clisp.org>
16612
16613         pt_chown: Make it work with automake < 1.11.
16614         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
16615         Reported by Simon Josefsson.
16616
16617 2010-03-23  Bruno Haible  <bruno@clisp.org>
16618
16619         pt_chown: Don't depend on GPLed modules.
16620         * lib/pt_chown.c: Don't include idpriv.h.
16621         (main): Don't drop privileges.
16622         * modules/pt_chown (Depends-on): Remove idpriv-drop.
16623         Reported by Simon Josefsson.
16624
16625 2010-03-24  Simon Josefsson  <simon@josefsson.org>
16626
16627         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
16628         suggestions from karl@freefriends.org (Karl Berry).
16629
16630 2010-03-22  Eric Blake  <eblake@redhat.com>
16631
16632         gethostname: further tweaks
16633         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
16634         are overriding gethostname.
16635         Suggested by Bruno Haible.
16636
16637 2010-03-21  Bruno Haible  <bruno@clisp.org>
16638
16639         Fix comments.
16640         * lib/forkpty.c (rpl_forkpty): Fix comment.
16641         * lib/openpty.c (rpl_openpty): Likewise.
16642         Reported by Eric Blake.
16643
16644 2010-03-22  Eric Blake  <eblake@redhat.com>
16645
16646         gethostname: fix build on mingw
16647         * lib/unistd.in.h (includes): Work around fact that mingw
16648         <winsock2.h> re-includes <unistd.h>, by avoiding any
16649         redeclarations if we are being included by <winsock2.h>.
16650         Reported by Matthias Bolte.
16651
16652 2010-03-21  Bruno Haible  <bruno@clisp.org>
16653
16654         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16655         * lib/forkpty.c (forkpty): New replacement function, from glibc with
16656         modifications.
16657         * lib/pty.in.h (forkpty): Update declaration. Add comments.
16658         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
16659         provide the replacement.
16660         * modules/forkpty (Depends-on): Add openpty, login_tty.
16661         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
16662         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
16663         * doc/glibc-functions/forkpty.texi: More supported platforms.
16664         * config/srclist.txt: Add forkpty.c (commented).
16665
16666 2010-03-21  Bruno Haible  <bruno@clisp.org>
16667
16668         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
16669         (Makefile.am): Verify that PTY_LIB is defined.
16670
16671         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
16672
16673 2010-03-21  Bruno Haible  <bruno@clisp.org>
16674
16675         Tests for module 'login_tty'.
16676         * modules/login_tty-tests: New file.
16677         * tests/test-login_tty.c: New file.
16678
16679         New module 'login_tty'.
16680         * lib/login_tty.c: New file.
16681         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
16682         * modules/login_tty: New file.
16683         * doc/glibc-functions/login_tty.texi: Mention the new module.
16684
16685 2010-03-21  Bruno Haible  <bruno@clisp.org>
16686
16687         login_tty: Documentation.
16688         * doc/glibc-functions/login_tty.texi: New file.
16689         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
16690
16691 2010-03-21  Bruno Haible  <bruno@clisp.org>
16692
16693         pty: Consistent macro naming.
16694         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
16695         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
16696         * modules/pty (configure.ac): Update.
16697
16698 2010-03-21  Bruno Haible  <bruno@clisp.org>
16699
16700         Tests for openpty: Make stricter.
16701         * tests/test-openpty.c (main): Add test of canonical processing and
16702         erase.
16703         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
16704
16705         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16706         * lib/openpty.c (openpty): New replacement function.
16707         * lib/pty.in.h: Include <termios.h>.
16708         (openpty): Update declaration. Add comments.
16709         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
16710         is not declared, arrange to provide the replacement. Check for _getpty
16711         and posix_openpt.
16712         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
16713         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
16714         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
16715         * modules/pty-tests (test_pty_c___LDADD): New variable.
16716         * doc/glibc-functions/openpty.texi: More supported platforms.
16717
16718 2010-03-21  Bruno Haible  <bruno@clisp.org>
16719
16720         setenv: Tweaks.
16721         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
16722         the test program.
16723         * doc/posix-functions/setenv.texi: Update platforms list.
16724
16725 2010-03-21  Bruno Haible  <bruno@clisp.org>
16726
16727         New module 'unlockpt'.
16728         * lib/unlockpt.c: New file, from glibc with modifications.
16729         * m4/unlockpt.m4: New file.
16730         * modules/unlockpt: New file.
16731         * lib/stdlib.in.h (unlockpt): New declaration.
16732         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
16733         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
16734         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
16735         HAVE_UNLOCKPT.
16736         * doc/posix-functions/unlockpt.texi: Mention the new module.
16737         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
16738         * config/srclist.txt: Add unlockpt.c (commented).
16739
16740 2010-03-21  Jim Meyering  <meyering@redhat.com>
16741
16742         maint.mk: prohibit inclusion of "intprops.h" without use
16743         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
16744
16745 2010-03-21  Bruno Haible  <bruno@clisp.org>
16746
16747         New module 'grantpt'.
16748         * lib/grantpt.c: New file, from glibc with modifications.
16749         * m4/grantpt.m4: New file.
16750         * modules/grantpt: New file.
16751         * lib/stdlib.in.h (grantpt): New declaration.
16752         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
16753         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
16754         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
16755         HAVE_GRANTPT.
16756         * doc/posix-functions/grantpt.texi: Mention the new module.
16757         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
16758         * config/srclist.txt: Add grantpt.c (commented).
16759
16760 2010-03-21  Bruno Haible  <bruno@clisp.org>
16761
16762         New module 'pt_chown'.
16763         * lib/pt_chown.c: New file, from glibc with modifications.
16764         * lib/pty-private.h: New file, from glibc with modifications.
16765         * modules/pt_chown: New file.
16766         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
16767
16768 2010-03-21  Bruno Haible  <bruno@clisp.org>
16769
16770         Tests for module 'ptsname'.
16771         * modules/ptsname-tests: New file.
16772         * tests/test-ptsname.c: New file.
16773
16774         New module 'ptsname'.
16775         * lib/ptsname.c: New file, from glibc with modifications.
16776         * m4/ptsname.m4: New file.
16777         * modules/ptsname: New file.
16778         * lib/stdlib.in.h (ptsname): New declaration.
16779         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
16780         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
16781         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
16782         HAVE_PTSNAME.
16783         * doc/posix-functions/ptsname.texi: Mention the new module.
16784         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
16785         * config/srclist.txt: Add ptsname.c (commented).
16786
16787 2010-03-21  Bruno Haible  <bruno@clisp.org>
16788
16789         Tests for module 'ttyname_r'.
16790         * modules/ttyname_r-tests: New file.
16791         * tests/test-ttyname_r.c: New file.
16792
16793         New module 'ttyname_r'.
16794         * lib/ttyname_r.c: New file.
16795         * m4/ttyname_r.m4: New file.
16796         * modules/ttyname_r: New file.
16797         * lib/unistd.in.h (ttyname_r): New declaration.
16798         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
16799         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
16800         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
16801         HAVE_TTYNAME_R.
16802         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
16803         * doc/posix-functions/ttyname_r.texi: Mention the new module.
16804
16805 2010-03-20  Bruno Haible  <bruno@clisp.org>
16806
16807         signal: Undefine macro definitions in C++ mode.
16808         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
16809         sigfillset): Undefine macro definitions from the system header in C++
16810         mode.
16811         Reported by John W. Eaton <jwe@gnu.org>.
16812
16813 2010-03-20  Bruno Haible  <bruno@clisp.org>
16814
16815         Ensure no #include statements inside extern "C" { ... }.
16816         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
16817         contain #include statements.
16818         * lib/time.in.h: Likewise.
16819
16820 2010-03-20  Bruno Haible  <bruno@clisp.org>
16821
16822         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
16823         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
16824         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
16825         Reported by John W. Eaton <jwe@gnu.org>.
16826
16827 2010-03-20  Bruno Haible  <bruno@clisp.org>
16828
16829         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
16830         Reported by Jim Meyering.
16831
16832 2010-03-20  Bruno Haible  <bruno@clisp.org>
16833
16834         pipe: Set errno upon failure.
16835         * lib/pipe.h: Specify that when -1 is returned, errno is set.
16836         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
16837         errno value in error message.
16838
16839 2010-03-20  Bruno Haible  <bruno@clisp.org>
16840             Jim Meyering  <meyering@redhat.com>
16841
16842         lchown: Avoid "unused variable" warning.
16843         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
16844
16845 2010-03-20  Bruno Haible  <bruno@clisp.org>
16846
16847         Work around unlink() bug on MacOS X 10.5.6.
16848         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
16849         attempting to unlink a parent directory.
16850         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
16851         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
16852         activate for the replacement function.
16853         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
16854
16855 2010-03-20  Bruno Haible  <bruno@clisp.org>
16856
16857         Fix link errors on Solaris 8.
16858         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
16859         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
16860
16861 2010-03-19  Jim Meyering  <meyering@redhat.com>
16862
16863         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
16864         The _LIBC implementation of build_range_exp correctly honors the
16865         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
16866         However, the non-_LIBC implementation would ignore that syntax-bit
16867         flag and return REG_ERANGE unconditionally.
16868         This change makes it honor that flag.
16869         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
16870         Make two pointer parameters "const".
16871         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
16872         (parse_bracket_exp): Update caller.
16873
16874         regex.m4: correct the reversed range endpoint ([b-a]) test
16875         * m4/regex.m4: When requiring that [b-a] evoke failure,
16876         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
16877         test pass once again for x86-based systems.
16878
16879 2010-03-19  Bruno Haible  <bruno@clisp.org>
16880
16881         scandir: Fix link error on Solaris 8.
16882         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
16883         macros.
16884
16885 2010-03-19  Bruno Haible  <bruno@clisp.org>
16886
16887         getusershell: Fix documentation.
16888         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
16889         module.
16890         * doc/glibc-functions/setusershell.texi: Likewise.
16891
16892         getusershell: Provide declaration, missing on Solaris 9.
16893         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
16894         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
16895         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
16896         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
16897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16898         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
16899         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
16900         HAVE_GETUSERSHELL.
16901         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
16902
16903 2010-03-19  Bruno Haible  <bruno@clisp.org>
16904
16905         wctype: Provide iswblank function.
16906         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
16907         exists and is fine.
16908         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
16909         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
16910         * tests/test-wctype.c (main): Re-enable the iswblank tests.
16911         * doc/posix-functions/iswblank.texi: Update.
16912
16913 2010-03-19  Bruno Haible  <bruno@clisp.org>
16914
16915         Tests of module 'pty' in C++ mode.
16916         * modules/pty-tests: New file.
16917         * tests/test-pty-c++.cc: New file.
16918         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16919
16920 2010-03-19  Eric Blake  <eblake@redhat.com>
16921
16922         logb: fix documentation
16923         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
16924         1.5 declaration bug.
16925
16926         forkpty, openpty: prefer glibc's const-safe prototype
16927         * lib/forkpty.c (rpl_forkpty): New file.
16928         * lib/openpty.c (rpl_openpty): Likewise.
16929         * modules/forkpty (Files): Distribute it.
16930         * modules/openpty (Files): Likewise.
16931         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
16932         check...
16933         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
16934         replacement for for non-const BSD signature.
16935         * modules/pty (Makefile.am): Substitute witnesses.
16936         * lib/pty.in.h (forkpty, openpty): Declare replacements.
16937         * tests/test-forkpty.c: Update signature check.
16938         * tests/test-openpty.c: Likewise.
16939         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
16940         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16941
16942         forkpty, openpty: split functions into new modules
16943         * modules/pty (Makefile.am): Substitute new witnesses.
16944         (Libraries): Move library detection...
16945         * modules/forkpty: ...into new module.
16946         * modules/openpty: Another new module.
16947         * modules/pty-tests: Rename and split...
16948         * modules/forkpty-tests: ...to this...
16949         * modules/openpty-tests: ...and this.
16950         * tests/test-pty.c: Rename and split...
16951         * tests/test-forkpty.c: ...to this...
16952         * tests/test-openpty.c: ...and this.
16953         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
16954         (gl_PTY): Split library searching...
16955         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
16956         (gl_FORKPTY, gl_OPENPTY): New macros.
16957         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
16958         * NEWS: Mention the split.
16959         * MODULES.html.sh (Misc): Document the modules.
16960         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
16961         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16962
16963         pty: improve replacement header
16964         * lib/pty.in.h: New file.
16965         * modules/pty (Files): Ship it.
16966         (Makefile.am): Always build replacement.
16967         * m4/pty.m4: Rename...
16968         * m4/pty_h.m4: ...to this.
16969         (gl_PTY): Modernize setting of witness macros; update check of
16970         forkpty to take proper advantage of cache.
16971         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
16972
16973         getopt: avoid compiler warning
16974         * lib/getopt.c (attribute_hidden): Remove unused macro.
16975
16976 2010-03-18  Bruno Haible  <bruno@clisp.org>
16977
16978         Fix link errors on Solaris 8.
16979         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
16980         * modules/search-tests (test_search_c___LDADD): Likewise.
16981         * modules/signal-tests (test_signal_c___LDADD): Likewise.
16982         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
16983         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
16984         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
16985         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
16986         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
16987         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
16988
16989 2010-03-18  Bruno Haible  <bruno@clisp.org>
16990
16991         Fix bug introduced on 2010-03-14.
16992         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
16993         (gl_SPAWN_H): Require it.
16994         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
16995         Reported by Simon Josefsson.
16996
16997 2010-03-18  Bruno Haible  <bruno@clisp.org>
16998
16999         Fix typo introduced on 2009-12-31.
17000         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
17001         posix_spawn_file_actions_adddup2.
17002
17003 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
17004         and Eric Blake  <eblake@redhat.com>
17005
17006         test-vc-list-files-git: make more robust
17007         * tests/test-vc-list-files-git.sh: Unset problematic environment
17008         variables.  Chain commands together.
17009
17010 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
17011
17012         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
17013         `AC_CHECK_DECL' invocation.
17014
17015 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
17016
17017         * lib/inttostr.c (inttostr): Make sure the invocation of verify
17018         appears before executable statements. Suggested by Petr Sumbera
17019         <Petr.Sumbera@Sun.COM>.
17020
17021 2010-03-14  Bruno Haible  <bruno@clisp.org>
17022
17023         * tests/test-flock.c (test_exclusive): Comment out a test that causes
17024         portability problems. Instead use a simpler test.
17025         (main): Check that invalid arguments are rejected only on Linux.
17026
17027 2010-03-14  Bruno Haible  <bruno@clisp.org>
17028
17029         Fix bug introduced on 2009-12-31.
17030         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17031         gl_PREREQ_SYS_H_WINSOCK2 always.
17032         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
17033         SYS_SOCKET_H variable.
17034         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
17035         Update comments.
17036         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
17037         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17038         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17039         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17040         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
17041
17042 2010-03-14  Bruno Haible  <bruno@clisp.org>
17043
17044         Fix values returned by sinl, cosl.
17045         * lib/trigl.h: Add specification comments.
17046         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
17047         that combines the values from the precomputed table with the values of
17048         the Chebyshev polynomials.
17049
17050 2010-03-14  Bruno Haible  <bruno@clisp.org>
17051
17052         Fix compilation error when modules 'posix_spawn[p]' are not used.
17053         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
17054         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
17055
17056 2010-03-14  Bruno Haible  <bruno@clisp.org>
17057
17058         Fix compilation error on mingw when module 'time_r' is not used.
17059         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
17060         is 1.
17061         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
17062         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17063         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
17064         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
17065
17066 2010-03-14  Bruno Haible  <bruno@clisp.org>
17067
17068         Fix compilation error with Sun C.
17069         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
17070         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
17071         instead of GCC specific ULONG_LONG_MAX.
17072         * lib/xstrtoll.c: Likewise.
17073         * lib/xstrtoull.c: Likewise.
17074
17075 2010-03-13  Bruno Haible  <bruno@clisp.org>
17076
17077         Allow the user to disable C++ code and tests.
17078         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
17079         (gl_PROG_ANSI_CXX): Require it.
17080
17081 2010-03-13  Bruno Haible  <bruno@clisp.org>
17082
17083         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
17084         cases.
17085
17086 2010-03-13  Bruno Haible  <bruno@clisp.org>
17087
17088         Test that gnulib does not break the standard C++ headers.
17089         * tests/test-locale-c++2.cc: New file.
17090         * modules/locale-tests (Files): Add it.
17091         (Makefile.am): Compile it for test-locale-c++.
17092         * tests/test-math-c++2.cc: New file.
17093         * modules/math-tests (Files): Add it.
17094         (Makefile.am): Compile it for test-math-c++.
17095         * tests/test-signal-c++2.cc: New file.
17096         * modules/signal-tests (Files): Add it.
17097         (Makefile.am): Compile it for test-signal-c++.
17098         * tests/test-stdio-c++2.cc: New file.
17099         * modules/stdio-tests (Files): Add it.
17100         (Makefile.am): Compile it for test-stdio-c++.
17101         * tests/test-stdlib-c++2.cc: New file.
17102         * modules/stdlib-tests (Files): Add it.
17103         (Makefile.am): Compile it for test-stdlib-c++.
17104         * tests/test-string-c++2.cc: New file.
17105         * modules/string-tests (Files): Add it.
17106         (Makefile.am): Compile it for test-string-c++.
17107         * tests/test-time-c++2.cc: New file.
17108         * modules/time-tests (Files): Add it.
17109         (Makefile.am): Compile it for test-time-c++.
17110         Reported by John W. Eaton <jwe@gnu.org>.
17111
17112 2010-03-13  Bruno Haible  <bruno@clisp.org>
17113
17114         * gnulib-tool (func_usage): Clarify which options are available for
17115         --create-testdir and --create-megatestdir.
17116
17117 2010-03-13  Bruno Haible  <bruno@clisp.org>
17118
17119         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
17120         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
17121         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
17122         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17123         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
17124         when appropriate.
17125         Reported by Jim Meyering.
17126
17127 2010-03-12  Simon Josefsson  <simon@josefsson.org>
17128
17129         * gnulib-tool (func_import): Explain origin of code.
17130
17131 2010-03-12  Bruno Haible  <bruno@clisp.org>
17132
17133         Fix problem with automake's definition of CXXLINK.
17134         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
17135         Reported by Simon Josefsson and Ludovic Courtès.
17136
17137 2010-03-12  Bruno Haible  <bruno@clisp.org>
17138
17139         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
17140         stable releases.
17141
17142 2010-03-11  Bruno Haible  <bruno@clisp.org>
17143
17144         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
17145         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
17146         whether the system provides one variant or multiple variants of the
17147         function.
17148         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
17149         C++ compilers.
17150         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
17151         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
17152         Reported by Jim Meyering.
17153
17154 2010-03-09  Simon Josefsson  <simon@josefsson.org>
17155
17156         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
17157
17158 2010-03-08  Bruno Haible  <bruno@clisp.org>
17159
17160         gnulib-tool: Add support for --libtool in --create-testdir.
17161         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
17162         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
17163
17164 2010-03-08  Eric Blake  <eblake@redhat.com>
17165
17166         gnulib-tool.texi: mention possibility of git submodule
17167         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
17168         submodules.
17169         * doc/.gitignore: Ignore another generated file.
17170
17171 2010-03-08  Karl Berry  <karl@gnu.org>
17172
17173         * doc/gnulib-tool.texi (VCS Issues): Mention third option
17174         of committing gnulib files while skipping others.
17175
17176 2010-03-07  Bruno Haible  <bruno@clisp.org>
17177
17178         Tests of module 'wctype' in C++ mode.
17179         * tests/test-wctype-c++.cc: New file.
17180         * modules/wctype-tests (Files): Add it and tests/signature.h.
17181         (Depends-on): Add ansi-c++-opt.
17182         (Makefile.am): Arrange to compile and run test-wctype-c++.
17183
17184         Tests of module 'wchar' in C++ mode.
17185         * tests/test-wchar-c++.cc: New file.
17186         * modules/wchar-tests (Files): Add it and tests/signature.h.
17187         (Depends-on): Add ansi-c++-opt.
17188         (Makefile.am): Arrange to compile and run test-wchar-c++.
17189         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17190         gl_MODULE_INDICATOR.
17191
17192         Tests of module 'unistd' in C++ mode.
17193         * tests/test-unistd-c++.cc: New file.
17194         * modules/unistd-tests (Files): Add it and tests/signature.h.
17195         (Depends-on): Add ansi-c++-opt.
17196         (Makefile.am): Arrange to compile and run test-unistd-c++.
17197         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17198         gl_MODULE_INDICATOR.
17199
17200         Tests of module 'time' in C++ mode.
17201         * tests/test-time-c++.cc: New file.
17202         * modules/time-tests (Files): Add it and tests/signature.h.
17203         (Depends-on): Add ansi-c++-opt.
17204         (Makefile.am): Arrange to compile and run test-time-c++.
17205         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17206
17207         Tests of module 'sys_time' in C++ mode.
17208         * tests/test-sys_time-c++.cc: New file.
17209         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17210         (Depends-on): Add ansi-c++-opt.
17211         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17212         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17213         gl_MODULE_INDICATOR.
17214
17215         Tests of module 'sys_stat' in C++ mode.
17216         * tests/test-sys_stat-c++.cc: New file.
17217         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17218         (Depends-on): Add ansi-c++-opt.
17219         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17220         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17221         gl_MODULE_INDICATOR.
17222
17223         Tests of module 'sys_socket' in C++ mode.
17224         * tests/test-sys_socket-c++.cc: New file.
17225         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17226         (Depends-on): Add ansi-c++-opt.
17227         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17228         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17229         gl_MODULE_INDICATOR.
17230
17231         Tests of module 'sys_select' in C++ mode.
17232         * tests/test-sys_select-c++.cc: New file.
17233         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17234         (Depends-on): Add ansi-c++-opt.
17235         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17236         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17237         gl_MODULE_INDICATOR.
17238
17239         Tests of module 'sys_ioctl' in C++ mode.
17240         * tests/test-sys_ioctl-c++.cc: New file.
17241         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17242         (Depends-on): Add ansi-c++-opt.
17243         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17244         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17245         gl_MODULE_INDICATOR.
17246
17247         Tests of module 'string' in C++ mode.
17248         * tests/test-string-c++.cc: New file.
17249         * modules/string-tests (Files): Add it and tests/signature.h.
17250         (Depends-on): Add ansi-c++-opt.
17251         (Makefile.am): Arrange to compile and run test-string-c++.
17252         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17253         gl_MODULE_INDICATOR.
17254
17255         Tests of module 'stdlib' in C++ mode.
17256         * tests/test-stdlib-c++.cc: New file.
17257         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17258         (Depends-on): Add ansi-c++-opt.
17259         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17260         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17261         gl_MODULE_INDICATOR.
17262
17263         Tests of module 'stdio' in C++ mode.
17264         * tests/test-stdio-c++.cc: New file.
17265         * modules/stdio-tests (Files): Add it and tests/signature.h.
17266         (Depends-on): Add ansi-c++-opt.
17267         (Makefile.am): Arrange to compile and run test-stdio-c++.
17268         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
17269         gl_MODULE_INDICATOR.
17270
17271         Tests of module 'spawn' in C++ mode.
17272         * tests/test-spawn-c++.cc: New file.
17273         * modules/spawn-tests (Files): Add it and tests/signature.h.
17274         (Depends-on): Add ansi-c++-opt.
17275         (Makefile.am): Arrange to compile and run test-spawn-c++.
17276         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
17277         gl_MODULE_INDICATOR.
17278
17279         Tests of module 'signal' in C++ mode.
17280         * tests/test-signal-c++.cc: New file.
17281         * modules/signal-tests (Files): Add it and tests/signature.h.
17282         (Depends-on): Add ansi-c++-opt.
17283         (Makefile.am): Arrange to compile and run test-signal-c++.
17284         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
17285         gl_MODULE_INDICATOR.
17286
17287         Tests of module 'search' in C++ mode.
17288         * tests/test-search-c++.cc: New file.
17289         * modules/search-tests (Files): Add it and tests/signature.h.
17290         (Depends-on): Add ansi-c++-opt.
17291         (Makefile.am): Arrange to compile and run test-search-c++.
17292         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
17293         gl_MODULE_INDICATOR.
17294
17295         Tests of module 'math' in C++ mode.
17296         * tests/test-math-c++.cc: New file.
17297         * modules/math-tests (Files): Add it and tests/signature.h.
17298         (Depends-on): Add ansi-c++-opt.
17299         (Makefile.am): Arrange to compile and run test-math-c++.
17300         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17301
17302         Tests of module 'locale' in C++ mode.
17303         * tests/test-locale-c++.cc: New file.
17304         * modules/locale-tests (Files): Add it and tests/signature.h.
17305         (Depends-on): Add ansi-c++-opt.
17306         (Makefile.am): Arrange to compile and run test-locale-c++.
17307         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
17308         gl_MODULE_INDICATOR.
17309
17310         Tests of module 'langinfo' in C++ mode.
17311         * tests/test-langinfo-c++.cc: New file.
17312         * modules/langinfo-tests (Files): Add it and tests/signature.h.
17313         (Depends-on): Add ansi-c++-opt.
17314         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17315         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17316         gl_MODULE_INDICATOR.
17317
17318         Tests of module 'iconv-h' in C++ mode.
17319         * tests/test-iconv-h-c++.cc: New file.
17320         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17321         (Depends-on): Add ansi-c++-opt.
17322         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17323
17324         Tests of module 'glob' in C++ mode.
17325         * tests/test-glob-c++.cc: New file.
17326         * modules/glob-tests (Files): Add it.
17327         (Depends-on): Add ansi-c++-opt.
17328         (Makefile.am): Arrange to compile and run test-glob-c++.
17329
17330         Tests of module 'fcntl-h' in C++ mode.
17331         * tests/test-fcntl-h-c++.cc: New file.
17332         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17333         (Depends-on): Add ansi-c++-opt.
17334         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17335         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17336         gl_MODULE_INDICATOR.
17337
17338         Tests of module 'dirent' in C++ mode.
17339         * tests/test-dirent-c++.cc: New file.
17340         * modules/dirent-tests (Files): Add it and tests/signature.h.
17341         (Depends-on): Add ansi-c++-opt.
17342         (Makefile.am): Arrange to compile and run test-dirent-c++.
17343         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17344         gl_MODULE_INDICATOR.
17345
17346         New module 'ansi-c++-opt'.
17347         * modules/ansi-c++-opt: New file.
17348         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17349
17350         Document C++ namespace mode.
17351         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17352
17353         wctype: Avoid #define replacements in C++ mode.
17354         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17355         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17356         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17357         In C++, define a namespaced alias symbol.
17358         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17359         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17360         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17361         rule.
17362
17363         wchar: Avoid #define replacements in C++ mode.
17364         * lib/wchar.in.h: Include c++defs.h.
17365         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17366         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17367         symbol.
17368         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17369         * modules/wchar (Depends-on): Add c++defs.
17370         (Makefile.am): Update wchar.h rule.
17371
17372         unistd: Avoid #define replacements in C++ mode.
17373         * lib/unistd.in.h: Include c++defs.h.
17374         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17375         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17376         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17377         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17378         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17379         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17380         symbol.
17381         (environ): Update.
17382         * modules/unistd (Depends-on): Add c++defs.
17383         (Makefile.am): Update unistd.h rule.
17384
17385         time: Avoid #define replacements in C++ mode.
17386         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17387         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17388         define a namespaced alias symbol.
17389         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17390         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17391         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17392         * modules/time (Depends-on): Add c++defs, warn-on-use.
17393         (Makefile.am): Update time.h rule.
17394         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17395         * modules/nanosleep (configure.ac): Likewise.
17396         * modules/strptime (configure.ac): Likewise.
17397         * modules/timegm (configure.ac): Likewise.
17398
17399         sys_time: Avoid #define replacements in C++ mode.
17400         * lib/sys_time.in.h: Include c++defs.h.
17401         (gettimeofday): In C++, define a namespaced alias symbol.
17402         * modules/sys_time (Depends-on): Add c++defs.
17403         (Makefile.am): Update sys/time.h rule.
17404
17405         sys_stat: Avoid #define replacements in C++ mode.
17406         * lib/sys_stat.in.h: Include c++defs.h.
17407         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17408         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17409         namespaced alias symbol.
17410         In C++, define a namespaced alias symbol.
17411         * modules/sys_stat (Depends-on): Add c++defs.
17412         (Makefile.am): Update sys/stat.h rule.
17413
17414         sys_socket: Avoid #define replacements in C++ mode.
17415         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17416         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17417         definitions also when the system has a <sys/socket.h>.
17418         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17419         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17420         In C++, define a namespaced alias symbol.
17421         * modules/sys_socket (Depends-on): Add c++defs.
17422         (Makefile.am): Update sys/socket.h rule.
17423
17424         sys_select: Avoid #define replacements in C++ mode.
17425         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17426         definitions also when the system has a <sys/select.h>.
17427         (select): In C++, define a namespaced alias symbol.
17428         * modules/sys_select (Depends-on): Add c++defs.
17429         (Makefile.am): Update sys/select.h rule.
17430
17431         sys_ioctl: Avoid #define replacements in C++ mode.
17432         * lib/sys_ioctl.in.h: Include c++defs.h.
17433         (ioctl): In C++, define a namespaced alias symbol.
17434         * modules/sys_ioctl (Depends-on): Add c++defs.
17435         (Makefile.am): Update sys/ioctl.h rule.
17436
17437         string: Avoid #define replacements in C++ mode.
17438         * lib/string.in.h: Include c++defs.h.
17439         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17440         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17441         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17442         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17443         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17444         * modules/string (Depends-on): Add c++defs.
17445         (Makefile.am): Update string.h rule.
17446
17447         stdlib: Avoid #define replacements in C++ mode.
17448         * lib/stdlib.in.h: Include c++defs.h.
17449         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17450         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17451         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17452         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17453         symbol.
17454         * modules/stdlib (Depends-on): Add c++defs.
17455         (Makefile.am): Update stdlib.h rule.
17456
17457         stdio: Avoid #define replacements in C++ mode.
17458         * lib/stdio.in.h: Include c++defs.h.
17459         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17460         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17461         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17462         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17463         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17464         namespaced alias symbol.
17465         * modules/stdio (Depends-on): Add c++defs.
17466         (Makefile.am): Update stdio.h rule.
17467
17468         spawn: Avoid #define replacements in C++ mode.
17469         * lib/spawn.in.h: Include c++defs.h.
17470         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17471         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17472         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17473         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17474         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17475         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17476         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17477         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17478         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17479         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17480         In C++, define a namespaced alias symbol.
17481         * modules/spawn (Depends-on): Add c++defs.
17482         (Makefile.am): Update spawn.h rule.
17483
17484         signal: Avoid #define replacements in C++ mode.
17485         * lib/signal.in.h: Include c++defs.h.
17486         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17487         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
17488         namespaced alias symbol.
17489         * modules/signal (Depends-on): Add c++defs.
17490         (Makefile.am): Update signal.h rule.
17491
17492         search: Avoid #define replacements in C++ mode.
17493         * lib/search.in.h: Include c++defs.h.
17494         (_gl_search_compar_fn, _gl_search_action_fn): New types.
17495         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
17496         symbol.
17497         * modules/search (Depends-on): Add c++defs.
17498         (Makefile.am): Update search.h rule.
17499
17500         math: Avoid #define replacements in C++ mode.
17501         * lib/math.in.h: Include c++defs.h.
17502         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
17503         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
17504         trunc, truncl): In C++, define a namespaced alias symbol.
17505         * modules/math (Depends-on): Add c++defs.
17506         (Makefile.am): Update math.h rule.
17507
17508         locale: Avoid #define replacements in C++ mode.
17509         * lib/locale.in.h: Include c++defs.h.
17510         (duplocale): In C++, define a namespaced alias symbol.
17511         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
17512         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
17513         * modules/locale (Depends-on): Add c++defs.
17514         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
17515
17516         langinfo: Avoid #define replacements in C++ mode.
17517         * lib/langinfo.in.h: Include c++defs.h.
17518         (nl_langinfo): In C++, define a namespaced alias symbol.
17519         * modules/langinfo (Depends-on): Add c++defs.
17520         (Makefile.am): Update langinfo.h rule.
17521
17522         iconv-h: Avoid #define replacements in C++ mode.
17523         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
17524         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
17525         symbol.
17526         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17527         whenever iconv is present.
17528         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
17529         (Makefile.am): Update iconv.h rule.
17530
17531         glob: Avoid #define replacements in C++ mode.
17532         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
17533         (_gl_glob_errfunc_fn): New type.
17534         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
17535         symbol.
17536         * modules/glob (Depends-on): Add c++defs, warn-on-use.
17537         (Makefile.am): Update glob.h rule.
17538
17539         fcntl-h: Avoid #define replacements in C++ mode.
17540         * lib/fcntl.in.h: Include c++defs.h.
17541         (fcntl, open, openat): In C++, define a namespaced alias symbol.
17542         * modules/fcntl-h (Depends-on): Add c++defs.
17543         (Makefile.am): Update fcntl.h rule.
17544
17545         dirent: Avoid #define replacements in C++ mode.
17546         * lib/dirent.in.h: Include c++defs.h.
17547         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
17548         namespaced alias symbol.
17549         (dirfd): Update declaration.
17550         * modules/dirent (Depends-on): Add c++defs.
17551         (Makefile.am): Update dirent.h rule.
17552
17553         ctype: Make it usable in C++ code.
17554         * lib/ctype.in.h: Include c++defs.h.
17555         (isblank): Declare as extern "C".
17556         * modules/ctype (Depends-on): Add c++defs.
17557         (Makefile.am): Update ctype.h rule.
17558
17559         New module 'c++defs'.
17560         * modules/c++defs: New file.
17561         * build-aux/c++defs.h: New file.
17562         Reported by John W. Eaton <jwe@gnu.org>.
17563
17564 2010-03-07  Bruno Haible  <bruno@clisp.org>
17565
17566         logb: Provide missing declaration for Cygwin.
17567         * lib/math.in.h (logb): New declaration.
17568         * m4/logb.m4: New file.
17569         * modules/logb (Files): Add m4/logb.m4.
17570         (Depends-on): Add math.
17571         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
17572         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
17573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
17574         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
17575         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
17576
17577 2010-03-07  Bruno Haible  <bruno@clisp.org>
17578
17579         Fix test-cond link error.
17580         * tests/test-cond.c: Include <stdio.h>.
17581
17582 2010-03-07  Bruno Haible  <bruno@clisp.org>
17583
17584         Fix test-dirent-safer link error.
17585         * modules/dirent-safer-tests (Makefile.am): Define
17586         test_dirent_safer_LDADD.
17587
17588 2010-03-07  Bruno Haible  <bruno@clisp.org>
17589
17590         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
17591         among default module list.
17592
17593 2010-03-07  Bruno Haible  <bruno@clisp.org>
17594
17595         Fix link error on platforms with GNU libiconv.
17596         * modules/unistr/u8-strcoll-tests (Makefile): Define
17597         test_u8_strcoll_LDADD.
17598         * modules/unistr/u16-strcoll-tests (Makefile): Define
17599         test_u16_strcoll_LDADD.
17600         * modules/unistr/u32-strcoll-tests (Makefile): Define
17601         test_u32_strcoll_LDADD.
17602
17603 2010-03-07  Bruno Haible  <bruno@clisp.org>
17604
17605         Use POSIX declarations for socket functions.
17606         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
17607         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
17608         rpl_sendto): Change declaration to match POSIX.
17609         * lib/connect.c (rpl_connect): Likewise.
17610         * lib/accept.c (rpl_accept): Likewise.
17611         * lib/bind.c (rpl_bind): Likewise.
17612         * lib/getpeername.c (rpl_getpeername): Likewise.
17613         * lib/getsockname.c (rpl_getsockname): Likewise.
17614         * lib/recv.c (rpl_recv): Likewise.
17615         * lib/send.c (rpl_send): Likewise.
17616         * lib/recvfrom.c (rpl_recvfrom): Likewise.
17617         * lib/sendto.c (rpl_sendto): Likewise.
17618
17619 2010-03-06  Bruno Haible  <bruno@clisp.org>
17620
17621         Clarify access, euidaccess, faccessat.
17622         * doc/posix-functions/faccessat.texi: Mention security problem under
17623         "Other problems", not "Portability problems".
17624         * doc/posix-functions/access.texi: Likewise. Mention a related security
17625         problem.
17626         * doc/glibc-functions/euidaccess.texi: Mention security problems.
17627         * lib/euidaccess.c: Add comments about platforms.
17628         * lib/unistd.in.h (access, euidaccess): Add warnings.
17629
17630 2010-03-07  Bruno Haible  <bruno@clisp.org>
17631
17632         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
17633         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
17634         (POSIX_SPAWN_SETSCHEDULER): Likewise.
17635         (POSIX_SPAWN_USEVFORK): Define in a way that works when
17636         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17637         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
17638         declare when POSIX_SPAWN_SETSCHEDULER is zero.
17639         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
17640         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
17641         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
17642         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
17643         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
17644         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
17645         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
17646         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
17647         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
17648         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
17649         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
17650         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
17651         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
17652         Likewise.
17653         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
17654         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
17655         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
17656         Likewise.
17657         * tests/test-spawn.c (main): Make it work when
17658         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17659
17660 2010-03-07  Bruno Haible  <bruno@clisp.org>
17661
17662         Fix incorrect Makefile.am generation in German locale.
17663         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17664         Execute sed command with character range in C locale.
17665
17666 2010-03-06  Bruno Haible  <bruno@clisp.org>
17667
17668         Tests for module 'iconv-h'.
17669         * modules/iconv-h-tests: New file.
17670         * tests/test-iconv-h.c: New file.
17671
17672         New module 'iconv-h'.
17673         * modules/iconv-h: New file.
17674         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
17675         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
17676         (configure.ac): Remove gl_ICONV_H.
17677         (Makefile.am): Remove rule for iconv.h.
17678
17679 2010-03-06  Bruno Haible  <bruno@clisp.org>
17680
17681         More consistent naming of *.m4 files.
17682         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
17683         * modules/wctype (Files): Update.
17684
17685         More consistent naming of *.m4 files.
17686         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
17687         * modules/wchar (Files): Update.
17688
17689 2010-03-06  Jim Meyering  <meyering@redhat.com>
17690
17691         euidaccess: relax license to LGPLv2+
17692         * modules/euidaccess (License): Relax to LGPLv2+.
17693
17694 2010-03-06  Bruno Haible  <bruno@clisp.org>
17695
17696         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
17697         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
17698         (Makefile.am): Augment lib_SOURCES instead.
17699
17700 2010-03-04  Jim Meyering  <meyering@redhat.com>
17701
17702         utime: remove obsolete module
17703         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
17704         unnecessary for years, and has been marked as obsolete for 10 months.
17705         * modules/utime: Remove file.
17706         * lib/utime.c: Remove file.
17707         * m4/utime.m4: Remove file.
17708         * m4/utimes-null.m4: Remove file.
17709         * doc/posix-functions/utime.texi (utime): Remove reference to
17710         the module.  Move the sole "fixed by gnulib" item into the
17711         "problems not fixed by Gnulib" list.
17712         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
17713
17714 2010-03-05  Simon Josefsson  <simon@josefsson.org>
17715
17716         * modules/exit (License): Relax license to LGPLv2+.
17717         (Status): Mark as obsolete.
17718         * NEWS: Mention deprecated 'exit' module.
17719         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
17720         of now obsolete 'exit'.
17721
17722 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17723
17724         fts-lgpl: remove unused module
17725         * modules/fts-lgpl: Remove.
17726         * MODULES.html.sh (func_all_modules): Adjust.
17727         * check-module (find_included_lib_files): Adjust.
17728         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
17729
17730 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
17731
17732         copy-acl: enhance Solaris ACL error handling
17733         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
17734         * lib/set-mode-acl.c (qset_acl): Likewise.
17735
17736 2010-03-02  Bruno Haible  <bruno@clisp.org>
17737
17738         spawn: Don't override the system defined values on FreeBSD 8.
17739         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
17740         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
17741         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
17742         if HAVE_POSIX_SPAWN is 1.
17743         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
17744
17745 2010-03-01  Bruno Haible  <bruno@clisp.org>
17746
17747         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
17748         regarding Automake.
17749
17750 2010-02-25  Bruno Haible  <bruno@clisp.org>
17751
17752         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
17753         * gnulib-tool: Define 'echo' as a function only before the ksh alias
17754         setting, not afterwards.
17755         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
17756
17757 2010-02-24  Eric Blake  <eblake@redhat.com>
17758
17759         bootstrap, git-version-gen: use timestamp
17760         * build-aux/git-version-gen (scriptversion): Force UTC.
17761         * build-aux/bootstrap (scriptversion): New variable.
17762
17763         bootstrap: allow older git
17764         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
17765         older than 1.6.4.  Requested by the libvirt project.
17766
17767 2010-02-23  Eric Blake  <eblake@redhat.com>
17768
17769         warn-on-use: work with old autoconf
17770         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
17771         AS_VAR semantics of autoconf 2.60.
17772         Reported by Bruno Haible.
17773
17774         bootstrap: improve some comments
17775         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
17776         clarification comments.
17777
17778         gettimeofday: provide correct function
17779         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
17780         when replacement is declared, otherwise provide gettimeofday.
17781         Reported by Michael Goffioul.
17782
17783 2010-02-23  Jim Meyering  <meyering@redhat.com>
17784
17785         lib-ignore: relax license to "unlimited", not LGPLv2+
17786         * modules/lib-ignore (License): Relax to "unlimited".
17787
17788 2010-02-23  Jim Meyering  <meyering@redhat.com>
17789
17790         lib-ignore: relax license to LGPLv2+
17791         * modules/lib-ignore (License): Relax to LGPLv2+.
17792
17793 2010-02-22  Eric Blake  <eblake@redhat.com>
17794
17795         lseek: avoid bash 3.2 broken pipe bug
17796         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
17797         warning from bash 3.2.
17798         Reported by Ben Pfaff, with analysis from Bruno Haible.
17799
17800         bootstrap: support non-FSF copyright holder
17801         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
17802         bootstrap.conf override of COPYRIGHT_HOLDER.
17803         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
17804
17805         bootstrap: interoperate with gettext 0.14.1
17806         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
17807
17808         bootstrap: allow for alternate submodule location
17809         * build-aux/bootstrap (gnulib_path): New variable; use instead of
17810         hardcoding submodule location.
17811         (gnulib_mk): Allow direct use of Makefile.am.
17812
17813         bootstrap: use GNULIB_SRCDIR to reduce disk usage
17814         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
17815         rather than reconfiguring where the submodule points.
17816
17817         gettimeofday: restore support for platforms that lack function
17818         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
17819         replacement if function is missing.
17820         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
17821         * modules/sys_time (Makefile.am): Substitute it.
17822         * lib/sys_time.in.h (gettimeofday): Check it.
17823         Reported by Michael Goffioul.
17824
17825 2010-02-21  Bruno Haible  <bruno@clisp.org>
17826
17827         * lib/stdio.in.h (obstack_printf): Fix typo.
17828
17829 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
17830
17831         vc-list-files: use bzr ls's -R option
17832         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
17833         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
17834
17835 2010-02-21  Jim Meyering  <meyering@redhat.com>
17836
17837         init.sh: fix EXEEXT shims to work also for names like test-prog
17838         * tests/init.sh: Re-exec a better shell, when needed.
17839         If the current shell lacks support for posix $(...), an init.sh-using
17840         test will now try to find a shell that supports that.  If EXEEXT is
17841         nonempty, we also require support for hyphen-in-alias-name and shell
17842         substitutions like ${var#glob}.  Failure to find such a shell results
17843         in a skipped test.
17844
17845 2010-02-21  Bruno Haible  <bruno@clisp.org>
17846
17847         Really work around around "broken pipe" error message from bash 3.2.
17848         * gnulib-tool (func_reset_sigpipe): Remove function.
17849         (echo): In bash 3.2, define to a function that uses printf.
17850         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
17851
17852 2010-02-20  Bruno Haible  <bruno@clisp.org>
17853
17854         Restore support for automake 1.9.6 with autoconf 2.61.
17855         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
17856         Reported by James Youngman <jay@gnu.org>.
17857
17858 2010-02-20  Bruno Haible  <bruno@clisp.org>
17859
17860         Improve *printf warning condition.
17861         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
17862         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
17863         and the function is overridden due to SIGPIPE emulation.
17864
17865 2010-02-20  Bruno Haible  <bruno@clisp.org>
17866
17867         * lib/stdio.in.h: Tweak comments.
17868
17869 2010-02-19  Bruno Haible  <bruno@clisp.org>
17870
17871         Make it easier to find modules. New gnulib-tool option '--find'.
17872         * gnulib-tool: New option --find.
17873         (func_usage): Document it.
17874         (func_sanitize_modulelist): New function, extracted from
17875         func_all_modules.
17876         (func_all_modules): Invoke it.
17877         * doc/gnulib-tool.texi (Which modules?): New node.
17878
17879 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
17880
17881         * lib/sys_select.in.h: Provide select replacement even if
17882         sys/select.h exists on a system, for Interix.
17883
17884 2010-02-18  Jim Meyering  <meyering@redhat.com>
17885
17886         init.sh: don't use $(...) just yet
17887         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
17888         to accommodate e.g., Solaris' /bin/sh.
17889
17890 2010-02-17  Bruno Haible  <bruno@clisp.org>
17891
17892         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
17893         Reported by Ludovic Courtès <ludo@gnu.org>.
17894
17895 2010-02-16  Simon Josefsson  <simon@josefsson.org>
17896
17897         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
17898         linking with -lintl.
17899
17900 2010-02-17  Simon Josefsson  <simon@josefsson.org>
17901
17902         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
17903         if not provided by the system's netdb.h.  Reported by
17904         ludo@gnu.org (Ludovic Courtès).
17905
17906 2010-02-15  Jim Meyering  <meyering@redhat.com>
17907
17908         init.sh: improve portability and efficiency
17909         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
17910         "dummy" in a for loop.
17911         Use '!', not '^' to select the complement of a character set used
17912         in a "case" statement.
17913         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
17914         Suggestions from Eric Blake.
17915
17916         init.sh: automatically accommodate programs with the .exe suffix
17917         Automatically arrange for an invocation of "prog" to execute the
17918         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
17919         may use the simpler "prog", yet still work when built on a system
17920         that requires specifying the added suffix.
17921         Do this by constructing a function named "prog" that invokes
17922         "prog.exe" for each .exe file in selected directories.
17923         * tests/init.sh (find_exe_basenames_): New function.
17924         (create_exe_shim_functions_): New function.
17925         (path_prepend_): Use it.
17926
17927         maint.mk: mark syntax-check sc_*.m rules as .PHONY
17928         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
17929         "make -t syntax-check" doesn't create a ton of sc_*.m files.
17930
17931 2010-02-14  Jim Meyering  <meyering@redhat.com>
17932
17933         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
17934         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
17935         (sc_prohibit_hash_pjw_without_use): New rule.
17936
17937         maint.mk: allow the default upload destination dir to be overridden
17938         * top/maint.mk (upload_dest_dir_): Define with a default that
17939         preserves the status quo.
17940         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
17941         Reported by Peter Simons.
17942
17943         maint.mk: prohibit inclusion of "hash.h" without_use
17944         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
17945
17946 2010-02-10  Jim Meyering  <meyering@redhat.com>
17947
17948         maint.mk: prohibit inclusion of "ignore-value.h" without_use
17949         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
17950
17951 2010-02-09  Eric Blake  <ebb9@byu.net>
17952         and Bruno Haible  <bruno@clisp.org>
17953
17954         obstack-printf-posix: ensure declaration
17955         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
17956         extracted from gl_FUNC_OBSTACK_PRINTF.
17957         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
17958         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
17959         Likewise.
17960         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
17961         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
17962         0.
17963
17964 2010-02-08  Bruno Haible  <bruno@clisp.org>
17965
17966         gnulib-tool: Fix typo in 2010-02-07 commit.
17967         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
17968         Reported by Eric Blake.
17969
17970 2010-02-07  Bruno Haible  <bruno@clisp.org>
17971
17972         gnulib-tool: Fix up caching patches.
17973         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
17974         option --no-cache. Use associative arrays when supported by the shell.
17975         (sed_comments): New variable.
17976         (modcache): Renamed from do_cache.
17977         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
17978         abbreviate unnecessarily.
17979         (have_associative): New variable.
17980         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
17981         way also for ksh and zsh.
17982         (func_init_sed_convert_to_cache_statements): New function, extracted
17983         from func_cache_lookup_module. Add support for associative arrays.
17984         Don't set the c_MODULE_cached variable here. Ignore all lines before
17985         the first field header. Remove only the final newline, not all trailing
17986         newlines. Support empty fields correctly. Limit the use of 'eval' to
17987         assignments.
17988         (func_get_description, func_get_status, func_get_notice,
17989         func_get_applicability, func_get_filelist, func_get_dependencies,
17990         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
17991         func_get_automake_snippet, func_get_include_directive,
17992         func_get_link_directive, func_get_license, func_get_maintainer):
17993         Update documentation. List the unoptimized code first. Add support for
17994         associative arrays. Limit the use of 'eval' to assignments.
17995         (func_get_applicability): Undo stylistic pessimisations.
17996         (func_get_automake_snippet, func_get_include_directive): Reduce code
17997         duplication.
17998         (func_modules_transitive_closure, func_modules_add_dummy,
17999         func_modules_notice, func_modules_to_filelist, func_add_file,
18000         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
18001         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
18002         func_create_testdir, func_create_megatestdir): Update documentation.
18003
18004 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18005
18006         * gnulib-tool (func_cache_lookup_module): Store the module name
18007         belonging to the cache variable; error out if two different
18008         module names map to the same cache variable name.
18009
18010 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18011
18012         gnulib-tool: Make caching optional.
18013         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
18014         Update matching short versions of --no-changelog.
18015         (func_usage): Update.
18016         (sed_extract_cache_prog): Renamed from ...
18017         (sed_extract_prog): ... this; revert to old extraction script.
18018         (func_get_description, func_get_status)
18019         (func_get_notice, func_get_applicability, func_get_filelist)
18020         (func_get_dependencies, func_get_autoconf_early_snippet)
18021         (func_get_autoconf_snippet, func_get_automake_snippet)
18022         (func_get_include_directive, func_get_link_directive)
18023         (func_get_license, func_get_maintainer): If $do_cache is false,
18024         use old, non-caching extraction scripts.
18025         Suggestion by Bruno Haible.
18026
18027 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18028
18029         gnulib-tool: cache module metainformation.
18030         * gnulib-tool (sed_extract_prog): Match newline before each
18031         header, and rewrite header to a shell variable suffix.
18032         (func_cache_var, func_cache_lookup_module): New functions,
18033         to turn a module name into a cache variable prefix, and to
18034         look up and cache module metainformation.
18035         (func_get_description, func_get_status)
18036         (func_get_notice, func_get_applicability, func_get_filelist)
18037         (func_get_dependencies, func_get_autoconf_early_snippet)
18038         (func_get_autoconf_snippet, func_get_automake_snippet)
18039         (func_get_include_directive, func_get_link_directive)
18040         (func_get_license, func_get_maintainer): Use
18041         func_cache_lookup_module.
18042
18043 2010-02-07  Bruno Haible  <bruno@clisp.org>
18044
18045         fnctl: Fix missing dependency.
18046         * modules/fcntl (Depends-on): Add getdtablesize.
18047         Reported by John W. Eaton <jwe@gnu.org>.
18048
18049 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18050
18051         Argp: fix recognition of short alias options.
18052
18053         * lib/argp-parse.c (convert_options): Fix improper use of
18054         `|' between character values.
18055         * tests/test-argp.c (group1_option): New alias option
18056         --read (-r).
18057         (group1_parser): Special handling for 'r'.
18058         (test15): New test case.
18059         (test_fun): Add test15.
18060         * tests/test-argp-2.sh: Update expected --help and --usage
18061         outputs.
18062
18063 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18064
18065         * tests/test-argp.c: Fix indentation.
18066
18067 2010-02-04  Eric Blake  <ebb9@byu.net>
18068
18069         gettimeofday: expose type of second argument
18070         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
18071         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
18072         * tests/test-gettimeofday.c: Use it to silence warning.
18073         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
18074         the issue.
18075
18076 2010-02-03  Jim Meyering  <meyering@redhat.com>
18077
18078         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
18079         * lib/regcomp.c (TYPE_SIGNED): Define.
18080         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
18081
18082         regcomp.c: avoid a new -Wshadow warning
18083         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
18084
18085 2010-02-01  Jim Meyering  <meyering@redhat.com>
18086
18087         removing useless parentheses in cpp #define directives
18088         For motivation, see commit c0221df4, "define STREQ(a,b)
18089         consistently, removing useless parentheses"
18090         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
18091         * lib/mountlist.c (MNT_IGNORE): Likewise.
18092         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
18093
18094 2010-02-01  Eric Blake  <ebb9@byu.net>
18095
18096         sys_time: use link-warning
18097         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
18098         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
18099         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
18100         * modules/sys_time (Depends-on): Add warn-on-use.
18101         (Makefile.am): Always build replacement.
18102         (configure.ac): Update substitutions.
18103         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
18104         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
18105         bother with SYS_TIME_H.
18106         * modules/gettimeofday (configure.ac): Declare indicator.
18107         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
18108         in use.
18109
18110         closein-tests: silence compiler warning
18111         * tests/test-closein.c (main): Ignore fread result.
18112         * modules/closein-tests (Depends-on): Add ignore-value.
18113
18114         tests: silence warning about system return
18115         * tests/test-areadlink-with-size.c (main): Ignore system result.
18116         * tests/test-areadlink.c (main): Likewise.
18117         * tests/test-areadlinkat-with-size.c (main): Likewise.
18118         * tests/test-areadlinkat.c (main): Likewise.
18119         * tests/test-canonicalize-lgpl.c (main): Likewise.
18120         * tests/test-canonicalize.c (main): Likewise.
18121         * tests/test-chown.c (main): Likewise.
18122         * tests/test-fchownat.c (main): Likewise.
18123         * tests/test-fdutimensat.c (main): Likewise.
18124         * tests/test-fstatat.c (main): Likewise.
18125         * tests/test-futimens.c (main): Likewise.
18126         * tests/test-lchown.c (main): Likewise.
18127         * tests/test-link.c (main): Likewise.
18128         * tests/test-linkat.c (main): Likewise.
18129         * tests/test-lstat.c (main): Likewise.
18130         * tests/test-mkdir.c (main): Likewise.
18131         * tests/test-mkdirat.c (main): Likewise.
18132         * tests/test-mkfifo.c (main): Likewise.
18133         * tests/test-mkfifoat.c (main): Likewise.
18134         * tests/test-mknod.c (main): Likewise.
18135         * tests/test-readlink.c (main): Likewise.
18136         * tests/test-remove.c (main): Likewise.
18137         * tests/test-rename.c (main): Likewise.
18138         * tests/test-renameat.c (main): Likewise.
18139         * tests/test-rmdir.c (main): Likewise.
18140         * tests/test-symlink.c (main): Likewise.
18141         * tests/test-symlinkat.c (main): Likewise.
18142         * tests/test-unlink.c (main): Likewise.
18143         * tests/test-unlinkat.c (main): Likewise.
18144         * tests/test-utimens.c (main): Likewise.
18145         * tests/test-utimensat.c (main): Likewise.
18146         * modules/areadlink-tests (Depends-on): Add ignore-value.
18147         * modules/areadlink-with-size-tests (Depends-on): Likewise.
18148         * modules/areadlinkat-tests (Depends-on): Likewise.
18149         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
18150         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18151         * modules/canonicalize-tests (Depends-on): Likewise.
18152         * modules/chown-tests (Depends-on): Likewise.
18153         * modules/fdutimensat-tests (Depends-on): Likewise.
18154         * modules/futimens-tests (Depends-on): Likewise.
18155         * modules/lchown-tests (Depends-on): Likewise.
18156         * modules/link-tests (Depends-on): Likewise.
18157         * modules/linkat-tests (Depends-on): Likewise.
18158         * modules/lstat-tests (Depends-on): Likewise.
18159         * modules/mkdir-tests (Depends-on): Likewise.
18160         * modules/mkfifo-tests (Depends-on): Likewise.
18161         * modules/mkfifoat-tests (Depends-on): Likewise.
18162         * modules/mknod-tests (Depends-on): Likewise.
18163         * modules/openat-tests (Depends-on): Likewise.
18164         * modules/readlink-tests (Depends-on): Likewise.
18165         * modules/remove-tests (Depends-on): Likewise.
18166         * modules/rename-tests (Depends-on): Likewise.
18167         * modules/renameat-tests (Depends-on): Likewise.
18168         * modules/rmdir-tests (Depends-on): Likewise.
18169         * modules/symlink-tests (Depends-on): Likewise.
18170         * modules/symlinkat-tests (Depends-on): Likewise.
18171         * modules/unlink-tests (Depends-on): Likewise.
18172         * modules/utimens-tests (Depends-on): Likewise.
18173         * modules/utimensat-tests (Depends-on): Likewise.
18174
18175 2010-01-31  Bruno Haible  <bruno@clisp.org>
18176
18177         Perform the same test for many <math.h> functions.
18178         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
18179         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
18180         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
18181         of gl_MATHFUNC.
18182         * modules/acos (configure.ac): Likewise.
18183         * modules/asin (configure.ac): Likewise.
18184         * modules/atan (configure.ac): Likewise.
18185         * modules/atan2 (configure.ac): Likewise.
18186         * modules/cbrt (configure.ac): Likewise.
18187         * modules/copysign (configure.ac): Likewise.
18188         * modules/cos (configure.ac): Likewise.
18189         * modules/cosh (configure.ac): Likewise.
18190         * modules/erf (configure.ac): Likewise.
18191         * modules/erfc (configure.ac): Likewise.
18192         * modules/exp (configure.ac): Likewise.
18193         * modules/fmod (configure.ac): Likewise.
18194         * modules/hypot (configure.ac): Likewise.
18195         * modules/j0 (configure.ac): Likewise.
18196         * modules/j1 (configure.ac): Likewise.
18197         * modules/jn (configure.ac): Likewise.
18198         * modules/lgamma (configure.ac): Likewise.
18199         * modules/log (configure.ac): Likewise.
18200         * modules/log10 (configure.ac): Likewise.
18201         * modules/log1p (configure.ac): Likewise.
18202         * modules/pow (configure.ac): Likewise.
18203         * modules/remainder (configure.ac): Likewise.
18204         * modules/sin (configure.ac): Likewise.
18205         * modules/sinh (configure.ac): Likewise.
18206         * modules/tan (configure.ac): Likewise.
18207         * modules/tanh (configure.ac): Likewise.
18208         * modules/y0 (configure.ac): Likewise.
18209         * modules/y1 (configure.ac): Likewise.
18210         * modules/yn (configure.ac): Likewise.
18211         Suggested by Paolo Bonzini.
18212
18213 2010-01-31  Bruno Haible  <bruno@clisp.org>
18214
18215         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18216
18217 2010-01-31  Bruno Haible  <bruno@clisp.org>
18218
18219         Work around getdelim() bug on FreeBSD 8.0.
18220         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18221         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18222         not work.
18223         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18224         is 1.
18225         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18226         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18227         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18228         a non-zero size.
18229         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18230
18231 2010-01-31  Bruno Haible  <bruno@clisp.org>
18232
18233         Work around getline() bug on FreeBSD 8.0.
18234         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18235         and a non-zero size.
18236         * tests/test-getline.c (main): Likewise.
18237         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18238         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18239
18240 2010-01-28  Eric Blake  <ebb9@byu.net>
18241
18242         regex: fix build failure
18243         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18244         platforms.
18245
18246 2010-01-28  Jim Meyering  <meyering@redhat.com>
18247
18248         regex: do not ignore memory allocation failure
18249         * lib/regex_internal.c (create_cd_newstate): Detect
18250         re_node_set_init_copy failure.   Extracted from glibc commit
18251         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18252
18253         regex: sync more white-space changes from libc
18254         * lib/regex_internal.c: White-space only changes.
18255         * lib/regexec.c: Likewise.
18256
18257         regex: add many uses of __attribute_warn_unused_result__
18258         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18259         * lib/regexec.c: Likewise.
18260         Extracted from a messy glibc commit.
18261
18262         regcomp.c: spelling and merge-artifact from glibc
18263         * lib/regcomp.c: Merge remainder of glibc's
18264         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18265
18266         regcomp.c: sync white-space changes from glibc
18267         * lib/regcomp.c: Merge to accommodate white space
18268         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18269
18270         regcomp.c: do not ignore internal return values
18271         * lib/regcomp.c: Do not ignore internal return values.
18272         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
18273         but without its white-space changes and spelling fixes.
18274
18275         regex_internal.h: define __attribute_warn_unused_result__
18276         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
18277
18278         maint: add a syntax-check rule to check for vulnerable Makefile.in
18279         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
18280
18281 2010-01-27  Jim Meyering  <meyering@redhat.com>
18282
18283         ncftpput-ftp: clean up spaces
18284         * build-aux/ncftpput-ftp: Make Copyright line consistent.
18285         Remove trailing blanks.
18286
18287 2010-01-27  Simon Josefsson  <simon@josefsson.org>
18288
18289         * build-aux/git-version-gen: Fix copyright statement.
18290         * build-aux/gnupload: Likewise.
18291         * tests/test-arcfour.c: Likewise.
18292         * tests/test-arctwo.c: Likewise.
18293         * tests/test-count-one-bits.c: Likewise.
18294         * tests/test-crc.c: Likewise.
18295         * tests/test-des.c: Likewise.
18296         * tests/test-gc-arcfour.c: Likewise.
18297         * tests/test-gc-arctwo.c: Likewise.
18298         * tests/test-gc-des.c: Likewise.
18299         * tests/test-gc-hmac-md5.c: Likewise.
18300         * tests/test-gc-hmac-sha1.c: Likewise.
18301         * tests/test-gc-md2.c: Likewise.
18302         * tests/test-gc-md4.c: Likewise.
18303         * tests/test-gc-md5.c: Likewise.
18304         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18305         * tests/test-gc-rijndael.c: Likewise.
18306         * tests/test-gc-sha1.c: Likewise.
18307         * tests/test-gc.c: Likewise.
18308         * tests/test-gethostname.c: Likewise.
18309         * tests/test-gettimeofday.c: Likewise.
18310         * tests/test-hash.c: Likewise.
18311         * tests/test-hmac-md5.c: Likewise.
18312         * tests/test-hmac-sha1.c: Likewise.
18313         * tests/test-md2.c: Likewise.
18314         * tests/test-md4.c: Likewise.
18315         * tests/test-md5.c: Likewise.
18316         * tests/test-memchr.c: Likewise.
18317         * tests/test-memchr2.c: Likewise.
18318         * tests/test-memcmp.c: Likewise.
18319         * tests/test-memmem.c: Likewise.
18320         * tests/test-memrchr.c: Likewise.
18321         * tests/test-rawmemchr.c: Likewise.
18322         * tests/test-read-file.c: Likewise.
18323         * tests/test-rijndael.c: Likewise.
18324         * tests/test-sockets.c: Likewise.
18325         * tests/test-strchrnul.c: Likewise.
18326         * tests/test-strstr.c: Likewise.
18327         * tests/test-strtod.c: Likewise.
18328         * build-aux/ncftpput-ftp: Likewise.
18329
18330 2010-01-26  Eric Blake  <ebb9@byu.net>
18331
18332         ignore-value: update recommended header name
18333         * modules/ignore-value (Include): Only use <> for headers that
18334         exist in glibc.
18335
18336 2010-01-26  Jim Meyering  <meyering@redhat.com>
18337
18338         test-userspec.c: avoid compiler warnings
18339         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18340         and "initialization discards qualifiers..." warnings.
18341         Put the first "uid" in its own scope, and make char* members "const".
18342
18343 2010-01-25  Bruno Haible  <bruno@clisp.org>
18344
18345         gnulib-tool: Make warning diagnostics consistent.
18346         * gnulib-tool (func_warning): New function.
18347         Use it everywhere where gnulib-tool produces output to stderr and it is
18348         not a fatal error.
18349
18350 2010-01-25  Bruno Haible  <bruno@clisp.org>
18351
18352         Fix test dependencies.
18353         * modules/xstrtol-tests (Depends-on): Add inttypes.
18354         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18355
18356 2010-01-25 Pádraig Brady <P@draigBrady.com>
18357
18358         syntax-check: detect incorrect boolean macro values in config.h
18359         * modules/maintainer-makefile (configure.ac): Parameterize the location
18360         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18361         The logic is from Eric Blake and the location indicated by Jim Meyering.
18362         Note the more natural CONFIG_HEADER name is prohibited by automake
18363         for backwards compatibility reasons.
18364         * top/maint.mk (sc_Wundef_boolean): New rule.
18365
18366 2010-01-25  Jim Meyering  <meyering@redhat.com>
18367
18368         bootstrap: detect MacOS 10.6's shasum, too
18369         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18370         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18371
18372 2010-01-23  Jim Meyering  <meyering@redhat.com>
18373
18374         xstrtoll: new module
18375         * modules/xstrtoll: New file.
18376         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18377         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18378         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18379         ./configure fails if you use this module and lack "long long".
18380         * modules/xstrtoll-tests: New module.
18381         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18382         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18383         new init.sh-based test framework.
18384
18385 2010-01-24  Bruno Haible  <bruno@clisp.org>
18386
18387         Tests for module 'yn'.
18388         * modules/yn-tests: New file.
18389         * tests/test-yn.c: New file.
18390
18391         Tests for module 'y1'.
18392         * modules/y1-tests: New file.
18393         * tests/test-y1.c: New file.
18394
18395         Tests for module 'y0'.
18396         * modules/y0-tests: New file.
18397         * tests/test-y0.c: New file.
18398
18399         Tests for module 'tanh'.
18400         * modules/tanh-tests: New file.
18401         * tests/test-tanh.c: New file.
18402
18403         Tests for module 'tan'.
18404         * modules/tan-tests: New file.
18405         * tests/test-tan.c: New file.
18406
18407         Tests for module 'sqrt'.
18408         * modules/sqrt-tests: New file.
18409         * tests/test-sqrt.c: New file.
18410
18411         Tests for module 'sinh'.
18412         * modules/sinh-tests: New file.
18413         * tests/test-sinh.c: New file.
18414
18415         Tests for module 'sin'.
18416         * modules/sin-tests: New file.
18417         * tests/test-sin.c: New file.
18418
18419         Tests for module 'rint'.
18420         * modules/rint-tests: New file.
18421         * tests/test-rint.c: New file.
18422
18423         Tests for module 'remainder'.
18424         * modules/remainder-tests: New file.
18425         * tests/test-remainder.c: New file.
18426
18427         Tests for module 'pow'.
18428         * modules/pow-tests: New file.
18429         * tests/test-pow.c: New file.
18430
18431         Tests for module 'nextafter'.
18432         * modules/nextafter-tests: New file.
18433         * tests/test-nextafter.c: New file.
18434
18435         Tests for module 'modf'.
18436         * modules/modf-tests: New file.
18437         * tests/test-modf.c: New file.
18438
18439         Tests for module 'logb'.
18440         * modules/logb-tests: New file.
18441         * tests/test-logb.c: New file.
18442
18443         Tests for module 'log1p'.
18444         * modules/log1p-tests: New file.
18445         * tests/test-log1p.c: New file.
18446
18447         Tests for module 'log10'.
18448         * modules/log10-tests: New file.
18449         * tests/test-log10.c: New file.
18450
18451         Tests for module 'log'.
18452         * modules/log-tests: New file.
18453         * tests/test-log.c: New file.
18454
18455         Tests for module 'lgamma'.
18456         * modules/lgamma-tests: New file.
18457         * tests/test-lgamma.c: New file.
18458
18459         Tests for module 'ldexp'.
18460         * modules/ldexp-tests: New file.
18461         * tests/test-ldexp.c: New file.
18462
18463         Tests for module 'jn'.
18464         * modules/jn-tests: New file.
18465         * tests/test-jn.c: New file.
18466
18467         Tests for module 'j1'.
18468         * modules/j1-tests: New file.
18469         * tests/test-j1.c: New file.
18470
18471         Tests for module 'j0'.
18472         * modules/j0-tests: New file.
18473         * tests/test-j0.c: New file.
18474
18475         Tests for module 'hypot'.
18476         * modules/hypot-tests: New file.
18477         * tests/test-hypot.c: New file.
18478
18479         Tests for module 'fmod'.
18480         * modules/fmod-tests: New file.
18481         * tests/test-fmod.c: New file.
18482
18483         Tests for module 'fabs'.
18484         * modules/fabs-tests: New file.
18485         * tests/test-fabs.c: New file.
18486
18487         Tests for module 'exp'.
18488         * modules/exp-tests: New file.
18489         * tests/test-exp.c: New file.
18490
18491         Tests for module 'erfc'.
18492         * modules/erfc-tests: New file.
18493         * tests/test-erfc.c: New file.
18494
18495         Tests for module 'erf'.
18496         * modules/erf-tests: New file.
18497         * tests/test-erf.c: New file.
18498
18499         Tests for module 'cosh'.
18500         * modules/cosh-tests: New file.
18501         * tests/test-cosh.c: New file.
18502
18503         Tests for module 'cos'.
18504         * modules/cos-tests: New file.
18505         * tests/test-cos.c: New file.
18506
18507         Tests for module 'copysign'.
18508         * modules/copysign-tests: New file.
18509         * tests/test-copysign.c: New file.
18510
18511         Tests for module 'cbrt'.
18512         * modules/cbrt-tests: New file.
18513         * tests/test-cbrt.c: New file.
18514
18515         Tests for module 'atan2'.
18516         * modules/atan2-tests: New file.
18517         * tests/test-atan2.c: New file.
18518
18519         Tests for module 'atan'.
18520         * modules/atan-tests: New file.
18521         * tests/test-atan.c: New file.
18522
18523         Tests for module 'asin'.
18524         * modules/asin-tests: New file.
18525         * tests/test-asin.c: New file.
18526
18527         Tests for module 'acos'.
18528         * modules/acos-tests: New file.
18529         * tests/test-acos.c: New file.
18530
18531 2010-01-24  Bruno Haible  <bruno@clisp.org>
18532
18533         Fix tests for common <math.h> functions.
18534         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
18535         code snippet that references the function pointer, rather than merely
18536         calling the function. Substitute the FUNC_LIBM variable.
18537         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
18538         * modules/acos (configure.ac): Likewise.
18539         * modules/asin (configure.ac): Likewise.
18540         * modules/atan (configure.ac): Likewise.
18541         * modules/atan2 (configure.ac): Likewise.
18542         * modules/cbrt (configure.ac): Likewise.
18543         * modules/copysign (configure.ac): Likewise.
18544         * modules/cos (configure.ac): Likewise.
18545         * modules/cosh (configure.ac): Likewise.
18546         * modules/erf (configure.ac): Likewise.
18547         * modules/erfc (configure.ac): Likewise.
18548         * modules/exp (configure.ac): Likewise.
18549         * modules/fabs (configure.ac): Likewise.
18550         * modules/fmod (configure.ac): Likewise.
18551         * modules/hypot (configure.ac): Likewise.
18552         * modules/j0 (configure.ac): Likewise.
18553         * modules/j1 (configure.ac): Likewise.
18554         * modules/jn (configure.ac): Likewise.
18555         * modules/ldexp (configure.ac): Likewise.
18556         * modules/lgamma (configure.ac): Likewise.
18557         * modules/log (configure.ac): Likewise.
18558         * modules/log10 (configure.ac): Likewise.
18559         * modules/log1p (configure.ac): Likewise.
18560         * modules/logb (configure.ac): Likewise.
18561         * modules/modf (configure.ac): Likewise.
18562         * modules/nextafter (configure.ac): Likewise.
18563         * modules/pow (configure.ac): Likewise.
18564         * modules/remainder (configure.ac): Likewise.
18565         * modules/rint (configure.ac): Likewise.
18566         * modules/sin (configure.ac): Likewise.
18567         * modules/sinh (configure.ac): Likewise.
18568         * modules/tan (configure.ac): Likewise.
18569         * modules/tanh (configure.ac): Likewise.
18570         * modules/y0 (configure.ac): Likewise.
18571         * modules/y1 (configure.ac): Likewise.
18572         * modules/yn (configure.ac): Likewise.
18573
18574 2010-01-24  Bruno Haible  <bruno@clisp.org>
18575
18576         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
18577         * tests/test-acosl.c (x): New variable.
18578         (main): Store argument in x and fetch it from x.
18579         * tests/test-asinl.c (x): New variable.
18580         (main): Store argument in x and fetch it from x.
18581         * tests/test-atanl.c (x): New variable.
18582         (main): Store argument in x and fetch it from x.
18583         * tests/test-cosl.c (x): New variable.
18584         (main): Store argument in x and fetch it from x.
18585         * tests/test-expl.c (x): New variable.
18586         (main): Store argument in x and fetch it from x.
18587         * tests/test-logl.c (x): New variable.
18588         (main): Store argument in x and fetch it from x.
18589         * tests/test-sinl.c (x): New variable.
18590         (main): Store argument in x and fetch it from x.
18591         * tests/test-sqrtl.c (x): New variable.
18592         (main): Store argument in x and fetch it from x.
18593         * tests/test-tanl.c (x): New variable.
18594         (main): Store argument in x and fetch it from x.
18595
18596 2010-01-24  Bruno Haible  <bruno@clisp.org>
18597
18598         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
18599         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
18600         assignments to the initial TESTS_ENVIRONMENT.
18601         * doc/gnulib.texi (Unit test modules): Document it.
18602         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
18603         TESTS_ENVIRONMENT.
18604         * modules/btowc-tests (Makefile.am): Likewise.
18605         * modules/c-stack-tests (Makefile.am): Likewise.
18606         * modules/c-strcase-tests (Makefile.am): Likewise.
18607         * modules/copy-file-tests (Makefile.am): Likewise.
18608         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
18609         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
18610         * modules/mbrtowc-tests (Makefile.am): Likewise.
18611         * modules/mbscasecmp-tests (Makefile.am): Likewise.
18612         * modules/mbscasestr-tests (Makefile.am): Likewise.
18613         * modules/mbschr-tests (Makefile.am): Likewise.
18614         * modules/mbscspn-tests (Makefile.am): Likewise.
18615         * modules/mbsinit-tests (Makefile.am): Likewise.
18616         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
18617         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
18618         * modules/mbspbrk-tests (Makefile.am): Likewise.
18619         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
18620         * modules/mbsrchr-tests (Makefile.am): Likewise.
18621         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
18622         * modules/mbsspn-tests (Makefile.am): Likewise.
18623         * modules/mbsstr-tests (Makefile.am): Likewise.
18624         * modules/nl_langinfo-tests (Makefile.am): Likewise.
18625         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
18626         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
18627         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
18628         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
18629         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
18630         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
18631         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
18632         * modules/wcrtomb-tests (Makefile.am): Likewise.
18633         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
18634         * modules/wcsrtombs-tests (Makefile.am): Likewise.
18635         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
18636         assignments from TESTS_ENVIRONMENT.
18637         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
18638         augmentation.
18639         * modules/argp-version-etc-tests (Makefile.am): Likewise.
18640         * modules/atexit-tests (Makefile.am): Likewise.
18641         * modules/binary-io-tests (Makefile.am): Likewise.
18642         * modules/closein-tests (Makefile.am): Likewise.
18643         * modules/dprintf-posix-tests (Makefile.am): Likewise.
18644         * modules/exclude-tests (Makefile.am): Likewise.
18645         * modules/fflush-tests (Makefile.am): Likewise.
18646         * modules/fpending-tests (Makefile.am): Likewise.
18647         * modules/fprintf-posix-tests (Makefile.am): Likewise.
18648         * modules/freadahead-tests (Makefile.am): Likewise.
18649         * modules/freadptr-tests (Makefile.am): Likewise.
18650         * modules/freadseek-tests (Makefile.am): Likewise.
18651         * modules/fseek-tests (Makefile.am): Likewise.
18652         * modules/fseeko-tests (Makefile.am): Likewise.
18653         * modules/ftell-tests (Makefile.am): Likewise.
18654         * modules/ftello-tests (Makefile.am): Likewise.
18655         * modules/idpriv-drop-tests (Makefile.am): Likewise.
18656         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
18657         * modules/lseek-tests (Makefile.am): Likewise.
18658         * modules/parse-duration-tests (Makefile.am): Likewise.
18659         * modules/perror-tests (Makefile.am): Likewise.
18660         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
18661         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
18662         * modules/pipe-tests (Makefile.am): Likewise.
18663         * modules/pread-tests (Makefile.am): Likewise.
18664         * modules/printf-posix-tests (Makefile.am): Likewise.
18665         * modules/select-tests (Makefile.am): Likewise.
18666         * modules/sigpipe-tests (Makefile.am): Likewise.
18667         * modules/tsearch-tests (Makefile.am): Likewise.
18668         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
18669         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
18670         * modules/uniname/uniname-tests (Makefile.am): Likewise.
18671         * modules/uniwidth/width-tests (Makefile.am): Likewise.
18672         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
18673         * modules/version-etc-tests (Makefile.am): Likewise.
18674         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
18675         * modules/vprintf-posix-tests (Makefile.am): Likewise.
18676         * modules/xalloc-die-tests (Makefile.am): Likewise.
18677         * modules/xprintf-posix-tests (Makefile.am): Likewise.
18678         * modules/xstrtoimax-tests (Makefile.am): Likewise.
18679         * modules/xstrtol-tests (Makefile.am): Likewise.
18680         * modules/xstrtoumax-tests (Makefile.am): Likewise.
18681         * modules/yesno-tests (Makefile.am): Likewise.
18682         Suggested by Jim Meyering.
18683
18684 2010-01-24  Bruno Haible  <bruno@clisp.org>
18685
18686         More documentation.
18687         * doc/gnulib.texi (Writing modules): New chapter.
18688         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
18689         the new chapter.
18690
18691 2010-01-24  Jim Meyering  <meyering@redhat.com>
18692
18693         maint.mk: do not prepend "./" after filtering
18694         * top/maint.mk (_prepend_srcdir_prefix): New variable
18695         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
18696         "./" when $(srcdir) is ".".
18697
18698         define STREQ(a,b) consistently, removing useless parentheses
18699         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
18700         since the only risk is that "a" or "b" contains an unparenthesized
18701         comma, but if either did that, STREQ would have 3 or more arguments.
18702         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
18703         * lib/fts.c (STREQ): Remove unnecessary parentheses.
18704         * lib/hash-triple.c (STREQ): Likewise.
18705         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
18706         * lib/getugroups.c (STREQ): Likewise.
18707
18708 2010-01-23  Jim Meyering  <meyering@redhat.com>
18709
18710         maint.mk: fix syntax-check in a non-srcdir build directory
18711         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
18712         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
18713
18714 2010-01-22  Jim Meyering  <meyering@redhat.com>
18715
18716         userspec: add unit tests
18717         * tests/test-userspec.c: New file.
18718         * modules/userspec-tests: Likewise.
18719
18720 2010-01-21  Jim Meyering  <meyering@redhat.com>
18721
18722         maint.mk: handle source file names containing "." robustly
18723         * top/maint.mk (_dot_escaped_srcdir): Define.
18724         (VC_LIST): Use it in LHS of sed substitution.
18725
18726 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
18727
18728         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
18729         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
18730         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
18731         from a non-srcdir build.
18732
18733 2010-01-20  Eric Blake  <ebb9@byu.net>
18734
18735         warn-on-use: use instead of link-warning
18736         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
18737         * modules/unistd (Depends-on, Makefile.am): Likewise.
18738         * modules/arpa_inet (Depends-on): Replace link-warning with
18739         warn-on-use.
18740         (Makefile.am): Update rules accordingly.
18741         * modules/ctype (Depends-on, Makefile.am): Likewise.
18742         * modules/dirent (Depends-on, Makefile.am): Likewise.
18743         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
18744         * modules/inttypes (Depends-on, Makefile.am): Likewise.
18745         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18746         * modules/locale (Depends-on, Makefile.am): Likewise.
18747         * modules/math (Depends-on, Makefile.am): Likewise.
18748         * modules/search (Depends-on, Makefile.am): Likewise.
18749         * modules/signal (Depends-on, Makefile.am): Likewise.
18750         * modules/spawn (Depends-on, Makefile.am): Likewise.
18751         * modules/stdlib (Depends-on, Makefile.am): Likewise.
18752         * modules/string (Depends-on, Makefile.am): Likewise.
18753         * modules/strings (Depends-on, Makefile.am): Likewise.
18754         * modules/sys_file (Depends-on, Makefile.am): Likewise.
18755         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
18756         * modules/sys_select (Depends-on, Makefile.am): Likewise.
18757         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
18758         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
18759         * modules/sys_times (Depends-on, Makefile.am): Likewise.
18760         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18761         * modules/wchar (Depends-on, Makefile.am): Likewise.
18762         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
18763         should be poisoned.
18764         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
18765         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
18766         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
18767         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18768         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18769         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18770         * m4/math_h.m4 (gl_MATH_H): Likewise.
18771         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18772         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18773         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18774         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18775         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18776         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18777         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
18778         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
18779         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18780         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18781         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18782         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18783         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18784         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18785         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18786         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18787         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
18788         GL_LINK_WARNING.
18789         * lib/ctype.in.h: Likewise.
18790         * lib/dirent.in.h: Likewise.
18791         * lib/fcntl.in.h: Likewise.
18792         * lib/inttypes.in.h: Likewise.
18793         * lib/langinfo.in.h: Likewise.
18794         * lib/locale.in.h: Likewise.
18795         * lib/math.in.h: Likewise.
18796         * lib/search.in.h: Likewise.
18797         * lib/signal.in.h: Likewise.
18798         * lib/spawn.in.h: Likewise.
18799         * lib/stdio.in.h: Likewise.
18800         * lib/stdlib.in.h: Likewise.
18801         * lib/string.in.h: Likewise.
18802         * lib/strings.in.h: Likewise.
18803         * lib/sys_file.in.h: Likewise.
18804         * lib/sys_ioctl.in.h: Likewise.
18805         * lib/sys_select.in.h: Likewise.
18806         * lib/sys_socket.in.h: Likewise.
18807         * lib/sys_stat.in.h: Likewise.
18808         * lib/sys_times.in.h: Likewise.
18809         * lib/sys_utsname.in.h: Likewise.
18810         * lib/unistd.in.h: Likewise.
18811         * lib/wchar.in.h: Likewise.
18812
18813 2010-01-20  Bruno Haible  <bruno@clisp.org>
18814
18815         Avoid duplicate -lm.
18816         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
18817         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
18818         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
18819         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
18820         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
18821         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
18822         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
18823         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
18824         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
18825         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
18826         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
18827         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18828         Reported by Paolo Bonzini.
18829
18830 2010-01-19  Bruno Haible  <bruno@clisp.org>
18831
18832         langinfo, nl_langinfo: Relicense under LGPLv2+.
18833         * modules/langinfo (License): Change to LGPLv2+.
18834         * modules/nl_langinfo (License): Likewise.
18835         Patch by David Lutterkort <lutter@redhat.com>.
18836
18837 2010-01-19  Bruno Haible  <bruno@clisp.org>
18838
18839         Avoid compilation error with cc on OSF/1 5.1.
18840         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
18841         statement, not before.
18842         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18843
18844 2010-01-18  Bruno Haible  <bruno@clisp.org>
18845
18846         Avoid a link error due to the __printf__ symbol.
18847         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
18848         and 2.6.x.
18849         (__format__, __printf__): Remove definitions.
18850         * lib/argp-fmtstream.h: Likewise.
18851         * lib/argp.h: Likewise.
18852         * lib/error.h: Likewise.
18853         * lib/vasnprintf.h: Likewise.
18854         * lib/xprintf.h: Likewise.
18855         * lib/xvasprintf.h: Likewise.
18856         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18857
18858 2010-01-18  Bruno Haible  <bruno@clisp.org>
18859
18860         Tests for module 'tanl'.
18861         * modules/tanl-tests: New file.
18862         * tests/test-tanl.c: New file.
18863
18864         Tests for module 'sqrtl'.
18865         * modules/sqrtl-tests: New file.
18866         * tests/test-sqrtl.c: New file.
18867
18868         Tests for module 'sinl'.
18869         * modules/sinl-tests: New file.
18870         * tests/test-sinl.c: New file.
18871
18872         Tests for module 'logl'.
18873         * modules/logl-tests: New file.
18874         * tests/test-logl.c: New file.
18875
18876         Tests for module 'expl'.
18877         * modules/expl-tests: New file.
18878         * tests/test-expl.c: New file.
18879
18880         Tests for module 'cosl'.
18881         * modules/cosl-tests: New file.
18882         * tests/test-cosl.c: New file.
18883
18884         Tests for module 'atanl'.
18885         * modules/atanl-tests: New file.
18886         * tests/test-atanl.c: New file.
18887
18888         Tests for module 'asinl'.
18889         * modules/asinl-tests: New file.
18890         * tests/test-asinl.c: New file.
18891
18892         Tests for module 'acosl'.
18893         * modules/acosl-tests: New file.
18894         * tests/test-acosl.c: New file.
18895
18896         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18897         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
18898         tanl): Use the standard gnulib idiom.
18899         * lib/cosl.c: Don't include trigl.c and sincosl.c.
18900         * lib/sinl.c: Likewise.
18901         * lib/tanl.c: Don't include trigl.c.
18902         (kernel_tanl): Make static.
18903         * lib/sincosl.c: Include trigl.h first.
18904         * lib/trigl.c: Likewise.
18905         * m4/acosl.m4: New file.
18906         * m4/asinl.m4: New file.
18907         * m4/atanl.m4: New file.
18908         * m4/cosl.m4: New file.
18909         * m4/expl.m4: New file.
18910         * m4/logl.m4: New file.
18911         * m4/sinl.m4: New file.
18912         * m4/sqrtl.m4: New file.
18913         * m4/tanl.m4: New file.
18914         * m4/mathl.m4: Remove file.
18915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
18916         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18917         Don't initialize GNULIB_MATHL.
18918         * modules/acosl: New file.
18919         * modules/asinl: New file.
18920         * modules/atanl: New file.
18921         * modules/cosl: New file.
18922         * modules/expl: New file.
18923         * modules/logl: New file.
18924         * modules/sinl: New file.
18925         * modules/sqrtl: New file.
18926         * modules/tanl: New file.
18927         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
18928         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
18929         substitute GNULIB_MATHL.
18930         * modules/mathl: Rewritten.
18931         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
18932         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
18933         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
18934         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
18935         * doc/posix-functions/expl.texi: Mention the 'expl' module.
18936         * doc/posix-functions/logl.texi: Mention the 'logl' module.
18937         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
18938         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
18939         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
18940
18941 2010-01-18  Bruno Haible  <bruno@clisp.org>
18942
18943         sqrt: Make gl_FUNC_SQRT requirable.
18944         * m4/sqrt.m4: New file.
18945         * modules/sqrt (Files): Add it.
18946         (configure.ac): Invoke gl_FUNC_SQRT.
18947
18948 2010-01-18  Bruno Haible  <bruno@clisp.org>
18949
18950         New modules for common <math.h> functions.
18951         * m4/mathfunc.m4: New file.
18952         * modules/acos: New file.
18953         * modules/asin: New file.
18954         * modules/atan: New file.
18955         * modules/atan2: New file.
18956         * modules/cbrt: New file.
18957         * modules/copysign: New file.
18958         * modules/cos: New file.
18959         * modules/cosh: New file.
18960         * modules/erf: New file.
18961         * modules/erfc: New file.
18962         * modules/exp: New file.
18963         * modules/fabs: New file.
18964         * modules/fmod: New file.
18965         * modules/hypot: New file.
18966         * modules/j0: New file.
18967         * modules/j1: New file.
18968         * modules/jn: New file.
18969         * modules/ldexp: New file.
18970         * modules/lgamma: New file.
18971         * modules/log: New file.
18972         * modules/log10: New file.
18973         * modules/log1p: New file.
18974         * modules/logb: New file.
18975         * modules/modf: New file.
18976         * modules/nextafter: New file.
18977         * modules/pow: New file.
18978         * modules/remainder: New file.
18979         * modules/rint: New file.
18980         * modules/sin: New file.
18981         * modules/sinh: New file.
18982         * modules/sqrt: New file.
18983         * modules/tan: New file.
18984         * modules/tanh: New file.
18985         * modules/y0: New file.
18986         * modules/y1: New file.
18987         * modules/yn: New file.
18988         * doc/posix-functions/acos.texi: Mention the 'acos' module.
18989         * doc/posix-functions/asin.texi: Mention the 'asin' module.
18990         * doc/posix-functions/atan.texi: Mention the 'atan' module.
18991         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
18992         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
18993         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
18994         * doc/posix-functions/cos.texi: Mention the 'cos' module.
18995         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
18996         * doc/posix-functions/erf.texi: Mention the 'erf' module.
18997         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
18998         * doc/posix-functions/exp.texi: Mention the 'exp' module.
18999         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
19000         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
19001         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
19002         * doc/posix-functions/j0.texi: Mention the 'j0' module.
19003         * doc/posix-functions/j1.texi: Mention the 'j1' module.
19004         * doc/posix-functions/jn.texi: Mention the 'jn' module.
19005         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
19006         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
19007         * doc/posix-functions/log.texi: Mention the 'log' module.
19008         * doc/posix-functions/log10.texi: Mention the 'log10' module.
19009         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
19010         * doc/posix-functions/logb.texi: Mention the 'logb' module.
19011         * doc/posix-functions/modf.texi: Mention the 'modf' module.
19012         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
19013         * doc/posix-functions/pow.texi: Mention the 'pow' module.
19014         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
19015         * doc/posix-functions/rint.texi: Mention the 'rint' module.
19016         * doc/posix-functions/sin.texi: Mention the 'sin' module.
19017         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
19018         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
19019         * doc/posix-functions/tan.texi: Mention the 'tan' module.
19020         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
19021         * doc/posix-functions/y0.texi: Mention the 'y0' module.
19022         * doc/posix-functions/y1.texi: Mention the 'y1' module.
19023         * doc/posix-functions/yn.texi: Mention the 'yn' module.
19024
19025 2010-01-18  Jim Meyering  <meyering@redhat.com>
19026
19027         ignore-value: relax license to LGPLv2+
19028         * modules/ignore-value (License): Relax to LGPLv2+.
19029
19030         getdate: don't leak when TZ contains two or more '"'s
19031         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
19032         double quote in TZ after the first one.
19033
19034         readtokens: do not leak internal token_lengths buffer
19035         * lib/readtokens.c (readtokens): Free the local, lengths,
19036         when the supplied "token_lengths" parameter is NULL.
19037
19038 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19039
19040         Fix a couple of missing LIBTHREAD link failures on AIX.
19041         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
19042         $(LIBTHREAD).
19043         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
19044
19045         Link test-poll against INET_PTON_LIB.
19046         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
19047         for inet_pton on Solaris 10.
19048
19049 2010-01-17  Bruno Haible  <bruno@clisp.org>
19050
19051         unistdio/*-sprintf: Fix typo in module description.
19052         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
19053         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
19054         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
19055         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
19056         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
19057         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
19058         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
19059         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19060
19061 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19062
19063         gnulib-tool: fix filelist for AIX, HP-UX ksh.
19064         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
19065         variables in shell case patterns, for AIX and HP-UX ksh.
19066
19067         Split large sed scripts, for HP-UX sed.
19068         * modules/stdio: Split sed scripts around 50 sed commands,
19069         to avoid HP-UX limit of 99 commands, in the near future.
19070         * modules/string: Likewise.
19071         * modules/unistd: Likewise.
19072
19073         gnulib-tool: avoid writing in the current directory.
19074         * gnulib-tool (func_emit_lib_Makefile_am)
19075         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
19076         not in the current directory, so concurrent gnulib-tool
19077         instances do not interfere.
19078
19079 2010-01-16  Jim Meyering  <meyering@redhat.com>
19080
19081         doc: update users.txt
19082         * users.txt: Add grep.
19083         (diffutils, gzip): Update URLs.
19084
19085 2010-01-12  Bruno Haible  <bruno@clisp.org>
19086
19087         posix_spawn: Avoid test failure on Cygwin.
19088         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
19089         characters.
19090         Reported by Simon Josefsson.
19091
19092 2010-01-12  Bruno Haible  <bruno@clisp.org>
19093
19094         * tests/test-cond.c (main): When skipping the test, show the reason.
19095
19096 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19097
19098         * lib/striconv.c (str_cd_iconv): Avoid if before free.
19099
19100 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19101
19102         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
19103         VC_LIST_ALWAYS_EXCLUDE_REGEX.
19104
19105 2010-01-12  Eric Blake  <ebb9@byu.net>
19106
19107         build: guarantee AS_VAR_IF
19108         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
19109         (gl_AS_VAR_IF): Move...
19110         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
19111         Reported by Simon Josefsson.
19112
19113 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19114
19115         * lib/stdio.in.h: Fix typo.
19116
19117 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19118
19119         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
19120         libgpg-error.
19121
19122 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19123
19124         * tests/test-xalloc-die.sh: Use $EXEEXT.
19125
19126 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19127             Bruno Haible  <bruno@clisp.org>
19128
19129         getlogin, getlogin_r: Avoid test failure.
19130         * tests/test-getlogin.c: Include <stdio.h>.
19131         (main): Skip the test when the function fails because stdin is not a
19132         tty.
19133         * tests/test-getlogin_r.c: Include <stdio.h>.
19134         (main): Skip the test when the function fails because stdin is not a
19135         tty.
19136
19137 2010-01-11  Eric Blake  <ebb9@byu.net>
19138
19139         tests: avoid more large file warnings
19140         * tests/test-fflush.c: Avoid warning about ftell use.
19141         * tests/test-fseek.c: Avoid warning about fseek use.
19142
19143 2010-01-10  Bruno Haible  <bruno@clisp.org>
19144
19145         nproc: Work better on Linux when /proc and /sys are not mounted.
19146         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
19147         as lower bound when, on glibc/Linux systems,
19148         sysconf (_SC_NPROCESSORS_CONF) returns 1.
19149         Suggested by Pádraig Brady <P@draigbrady.com>.
19150         Reported by Dmitry V. Levin <ldv@altlinux.org>.
19151
19152         nproc: Refactor.
19153         * lib/nproc.c (num_processors_via_affinity_mask): New function,
19154         extracted from num_processors.
19155         (num_processors): Call it.
19156
19157 2010-01-11  Jim Meyering  <meyering@redhat.com>
19158
19159         utimecmp: avoid new warning from upcoming gcc-4.5.0
19160         * lib/utimecmp.c (BILLION): Define using #define rather than an
19161         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
19162
19163 2010-01-11  Eric Blake  <ebb9@byu.net>
19164
19165         math: add portability warnings for classification macros
19166         * modules/math (Depends-on): Add warn-on-use.
19167         (Makefile.am): Provide new substitutions.
19168         * m4/math_h.m4 (gl_MATH_H): Require inline.
19169         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
19170         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
19171         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
19172         implement warnings.
19173
19174         unistd: warn on use of environ without module
19175         * modules/unistd (Depends-on): Add warn-on-use.
19176         (Makefile.am): Provide new substitutions.
19177         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
19178         * lib/unistd.in.h (environ): Wrap with a warning helper function.
19179
19180         stdio: warn on suspicious uses
19181         * modules/stdio (Depends-on): Add warn-on-use.
19182         (Makefile.am): Provide new substitutions.
19183         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
19184         fseeko.
19185         * lib/stdio.in.h (gets): Always warn on use.
19186         (fseek, ftell): Adjust when warnings are issued, and honor
19187         _GL_NO_LARGE_FILES as a way to silence the warning.
19188         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
19189         any warning about large file offsets.
19190         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
19191         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
19192         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19193         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19194         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19195         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19196         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19197         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19198
19199         warn-on-use: new module
19200         * modules/warn-on-use: New file.
19201         * build-aux/warn-on-use.h: Likewise.
19202         * m4/warn-on-use.m4: Likewise.
19203         * MODULES.html.sh (Support for building): Mention it.
19204
19205 2010-01-10  Bruno Haible  <bruno@clisp.org>
19206
19207         Tests for module 'unistr/u32-strdup'.
19208         * modules/unistr/u32-strdup-tests: New file.
19209         * tests/unistr/test-u32-strdup.c: New file.
19210
19211         Tests for module 'unistr/u16-strdup'.
19212         * modules/unistr/u16-strdup-tests: New file.
19213         * tests/unistr/test-u16-strdup.c: New file.
19214
19215         Tests for module 'unistr/u8-strdup'.
19216         * modules/unistr/u8-strdup-tests: New file.
19217         * tests/unistr/test-u8-strdup.c: New file.
19218         * tests/unistr/test-strdup.h: New file.
19219
19220         Tests for module 'unistr/u32-strncmp'.
19221         * modules/unistr/u32-strncmp-tests: New file.
19222         * tests/unistr/test-u32-strncmp.c: New file.
19223
19224         Tests for module 'unistr/u16-strncmp'.
19225         * modules/unistr/u16-strncmp-tests: New file.
19226         * tests/unistr/test-u16-strncmp.c: New file.
19227
19228         Tests for module 'unistr/u8-strncmp'.
19229         * modules/unistr/u8-strncmp-tests: New file.
19230         * tests/unistr/test-u8-strncmp.c: New file.
19231         * tests/unistr/test-strncmp.h: New file.
19232
19233         Tests for module 'unistr/u32-strcoll'.
19234         * modules/unistr/u32-strcoll-tests: New file.
19235         * tests/unistr/test-u32-strcoll.c: New file.
19236
19237         Tests for module 'unistr/u16-strcoll'.
19238         * modules/unistr/u16-strcoll-tests: New file.
19239         * tests/unistr/test-u16-strcoll.c: New file.
19240
19241         Tests for module 'unistr/u8-strcoll'.
19242         * modules/unistr/u8-strcoll-tests: New file.
19243         * tests/unistr/test-u8-strcoll.c: New file.
19244
19245         Tests for module 'unistr/u32-strcmp'.
19246         * modules/unistr/u32-strcmp-tests: New file.
19247         * tests/unistr/test-u32-strcmp.c: New file.
19248         * tests/unistr/test-u32-strcmp.h: New file.
19249
19250         Tests for module 'unistr/u16-strcmp'.
19251         * modules/unistr/u16-strcmp-tests: New file.
19252         * tests/unistr/test-u16-strcmp.c: New file.
19253         * tests/unistr/test-u16-strcmp.h: New file.
19254
19255         Tests for module 'unistr/u8-strcmp'.
19256         * modules/unistr/u8-strcmp-tests: New file.
19257         * tests/unistr/test-u8-strcmp.c: New file.
19258         * tests/unistr/test-u8-strcmp.h: New file.
19259         * tests/unistr/test-strcmp.h: New file.
19260
19261         Tests for module 'unistr/u32-strncat'.
19262         * modules/unistr/u32-strncat-tests: New file.
19263         * tests/unistr/test-u32-strncat.c: New file.
19264
19265         Tests for module 'unistr/u16-strncat'.
19266         * modules/unistr/u16-strncat-tests: New file.
19267         * tests/unistr/test-u16-strncat.c: New file.
19268
19269         Tests for module 'unistr/u8-strncat'.
19270         * modules/unistr/u8-strncat-tests: New file.
19271         * tests/unistr/test-u8-strncat.c: New file.
19272         * tests/unistr/test-strncat.h: New file.
19273
19274         Tests for module 'unistr/u32-strcat'.
19275         * modules/unistr/u32-strcat-tests: New file.
19276         * tests/unistr/test-u32-strcat.c: New file.
19277
19278         Tests for module 'unistr/u16-strcat'.
19279         * modules/unistr/u16-strcat-tests: New file.
19280         * tests/unistr/test-u16-strcat.c: New file.
19281
19282         Tests for module 'unistr/u8-strcat'.
19283         * modules/unistr/u8-strcat-tests: New file.
19284         * tests/unistr/test-u8-strcat.c: New file.
19285         * tests/unistr/test-strcat.h: New file.
19286
19287         Tests for module 'unistr/u32-stpncpy'.
19288         * modules/unistr/u32-stpncpy-tests: New file.
19289         * tests/unistr/test-u32-stpncpy.c: New file.
19290
19291         Tests for module 'unistr/u16-stpncpy'.
19292         * modules/unistr/u16-stpncpy-tests: New file.
19293         * tests/unistr/test-u16-stpncpy.c: New file.
19294
19295         Tests for module 'unistr/u8-stpncpy'.
19296         * modules/unistr/u8-stpncpy-tests: New file.
19297         * tests/unistr/test-u8-stpncpy.c: New file.
19298         * tests/unistr/test-stpncpy.h: New file.
19299
19300         Tests for module 'unistr/u32-strncpy'.
19301         * modules/unistr/u32-strncpy-tests: New file.
19302         * tests/unistr/test-u32-strncpy.c: New file.
19303
19304         Tests for module 'unistr/u16-strncpy'.
19305         * modules/unistr/u16-strncpy-tests: New file.
19306         * tests/unistr/test-u16-strncpy.c: New file.
19307
19308         Tests for module 'unistr/u8-strncpy'.
19309         * modules/unistr/u8-strncpy-tests: New file.
19310         * tests/unistr/test-u8-strncpy.c: New file.
19311         * tests/unistr/test-strncpy.h: New file.
19312
19313         Tests for module 'unistr/u32-stpcpy'.
19314         * modules/unistr/u32-stpcpy-tests: New file.
19315         * tests/unistr/test-u32-stpcpy.c: New file.
19316
19317         Tests for module 'unistr/u16-stpcpy'.
19318         * modules/unistr/u16-stpcpy-tests: New file.
19319         * tests/unistr/test-u16-stpcpy.c: New file.
19320
19321         Tests for module 'unistr/u8-stpcpy'.
19322         * modules/unistr/u8-stpcpy-tests: New file.
19323         * tests/unistr/test-u8-stpcpy.c: New file.
19324         * tests/unistr/test-stpcpy.h: New file.
19325
19326         Tests for module 'unistr/u32-strcpy'.
19327         * modules/unistr/u32-strcpy-tests: New file.
19328         * tests/unistr/test-u32-strcpy.c: New file.
19329
19330         Tests for module 'unistr/u16-strcpy'.
19331         * modules/unistr/u16-strcpy-tests: New file.
19332         * tests/unistr/test-u16-strcpy.c: New file.
19333
19334         Tests for module 'unistr/u8-strcpy'.
19335         * modules/unistr/u8-strcpy-tests: New file.
19336         * tests/unistr/test-u8-strcpy.c: New file.
19337         * tests/unistr/test-strcpy.h: New file.
19338
19339         Tests for module 'unistr/u32-strnlen'.
19340         * modules/unistr/u32-strnlen-tests: New file.
19341         * tests/unistr/test-u32-strnlen.c: New file.
19342
19343         Tests for module 'unistr/u16-strnlen'.
19344         * modules/unistr/u16-strnlen-tests: New file.
19345         * tests/unistr/test-u16-strnlen.c: New file.
19346
19347         Tests for module 'unistr/u8-strnlen'.
19348         * modules/unistr/u8-strnlen-tests: New file.
19349         * tests/unistr/test-u8-strnlen.c: New file.
19350         * tests/unistr/test-strnlen.h: New file.
19351
19352         Tests for module 'unistr/u32-strlen'.
19353         * modules/unistr/u32-strlen-tests: New file.
19354         * tests/unistr/test-u32-strlen.c: New file.
19355
19356         Tests for module 'unistr/u16-strlen'.
19357         * modules/unistr/u16-strlen-tests: New file.
19358         * tests/unistr/test-u16-strlen.c: New file.
19359
19360         Tests for module 'unistr/u8-strlen'.
19361         * modules/unistr/u8-strlen-tests: New file.
19362         * tests/unistr/test-u8-strlen.c: New file.
19363
19364         Tests for module 'unistr/u32-prev'.
19365         * modules/unistr/u32-prev-tests: New file.
19366         * tests/unistr/test-u32-prev.c: New file.
19367
19368         Tests for module 'unistr/u16-prev'.
19369         * modules/unistr/u16-prev-tests: New file.
19370         * tests/unistr/test-u16-prev.c: New file.
19371
19372         Tests for module 'unistr/u8-prev'.
19373         * modules/unistr/u8-prev-tests: New file.
19374         * tests/unistr/test-u8-prev.c: New file.
19375
19376         Tests for module 'unistr/u32-next'.
19377         * modules/unistr/u32-next-tests: New file.
19378         * tests/unistr/test-u32-next.c: New file.
19379
19380         Tests for module 'unistr/u16-next'.
19381         * modules/unistr/u16-next-tests: New file.
19382         * tests/unistr/test-u16-next.c: New file.
19383
19384         Tests for module 'unistr/u8-next'.
19385         * modules/unistr/u8-next-tests: New file.
19386         * tests/unistr/test-u8-next.c: New file.
19387
19388         Tests for module 'unistr/u32-strmbtouc'.
19389         * modules/unistr/u32-strmbtouc-tests: New file.
19390         * tests/unistr/test-u32-strmbtouc.c: New file.
19391
19392         Tests for module 'unistr/u16-strmbtouc'.
19393         * modules/unistr/u16-strmbtouc-tests: New file.
19394         * tests/unistr/test-u16-strmbtouc.c: New file.
19395
19396         Tests for module 'unistr/u8-strmbtouc'.
19397         * modules/unistr/u8-strmbtouc-tests: New file.
19398         * tests/unistr/test-u8-strmbtouc.c: New file.
19399
19400         Tests for module 'unistr/u32-strmblen'.
19401         * modules/unistr/u32-strmblen-tests: New file.
19402         * tests/unistr/test-u32-strmblen.c: New file.
19403
19404         Tests for module 'unistr/u16-strmblen'.
19405         * modules/unistr/u16-strmblen-tests: New file.
19406         * tests/unistr/test-u16-strmblen.c: New file.
19407
19408         Tests for module 'unistr/u8-strmblen'.
19409         * modules/unistr/u8-strmblen-tests: New file.
19410         * tests/unistr/test-u8-strmblen.c: New file.
19411
19412         Tests for module 'unistr/u32-cpy-alloc'.
19413         * modules/unistr/u32-cpy-alloc-tests: New file.
19414         * tests/unistr/test-u32-cpy-alloc.c: New file.
19415
19416         Tests for module 'unistr/u16-cpy-alloc'.
19417         * modules/unistr/u16-cpy-alloc-tests: New file.
19418         * tests/unistr/test-u16-cpy-alloc.c: New file.
19419
19420         Tests for module 'unistr/u8-cpy-alloc'.
19421         * modules/unistr/u8-cpy-alloc-tests: New file.
19422         * tests/unistr/test-u8-cpy-alloc.c: New file.
19423         * tests/unistr/test-cpy-alloc.h: New file.
19424
19425         Tests for module 'unistr/u32-mbsnlen'.
19426         * modules/unistr/u32-mbsnlen-tests: New file.
19427         * tests/unistr/test-u32-mbsnlen.c: New file.
19428
19429         Tests for module 'unistr/u16-mbsnlen'.
19430         * modules/unistr/u16-mbsnlen-tests: New file.
19431         * tests/unistr/test-u16-mbsnlen.c: New file.
19432
19433         Tests for module 'unistr/u8-mbsnlen'.
19434         * modules/unistr/u8-mbsnlen-tests: New file.
19435         * tests/unistr/test-u8-mbsnlen.c: New file.
19436
19437         Tests for module 'unistr/u32-chr'.
19438         * modules/unistr/u32-chr-tests: New file.
19439         * tests/unistr/test-u32-chr.c: New file.
19440
19441         Tests for module 'unistr/u16-chr'.
19442         * modules/unistr/u16-chr-tests: New file.
19443         * tests/unistr/test-u16-chr.c: New file.
19444
19445         Tests for module 'unistr/u8-chr'.
19446         * modules/unistr/u8-chr-tests: New file.
19447         * tests/unistr/test-u8-chr.c: New file.
19448         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19449
19450         Tests for module 'unistr/u32-cmp2'.
19451         * modules/unistr/u32-cmp2-tests: New file.
19452         * tests/unistr/test-u32-cmp2.c: New file.
19453
19454         Tests for module 'unistr/u16-cmp2'.
19455         * modules/unistr/u16-cmp2-tests: New file.
19456         * tests/unistr/test-u16-cmp2.c: New file.
19457
19458         Tests for module 'unistr/u8-cmp2'.
19459         * modules/unistr/u8-cmp2-tests: New file.
19460         * tests/unistr/test-u8-cmp2.c: New file.
19461         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19462
19463         Tests for module 'unistr/u32-cmp'.
19464         * modules/unistr/u32-cmp-tests: New file.
19465         * tests/unistr/test-u32-cmp.c: New file.
19466
19467         Tests for module 'unistr/u16-cmp'.
19468         * modules/unistr/u16-cmp-tests: New file.
19469         * tests/unistr/test-u16-cmp.c: New file.
19470
19471         Tests for module 'unistr/u8-cmp'.
19472         * modules/unistr/u8-cmp-tests: New file.
19473         * tests/unistr/test-u8-cmp.c: New file.
19474         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
19475
19476         Tests for module 'unistr/u32-set'.
19477         * modules/unistr/u32-set-tests: New file.
19478         * tests/unistr/test-u32-set.c: New file.
19479
19480         Tests for module 'unistr/u16-set'.
19481         * modules/unistr/u16-set-tests: New file.
19482         * tests/unistr/test-u16-set.c: New file.
19483
19484         Tests for module 'unistr/u8-set'.
19485         * modules/unistr/u8-set-tests: New file.
19486         * tests/unistr/test-u8-set.c: New file.
19487         * tests/unistr/test-set.h: New file.
19488
19489         Tests for module 'unistr/u32-move'.
19490         * modules/unistr/u32-move-tests: New file.
19491         * tests/unistr/test-u32-move.c: New file.
19492
19493         Tests for module 'unistr/u16-move'.
19494         * modules/unistr/u16-move-tests: New file.
19495         * tests/unistr/test-u16-move.c: New file.
19496
19497         Tests for module 'unistr/u8-move'.
19498         * modules/unistr/u8-move-tests: New file.
19499         * tests/unistr/test-u8-move.c: New file.
19500         * tests/unistr/test-move.h: New file.
19501
19502         Tests for module 'unistr/u32-cpy'.
19503         * modules/unistr/u32-cpy-tests: New file.
19504         * tests/unistr/test-u32-cpy.c: New file.
19505
19506         Tests for module 'unistr/u16-cpy'.
19507         * modules/unistr/u16-cpy-tests: New file.
19508         * tests/unistr/test-u16-cpy.c: New file.
19509
19510         Tests for module 'unistr/u8-cpy'.
19511         * modules/unistr/u8-cpy-tests: New file.
19512         * tests/unistr/test-u8-cpy.c: New file.
19513         * tests/unistr/test-cpy.h: New file.
19514
19515 2010-01-09  Bruno Haible  <bruno@clisp.org>
19516
19517         Tests for module 'unistr/u32-uctomb'.
19518         * modules/unistr/u32-uctomb-tests: New file.
19519         * tests/unistr/test-u32-uctomb.c: New file.
19520
19521         Tests for module 'unistr/u16-uctomb'.
19522         * modules/unistr/u16-uctomb-tests: New file.
19523         * tests/unistr/test-u16-uctomb.c: New file.
19524
19525         Tests for module 'unistr/u8-uctomb'.
19526         * modules/unistr/u8-uctomb-tests: New file.
19527         * tests/unistr/test-u8-uctomb.c: New file.
19528
19529         Tests for module 'unistr/u32-mbtoucr'.
19530         * modules/unistr/u32-mbtoucr-tests: New file.
19531         * tests/unistr/test-u32-mbtoucr.c: New file.
19532
19533         Tests for module 'unistr/u16-mbtoucr'.
19534         * modules/unistr/u16-mbtoucr-tests: New file.
19535         * tests/unistr/test-u16-mbtoucr.c: New file.
19536
19537         Tests for module 'unistr/u8-mbtoucr'.
19538         * modules/unistr/u8-mbtoucr-tests: New file.
19539         * tests/unistr/test-u8-mbtoucr.c: New file.
19540
19541         Tests for module 'unistr/u32-mbtouc'.
19542         * modules/unistr/u32-mbtouc-tests: New file.
19543         * tests/unistr/test-u32-mbtouc.c: New file.
19544
19545         Tests for module 'unistr/u16-mbtouc'.
19546         * modules/unistr/u16-mbtouc-tests: New file.
19547         * tests/unistr/test-u16-mbtouc.c: New file.
19548
19549         Tests for module 'unistr/u8-mbtouc'.
19550         * modules/unistr/u8-mbtouc-tests: New file.
19551         * tests/unistr/test-u8-mbtouc.c: New file.
19552
19553         Tests for module 'unistr/u32-mbtouc-unsafe'.
19554         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
19555         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
19556         * tests/unistr/test-u32-mbtouc.h: New file.
19557
19558         Tests for module 'unistr/u16-mbtouc-unsafe'.
19559         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
19560         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
19561         * tests/unistr/test-u16-mbtouc.h: New file.
19562
19563         Tests for module 'unistr/u8-mbtouc-unsafe'.
19564         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
19565         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
19566         * tests/unistr/test-u8-mbtouc.h: New file.
19567
19568         Tests for module 'unistr/u32-mblen'.
19569         * modules/unistr/u32-mblen-tests: New file.
19570         * tests/unistr/test-u32-mblen.c: New file.
19571
19572         Tests for module 'unistr/u16-mblen'.
19573         * modules/unistr/u16-mblen-tests: New file.
19574         * tests/unistr/test-u16-mblen.c: New file.
19575
19576         Tests for module 'unistr/u8-mblen'.
19577         * modules/unistr/u8-mblen-tests: New file.
19578         * tests/unistr/test-u8-mblen.c: New file.
19579
19580         Tests for module 'unistr/u32-to-u16'.
19581         * modules/unistr/u32-to-u16-tests: New file.
19582         * tests/unistr/test-u32-to-u16.c: New file.
19583
19584         Tests for module 'unistr/u32-to-u8'.
19585         * modules/unistr/u32-to-u8-tests: New file.
19586         * tests/unistr/test-u32-to-u8.c: New file.
19587
19588         Tests for module 'unistr/u16-to-u32'.
19589         * modules/unistr/u16-to-u32-tests: New file.
19590         * tests/unistr/test-u16-to-u32.c: New file.
19591
19592         Tests for module 'unistr/u16-to-u8'.
19593         * modules/unistr/u16-to-u8-tests: New file.
19594         * tests/unistr/test-u16-to-u8.c: New file.
19595
19596         Tests for module 'unistr/u8-to-u32'.
19597         * modules/unistr/u8-to-u32-tests: New file.
19598         * tests/unistr/test-u8-to-u32.c: New file.
19599
19600         Tests for module 'unistr/u8-to-u16'.
19601         * modules/unistr/u8-to-u16-tests: New file.
19602         * tests/unistr/test-u8-to-u16.c: New file.
19603
19604         Tests for module 'unistr/u32-check'.
19605         * modules/unistr/u32-check-tests: New file.
19606         * tests/unistr/test-u32-check.c: New file.
19607
19608         Tests for module 'unistr/u16-check'.
19609         * modules/unistr/u16-check-tests: New file.
19610         * tests/unistr/test-u16-check.c: New file.
19611
19612         Tests for module 'unistr/u8-check'.
19613         * modules/unistr/u8-check-tests: New file.
19614         * tests/unistr/test-u8-check.c: New file.
19615
19616         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
19617         (category_equals): New function.
19618         (main): Add more tests.
19619         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
19620
19621         * tests/unictype/test-bidi_byname.c (main): Add more tests.
19622
19623 2010-01-10  Bruno Haible  <bruno@clisp.org>
19624
19625         unistr/u*-strcoll: Try harder to distinguish different strings.
19626         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
19627         compare s1 and s2 to see if they are different.
19628
19629 2010-01-10  Bruno Haible  <bruno@clisp.org>
19630
19631         unistr/u*-stpncpy: Fix the return value.
19632         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
19633         description of the return value consistent with stpncpy in glibc.
19634         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
19635         written non-NUL unit.
19636
19637 2010-01-10  Bruno Haible  <bruno@clisp.org>
19638
19639         unistr/u*-next: Add missing dependencies.
19640         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
19641         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
19642         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
19643
19644 2010-01-10  Bruno Haible  <bruno@clisp.org>
19645
19646         unistr/u8-mbsnlen: Fix return value for incomplete character.
19647         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
19648         u8_mblen.
19649         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
19650         Remove unistr/u8-mblen.
19651         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
19652         u16_mblen.
19653         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
19654         Remove unistr/u16-mblen.
19655
19656 2010-01-10  Bruno Haible  <bruno@clisp.org>
19657
19658         wchar: Fix compilation error when <wchar.h> is used from coreutils.
19659         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
19660         Reported by Brian Gough <bjg@gnu.org> and
19661         Chris Clayton <chris2553@googlemail.com> via
19662         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
19663
19664 2010-01-09  Bruno Haible  <bruno@clisp.org>
19665
19666         unistr/u16-to-u32: Reject invalid input.
19667         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
19668         u16_mbtouc.
19669         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
19670         Remove unistr/u16-mbtouc.
19671
19672         unistr/u16-to-u8: Reject invalid input.
19673         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
19674         u16_mbtouc.
19675         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
19676         Remove unistr/u16-mbtouc.
19677
19678         unistr/u8-to-u32: Reject invalid input.
19679         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
19680         u8_mbtouc.
19681         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
19682         Remove unistr/u8-mbtouc.
19683
19684         unistr/u8-to-u16: Reject invalid input.
19685         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
19686         u8_mbtouc.
19687         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
19688         Remove unistr/u8-mbtouc.
19689
19690 2010-01-09  Bruno Haible  <bruno@clisp.org>
19691
19692         Tests for module 'getlogin'.
19693         * modules/getlogin-tests: New file.
19694         * tests/test-getlogin.c: New file.
19695
19696         New module 'getlogin'.
19697         * lib/unistd.in.h (getlogin): New declaration.
19698         * lib/getlogin.c: New file.
19699         * m4/getlogin.m4: New file.
19700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
19701         HAVE_GETLOGIN.
19702         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
19703         HAVE_GETLOGIN.
19704         * modules/getlogin: New file.
19705         * doc/posix-functions/getlogin.texi: Mention the new module.
19706         Reported by John W. Eaton <jwe@gnu.org>.
19707
19708 2010-01-09  Bruno Haible  <bruno@clisp.org>
19709
19710         getlogin_r: Support for native Windows.
19711         * lib/getlogin_r.c: Include <windows.h>
19712         (getlogin_r): Implement for native Windows.
19713         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
19714         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
19715         via John W. Eaton <jwe@gnu.org>.
19716
19717 2010-01-09  Bruno Haible  <bruno@clisp.org>
19718
19719         getlogin_r: Small fixes.
19720         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
19721         succeeds.
19722         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
19723         before testing whether getlogin_r is declared. No need to set
19724         HAVE_DECL_GETLOGIN_R to 1.
19725         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
19726
19727 2010-01-09  Bruno Haible  <bruno@clisp.org>
19728
19729         * lib/unistd.in.h (getlogin_r): Add comment.
19730
19731 2010-01-09  Bruno Haible  <bruno@clisp.org>
19732
19733         Tests for module 'getlogin_r'.
19734         * modules/getlogin_r-tests: New file.
19735         * tests/test-getlogin_r.c: New file.
19736
19737 2010-01-09  Jim Meyering  <meyering@redhat.com>
19738
19739         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
19740         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
19741         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
19742
19743 2010-01-08  Simon Josefsson  <simon@josefsson.org>
19744
19745         * lib/dup2.c (rpl_dup2): Improve comment.
19746
19747 2010-01-08  Eric Blake  <ebb9@byu.net>
19748
19749         maint.mk: allow packages to add makefile @@ exceptions
19750         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
19751         (sc_makefile_check): Rename...
19752         (sc_makefile_at_at_check): ...to this, and use hook.
19753
19754         dup2: work around mingw bug
19755         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
19756         Reported by Simon Josefsson.
19757
19758 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
19759
19760         glob: Fix C++ compilation.
19761         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
19762         C++.
19763
19764 2010-01-07  Bruno Haible  <bruno@clisp.org>
19765
19766         Fix indentation of wctype.in.h, broken since 2007-01-06.
19767         * lib/wctype.in.h: Fix indentation of preprocessor directives.
19768
19769 2010-01-07  Bruno Haible  <bruno@clisp.org>
19770
19771         mbslen: Avoid collision with system function.
19772         * lib/string.in.h [MirBSD]: Include <wchar.h>.
19773         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
19774         * m4/mbslen.m4: New file.
19775         * modules/mbslen (Files): Add it.
19776         (configure.ac): Invoke gl_MBSLEN.
19777         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
19778         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
19779         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
19780         via Ian Beckwith <ianb@erislabs.net>.
19781
19782 2010-01-07  Bruno Haible  <bruno@clisp.org>
19783
19784         dirent: Document the last fix.
19785         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
19786
19787 2010-01-07  Bruno Haible  <bruno@clisp.org>
19788
19789         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
19790         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
19791         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
19792         va_list are defined.
19793         * doc/posix-headers/stdio.texi: Document the bug of missing types.
19794         Reported by Eric Blake.
19795
19796 2010-01-07  Bruno Haible  <bruno@clisp.org>
19797
19798         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
19799         * modules/xlist (Depends-on): Add 'list',
19800         * modules/xoset (Depends-on): Add 'oset'.
19801         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19802
19803 2010-01-07  Bruno Haible  <bruno@clisp.org>
19804
19805         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
19806         * doc/posix-functions/strncasecmp.texi: Likewise.
19807
19808 2010-01-07  Bruno Haible  <bruno@clisp.org>
19809
19810         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
19811
19812 2010-01-07  John W. Eaton  <jwe@octave.org>
19813
19814         wctype: allow C++ use
19815         * lib/wctype.in.h: Add extern "C" block for C++.
19816
19817 2010-01-06  Eric Blake  <ebb9@byu.net>
19818
19819         maint.mk: detect incorrect GFDL usage
19820         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
19821
19822 2010-01-06  Jim Meyering  <meyering@redhat.com>
19823         and Eric Blake  <ebb9@byu.net>
19824
19825         maint.mk: ignore multi-line copyright in NEWS
19826         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
19827
19828 2010-01-06  Eric Blake  <ebb9@byu.net>
19829
19830         select: add missing dependency
19831         * modules/select-tests (Depends-on): Move sockets dependency...
19832         * modules/select (Depends-on): ...here.
19833         Reported by Ian Beckwith.
19834
19835         doc: regenerate INSTALL
19836         * doc/INSTALL: Reflect recent autoconf update.
19837         * doc/INSTALL.ISO: Likewise.
19838         * doc/INSTALL.UTF-8: Likewise.
19839
19840         pread: fix compilation on glibc
19841         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
19842         Reported by Ralf Wildenhues.
19843
19844         dirent: fix test failure
19845         * lib/dirent.in.h (includes): Guarantee ino_t.
19846         Reported by Ralf Wildenhues.
19847
19848 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
19849
19850         linkat, renameat: avoid bad free
19851         * lib/at-func2.c (at_func2): Fix typo.
19852         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
19853
19854 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19855
19856         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
19857         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
19858         to avoid failure of symlink test later.
19859
19860 2010-01-06  Eric Blake  <ebb9@byu.net>
19861
19862         stdio, unistd: guarantee ssize_t
19863         * lib/unistd.in.h (includes): Ensure that types required by POSIX
19864         2008 are exposed when needed.
19865         * lib/stdio.in.h (includes): Likewise.
19866         Reported by Ralf Wildenhues.
19867
19868 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
19869
19870         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
19871         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
19872         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
19873
19874 2010-01-06  Jim Meyering  <meyering@redhat.com>
19875
19876         readtokens: this module *does* require xalloc.h
19877         It uses only functions that were omitted by the old syntax-check rule.
19878         * lib/readtokens.c: Include "xalloc.h" once again.
19879         * modules/readtokens (Depends-on): Add xalloc.
19880         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
19881
19882 2010-01-05  Eric Blake  <ebb9@byu.net>
19883
19884         maint: support 'make announcement' from a VPATH build
19885         * top/maint.mk (announcement): Look for correct NEWS file.
19886
19887 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
19888
19889         utimens (fdutimens): ignore a negative FD, per contract
19890         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
19891         when we have a valid file descriptor.  Otherwise, using a brand
19892         new glibc (with just-patched futimens that now fails with EBADF)
19893         would cause this function to fail with ENOSYS.
19894         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
19895         See also http://bugzilla.redhat.com/552320.
19896
19897 2010-01-05  Eric Blake  <ebb9@byu.net>
19898
19899         strcase: document what it provides
19900         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
19901         gnulib module.
19902         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
19903         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
19904
19905 2010-01-05  Jim Meyering  <meyering@redhat.com>
19906
19907         maint: remove useless inclusions of "xalloc.h"
19908         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
19909         * lib/readtokens.c: Likewise.
19910         * lib/same.c: Likewise.
19911         * modules/getloadavg (Depends-on): Remove xalloc.
19912         * modules/readtokens: Likewise.
19913         * modules/same: Likewise.
19914
19915         maint.mk: include 4 more function names in alloca.h-checking regexp
19916         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
19917         regexp.  Before, we would give a false-positive (saying alloca.h
19918         is included unnecessarily) when the only uses involved omitted symbols.
19919
19920         xalloc.h: use consistent formatting
19921         * lib/xalloc.h: Move declarations to start in the first column.
19922
19923 2010-01-05  Eric Blake  <ebb9@byu.net>
19924
19925         mkdir: avoid xalloc
19926         * lib/mkdir.c (includes): Drop unused header.
19927         Reported by John W. Eaton.
19928
19929 2010-01-04  Jim Meyering  <meyering@redhat.com>
19930
19931         nl_langinfo: avoid configure-time syntax error
19932         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
19933         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
19934         the empty string.  Don't let that provoke a shell syntax error.
19935
19936         regcomp, regexec, fnmatch: avoid array bounds read error
19937         * lib/regcomp.c (build_equiv_class): From glibc:
19938         Use only the low 24 bits of a findidx return value as an index
19939         into the weights array.  Patch by Ulrich Drepper:
19940         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
19941         * lib/regexec.c (check_node_accept_bytes): Likewise.
19942         * lib/fnmatch_loop.c (FCT): Likewise.
19943
19944         regcomp: skip collseq lookup when there are no rules
19945         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
19946         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
19947
19948         regcomp: recognize ill-formed { } expressions
19949         * lib/regcomp.c (parse_dup_op): From glibc:
19950         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
19951
19952         regcomp: fix typo in comment
19953         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
19954         s/satisfy/satisfies/.
19955
19956         regcomp: sync from glibc: remove dead store
19957         * lib/regcomp.c (duplicate_node_closure): Remove useless
19958         search_duplicated_node call and dead store.
19959
19960         regcomp: sync from glibc; always use nl_langinfo
19961         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
19962         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
19963         * modules/regex (Depends-on): Add nl_langinfo.
19964
19965 2010-01-04  Eric Blake  <ebb9@byu.net>
19966
19967         fdopendir: fix configure test
19968         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
19969
19970 2010-01-01  Bruno Haible  <bruno@clisp.org>
19971
19972         wchar: Remove unused configure check.
19973         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
19974
19975 2010-01-01  Eric Blake  <ebb9@byu.net>
19976
19977         headers: make check of system header explicit
19978         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
19979         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
19980         ourselves.
19981         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19982         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19983         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
19984         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
19985         internals.
19986         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
19987         missing.
19988         Suggested by Bruno Haible.
19989
19990 2010-01-01  Jim Meyering  <meyering@redhat.com>
19991
19992         ChangeLog: tweak to eliminate unnecessary copyright line
19993         * ChangeLog: Remove a copyright line that was mistakenly updated
19994         by today's update-copyright run.  Reported by Eric Blake.
19995
19996         test-update-copyright: don't let envvar setting cause test failure
19997         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19998
19999 2010-01-01  Bruno Haible  <bruno@clisp.org>
20000
20001         localename: Avoid gcc warning.
20002         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
20003         function if it is not used.
20004
20005 2010-01-01  Jim Meyering  <meyering@redhat.com>
20006
20007         update nearly all FSF copyright year lists to include 2010
20008         Use the same procedure as for 2009, outlined in
20009         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
20010
20011         version-etc: set COPYRIGHT_YEAR to 2010
20012         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
20013
20014 2009-12-31  Eric Blake  <ebb9@byu.net>
20015
20016         doc: correct availability of cygwin 1.5.x getopt
20017         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
20018         variables.
20019         * doc/posix-functions/opterr.texi (opterr): Likewise.
20020         * doc/posix-functions/optind.texi (optind): Likewise.
20021         * doc/posix-functions/optopt.texi (optopt): Likewise.
20022         * doc/posix-functions/tzname.texi (tzname): Likewise.
20023
20024         openat: update maintainer
20025         * modules/openat (Maintainer): Add myself.
20026
20027         utimens: avoid shadowing warning
20028         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
20029         buffers into one, to avoid shadowing, as well as avoiding a
20030         redundant stat.
20031         Reported by Jim Meyering.
20032
20033         test-dup2: avoid compiler warning
20034         * tests/test-dup2.c (is_inheritable): Only define if used.
20035
20036 2010-01-01  Bruno Haible  <bruno@clisp.org>
20037
20038         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
20039         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
20040         defined, use wctomb instead of wcrtomb.
20041
20042 2010-01-01  Bruno Haible  <bruno@clisp.org>
20043
20044         iconv: Reject native Solaris iconv.
20045         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
20046         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
20047
20048 2009-12-31  Bruno Haible  <bruno@clisp.org>
20049
20050         * tests/test-signal.c (main): Remove test of 'SIG'.
20051
20052 2009-12-31  Bruno Haible  <bruno@clisp.org>
20053
20054         spawn: Fix incomplete fix.
20055         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20056         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20057         warnings for GNULIB_POSIXCHECK again.
20058         Reported by Eric Blake.
20059
20060 2009-12-31  Bruno Haible  <bruno@clisp.org>
20061
20062         Avoid namespace pollution on glibc systems.
20063         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
20064         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
20065         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
20066         glibc systems.
20067
20068 2009-12-31  Bruno Haible  <bruno@clisp.org>
20069
20070         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
20071         (gl_REPLACE_WCHAR_H): Turn into a no-op.
20072         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
20073         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20074         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20075         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20076         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20077
20078 2009-12-31  Bruno Haible  <bruno@clisp.org>
20079
20080         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20081         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
20082         afterwards.
20083
20084 2009-12-31  Bruno Haible  <bruno@clisp.org>
20085
20086         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
20087         SYS_UTSNAME_H.
20088
20089 2009-12-31  Bruno Haible  <bruno@clisp.org>
20090
20091         spawn: Fix misapplied patch.
20092         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20093         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20094         warnings for GNULIB_POSIXCHECK.
20095
20096 2009-12-31  Bruno Haible  <bruno@clisp.org>
20097
20098         times: Update after sys_times changed.
20099         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
20100         * modules/times (Files): Add it.
20101         (configure.ac): Invoke gl_FUNC_TIMES.
20102
20103 2009-12-31  Bruno Haible  <bruno@clisp.org>
20104
20105         Use AC_C_INLINE where necessary.
20106         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
20107         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20108         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20109         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20110         * m4/mbfile.m4 (gl_MBFILE): Likewise.
20111         * m4/mbiter.m4 (gl_MBITER): Likewise.
20112         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20113         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20114         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
20115         * modules/u64 (configure.ac): Likewise.
20116
20117 2009-12-31  Bruno Haible  <bruno@clisp.org>
20118
20119         Use AC_C_INLINE instead of module 'inline' where possible.
20120         * modules/inline (Description): Clarify purpose.
20121         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
20122         * modules/count-one-bits (Depends-on): Remove inline.
20123         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
20124         * modules/openat (Depends-on): Remove inline.
20125         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
20126         instead of depending on module 'inline'.
20127         * modules/filevercmp (Depends-on, configure.ac): Likewise.
20128         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
20129         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
20130         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
20131         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
20132         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
20133         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
20134         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
20135         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
20136         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
20137         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
20138         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
20139         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
20140         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
20141         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
20142         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
20143         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
20144         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
20145         Likewise.
20146         * modules/unictype/property-ascii-hex-digit (Depends-on,
20147         configure.ac): Likewise.
20148         * modules/unictype/property-bidi-arabic-digit (Depends-on,
20149         configure.ac): Likewise.
20150         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
20151         configure.ac): Likewise.
20152         * modules/unictype/property-bidi-block-separator (Depends-on,
20153         configure.ac): Likewise.
20154         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
20155         configure.ac): Likewise.
20156         * modules/unictype/property-bidi-common-separator (Depends-on,
20157         configure.ac): Likewise.
20158         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
20159         Likewise.
20160         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
20161         configure.ac): Likewise.
20162         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
20163         configure.ac): Likewise.
20164         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
20165         configure.ac): Likewise.
20166         * modules/unictype/property-bidi-european-digit (Depends-on,
20167         configure.ac): Likewise.
20168         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
20169         configure.ac): Likewise.
20170         * modules/unictype/property-bidi-left-to-right (Depends-on,
20171         configure.ac): Likewise.
20172         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
20173         configure.ac): Likewise.
20174         * modules/unictype/property-bidi-other-neutral (Depends-on,
20175         configure.ac): Likewise.
20176         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
20177         Likewise.
20178         * modules/unictype/property-bidi-segment-separator (Depends-on,
20179         configure.ac): Likewise.
20180         * modules/unictype/property-bidi-whitespace (Depends-on,
20181         configure.ac): Likewise.
20182         * modules/unictype/property-combining (Depends-on, configure.ac):
20183         Likewise.
20184         * modules/unictype/property-composite (Depends-on, configure.ac):
20185         Likewise.
20186         * modules/unictype/property-currency-symbol (Depends-on,
20187         configure.ac): Likewise.
20188         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
20189         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
20190         Likewise.
20191         * modules/unictype/property-default-ignorable-code-point (Depends-on,
20192         configure.ac): Likewise.
20193         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20194         Likewise.
20195         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20196         Likewise.
20197         * modules/unictype/property-extender (Depends-on, configure.ac):
20198         Likewise.
20199         * modules/unictype/property-format-control (Depends-on, configure.ac):
20200         Likewise.
20201         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20202         Likewise.
20203         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20204         Likewise.
20205         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20206         Likewise.
20207         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20208         Likewise.
20209         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20210         Likewise.
20211         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20212         Likewise.
20213         * modules/unictype/property-id-start (Depends-on, configure.ac):
20214         Likewise.
20215         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20216         Likewise.
20217         * modules/unictype/property-ids-binary-operator (Depends-on,
20218         configure.ac): Likewise.
20219         * modules/unictype/property-ids-trinary-operator (Depends-on,
20220         configure.ac): Likewise.
20221         * modules/unictype/property-ignorable-control (Depends-on,
20222         configure.ac): Likewise.
20223         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20224         Likewise.
20225         * modules/unictype/property-join-control (Depends-on, configure.ac):
20226         Likewise.
20227         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20228         Likewise.
20229         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20230         Likewise.
20231         * modules/unictype/property-logical-order-exception (Depends-on,
20232         configure.ac): Likewise.
20233         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20234         Likewise.
20235         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20236         * modules/unictype/property-non-break (Depends-on, configure.ac):
20237         Likewise.
20238         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20239         Likewise.
20240         * modules/unictype/property-numeric (Depends-on, configure.ac):
20241         Likewise.
20242         * modules/unictype/property-other-alphabetic (Depends-on,
20243         configure.ac): Likewise.
20244         * modules/unictype/property-other-default-ignorable-code-point
20245         (Depends-on, configure.ac): Likewise.
20246         * modules/unictype/property-other-grapheme-extend (Depends-on,
20247         configure.ac): Likewise.
20248         * modules/unictype/property-other-id-continue (Depends-on,
20249         configure.ac): Likewise.
20250         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20251         Likewise.
20252         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20253         Likewise.
20254         * modules/unictype/property-other-math (Depends-on, configure.ac):
20255         Likewise.
20256         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20257         Likewise.
20258         * modules/unictype/property-paired-punctuation (Depends-on,
20259         configure.ac): Likewise.
20260         * modules/unictype/property-paragraph-separator (Depends-on,
20261         configure.ac): Likewise.
20262         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
20263         Likewise.
20264         * modules/unictype/property-pattern-white-space (Depends-on,
20265         configure.ac): Likewise.
20266         * modules/unictype/property-private-use (Depends-on, configure.ac):
20267         Likewise.
20268         * modules/unictype/property-punctuation (Depends-on, configure.ac):
20269         Likewise.
20270         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
20271         Likewise.
20272         * modules/unictype/property-radical (Depends-on, configure.ac):
20273         Likewise.
20274         * modules/unictype/property-sentence-terminal (Depends-on,
20275         configure.ac): Likewise.
20276         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
20277         Likewise.
20278         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
20279         * modules/unictype/property-terminal-punctuation (Depends-on,
20280         configure.ac): Likewise.
20281         * modules/unictype/property-titlecase (Depends-on, configure.ac):
20282         Likewise.
20283         * modules/unictype/property-unassigned-code-value (Depends-on,
20284         configure.ac): Likewise.
20285         * modules/unictype/property-unified-ideograph (Depends-on,
20286         configure.ac): Likewise.
20287         * modules/unictype/property-uppercase (Depends-on, configure.ac):
20288         Likewise.
20289         * modules/unictype/property-variation-selector (Depends-on,
20290         configure.ac): Likewise.
20291         * modules/unictype/property-white-space (Depends-on, configure.ac):
20292         Likewise.
20293         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
20294         Likewise.
20295         * modules/unictype/property-xid-start (Depends-on, configure.ac):
20296         Likewise.
20297         * modules/unictype/property-zero-width (Depends-on, configure.ac):
20298         Likewise.
20299         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
20300         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
20301         Likewise.
20302
20303 2009-12-31  Bruno Haible  <bruno@clisp.org>
20304
20305         Remove unnecessary AC_C_INLINE invocation.
20306         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
20307         since 2009-08-21.
20308
20309 2009-12-31  Jim Meyering  <meyering@redhat.com>
20310
20311         maint.mk: don't require explicit gpg_key_ID in cfg.mk
20312         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
20313         With this change, we can all remove the gpg_key_ID = ... definition
20314         from our respective cfg.mk files.
20315
20316         maint.mk: create announcement template in ~/, not in /tmp
20317         * top/maint.mk (emit_upload_commands): Adjust.
20318         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
20319         Remove temporary file, .ci-msg.
20320
20321 2009-12-31  Eric Blake  <ebb9@byu.net>
20322
20323         link-warning: always build headers with link warnings
20324         * modules/arpa_inet (Makefile.am): Always build replacement
20325         header.
20326         * modules/ctype (Makefile.am): Likewise.
20327         * modules/dirent (Makefile.am): Likewise.
20328         * modules/inttypes (Makefile.am): Likewise.
20329         * modules/langinfo (Makefile.am): Likewise.
20330         * modules/locale (Makefile.am): Likewise.
20331         * modules/spawn (Makefile.am): Likewise.
20332         * modules/sys_file (Makefile.am): Likewise.
20333         * modules/sys_ioctl (Makefile.am): Likewise.
20334         * modules/sys_select (Makefile.am): Likewise.
20335         * modules/sys_socket (Makefile.am): Likewise.
20336         * modules/sys_times (Makefile.am): Likewise.
20337         * modules/sys_utsname (Makefile.am): Likewise.
20338         * modules/sys_wait (Makefile.am): Likewise.
20339         * modules/wchar (Makefile.am): Likewise.
20340         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20341         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20342         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20343         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20344         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20345         Likewise.
20346         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20347         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20348         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20349         Likewise.
20350         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20351         Likewise.
20352         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20353         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20354         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20355         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20356         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20357         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20358         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20359         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20360         (gl_WCHAR_H_DEFAULTS): Likewise.
20361
20362 2009-12-31  Eric Blake  <ebb9@byu.net>
20363
20364         signal, spawn: use link warnings
20365         * lib/signal.in.h (sigset_t): Make unconditional.
20366         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20367         (sigpending, sigprocmask, sigaction): Add link warnings.
20368         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20369         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20370         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20371         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20372         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20373         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20374         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20375         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20376         (posix_spawn_file_actions_destroy)
20377         (posix_spawn_file_actions_addopen)
20378         (posix_spawn_file_actions_addclose)
20379         (posix_spawn_file_actions_adddup2): Likewise.
20380         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20381         * tests/test-signal.c (main): Enhance test.
20382
20383         spawn: improve wrapper support
20384         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20385         (gl_SPAWN_H_DEFAULTS): New defaults.
20386         * modules/spawn (Makefile.am): Substitute them.
20387         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20388         Only declare if missing or broken.
20389
20390         sys_times, sys_utsname: use include_next
20391         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20392         header.
20393         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20394         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20395         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20396         * modules/sys_times (Depends-on): Add include_next.
20397         (Makefile.am): Substitute additional values.
20398         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20399         * lib/sys_times.in.h (includes): Include native header, if
20400         available.
20401         * lib/sys_utsname.in.h (includes): Likewise.
20402         * tests/test-sys_times.c (main): Enhance test.
20403
20404         fdutimensat: revert prior patch
20405         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20406         utimens.h.
20407         Reported by Bruno Haible.
20408
20409 2009-12-30  Eric Blake  <ebb9@byu.net>
20410
20411         sys_wait: drop link-warning dependency
20412         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20413         link-warning efforts.
20414         * lib/sys_wait.in.h: Likewise.
20415
20416         fdutimensat: remove bogus dependency
20417         * modules/fdutimensat (Depends-on): Drop inline.
20418
20419         unistd: fix typo
20420         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20421
20422 2009-12-30  Bruno Haible  <bruno@clisp.org>
20423
20424         Fix compilation error with Solaris cc.
20425         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20426         * lib/unicase/u16-is-invariant.c: Likewise.
20427         * lib/unicase/u32-is-invariant.c: Likewise.
20428         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20429
20430 2009-12-30  Bruno Haible  <bruno@clisp.org>
20431
20432         Fix test crash.
20433         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20434         locales.
20435         Reported by Simon Josefsson <simon@josefsson.org>.
20436
20437 2009-12-30  Bruno Haible  <bruno@clisp.org>
20438
20439         Fix compilation error on most platforms.
20440         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20441         Reported by Simon Josefsson <simon@josefsson.org>
20442         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20443
20444 2009-12-30  Eric Blake  <ebb9@byu.net>
20445
20446         futimens, utimensat: work around ntfs-3g bug
20447         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20448         a ctime bug is present, and expand workaround to cover ntfs-3g.
20449         * lib/utimens.c (fdutimens, lutimens): Likewise.
20450         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20451         (validate_timespec): Adjust return value.
20452         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20453         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20454         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20455
20456 2009-12-29  Eric Blake  <ebb9@byu.net>
20457
20458         link-warning: make usage consistent
20459         * modules/ctype (Depends-on): Add link-warning.
20460         (Makefile.am): Update rules accordingly.
20461         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20462         * modules/locale (Depends-on, Makefile.am): Likewise.
20463         * modules/sys_file (Makefile.am): Likewise.
20464         * modules/getopt-posix (Makefile.am): Delete unused link warning
20465         efforts.
20466         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20467         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20468         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20469         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20470
20471         stdio: remove unused variables
20472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20473         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
20474         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20475
20476         tests: test more substitute headers
20477         * modules/ctype-tests: New file.
20478         * modules/dirent-tests: Likewise.
20479         * modules/spawn-tests: Likewise.
20480         * modules/sys_file-tests: Likewise.
20481         * modules/sys_ioctl-tests: Likewise.
20482         * modules/sys_wait-tests: Likewise.
20483         * tests/test-ctype.c: Likewise.
20484         * tests/test-dirent.c: Likewise.
20485         * tests/test-spawn.c: Likewise.
20486         * tests/test-sys_file.c: Likewise.
20487         * tests/test-sys_ioctl.c: Likewise.
20488         * tests/test-sys_wait.c: Likewise.
20489         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
20490         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
20491         whether or not flock is in use.
20492
20493         tests: remove License section from module
20494         * modules/arpa_inet-tests: Remove unneeded section.
20495         * modules/byteswap-tests: Likewise.
20496         * modules/ceilf-tests: Likewise.
20497         * modules/ceill-tests: Likewise.
20498         * modules/crypto/des-tests: Likewise.
20499         * modules/crypto/gc-arcfour-tests: Likewise.
20500         * modules/crypto/gc-arctwo-tests: Likewise.
20501         * modules/crypto/gc-des-tests: Likewise.
20502         * modules/crypto/gc-hmac-md5-tests: Likewise.
20503         * modules/crypto/gc-hmac-sha1-tests: Likewise.
20504         * modules/crypto/gc-md2-tests: Likewise.
20505         * modules/crypto/gc-md4-tests: Likewise.
20506         * modules/crypto/gc-md5-tests: Likewise.
20507         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
20508         * modules/crypto/gc-rijndael-tests: Likewise.
20509         * modules/crypto/gc-sha1-tests: Likewise.
20510         * modules/crypto/gc-tests: Likewise.
20511         * modules/crypto/md2-tests: Likewise.
20512         * modules/crypto/md4-tests: Likewise.
20513         * modules/fcntl-h-tests: Likewise.
20514         * modules/floorf-tests: Likewise.
20515         * modules/floorl-tests: Likewise.
20516         * modules/frexp-nolibm-tests: Likewise.
20517         * modules/frexp-tests: Likewise.
20518         * modules/frexpl-nolibm-tests: Likewise.
20519         * modules/frexpl-tests: Likewise.
20520         * modules/getaddrinfo-tests: Likewise.
20521         * modules/inttypes-tests: Likewise.
20522         * modules/isfinite-tests: Likewise.
20523         * modules/isinf-tests: Likewise.
20524         * modules/ldexpl-tests: Likewise.
20525         * modules/locale-tests: Likewise.
20526         * modules/math-tests: Likewise.
20527         * modules/netdb-tests: Likewise.
20528         * modules/netinet_in-tests: Likewise.
20529         * modules/printf-frexp-tests: Likewise.
20530         * modules/printf-frexpl-tests: Likewise.
20531         * modules/priv-set-tests: Likewise.
20532         * modules/random_r-tests: Likewise.
20533         * modules/round-tests: Likewise.
20534         * modules/roundf-tests: Likewise.
20535         * modules/roundl-tests: Likewise.
20536         * modules/search-tests: Likewise.
20537         * modules/select-tests: Likewise.
20538         * modules/signal-tests: Likewise.
20539         * modules/stdbool-tests: Likewise.
20540         * modules/stddef-tests: Likewise.
20541         * modules/stdint-tests: Likewise.
20542         * modules/stdio-tests: Likewise.
20543         * modules/stdlib-tests: Likewise.
20544         * modules/string-tests: Likewise.
20545         * modules/strings-tests: Likewise.
20546         * modules/sys_select-tests: Likewise.
20547         * modules/sys_socket-tests: Likewise.
20548         * modules/sys_stat-tests: Likewise.
20549         * modules/sys_time-tests: Likewise.
20550         * modules/sys_utsname-tests: Likewise.
20551         * modules/sysexits-tests: Likewise.
20552         * modules/time-tests: Likewise.
20553         * modules/trunc-tests: Likewise.
20554         * modules/truncf-tests: Likewise.
20555         * modules/truncl-tests: Likewise.
20556         * modules/tsearch-tests: Likewise.
20557         * modules/unistd-tests: Likewise.
20558         * modules/wchar-tests: Likewise.
20559         * modules/wctype-tests: Likewise.
20560
20561         tests: fix license on several tests
20562         * tests/test-des.c: Update to GPLv3+.
20563         * tests/test-flock.c: Likewise.
20564         * tests/test-fsync.c: Likewise.
20565         * tests/test-futimens.h: Likewise.
20566         * tests/test-gc-arcfour.c: Likewise.
20567         * tests/test-gc-arctwo.c: Likewise.
20568         * tests/test-gc-des.c: Likewise.
20569         * tests/test-gc-hmac-md5.c: Likewise.
20570         * tests/test-gc-hmac-sha1.c: Likewise.
20571         * tests/test-gc-md2.c: Likewise.
20572         * tests/test-gc-md4.c: Likewise.
20573         * tests/test-gc-md5.c: Likewise.
20574         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20575         * tests/test-gc-rijndael.c: Likewise.
20576         * tests/test-gc-sha1.c: Likewise.
20577         * tests/test-gc.c: Likewise.
20578         * tests/test-getcwd.c: Likewise.
20579         * tests/test-link.c: Likewise.
20580         * tests/test-link.h: Likewise.
20581         * tests/test-lutimens.h: Likewise.
20582         * tests/test-md2.c: Likewise.
20583         * tests/test-md4.c: Likewise.
20584         * tests/test-mkdir.h: Likewise.
20585         * tests/test-rename.c: Likewise.
20586         * tests/test-rename.h: Likewise.
20587         * tests/test-safe-alloc.c: Likewise.
20588         * tests/test-utimens-common.h: Likewise.
20589         * tests/test-utimens.h: Likewise.
20590
20591         maint: sync license texts
20592         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
20593         * doc/gpl-3.0.texi: Revert copyright year update.
20594         * doc/lgpl-3.0.texi: Likewise.
20595
20596 2009-12-29  Jim Meyering  <meyering@redhat.com>
20597
20598         update nearly all FSF copyright year lists to include 2009
20599         The files named by the following are exempted:
20600             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
20601               test -f "$dst" && { echo "$dst"; continue; }
20602               test -d "$dst" || continue
20603               echo "$dst"/$(basename "$src")
20604             done > exempt
20605             git ls-files tests/unictype >> exempt
20606         In the remaining files, convert to all-interval notation if
20607         - there is already at least one year interval like 2000-2003
20608         - the file is maintained by me
20609         - the file is in lib/uni*/, where that style already prevails
20610         Otherwise, use update-copyright's default.
20611
20612 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20613         and Eric Blake  <ebb9@byu.net>
20614
20615         tests: don't require debug system() to pass
20616         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
20617         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20618         * tests/test-unlink.h (test_unlink_func): Likewise.
20619         * tests/test-fstatat.c (main): ...into callers.
20620         * tests/test-lstat.c (main): Likewise.
20621         * tests/test-rmdir.c (main): Likewise.
20622         * tests/test-unlink.c (main): Likewise.
20623         * tests/test-unlinkat.c (main): Likewise.
20624         * tests/test-areadlink-with-size.c (main): Don't require a
20625         debug-only system call to pass, aiding cross-testing to mingw.
20626         * tests/test-areadlink.c (main): Likewise.
20627         * tests/test-areadlinkat-with-size.c (main): Likewise.
20628         * tests/test-areadlinkat.c (main): Likewise.
20629         * tests/test-canonicalize-lgpl.c (main): Likewise.
20630         * tests/test-canonicalize.c (main): Likewise.
20631         * tests/test-chown.c (main): Likewise.
20632         * tests/test-fchownat.c (main): Likewise.
20633         * tests/test-lchown.c (main): Likewise.
20634         * tests/test-fdutimensat.c (main): Likewise.
20635         * tests/test-futimens.c (main): Likewise.
20636         * tests/test-link.c (main): Likewise.
20637         * tests/test-linkat.c (main): Likewise.
20638         * tests/test-mkdir.c (main): Likewise.
20639         * tests/test-mkdirat.c (main): Likewise.
20640         * tests/test-mkfifo.c (main): Likewise.
20641         * tests/test-mkfifoat.c (main): Likewise.
20642         * tests/test-mknod.c (main): Likewise.
20643         * tests/test-readlink.c (main): Likewise.
20644         * tests/test-remove.c (main): Likewise.
20645         * tests/test-rename.c (main): Likewise.
20646         * tests/test-renameat.c (main): Likewise.
20647         * tests/test-symlink.c (main): Likewise.
20648         * tests/test-symlinkat.c (main): Likewise.
20649         * tests/test-utimens.c (main): Likewise.
20650         * tests/test-utimensat.c (main): Likewise.
20651
20652 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20653
20654         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
20655         on $(UNUSED_PARAMETER_H) to avoid build failure.
20656
20657 2009-12-28  Jim Meyering  <meyering@redhat.com>
20658
20659         update-copyright: you may specify a max. line length other than 72
20660         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20661
20662         maint: use consistent FSF copyright line syntax
20663         * lib/posixtm.c: Add missing comma in FSF copyright line.
20664         * lib/posixtm.h: Likewise.
20665         * lib/getugroups.c: Add missing ", Inc.".
20666
20667         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
20668         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
20669         FSF copyright line.  Remove trailing blanks.
20670
20671 2009-12-28  Eric Blake  <ebb9@byu.net>
20672
20673         test-dup2: reduce dependencies
20674         * modules/cloexec (Configure.ac): Set witness.
20675         * modules/dup2-tests (Depends-on): Drop cloexec.
20676         * tests/test-dup2.c (main): Skip portion of test if cloexec module
20677         not present.
20678         Suggested by Bruno Haible.
20679
20680 2009-12-26  Bruno Haible  <bruno@clisp.org>
20681
20682         Remove an unneeded dependency.
20683         * modules/fseterr (Depends-on): Remove dup2.
20684
20685 2009-12-26  Eric Blake  <ebb9@byu.net>
20686
20687         tests: use macros.h in more places
20688         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
20689         (ASSERT_STREAM): Provide default of stderr.
20690         * tests/test-dirent-safer.c: Include macros.h, using alternate
20691         stream for assertions.
20692         * tests/test-dup-safer.c: Likewise.
20693         * tests/test-freopen-safer.c: Likewise.
20694         * tests/test-getopt.c: Likewise.
20695         * tests/test-openat-safer.c: Likewise.
20696         * tests/test-pipe.c: Likewise.
20697         * tests/test-popen-safer.c: Likewise.
20698         * modules/dirent-safer-tests (Files): Include macros.h.
20699         * modules/unistd-safer-tests (Files): Likewise.
20700         * modules/freopen-safer-tests (Files): Likewise.
20701         * modules/getopt-posix-tests (Files): Likewise.
20702         * modules/openat-safer-tests (Files): Likewise.
20703         * modules/pipe-tests (Files): Likewise.
20704
20705 2009-12-26  Bruno Haible  <bruno@clisp.org>
20706
20707         javacomp: Portability fix.
20708         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
20709         that it also works on Solaris.
20710
20711 2009-12-26  Bruno Haible  <bruno@clisp.org>
20712
20713         localename: Fix storage allocation of gl_locale_name_thread's result.
20714         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
20715         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
20716         all platforms that have 'uselocale'.
20717         (gl_locale_name_thread_unsafe): New function, extracted from
20718         gl_locale_name_thread.
20719         (gl_locale_name_thread): Call struniq on all platforms that have
20720         'uselocale'.
20721         * tests/test-localename.c (test_locale_name_thread): Check that the
20722         resulting strings are permanently allocated.
20723         * modules/localename-tests (Depends-on): Add strdup.
20724
20725 2009-12-26  Bruno Haible  <bruno@clisp.org>
20726
20727         * tests/test-localename.c (categories): Fill in the strings.
20728
20729 2009-12-26  Jim Meyering  <meyering@redhat.com>
20730
20731         isdir: complete the removal of m4/isdir.m4
20732         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
20733
20734         isdir: clean up, since at least grep still uses it
20735         * lib/isdir.c: Include "isdir.h".
20736         (S_ISDIR): Remove now-unneeded definition.
20737         * modules/isdir (Files): Add lib/isdir.h.
20738         * lib/isdir.h: New file, with declaration.
20739         * m4/isdir.m4: Remove file -- unneeded.
20740
20741 2009-12-25  Bruno Haible  <bruno@clisp.org>
20742
20743         selinux-h: Make generated .h files standalone.
20744         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
20745         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
20746         * lib/se-selinux.in.h: Likewise.
20747         * modules/selinux-h (Depends-on): Add unused-parameter.
20748         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
20749         selinux/selinux.h and selinux/context.h.
20750         Suggested by Eric Blake.
20751
20752 2009-12-25  Bruno Haible  <bruno@clisp.org>
20753
20754         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
20755         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
20756         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
20757         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
20758         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
20759
20760 2009-12-24  Bruno Haible  <bruno@clisp.org>
20761
20762         openat: Fix warning.
20763         * lib/openat-proc.c: Include <unistd.h>.
20764
20765 2009-12-24  Bruno Haible  <bruno@clisp.org>
20766
20767         New module 'unused-parameter'.
20768         * build-aux/unused-parameter.h: New file, extracted from earlier
20769         gnulib-common.m4.
20770         * modules/unused-parameter: New file.
20771         * lib/unistr.h: Include unused-parameter.h.
20772         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
20773         _GL_UNUSED.
20774         * modules/unistr/base (Depends-on): Add unused-parameter.
20775
20776 2009-12-24  Bruno Haible  <bruno@clisp.org>
20777
20778         Add missing dependencies to 'extensions' module.
20779         * m4/extensions.m4: Add comment.
20780         * modules/accept4 (Depends-on): Add extensions.
20781         * modules/dup3 (Depends-on): Likewise.
20782         * modules/fcntl (Depends-on): Likewise.
20783         * modules/futimens (Depends-on): Likewise.
20784         * modules/mknod (Depends-on): Likewise.
20785         * modules/pipe2 (Depends-on): Likewise.
20786         * modules/stat-time (Depends-on): Likewise.
20787         * modules/strcasestr-simple (Depends-on): Likewise.
20788         * modules/strsignal (Depends-on): Likewise.
20789         * modules/utimensat (Depends-on): Likewise.
20790         * modules/localcharset (Depends-on): Likewise. Needed because of
20791         gl_FCNTL_O_FLAGS.
20792         * modules/wcrtomb (Depends-on): Likewise. Needed because of
20793         AC_TYPE_MBSTATE_T.
20794         * modules/wcsnrtombs (Depends-on): Likewise.
20795         * modules/wcsrtombs (Depends-on): Likewise.
20796
20797 2009-12-24  Bruno Haible  <bruno@clisp.org>
20798
20799         binary-io: Avoid gcc warning due to SET_BINARY.
20800         * lib/binary-io.h (SET_BINARY): Cast the result to void.
20801         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
20802
20803 2009-12-24  Bruno Haible  <bruno@clisp.org>
20804
20805         Avoid future namespace pollution on glibc systems.
20806         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
20807         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
20808         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
20809         glibc systems.
20810
20811 2009-12-24  Bruno Haible  <bruno@clisp.org>
20812
20813         Refactor common macros used in tests.
20814         * tests/macros.h: New file.
20815         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
20816         and/or <stdlib.h>, if appropriate.
20817         (ASSERT, SIZEOF): Remove macros.
20818         * tests/test-areadlink-with-size.c: Likewise.
20819         * tests/test-areadlinkat.c: Likewise.
20820         * tests/test-areadlinkat-with-size.c: Likewise.
20821         * tests/test-argmatch.c: Likewise.
20822         * tests/test-argv-iter.c: Likewise.
20823         * tests/test-array-mergesort.c: Likewise.
20824         * tests/test-array_list.c: Likewise.
20825         * tests/test-array_oset.c: Likewise.
20826         * tests/test-avltree_list.c: Likewise.
20827         * tests/test-avltree_oset.c: Likewise.
20828         * tests/test-avltreehash_list.c: Likewise.
20829         * tests/test-base64.c: Likewise.
20830         * tests/test-binary-io.c: Likewise.
20831         * tests/test-bitrotate.c: Likewise.
20832         * tests/test-btowc.c: Likewise.
20833         * tests/test-byteswap.c: Likewise.
20834         * tests/test-c-ctype.c: Likewise.
20835         * tests/test-c-stack.c: Likewise.
20836         * tests/test-c-strcasecmp.c: Likewise.
20837         * tests/test-c-strcasestr.c: Likewise.
20838         * tests/test-c-strncasecmp.c: Likewise.
20839         * tests/test-c-strstr.c: Likewise.
20840         * tests/test-canonicalize-lgpl.c: Likewise.
20841         * tests/test-canonicalize.c: Likewise.
20842         * tests/test-carray_list.c: Likewise.
20843         * tests/test-ceilf1.c: Likewise.
20844         * tests/test-ceilf2.c: Likewise.
20845         * tests/test-ceill.c: Likewise.
20846         * tests/test-chown.c: Likewise.
20847         * tests/test-cloexec.c: Likewise.
20848         * tests/test-copy-acl.c: Likewise.
20849         * tests/test-copy-file.c: Likewise.
20850         * tests/test-count-one-bits.c: Likewise.
20851         * tests/test-dprintf-posix.c: Likewise.
20852         * tests/test-dup2.c: Likewise.
20853         * tests/test-dup3.c: Likewise.
20854         * tests/test-duplocale.c: Likewise.
20855         * tests/test-fbufmode.c: Likewise.
20856         * tests/test-fchdir.c: Likewise.
20857         * tests/test-fchownat.c: Likewise.
20858         * tests/test-fcntl-safer.c: Likewise.
20859         * tests/test-fcntl.c: Likewise.
20860         * tests/test-fdopendir.c: Likewise.
20861         * tests/test-fdutimensat.c: Likewise.
20862         * tests/test-fflush2.c: Likewise.
20863         * tests/test-file-has-acl.c: Likewise.
20864         * tests/test-filevercmp.c: Likewise.
20865         * tests/test-flock.c: Likewise.
20866         * tests/test-floorf1.c: Likewise.
20867         * tests/test-floorf2.c: Likewise.
20868         * tests/test-floorl.c: Likewise.
20869         * tests/test-fnmatch.c: Likewise.
20870         * tests/test-fopen.h: Likewise.
20871         * tests/test-fpending.c: Likewise.
20872         * tests/test-fprintf-posix.c: Likewise.
20873         * tests/test-fpurge.c: Likewise.
20874         * tests/test-freadable.c: Likewise.
20875         * tests/test-freadahead.c: Likewise.
20876         * tests/test-freading.c: Likewise.
20877         * tests/test-freadptr.c: Likewise.
20878         * tests/test-freadptr2.c: Likewise.
20879         * tests/test-freadseek.c: Likewise.
20880         * tests/test-freopen.c: Likewise.
20881         * tests/test-frexp.c: Likewise.
20882         * tests/test-frexpl.c: Likewise.
20883         * tests/test-fseek.c: Likewise.
20884         * tests/test-fseeko.c: Likewise.
20885         * tests/test-fstatat.c: Likewise.
20886         * tests/test-fstrcmp.c: Likewise.
20887         * tests/test-fsync.c: Likewise.
20888         * tests/test-ftell.c: Likewise.
20889         * tests/test-ftello.c: Likewise.
20890         * tests/test-func.c: Likewise.
20891         * tests/test-futimens.c: Likewise.
20892         * tests/test-fwritable.c: Likewise.
20893         * tests/test-fwriting.c: Likewise.
20894         * tests/test-getcwd.c: Likewise.
20895         * tests/test-getdate.c: Likewise.
20896         * tests/test-getdelim.c: Likewise.
20897         * tests/test-getdtablesize.c: Likewise.
20898         * tests/test-getgroups.c: Likewise.
20899         * tests/test-getline.c: Likewise.
20900         * tests/test-getndelim2.c: Likewise.
20901         * tests/test-glob.c: Likewise.
20902         * tests/test-hash.c: Likewise.
20903         * tests/test-i-ring.c: Likewise.
20904         * tests/test-iconv-utf.c: Likewise.
20905         * tests/test-iconv.c: Likewise.
20906         * tests/test-idpriv-drop.c: Likewise.
20907         * tests/test-idpriv-droptemp.c: Likewise.
20908         * tests/test-inet_ntop.c: Likewise.
20909         * tests/test-inet_pton.c: Likewise.
20910         * tests/test-isblank.c: Likewise.
20911         * tests/test-isfinite.c: Likewise.
20912         * tests/test-isinf.c: Likewise.
20913         * tests/test-isnan.c: Likewise.
20914         * tests/test-isnand.h: Likewise.
20915         * tests/test-isnanf.h: Likewise.
20916         * tests/test-isnanl.h: Likewise.
20917         * tests/test-lchown.c: Likewise.
20918         * tests/test-ldexpl.c: Likewise.
20919         * tests/test-link.c: Likewise.
20920         * tests/test-linkat.c: Likewise.
20921         * tests/test-linked_list.c: Likewise.
20922         * tests/test-linkedhash_list.c: Likewise.
20923         * tests/test-localename.c: Likewise.
20924         * tests/test-lseek.c: Likewise.
20925         * tests/test-lstat.c: Likewise.
20926         * tests/test-mbmemcasecmp.c: Likewise.
20927         * tests/test-mbmemcasecoll.c: Likewise.
20928         * tests/test-mbrtowc.c: Likewise.
20929         * tests/test-mbscasecmp.c: Likewise.
20930         * tests/test-mbscasestr1.c: Likewise.
20931         * tests/test-mbscasestr2.c: Likewise.
20932         * tests/test-mbscasestr3.c: Likewise.
20933         * tests/test-mbscasestr4.c: Likewise.
20934         * tests/test-mbschr.c: Likewise.
20935         * tests/test-mbscspn.c: Likewise.
20936         * tests/test-mbsinit.c: Likewise.
20937         * tests/test-mbsncasecmp.c: Likewise.
20938         * tests/test-mbsnrtowcs.c: Likewise.
20939         * tests/test-mbspbrk.c: Likewise.
20940         * tests/test-mbspcasecmp.c: Likewise.
20941         * tests/test-mbsrchr.c: Likewise.
20942         * tests/test-mbsrtowcs.c: Likewise.
20943         * tests/test-mbsspn.c: Likewise.
20944         * tests/test-mbsstr1.c: Likewise.
20945         * tests/test-mbsstr2.c: Likewise.
20946         * tests/test-mbsstr3.c: Likewise.
20947         * tests/test-memchr.c: Likewise.
20948         * tests/test-memchr2.c: Likewise.
20949         * tests/test-memcmp.c: Likewise.
20950         * tests/test-memmem.c: Likewise.
20951         * tests/test-memrchr.c: Likewise.
20952         * tests/test-mkdir.c: Likewise.
20953         * tests/test-mkdirat.c: Likewise.
20954         * tests/test-mkfifo.c: Likewise.
20955         * tests/test-mkfifoat.c: Likewise.
20956         * tests/test-mknod.c: Likewise.
20957         * tests/test-nanosleep.c: Likewise.
20958         * tests/test-nl_langinfo.c: Likewise.
20959         * tests/test-obstack-printf.c: Likewise.
20960         * tests/test-open.c: Likewise.
20961         * tests/test-openat.c: Likewise.
20962         * tests/test-pipe-filter-gi1.c: Likewise.
20963         * tests/test-pipe-filter-gi2-main.c: Likewise.
20964         * tests/test-pipe-filter-ii1.c: Likewise.
20965         * tests/test-pipe-filter-ii2-main.c: Likewise.
20966         * tests/test-pipe2.c: Likewise.
20967         * tests/test-popen.h: Likewise.
20968         * tests/test-posixtm.c: Likewise.
20969         * tests/test-pread.c: Likewise.
20970         * tests/test-printf-frexp.c: Likewise.
20971         * tests/test-printf-frexpl.c: Likewise.
20972         * tests/test-printf-posix.c: Likewise.
20973         * tests/test-priv-set.c: Likewise.
20974         * tests/test-quotearg.c: Likewise.
20975         * tests/test-random_r.c: Likewise.
20976         * tests/test-rawmemchr.c: Likewise.
20977         * tests/test-rbtree_list.c: Likewise.
20978         * tests/test-rbtree_oset.c: Likewise.
20979         * tests/test-rbtreehash_list.c: Likewise.
20980         * tests/test-readlink.c: Likewise.
20981         * tests/test-remove.c: Likewise.
20982         * tests/test-rename.c: Likewise.
20983         * tests/test-renameat.c: Likewise.
20984         * tests/test-rmdir.c: Likewise.
20985         * tests/test-round1.c: Likewise.
20986         * tests/test-roundf1.c: Likewise.
20987         * tests/test-roundl.c: Likewise.
20988         * tests/test-safe-alloc.c: Likewise.
20989         * tests/test-sameacls.c: Likewise.
20990         * tests/test-set-mode-acl.c: Likewise.
20991         * tests/test-setenv.c: Likewise.
20992         * tests/test-sigaction.c: Likewise.
20993         * tests/test-signbit.c: Likewise.
20994         * tests/test-sleep.c: Likewise.
20995         * tests/test-snprintf-posix.c: Likewise.
20996         * tests/test-snprintf.c: Likewise.
20997         * tests/test-sprintf-posix.c: Likewise.
20998         * tests/test-stat-time.c: Likewise.
20999         * tests/test-stat.c: Likewise.
21000         * tests/test-strcasestr.c: Likewise.
21001         * tests/test-strchrnul.c: Likewise.
21002         * tests/test-strerror.c: Likewise.
21003         * tests/test-striconv.c: Likewise.
21004         * tests/test-striconveh.c: Likewise.
21005         * tests/test-striconveha.c: Likewise.
21006         * tests/test-strsignal.c: Likewise.
21007         * tests/test-strstr.c: Likewise.
21008         * tests/test-strtod.c: Likewise.
21009         * tests/test-strverscmp.c: Likewise.
21010         * tests/test-symlink.c: Likewise.
21011         * tests/test-symlinkat.c: Likewise.
21012         * tests/test-trunc1.c: Likewise.
21013         * tests/test-trunc2.c: Likewise.
21014         * tests/test-truncf1.c: Likewise.
21015         * tests/test-truncf2.c: Likewise.
21016         * tests/test-truncl.c: Likewise.
21017         * tests/test-uname.c: Likewise.
21018         * tests/test-unlink.c: Likewise.
21019         * tests/test-unlinkat.c: Likewise.
21020         * tests/test-unsetenv.c: Likewise.
21021         * tests/test-usleep.c: Likewise.
21022         * tests/test-utimens.c: Likewise.
21023         * tests/test-utimensat.c: Likewise.
21024         * tests/test-vasnprintf-posix.c: Likewise.
21025         * tests/test-vasnprintf-posix2.c: Likewise.
21026         * tests/test-vasnprintf.c: Likewise.
21027         * tests/test-vasprintf-posix.c: Likewise.
21028         * tests/test-vasprintf.c: Likewise.
21029         * tests/test-vdprintf-posix.c: Likewise.
21030         * tests/test-vfprintf-posix.c: Likewise.
21031         * tests/test-vprintf-posix.c: Likewise.
21032         * tests/test-vsnprintf-posix.c: Likewise.
21033         * tests/test-vsnprintf.c: Likewise.
21034         * tests/test-vsprintf-posix.c: Likewise.
21035         * tests/test-wcrtomb.c: Likewise.
21036         * tests/test-wcsnrtombs.c: Likewise.
21037         * tests/test-wcsrtombs.c: Likewise.
21038         * tests/test-wctype.c: Likewise.
21039         * tests/test-wcwidth.c: Likewise.
21040         * tests/test-xfprintf-posix.c: Likewise.
21041         * tests/test-xmemdup0.c: Likewise.
21042         * tests/test-xprintf-posix.c: Likewise.
21043         * tests/test-xvasprintf.c: Likewise.
21044         * tests/unicase/test-locale-language.c: Likewise.
21045         * tests/unicase/test-mapping-part1.h: Likewise.
21046         * tests/unicase/test-predicate-part1.h: Likewise.
21047         * tests/unicase/test-u8-casecmp.c: Likewise.
21048         * tests/unicase/test-u8-casecoll.c: Likewise.
21049         * tests/unicase/test-u8-casefold.c: Likewise.
21050         * tests/unicase/test-u8-is-cased.c: Likewise.
21051         * tests/unicase/test-u8-is-casefolded.c: Likewise.
21052         * tests/unicase/test-u8-is-lowercase.c: Likewise.
21053         * tests/unicase/test-u8-is-titlecase.c: Likewise.
21054         * tests/unicase/test-u8-is-uppercase.c: Likewise.
21055         * tests/unicase/test-u8-tolower.c: Likewise.
21056         * tests/unicase/test-u8-totitle.c: Likewise.
21057         * tests/unicase/test-u8-toupper.c: Likewise.
21058         * tests/unicase/test-u16-casecmp.c: Likewise.
21059         * tests/unicase/test-u16-casecoll.c: Likewise.
21060         * tests/unicase/test-u16-casefold.c: Likewise.
21061         * tests/unicase/test-u16-is-cased.c: Likewise.
21062         * tests/unicase/test-u16-is-casefolded.c: Likewise.
21063         * tests/unicase/test-u16-is-lowercase.c: Likewise.
21064         * tests/unicase/test-u16-is-titlecase.c: Likewise.
21065         * tests/unicase/test-u16-is-uppercase.c: Likewise.
21066         * tests/unicase/test-u16-tolower.c: Likewise.
21067         * tests/unicase/test-u16-totitle.c: Likewise.
21068         * tests/unicase/test-u16-toupper.c: Likewise.
21069         * tests/unicase/test-u32-casecmp.c: Likewise.
21070         * tests/unicase/test-u32-casecoll.c: Likewise.
21071         * tests/unicase/test-u32-casefold.c: Likewise.
21072         * tests/unicase/test-u32-is-cased.c: Likewise.
21073         * tests/unicase/test-u32-is-casefolded.c: Likewise.
21074         * tests/unicase/test-u32-is-lowercase.c: Likewise.
21075         * tests/unicase/test-u32-is-titlecase.c: Likewise.
21076         * tests/unicase/test-u32-is-uppercase.c: Likewise.
21077         * tests/unicase/test-u32-tolower.c: Likewise.
21078         * tests/unicase/test-u32-totitle.c: Likewise.
21079         * tests/unicase/test-u32-toupper.c: Likewise.
21080         * tests/unicase/test-ulc-casecmp.c: Likewise.
21081         * tests/unicase/test-ulc-casecoll.c: Likewise.
21082         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21083         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
21084         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21085         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21086         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
21087         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
21088         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21089         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21090         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21091         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
21092         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21093         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21094         * tests/unictype/test-bidi_byname.c: Likewise.
21095         * tests/unictype/test-bidi_name.c: Likewise.
21096         * tests/unictype/test-bidi_of.c: Likewise.
21097         * tests/unictype/test-bidi_test.c: Likewise.
21098         * tests/unictype/test-block_list.c: Likewise.
21099         * tests/unictype/test-block_of.c: Likewise.
21100         * tests/unictype/test-block_test.c: Likewise.
21101         * tests/unictype/test-categ_and.c: Likewise.
21102         * tests/unictype/test-categ_and_not.c: Likewise.
21103         * tests/unictype/test-categ_byname.c: Likewise.
21104         * tests/unictype/test-categ_name.c: Likewise.
21105         * tests/unictype/test-categ_none.c: Likewise.
21106         * tests/unictype/test-categ_of.c: Likewise.
21107         * tests/unictype/test-categ_or.c: Likewise.
21108         * tests/unictype/test-categ_test_withtable.c: Likewise.
21109         * tests/unictype/test-combining.c: Likewise.
21110         * tests/unictype/test-decdigit.c: Likewise.
21111         * tests/unictype/test-digit.c: Likewise.
21112         * tests/unictype/test-mirror.c: Likewise.
21113         * tests/unictype/test-numeric.c: Likewise.
21114         * tests/unictype/test-pr_byname.c: Likewise.
21115         * tests/unictype/test-pr_test.c: Likewise.
21116         * tests/unictype/test-predicate-part1.h: Likewise.
21117         * tests/unictype/test-scripts.c: Likewise.
21118         * tests/unictype/test-sy_c_ident.c: Likewise.
21119         * tests/unictype/test-sy_java_ident.c: Likewise.
21120         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
21121         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
21122         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
21123         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
21124         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
21125         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
21126         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
21127         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
21128         * tests/uninorm/test-canonical-decomposition.c: Likewise.
21129         * tests/uninorm/test-compat-decomposition.c: Likewise.
21130         * tests/uninorm/test-composition.c: Likewise.
21131         * tests/uninorm/test-decomposing-form.c: Likewise.
21132         * tests/uninorm/test-decomposition.c: Likewise.
21133         * tests/uninorm/test-u8-nfc.c: Likewise.
21134         * tests/uninorm/test-u8-nfd.c: Likewise.
21135         * tests/uninorm/test-u8-nfkc.c: Likewise.
21136         * tests/uninorm/test-u8-nfkd.c: Likewise.
21137         * tests/uninorm/test-u8-normcmp.c: Likewise.
21138         * tests/uninorm/test-u8-normcoll.c: Likewise.
21139         * tests/uninorm/test-u16-nfc.c: Likewise.
21140         * tests/uninorm/test-u16-nfd.c: Likewise.
21141         * tests/uninorm/test-u16-nfkc.c: Likewise.
21142         * tests/uninorm/test-u16-nfkd.c: Likewise.
21143         * tests/uninorm/test-u16-normcmp.c: Likewise.
21144         * tests/uninorm/test-u16-normcoll.c: Likewise.
21145         * tests/uninorm/test-u32-nfc.c: Likewise.
21146         * tests/uninorm/test-u32-nfd.c: Likewise.
21147         * tests/uninorm/test-u32-nfkc.c: Likewise.
21148         * tests/uninorm/test-u32-nfkd.c: Likewise.
21149         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21150         * tests/uninorm/test-u32-normcmp.c: Likewise.
21151         * tests/uninorm/test-u32-normcoll.c: Likewise.
21152         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
21153         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21154         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21155         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21156         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21157         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21158         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21159         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21160         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21161         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21162         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21163         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21164         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21165         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21166         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21167         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21168         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21169         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21170         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21171         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21172         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21173         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21174         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21175         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21176         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21177         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21178         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21179         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21180         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21181         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
21182         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
21183         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
21184         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
21185         * tests/uniwidth/test-u8-strwidth.c: Likewise.
21186         * tests/uniwidth/test-u8-width.c: Likewise.
21187         * tests/uniwidth/test-u16-strwidth.c: Likewise.
21188         * tests/uniwidth/test-u16-width.c: Likewise.
21189         * tests/uniwidth/test-u32-strwidth.c: Likewise.
21190         * tests/uniwidth/test-u32-width.c: Likewise.
21191         * tests/uniwidth/test-uc_width.c: Likewise.
21192         * tests/uniwidth/test-uc_width2.c: Likewise.
21193         * modules/acl-tests (Files): Add tests/macros.h.
21194         * modules/areadlink-tests (Files): Likewise.
21195         * modules/areadlink-with-size-tests (Files): Likewise.
21196         * modules/areadlinkat-tests (Files): Likewise.
21197         * modules/areadlinkat-with-size-tests (Files): Likewise.
21198         * modules/argmatch-tests (Files): Likewise.
21199         * modules/argv-iter-tests (Files): Likewise.
21200         * modules/array-list-tests (Files): Likewise.
21201         * modules/array-mergesort-tests (Files): Likewise.
21202         * modules/array-oset-tests (Files): Likewise.
21203         * modules/avltree-list-tests (Files): Likewise.
21204         * modules/avltree-oset-tests (Files): Likewise.
21205         * modules/avltreehash-list-tests (Files): Likewise.
21206         * modules/base64-tests (Files): Likewise.
21207         * modules/binary-io-tests (Files): Likewise.
21208         * modules/bitrotate-tests (Files): Likewise.
21209         * modules/btowc-tests (Files): Likewise.
21210         * modules/byteswap-tests (Files): Likewise.
21211         * modules/c-ctype-tests (Files): Likewise.
21212         * modules/c-stack-tests (Files): Likewise.
21213         * modules/c-strcase-tests (Files): Likewise.
21214         * modules/c-strcasestr-tests (Files): Likewise.
21215         * modules/c-strstr-tests (Files): Likewise.
21216         * modules/canonicalize-lgpl-tests (Files): Likewise.
21217         * modules/canonicalize-tests (Files): Likewise.
21218         * modules/carray-list-tests (Files): Likewise.
21219         * modules/ceilf-tests (Files): Likewise.
21220         * modules/ceill-tests (Files): Likewise.
21221         * modules/chown-tests (Files): Likewise.
21222         * modules/cloexec-tests (Files): Likewise.
21223         * modules/copy-file-tests (Files): Likewise.
21224         * modules/count-one-bits-tests (Files): Likewise.
21225         * modules/dprintf-posix-tests (Files): Likewise.
21226         * modules/dup2-tests (Files): Likewise.
21227         * modules/dup3-tests (Files): Likewise.
21228         * modules/duplocale-tests (Files): Likewise.
21229         * modules/fbufmode-tests (Files): Likewise.
21230         * modules/fchdir-tests (Files): Likewise.
21231         * modules/fcntl-safer-tests (Files): Likewise.
21232         * modules/fcntl-tests (Files): Likewise.
21233         * modules/fdopendir-tests (Files): Likewise.
21234         * modules/fdutimensat-tests (Files): Likewise.
21235         * modules/fflush-tests (Files): Likewise.
21236         * modules/filevercmp-tests (Files): Likewise.
21237         * modules/flock-tests (Files): Likewise.
21238         * modules/floorf-tests (Files): Likewise.
21239         * modules/floorl-tests (Files): Likewise.
21240         * modules/fnmatch-tests (Files): Likewise.
21241         * modules/fopen-safer-tests (Files): Likewise.
21242         * modules/fopen-tests (Files): Likewise.
21243         * modules/fpending-tests (Files): Likewise.
21244         * modules/fprintf-posix-tests (Files): Likewise.
21245         * modules/fpurge-tests (Files): Likewise.
21246         * modules/freadable-tests (Files): Likewise.
21247         * modules/freadahead-tests (Files): Likewise.
21248         * modules/freading-tests (Files): Likewise.
21249         * modules/freadptr-tests (Files): Likewise.
21250         * modules/freadseek-tests (Files): Likewise.
21251         * modules/freopen-tests (Files): Likewise.
21252         * modules/frexp-nolibm-tests (Files): Likewise.
21253         * modules/frexp-tests (Files): Likewise.
21254         * modules/frexpl-nolibm-tests (Files): Likewise.
21255         * modules/frexpl-tests (Files): Likewise.
21256         * modules/fseek-tests (Files): Likewise.
21257         * modules/fseeko-tests (Files): Likewise.
21258         * modules/fstrcmp-tests (Files): Likewise.
21259         * modules/fsync-tests (Files): Likewise.
21260         * modules/ftell-tests (Files): Likewise.
21261         * modules/ftello-tests (Files): Likewise.
21262         * modules/func-tests (Files): Likewise.
21263         * modules/futimens-tests (Files): Likewise.
21264         * modules/fwritable-tests (Files): Likewise.
21265         * modules/fwriting-tests (Files): Likewise.
21266         * modules/getcwd-tests (Files): Likewise.
21267         * modules/getdate-tests (Files): Likewise.
21268         * modules/getdelim-tests (Files): Likewise.
21269         * modules/getdtablesize-tests (Files): Likewise.
21270         * modules/getgroups-tests (Files): Likewise.
21271         * modules/getline-tests (Files): Likewise.
21272         * modules/getndelim2-tests (Files): Likewise.
21273         * modules/glob-tests (Files): Likewise.
21274         * modules/hash-tests (Files): Likewise.
21275         * modules/i-ring-tests (Files): Likewise.
21276         * modules/iconv-tests (Files): Likewise.
21277         * modules/iconv_open-utf-tests (Files): Likewise.
21278         * modules/idpriv-drop-tests (Files): Likewise.
21279         * modules/idpriv-droptemp-tests (Files): Likewise.
21280         * modules/inet_ntop-tests (Files): Likewise.
21281         * modules/inet_pton-tests (Files): Likewise.
21282         * modules/isblank-tests (Files): Likewise.
21283         * modules/isfinite-tests (Files): Likewise.
21284         * modules/isinf-tests (Files): Likewise.
21285         * modules/isnan-tests (Files): Likewise.
21286         * modules/isnand-nolibm-tests (Files): Likewise.
21287         * modules/isnand-tests (Files): Likewise.
21288         * modules/isnanf-nolibm-tests (Files): Likewise.
21289         * modules/isnanf-tests (Files): Likewise.
21290         * modules/isnanl-nolibm-tests (Files): Likewise.
21291         * modules/isnanl-tests (Files): Likewise.
21292         * modules/lchown-tests (Files): Likewise.
21293         * modules/ldexpl-tests (Files): Likewise.
21294         * modules/link-tests (Files): Likewise.
21295         * modules/linkat-tests (Files): Likewise.
21296         * modules/linked-list-tests (Files): Likewise.
21297         * modules/linkedhash-list-tests (Files): Likewise.
21298         * modules/localename-tests (Files): Likewise.
21299         * modules/lseek-tests (Files): Likewise.
21300         * modules/lstat-tests (Files): Likewise.
21301         * modules/mbmemcasecmp-tests (Files): Likewise.
21302         * modules/mbmemcasecoll-tests (Files): Likewise.
21303         * modules/mbrtowc-tests (Files): Likewise.
21304         * modules/mbscasecmp-tests (Files): Likewise.
21305         * modules/mbscasestr-tests (Files): Likewise.
21306         * modules/mbschr-tests (Files): Likewise.
21307         * modules/mbscspn-tests (Files): Likewise.
21308         * modules/mbsinit-tests (Files): Likewise.
21309         * modules/mbsncasecmp-tests (Files): Likewise.
21310         * modules/mbsnrtowcs-tests (Files): Likewise.
21311         * modules/mbspbrk-tests (Files): Likewise.
21312         * modules/mbspcasecmp-tests (Files): Likewise.
21313         * modules/mbsrchr-tests (Files): Likewise.
21314         * modules/mbsrtowcs-tests (Files): Likewise.
21315         * modules/mbsspn-tests (Files): Likewise.
21316         * modules/mbsstr-tests (Files): Likewise.
21317         * modules/memchr-tests (Files): Likewise.
21318         * modules/memchr2-tests (Files): Likewise.
21319         * modules/memcmp-tests (Files): Likewise.
21320         * modules/memmem-tests (Files): Likewise.
21321         * modules/memrchr-tests (Files): Likewise.
21322         * modules/mkdir-tests (Files): Likewise.
21323         * modules/mkfifo-tests (Files): Likewise.
21324         * modules/mkfifoat-tests (Files): Likewise.
21325         * modules/mknod-tests (Files): Likewise.
21326         * modules/nanosleep-tests (Files): Likewise.
21327         * modules/nl_langinfo-tests (Files): Likewise.
21328         * modules/obstack-printf-tests (Files): Likewise.
21329         * modules/open-tests (Files): Likewise.
21330         * modules/openat-tests (Files): Likewise.
21331         * modules/pipe-filter-gi-tests (Files): Likewise.
21332         * modules/pipe-filter-ii-tests (Files): Likewise.
21333         * modules/pipe2-tests (Files): Likewise.
21334         * modules/popen-safer-tests (Files): Likewise.
21335         * modules/popen-tests (Files): Likewise.
21336         * modules/posixtm-tests (Files): Likewise.
21337         * modules/pread-tests (Files): Likewise.
21338         * modules/printf-frexp-tests (Files): Likewise.
21339         * modules/printf-frexpl-tests (Files): Likewise.
21340         * modules/printf-posix-tests (Files): Likewise.
21341         * modules/priv-set-tests (Files): Likewise.
21342         * modules/quotearg-tests (Files): Likewise.
21343         * modules/random_r-tests (Files): Likewise.
21344         * modules/rawmemchr-tests (Files): Likewise.
21345         * modules/rbtree-list-tests (Files): Likewise.
21346         * modules/rbtree-oset-tests (Files): Likewise.
21347         * modules/rbtreehash-list-tests (Files): Likewise.
21348         * modules/readlink-tests (Files): Likewise.
21349         * modules/remove-tests (Files): Likewise.
21350         * modules/rename-tests (Files): Likewise.
21351         * modules/renameat-tests (Files): Likewise.
21352         * modules/rmdir-tests (Files): Likewise.
21353         * modules/round-tests (Files): Likewise.
21354         * modules/roundf-tests (Files): Likewise.
21355         * modules/roundl-tests (Files): Likewise.
21356         * modules/safe-alloc-tests (Files): Likewise.
21357         * modules/setenv-tests (Files): Likewise.
21358         * modules/sigaction-tests (Files): Likewise.
21359         * modules/signbit-tests (Files): Likewise.
21360         * modules/sleep-tests (Files): Likewise.
21361         * modules/snprintf-posix-tests (Files): Likewise.
21362         * modules/snprintf-tests (Files): Likewise.
21363         * modules/sprintf-posix-tests (Files): Likewise.
21364         * modules/stat-tests (Files): Likewise.
21365         * modules/stat-time-tests (Files): Likewise.
21366         * modules/strcasestr-tests (Files): Likewise.
21367         * modules/strchrnul-tests (Files): Likewise.
21368         * modules/strerror-tests (Files): Likewise.
21369         * modules/striconv-tests (Files): Likewise.
21370         * modules/striconveh-tests (Files): Likewise.
21371         * modules/striconveha-tests (Files): Likewise.
21372         * modules/strsignal-tests (Files): Likewise.
21373         * modules/strstr-tests (Files): Likewise.
21374         * modules/strtod-tests (Files): Likewise.
21375         * modules/strverscmp-tests (Files): Likewise.
21376         * modules/symlink-tests (Files): Likewise.
21377         * modules/symlinkat-tests (Files): Likewise.
21378         * modules/trunc-tests (Files): Likewise.
21379         * modules/truncf-tests (Files): Likewise.
21380         * modules/truncl-tests (Files): Likewise.
21381         * modules/uname-tests (Files): Likewise.
21382         * modules/unicase/cased-tests (Files): Likewise.
21383         * modules/unicase/ignorable-tests (Files): Likewise.
21384         * modules/unicase/locale-language-tests (Files): Likewise.
21385         * modules/unicase/tolower-tests (Files): Likewise.
21386         * modules/unicase/totitle-tests (Files): Likewise.
21387         * modules/unicase/toupper-tests (Files): Likewise.
21388         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21389         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21390         * modules/unicase/u8-casefold-tests (Files): Likewise.
21391         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21392         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21393         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21394         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21395         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21396         * modules/unicase/u8-tolower-tests (Files): Likewise.
21397         * modules/unicase/u8-totitle-tests (Files): Likewise.
21398         * modules/unicase/u8-toupper-tests (Files): Likewise.
21399         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21400         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21401         * modules/unicase/u16-casefold-tests (Files): Likewise.
21402         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21403         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21404         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21405         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21406         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21407         * modules/unicase/u16-tolower-tests (Files): Likewise.
21408         * modules/unicase/u16-totitle-tests (Files): Likewise.
21409         * modules/unicase/u16-toupper-tests (Files): Likewise.
21410         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21411         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21412         * modules/unicase/u32-casefold-tests (Files): Likewise.
21413         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21414         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21415         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21416         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21417         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21418         * modules/unicase/u32-tolower-tests (Files): Likewise.
21419         * modules/unicase/u32-totitle-tests (Files): Likewise.
21420         * modules/unicase/u32-toupper-tests (Files): Likewise.
21421         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21422         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21423         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21424         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21425         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21426         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21427         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21428         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21429         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21430         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21431         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21432         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21433         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21434         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21435         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21436         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21437         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21438         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21439         * modules/unictype/block-list-tests (Files): Likewise.
21440         * modules/unictype/block-of-tests (Files): Likewise.
21441         * modules/unictype/block-test-tests (Files): Likewise.
21442         * modules/unictype/category-C-tests (Files): Likewise.
21443         * modules/unictype/category-Cc-tests (Files): Likewise.
21444         * modules/unictype/category-Cf-tests (Files): Likewise.
21445         * modules/unictype/category-Cn-tests (Files): Likewise.
21446         * modules/unictype/category-Co-tests (Files): Likewise.
21447         * modules/unictype/category-Cs-tests (Files): Likewise.
21448         * modules/unictype/category-L-tests (Files): Likewise.
21449         * modules/unictype/category-Ll-tests (Files): Likewise.
21450         * modules/unictype/category-Lm-tests (Files): Likewise.
21451         * modules/unictype/category-Lo-tests (Files): Likewise.
21452         * modules/unictype/category-Lt-tests (Files): Likewise.
21453         * modules/unictype/category-Lu-tests (Files): Likewise.
21454         * modules/unictype/category-M-tests (Files): Likewise.
21455         * modules/unictype/category-Mc-tests (Files): Likewise.
21456         * modules/unictype/category-Me-tests (Files): Likewise.
21457         * modules/unictype/category-Mn-tests (Files): Likewise.
21458         * modules/unictype/category-N-tests (Files): Likewise.
21459         * modules/unictype/category-Nd-tests (Files): Likewise.
21460         * modules/unictype/category-Nl-tests (Files): Likewise.
21461         * modules/unictype/category-No-tests (Files): Likewise.
21462         * modules/unictype/category-P-tests (Files): Likewise.
21463         * modules/unictype/category-Pc-tests (Files): Likewise.
21464         * modules/unictype/category-Pd-tests (Files): Likewise.
21465         * modules/unictype/category-Pe-tests (Files): Likewise.
21466         * modules/unictype/category-Pf-tests (Files): Likewise.
21467         * modules/unictype/category-Pi-tests (Files): Likewise.
21468         * modules/unictype/category-Po-tests (Files): Likewise.
21469         * modules/unictype/category-Ps-tests (Files): Likewise.
21470         * modules/unictype/category-S-tests (Files): Likewise.
21471         * modules/unictype/category-Sc-tests (Files): Likewise.
21472         * modules/unictype/category-Sk-tests (Files): Likewise.
21473         * modules/unictype/category-Sm-tests (Files): Likewise.
21474         * modules/unictype/category-So-tests (Files): Likewise.
21475         * modules/unictype/category-Z-tests (Files): Likewise.
21476         * modules/unictype/category-Zl-tests (Files): Likewise.
21477         * modules/unictype/category-Zp-tests (Files): Likewise.
21478         * modules/unictype/category-Zs-tests (Files): Likewise.
21479         * modules/unictype/category-and-not-tests (Files): Likewise.
21480         * modules/unictype/category-and-tests (Files): Likewise.
21481         * modules/unictype/category-byname-tests (Files): Likewise.
21482         * modules/unictype/category-name-tests (Files): Likewise.
21483         * modules/unictype/category-none-tests (Files): Likewise.
21484         * modules/unictype/category-of-tests (Files): Likewise.
21485         * modules/unictype/category-or-tests (Files): Likewise.
21486         * modules/unictype/category-test-withtable-tests (Files): Likewise.
21487         * modules/unictype/combining-class-tests (Files): Likewise.
21488         * modules/unictype/ctype-alnum-tests (Files): Likewise.
21489         * modules/unictype/ctype-alpha-tests (Files): Likewise.
21490         * modules/unictype/ctype-blank-tests (Files): Likewise.
21491         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
21492         * modules/unictype/ctype-digit-tests (Files): Likewise.
21493         * modules/unictype/ctype-graph-tests (Files): Likewise.
21494         * modules/unictype/ctype-lower-tests (Files): Likewise.
21495         * modules/unictype/ctype-print-tests (Files): Likewise.
21496         * modules/unictype/ctype-punct-tests (Files): Likewise.
21497         * modules/unictype/ctype-space-tests (Files): Likewise.
21498         * modules/unictype/ctype-upper-tests (Files): Likewise.
21499         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
21500         * modules/unictype/decimal-digit-tests (Files): Likewise.
21501         * modules/unictype/digit-tests (Files): Likewise.
21502         * modules/unictype/mirror-tests (Files): Likewise.
21503         * modules/unictype/numeric-tests (Files): Likewise.
21504         * modules/unictype/property-alphabetic-tests (Files): Likewise.
21505         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
21506         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
21507         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
21508         Likewise.
21509         * modules/unictype/property-bidi-block-separator-tests (Files):
21510         Likewise.
21511         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
21512         Likewise.
21513         * modules/unictype/property-bidi-common-separator-tests (Files):
21514         Likewise.
21515         * modules/unictype/property-bidi-control-tests (Files): Likewise.
21516         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
21517         Likewise.
21518         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
21519         Likewise.
21520         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
21521         Likewise.
21522         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
21523         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
21524         Likewise.
21525         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
21526         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
21527         Likewise.
21528         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
21529         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
21530         * modules/unictype/property-bidi-segment-separator-tests (Files):
21531         Likewise.
21532         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
21533         * modules/unictype/property-byname-tests (Files): Likewise.
21534         * modules/unictype/property-combining-tests (Files): Likewise.
21535         * modules/unictype/property-composite-tests (Files): Likewise.
21536         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
21537         * modules/unictype/property-dash-tests (Files): Likewise.
21538         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
21539         * modules/unictype/property-default-ignorable-code-point-tests (Files):
21540         Likewise.
21541         * modules/unictype/property-deprecated-tests (Files): Likewise.
21542         * modules/unictype/property-diacritic-tests (Files): Likewise.
21543         * modules/unictype/property-extender-tests (Files): Likewise.
21544         * modules/unictype/property-format-control-tests (Files): Likewise.
21545         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
21546         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
21547         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
21548         * modules/unictype/property-hex-digit-tests (Files): Likewise.
21549         * modules/unictype/property-hyphen-tests (Files): Likewise.
21550         * modules/unictype/property-id-continue-tests (Files): Likewise.
21551         * modules/unictype/property-id-start-tests (Files): Likewise.
21552         * modules/unictype/property-ideographic-tests (Files): Likewise.
21553         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
21554         * modules/unictype/property-ids-trinary-operator-tests (Files):
21555         Likewise.
21556         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
21557         * modules/unictype/property-iso-control-tests (Files): Likewise.
21558         * modules/unictype/property-join-control-tests (Files): Likewise.
21559         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
21560         * modules/unictype/property-line-separator-tests (Files): Likewise.
21561         * modules/unictype/property-logical-order-exception-tests (Files):
21562         Likewise.
21563         * modules/unictype/property-lowercase-tests (Files): Likewise.
21564         * modules/unictype/property-math-tests (Files): Likewise.
21565         * modules/unictype/property-non-break-tests (Files): Likewise.
21566         * modules/unictype/property-not-a-character-tests (Files): Likewise.
21567         * modules/unictype/property-numeric-tests (Files): Likewise.
21568         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
21569         * modules/unictype/property-other-default-ignorable-code-point-tests
21570         (Files): Likewise.
21571         * modules/unictype/property-other-grapheme-extend-tests (Files):
21572         Likewise.
21573         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
21574         * modules/unictype/property-other-id-start-tests (Files): Likewise.
21575         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
21576         * modules/unictype/property-other-math-tests (Files): Likewise.
21577         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
21578         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
21579         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
21580         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
21581         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
21582         * modules/unictype/property-private-use-tests (Files): Likewise.
21583         * modules/unictype/property-punctuation-tests (Files): Likewise.
21584         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
21585         * modules/unictype/property-radical-tests (Files): Likewise.
21586         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
21587         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
21588         * modules/unictype/property-space-tests (Files): Likewise.
21589         * modules/unictype/property-terminal-punctuation-tests (Files):
21590         Likewise.
21591         * modules/unictype/property-test-tests (Files): Likewise.
21592         * modules/unictype/property-titlecase-tests (Files): Likewise.
21593         * modules/unictype/property-unassigned-code-value-tests (Files):
21594         Likewise.
21595         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
21596         * modules/unictype/property-uppercase-tests (Files): Likewise.
21597         * modules/unictype/property-variation-selector-tests (Files): Likewise.
21598         * modules/unictype/property-white-space-tests (Files): Likewise.
21599         * modules/unictype/property-xid-continue-tests (Files): Likewise.
21600         * modules/unictype/property-xid-start-tests (Files): Likewise.
21601         * modules/unictype/property-zero-width-tests (Files): Likewise.
21602         * modules/unictype/scripts-tests (Files): Likewise.
21603         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
21604         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
21605         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
21606         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
21607         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
21608         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
21609         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
21610         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
21611         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
21612         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
21613         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
21614         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
21615         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
21616         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
21617         * modules/uninorm/composition-tests (Files): Likewise.
21618         * modules/uninorm/decomposing-form-tests (Files): Likewise.
21619         * modules/uninorm/decomposition-tests (Files): Likewise.
21620         * modules/uninorm/filter-tests (Files): Likewise.
21621         * modules/uninorm/nfc-tests (Files): Likewise.
21622         * modules/uninorm/nfd-tests (Files): Likewise.
21623         * modules/uninorm/nfkc-tests (Files): Likewise.
21624         * modules/uninorm/nfkd-tests (Files): Likewise.
21625         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
21626         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
21627         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
21628         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
21629         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
21630         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
21631         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
21632         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21633         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
21634         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
21635         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
21636         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
21637         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21638         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
21639         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
21640         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
21641         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
21642         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21643         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
21644         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
21645         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
21646         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
21647         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21648         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
21649         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
21650         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
21651         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
21652         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
21653         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
21654         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
21655         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
21656         * modules/uniwidth/u8-width-tests (Files): Likewise.
21657         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
21658         * modules/uniwidth/u16-width-tests (Files): Likewise.
21659         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
21660         * modules/uniwidth/u32-width-tests (Files): Likewise.
21661         * modules/uniwidth/width-tests (Files): Likewise.
21662         * modules/unlink-tests (Files): Likewise.
21663         * modules/unsetenv-tests (Files): Likewise.
21664         * modules/usleep-tests (Files): Likewise.
21665         * modules/utimens-tests (Files): Likewise.
21666         * modules/utimensat-tests (Files): Likewise.
21667         * modules/vasnprintf-posix-tests (Files): Likewise.
21668         * modules/vasnprintf-tests (Files): Likewise.
21669         * modules/vasprintf-posix-tests (Files): Likewise.
21670         * modules/vasprintf-tests (Files): Likewise.
21671         * modules/vdprintf-posix-tests (Files): Likewise.
21672         * modules/vfprintf-posix-tests (Files): Likewise.
21673         * modules/vprintf-posix-tests (Files): Likewise.
21674         * modules/vsnprintf-posix-tests (Files): Likewise.
21675         * modules/vsnprintf-tests (Files): Likewise.
21676         * modules/vsprintf-posix-tests (Files): Likewise.
21677         * modules/wcrtomb-tests (Files): Likewise.
21678         * modules/wcsnrtombs-tests (Files): Likewise.
21679         * modules/wcsrtombs-tests (Files): Likewise.
21680         * modules/wctype-tests (Files): Likewise.
21681         * modules/wcwidth-tests (Files): Likewise.
21682         * modules/xmemdup0-tests (Files): Likewise.
21683         * modules/xprintf-posix-tests (Files): Likewise.
21684         * modules/xvasprintf-tests (Files): Likewise.
21685
21686 2009-12-24  Eric Blake  <ebb9@byu.net>
21687
21688         test-nanosleep: fix typo
21689         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
21690         patch.
21691         Reported by Bruno Haible.
21692
21693 2009-12-24  Bruno Haible  <bruno@clisp.org>
21694
21695         Reduce namespace pollution on glibc systems.
21696         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
21697         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
21698         systems.
21699         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
21700         <getopt.h> on glibc systems.
21701         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
21702         systems.
21703         * lib/fcntl.c: Include <unistd.h> here instead.
21704
21705 2009-12-24  Bruno Haible  <bruno@clisp.org>
21706
21707         * lib/stdlib.in.h (includes): Fix typo in today's commit.
21708
21709 2009-12-24  Eric Blake  <ebb9@byu.net>
21710
21711         tests: add signature checks
21712         * tests/signature.h (SIGNATURE_CHECK): New file.
21713         * modules/atexit-tests (Files): Use it.
21714         * modules/btowc-tests (Files): Likewise.
21715         * modules/canonicalize-lgpl-tests (Files): Likewise.
21716         * modules/ceilf-tests (Files): Likewise.
21717         * modules/ceill-tests (Files): Likewise.
21718         * modules/chown-tests (Files): Likewise.
21719         * modules/dprintf-posix-tests (Files): Likewise.
21720         * modules/dup2-tests (Files): Likewise.
21721         * modules/dup3-tests (Files): Likewise.
21722         * modules/duplocale-tests (Files): Likewise.
21723         * modules/fchdir-tests (Files): Likewise.
21724         * modules/fcntl-tests (Files): Likewise.
21725         * modules/fdopendir-tests (Files): Likewise.
21726         * modules/fflush-tests (Files): Likewise.
21727         * modules/flock-tests (Files): Likewise.
21728         * modules/floorf-tests (Files): Likewise.
21729         * modules/floorl-tests (Files): Likewise.
21730         * modules/fnmatch-tests (Files): Likewise.
21731         * modules/fopen-tests (Files): Likewise.
21732         * modules/fprintf-posix-tests (Files): Likewise.
21733         * modules/freopen-tests (Files): Likewise.
21734         * modules/frexp-nolibm-tests (Files): Likewise.
21735         * modules/frexp-tests (Files): Likewise.
21736         * modules/frexpl-nolibm-tests (Files): Likewise.
21737         * modules/frexpl-tests (Files): Likewise.
21738         * modules/fseek-tests (Files): Likewise.
21739         * modules/fseeko-tests (Files): Likewise.
21740         * modules/fsync-tests (Files): Likewise.
21741         * modules/ftell-tests (Files): Likewise.
21742         * modules/ftello-tests (Files): Likewise.
21743         * modules/futimens-tests (Files): Likewise.
21744         * modules/getaddrinfo-tests (Files): Likewise.
21745         * modules/getcwd-tests (Files): Likewise.
21746         * modules/getdelim-tests (Files): Likewise.
21747         * modules/getdtablesize-tests (Files): Likewise.
21748         * modules/getgroups-tests (Files): Likewise.
21749         * modules/gethostname-tests (Files): Likewise.
21750         * modules/getline-tests (Files): Likewise.
21751         * modules/getopt-posix-tests (Files): Likewise.
21752         * modules/gettimeofday-tests (Files): Likewise.
21753         * modules/glob-tests (Files): Likewise.
21754         * modules/iconv-tests (Files): Likewise.
21755         * modules/inet_ntop-tests (Files): Likewise.
21756         * modules/inet_pton-tests (Files): Likewise.
21757         * modules/isblank-tests (Files): Likewise.
21758         * modules/lchown-tests (Files): Likewise.
21759         * modules/ldexpl-tests (Files): Likewise.
21760         * modules/link-tests (Files): Likewise.
21761         * modules/linkat-tests (Files): Likewise.
21762         * modules/lseek-tests (Files): Likewise.
21763         * modules/lstat-tests (Files): Likewise.
21764         * modules/mbrtowc-tests (Files): Likewise.
21765         * modules/mbsinit-tests (Files): Likewise.
21766         * modules/mbsnrtowcs-tests (Files): Likewise.
21767         * modules/mbsrtowcs-tests (Files): Likewise.
21768         * modules/memchr-tests (Files): Likewise.
21769         * modules/memcmp-tests (Files): Likewise.
21770         * modules/memmem-tests (Files): Likewise.
21771         * modules/memrchr-tests (Files): Likewise.
21772         * modules/mkdir-tests (Files): Likewise.
21773         * modules/mkfifo-tests (Files): Likewise.
21774         * modules/mkfifoat-tests (Files): Likewise.
21775         * modules/mknod-tests (Files): Likewise.
21776         * modules/nanosleep-tests (Files): Likewise.
21777         * modules/nl_langinfo-tests (Files): Likewise.
21778         * modules/obstack-printf-tests (Files): Likewise.
21779         * modules/open-tests (Files): Likewise.
21780         * modules/openat-tests (Files): Likewise.
21781         * modules/perror-tests (Files): Likewise.
21782         * modules/pipe2-tests (Files): Likewise.
21783         * modules/poll-tests (Files): Likewise.
21784         * modules/popen-tests (Files): Likewise.
21785         * modules/posix_spawn-tests (Files): Likewise.
21786         * modules/posix_spawnp-tests (Files): Likewise.
21787         * modules/pread-tests (Files): Likewise.
21788         * modules/printf-posix-tests (Files): Likewise.
21789         * modules/pty-tests (Files): Likewise.
21790         * modules/random_r-tests (Files): Likewise.
21791         * modules/rawmemchr-tests (Files): Likewise.
21792         * modules/readlink-tests (Files): Likewise.
21793         * modules/remove-tests (Files): Likewise.
21794         * modules/rename-tests (Files): Likewise.
21795         * modules/renameat-tests (Files): Likewise.
21796         * modules/rmdir-tests (Files): Likewise.
21797         * modules/round-tests (Files): Likewise.
21798         * modules/roundf-tests (Files): Likewise.
21799         * modules/roundl-tests (Files): Likewise.
21800         * modules/select-tests (Files): Likewise.
21801         * modules/setenv-tests (Files): Likewise.
21802         * modules/sigaction-tests (Files): Likewise.
21803         * modules/sleep-tests (Files): Likewise.
21804         * modules/snprintf-posix-tests (Files): Likewise.
21805         * modules/snprintf-tests (Files): Likewise.
21806         * modules/sprintf-posix-tests (Files): Likewise.
21807         * modules/stat-tests (Files): Likewise.
21808         * modules/strcasestr-tests (Files): Likewise.
21809         * modules/strchrnul-tests (Files): Likewise.
21810         * modules/strerror-tests (Files): Likewise.
21811         * modules/strsignal-tests (Files): Likewise.
21812         * modules/strstr-tests (Files): Likewise.
21813         * modules/strtod-tests (Files): Likewise.
21814         * modules/strverscmp-tests (Files): Likewise.
21815         * modules/symlink-tests (Files): Likewise.
21816         * modules/symlinkat-tests (Files): Likewise.
21817         * modules/times-tests (Files): Likewise.
21818         * modules/trunc-tests (Files): Likewise.
21819         * modules/truncf-tests (Files): Likewise.
21820         * modules/truncl-tests (Files): Likewise.
21821         * modules/tsearch-tests (Files): Likewise.
21822         * modules/uname-tests (Files): Likewise.
21823         * modules/unlink-tests (Files): Likewise.
21824         * modules/unsetenv-tests (Files): Likewise.
21825         * modules/usleep-tests (Files): Likewise.
21826         * modules/utimensat-tests (Files): Likewise.
21827         * modules/vasprintf-tests (Files): Likewise.
21828         * modules/vdprintf-posix-tests (Files): Likewise.
21829         * modules/vfprintf-posix-tests (Files): Likewise.
21830         * modules/vprintf-posix-tests (Files): Likewise.
21831         * modules/vsnprintf-posix-tests (Files): Likewise.
21832         * modules/vsnprintf-tests (Files): Likewise.
21833         * modules/vsprintf-posix-tests (Files): Likewise.
21834         * modules/wcrtomb-tests (Files): Likewise.
21835         * modules/wcsnrtombs-tests (Files): Likewise.
21836         * modules/wcsrtombs-tests (Files): Likewise.
21837         * modules/wcwidth-tests (Files): Likewise.
21838         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
21839         * tests/test-isinf.c (isinf): Likewise.
21840         * tests/test-isnan.c (isnan): Likewise.
21841         * tests/test-signbit.c (signbit): Likewise.
21842         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
21843         declaration, either as macro or with correct signature.
21844         (select): Ensure function under test is declared with correct
21845         signature in correct header.
21846         * tests/test-atexit.c (atexit): Likewise.
21847         * tests/test-btowc.c (btowc): Likewise.
21848         * tests/test-canonicalize-lgpl.c (realpath)
21849         (canonicalize_file_name): Likewise.
21850         * tests/test-ceilf1.c (ceilf): Likewise.
21851         * tests/test-ceill.c (ceill): Likewise.
21852         * tests/test-chown.c (chown): Likewise.
21853         * tests/test-dprintf-posix.c (dprintf): Likewise.
21854         * tests/test-dup2.c (dup2): Likewise.
21855         * tests/test-dup3.c (dup3): Likewise.
21856         * tests/test-duplocale.c (duplocale): Likewise.
21857         * tests/test-fchdir.c (fchdir): Likewise.
21858         * tests/test-fchownat.c (fchownat): Likewise.
21859         * tests/test-fcntl.c (fcntl): Likewise.
21860         * tests/test-fdopendir.c (fdopendir): Likewise.
21861         * tests/test-fflush.c (fflush): Likewise.
21862         * tests/test-flock.c (flock): Likewise.
21863         * tests/test-floorf1.c (floorf): Likewise.
21864         * tests/test-floorl.c (floorl): Likewise.
21865         * tests/test-fnmatch.c (fnmatch): Likewise.
21866         * tests/test-fopen.c (fopen): Likewise.
21867         * tests/test-fprintf-posix.c (fprintf): Likewise.
21868         * tests/test-freopen.c (freopen): Likewise.
21869         * tests/test-frexp.c (frexp): Likewise.
21870         * tests/test-frexpl.c (frexpl): Likewise.
21871         * tests/test-fseek.c (fseek): Likewise.
21872         * tests/test-fseeko.c (fseeko): Likewise.
21873         * tests/test-fstatat.c (fstatat): Likewise.
21874         * tests/test-fsync.c (fsync): Likewise.
21875         * tests/test-ftell.c (ftell): Likewise.
21876         * tests/test-ftello.c (ftello): Likewise.
21877         * tests/test-futimens.c (futimens): Likewise.
21878         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
21879         (gai_strerror): Likewise.
21880         * tests/test-getcwd.c (getcwd): Likewise.
21881         * tests/test-getdelim.c (getdelim): Likewise.
21882         * tests/test-getdtablesize.c (getdtablesize): Likewise.
21883         * tests/test-getgroups.c (getgroups): Likewise.
21884         * tests/test-gethostname.c (gethostname): Likewise.
21885         * tests/test-getline.c (getline): Likewise.
21886         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
21887         Likewise.
21888         * tests/test-gettimeofday.c (gettimeofday): Likewise.
21889         * tests/test-glob.c (glob, globfree): Likewise.
21890         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
21891         * tests/test-inet_ntop.c (inet_ntop): Likewise.
21892         * tests/test-inet_pton.c (inet_pton): Likewise.
21893         * tests/test-isblank.c (isblank): Likewise.
21894         * tests/test-lchown.c (lchown): Likewise.
21895         * tests/test-ldexpl.c (ldexpl): Likewise.
21896         * tests/test-link.c (link): Likewise.
21897         * tests/test-linkat.c (linkat): Likewise.
21898         * tests/test-lseek.c (lseek): Likewise.
21899         * tests/test-lstat.c (lstat): Likewise.
21900         * tests/test-mbrtowc.c (mbrtowc): Likewise.
21901         * tests/test-mbsinit.c (mbsinit): Likewise.
21902         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
21903         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
21904         * tests/test-memchr.c (memchr): Likewise.
21905         * tests/test-memcmp.c (memcmp): Likewise.
21906         * tests/test-memmem.c (memmem): Likewise.
21907         * tests/test-memrchr.c (memrchr): Likewise.
21908         * tests/test-mkdir.c (mkdir): Likewise.
21909         * tests/test-mkdirat.c (mkdirat): Likewise.
21910         * tests/test-mkfifo.c (mkfifo): Likewise.
21911         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
21912         * tests/test-mknod.c (mknod): Likewise.
21913         * tests/test-nanosleep.c (nanosleep): Likewise.
21914         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
21915         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
21916         Likewise.
21917         * tests/test-open.c (open): Likewise.
21918         * tests/test-openat.c (openat): Likewise.
21919         * tests/test-perror.c (perror): Likewise.
21920         * tests/test-pipe2.c (pipe2): Likewise.
21921         * tests/test-poll.c (poll): Likewise.
21922         * tests/test-popen.c (popen, pclose): Likewise.
21923         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
21924         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
21925         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
21926         (posix_spawn_file_actions_destroy)
21927         (posix_spawn_file_actions_addclose)
21928         (posix_spawn_file_actions_addopen)
21929         (posix_spawn_file_actions_adddup2): Likewise.
21930         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
21931         * tests/test-pread.c (pread): Likewise.
21932         * tests/test-printf-posix.c (printf): Likewise.
21933         * tests/test-pty.c (openpty, forkpty): Likewise.
21934         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
21935         (random_r): Likewise.
21936         * tests/test-rawmemchr.c (rawmemchr): Likewise.
21937         * tests/test-readlink.c (readlink): Likewise.
21938         * tests/test-remove.c (remove): Likewise.
21939         * tests/test-rename.c (rename): Likewise.
21940         * tests/test-renameat.c (renameat): Likewise.
21941         * tests/test-rmdir.c (rmdir): Likewise.
21942         * tests/test-round1.c (round): Likewise.
21943         * tests/test-roundf1.c (roundf): Likewise.
21944         * tests/test-roundl.c (roundl): Likewise.
21945         * tests/test-setenv.c (setenv): Likewise.
21946         * tests/test-sigaction.c (sigaction): Likewise.
21947         * tests/test-sleep.c (sleep): Likewise.
21948         * tests/test-snprintf.c (snprintf): Likewise.
21949         * tests/test-sprintf-posix.c (sprintf): Likewise.
21950         * tests/test-stat.c (stat): Likewise.
21951         * tests/test-stpncpy.c (stpncpy): Likewise.
21952         * tests/test-strcasestr.c (strcasestr): Likewise.
21953         * tests/test-strchrnul.c (strchrnul): Likewise.
21954         * tests/test-strerror.c (strerror): Likewise.
21955         * tests/test-strsignal.c (strsignal): Likewise.
21956         * tests/test-strstr.c (strstr): Likewise.
21957         * tests/test-strtod.c (strtod): Likewise.
21958         * tests/test-strverscmp.c (strverscmp): Likewise.
21959         * tests/test-symlink.c (symlink): Likewise.
21960         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
21961         * tests/test-times.c (times): Likewise.
21962         * tests/test-trunc1.c (trunc): Likewise.
21963         * tests/test-truncf1.c (truncf): Likewise.
21964         * tests/test-truncl.c (truncl): Likewise.
21965         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
21966         Likewise.
21967         * tests/test-uname.c (uname): Likewise.
21968         * tests/test-unlink.c (unlink): Likewise.
21969         * tests/test-unlinkat.c (unlinkat): Likewise.
21970         * tests/test-unsetenv.c (unsetenv): Likewise.
21971         * tests/test-usleep.c (usleep): Likewise.
21972         * tests/test-utimensat.c (utimensat): Likewise.
21973         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
21974         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
21975         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
21976         * tests/test-vprintf-posix.c (vprintf): Likewise.
21977         * tests/test-vsnprintf.c (vsnprintf): Likewise.
21978         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
21979         * tests/test-wcrtomb.c (wcrtomb): Likewise.
21980         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
21981         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
21982         * tests/test-wcwidth.c (wcwidth): Likewise.
21983
21984         build: pull in conditional headers during GNULIB_POSIXCHECK
21985         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
21986         definitions from any conditionally-included headers.
21987         * lib/stdlib.in.h (includes): Likewise.
21988         * lib/unistd.in.h (includes): Likewise.
21989
21990 2009-12-24  Bruno Haible  <bruno@clisp.org>
21991
21992         * tests/test-argv-iter.c: Include header file being tested immediately
21993         after config.h.
21994         * tests/test-base64.c: Likewise.
21995         * tests/test-flock.c: Likewise.
21996         * tests/test-fsync.c: Likewise.
21997         * tests/test-getdate.c: Likewise.
21998         * tests/test-getndelim2.c: Likewise.
21999         * tests/test-isfinite.c: Likewise.
22000         * tests/test-isinf.c: Likewise.
22001         * tests/test-strerror.c: Likewise.
22002         * tests/test-strsignal.c: Likewise.
22003
22004 2009-12-23  Eric Blake  <ebb9@byu.net>
22005
22006         unistd: work around cygwin bug
22007         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
22008         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
22009         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22010
22011 2009-12-23  Bruno Haible  <bruno@clisp.org>
22012
22013         localename: More tests.
22014         * tests/test-localename.c (SIZEOF): New macro.
22015         (categories): New variable.
22016         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
22017         test_locale_name_default): Add test w.r.t. thread locale.
22018         (test_locale_name_thread): New function.
22019         (main): Invoke it.
22020
22021         localename: Make aware of thread locale.
22022         * lib/localename.h (gl_locale_name_thread): New declaration.
22023         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
22024         behaviour with respect to thread locale.
22025         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
22026         <langinfo.h>, glthread/lock.h.
22027         (SIZE_BITS): New macro.
22028         (string_hash): New function.
22029         (struct hash_node): New type.
22030         (HASH_TABLE_SIZE): New macro.
22031         (struniq_hash_table, struniq_lock): New variables.
22032         (struniq): New function.
22033         (gl_locale_name_thread): New function.
22034         (gl_locale_name): Invoke it.
22035         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
22036         * modules/localename (Depends-on): Add lock.
22037         Reported by Mike Gran <spk121@yahoo.com>.
22038
22039 2009-12-23  Eric Blake  <ebb9@byu.net>
22040
22041         va-args: new module
22042         * modules/va-args: New file.
22043         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
22044         * MODULES.html.sh (Core language properties): Mention it.
22045
22046         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
22047         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
22048         named alias for __attribute__((__unused__)).
22049         * lib/chown.c: Update client.
22050         * lib/fchmodat.c: Likewise.
22051         * lib/fts.c: Likewise.
22052         * lib/getdate.y: Likewise.
22053         * lib/getgroups.c: Likewise.
22054         * lib/getopt.c: Likewise.
22055         * lib/getugroups.c: Likewise.
22056         * lib/mkdir.c: Likewise.
22057         * lib/mkfifo.c: Likewise.
22058         * lib/mkfifoat.c: Likewise.
22059         * lib/mknod.c: Likewise.
22060         * lib/mknodat.c: Likewise.
22061         * lib/readlink.c: Likewise.
22062         * lib/se-context.in.h: Likewise.
22063         * lib/se-selinux.in.h: Likewise.
22064         * lib/sockets.c: Likewise.
22065         * lib/symlink.c: Likewise.
22066         * lib/symlinkat.c: Likewise.
22067         * lib/unicodeio.c: Likewise.
22068         * lib/unistr.h: Likewise.
22069         * tests/test-areadlink.c: Likewise.
22070         * tests/test-areadlinkat.c: Likewise.
22071         * tests/test-filenamecat.c: Likewise.
22072         * tests/test-fseeko.c: Likewise.
22073         * tests/test-ftello.c: Likewise.
22074         * tests/test-getdate.c: Likewise.
22075         * tests/test-getgroups.c: Likewise.
22076         * tests/test-gethostname.c: Likewise.
22077         * tests/test-quotearg.c: Likewise.
22078         * tests/test-version-etc.c: Likewise.
22079         * tests/test-xalloc-die.c: Likewise.
22080         * tests/test-xfprintf-posix.c: Likewise.
22081         * tests/test-xprintf-posix.c: Likewise.
22082         * tests/test-xvasprintf.c: Likewise.
22083
22084         tests: avoid compiler warnings
22085         * tests/test-fcntl.c (main): Delete unused parameters.
22086         * tests/test-freopen-safer.c (main): Likewise.
22087         * tests/test-xalloc-die.c (main): Mark unused parameters.
22088         * tests/test-fseeko.c (main): Likewise.
22089         * tests/test-ftello.c (main): Likewise.
22090         * tests/test-nanosleep.c (main): Avoid declaration warning.
22091         * tests/test-sleep.c (main): Likewise.
22092         * tests/test-unsetenv.c (main): Silence warning about string
22093         literal.
22094         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22095
22096 2009-12-23  Bruno Haible  <bruno@clisp.org>
22097
22098         * tests/test-localename.c (test_locale_name): New function, extracted
22099         from main. Also test mixed situations.
22100         (test_locale_name_posix, test_locale_name_environ,
22101         test_locale_name_default): New functions.
22102         (main): Invoke them all.
22103         * modules/localename-tests (configure.ac): Test for newlocale.
22104
22105 2009-12-23  Bruno Haible  <bruno@clisp.org>
22106
22107         unistd: Ensure getcwd gets declared before being overridden.
22108         * lib/unistd.in.h: Conditionally include <io.h>.
22109
22110 2009-12-22  Bruno Haible  <bruno@clisp.org>
22111
22112         wchar: Diagnose broken combination of glibc and gcc versions and flags.
22113         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
22114         (gl_WCHAR_H): Invoke it.
22115         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
22116         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
22117         Reported by Karl Berry <karl@freefriends.org>.
22118
22119 2009-12-22  Eric Blake  <ebb9@byu.net>
22120
22121         math, unistd: avoid redundant includes
22122         * lib/math.in.h (isnan): No need to re-include <math.h>.
22123         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
22124
22125         getsubopt: work around cygwin bug
22126         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
22127         avoid conflicting with system getsubopt.
22128         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
22129         bug.
22130
22131         getopt: synchronize from glibc
22132         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
22133         parameter order.  Adjust all callers.
22134         (_getopt_internal_r, main): Adjust quoting in error messages.
22135         Drop considerations for outdated POSIX 1003.2 error message.
22136         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
22137         callers.
22138         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
22139
22140         test-getopt: test stderr behavior
22141         * modules/getopt-posix-tests (Depends-on): Add dup2.
22142         * tests/test-getopt.c (ASSERT): Avoid stderr.
22143         (main): Move stderr to a temporary file.
22144         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
22145         Instead, add parameter to inform caller if output occurred.
22146         (test_getopt): Adjust all existing tests to expect silence, and
22147         add new tests of leading ":".
22148         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22149         glibc shortcomings with leading "-:" or "+:" in optstring.
22150         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22151         Likewise.
22152         * doc/posix-functions/getopt.texi (getopt): Likewise.
22153
22154         test-getopt: enhance test
22155         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
22156         supports optind=0.
22157         * tests/test-getopt.c (OPTIND_MIN): Move...
22158         * tests/test-getopt.h (OPTIND_MIN): ...here.
22159         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
22160         Require that optind=0 works, since modern BSD supports it in
22161         addition to optreset, and since coreutils expects it.
22162         (test_getopt_long_only): New test.
22163         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22164         glibc shortcomings with 'W;', and enforcement of optind=0.
22165         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22166         Likewise.
22167
22168 2009-12-21  Bruno Haible  <bruno@clisp.org>
22169
22170         localename: Improvements for MacOS X and Cygwin.
22171         * lib/localename.h (gl_locale_name_environ): New declaration.
22172         * lib/localename.c (gl_locale_name_environ): New function, extracted from
22173         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
22174         (gl_locale_name_posix): Invoke it.
22175         (gl_locale_name_default): Add comments. Use Windows native API also on
22176         Cygwin.
22177
22178 2009-12-21  Bruno Haible  <bruno@clisp.org>
22179
22180         Update list of Win32 locale ids.
22181         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
22182         (LANG_SAMI): Renamed from LANG_SAAMI.
22183         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
22184         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
22185         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
22186         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
22187         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
22188         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
22189         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
22190         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
22191         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
22192         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22193         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22194         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22195         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22196         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22197         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22198         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22199         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22200         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22201         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22202         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22203         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22204         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22205         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22206         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22207         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22208         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22209         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22210         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22211         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22212         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22213         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22214         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22215         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22216         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22217         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22218         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22219         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22220         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22221         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22222         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22223         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22224         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22225         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22226         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22227         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22228         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22229         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22230         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22231         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22232         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22233         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22234         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22235         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22236         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22237         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22238         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22239         Add more languages and countries for Sami, Sorbian. Add more countries
22240         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22241         for Pashto. Change country for Syriac, Tswana.
22242
22243 2009-12-21  Eric Blake  <ebb9@byu.net>
22244
22245         test-utimens: avoid spurious failure
22246         * tests/test-chown.h (nap): Factor...
22247         * tests/nap.h: ...into new file.
22248         * tests/test-lchown.h (nap): Avoid duplication.
22249         * tests/test-utimens-common.h (nap): Use shared implementation,
22250         necessary on file systems with 1-second resolution.
22251         * modules/chown-tests (Files): Include new file.
22252         * modules/fdutimensat-tests (Files): Likewise.
22253         * modules/futimens-tests (Files): Likewise.
22254         * modules/lchown-tests (Files): Likewise.
22255         * modules/openat-tests (Files): Likewise.
22256         * modules/utimens-tests (Files): Likewise.
22257         * modules/utimensat-tests (Files): Likewise.
22258
22259 2009-12-19  Eric Blake  <ebb9@byu.net>
22260
22261         futimens, utimensat: work around Linux bug
22262         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
22263         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22264         * lib/utimensat.c (rpl_utimensat): Work around it.
22265         * lib/futimens.c (rpl_futimens): Adjust comment.
22266
22267         utimens: work around Linux ctime bug
22268         * lib/utimens.c (detect_ctime_bug): New helper function.
22269         (update_timespec): Differentiate between workaround needed for
22270         this bug vs. what is needed for systems that lack utimensat.
22271         (fdutimens, lutimens): Work around bug.
22272
22273         utimens: check for ctime update
22274         * tests/test-utimens-common.h (check_ctime): Define.
22275         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
22276         * tests/test-futimens.h (test_futimens): Likewise.
22277         * tests/test-lutimens.h (test_lutimens): Likewise.
22278         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22279         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22280
22281 2009-12-19  Bruno Haible  <bruno@clisp.org>
22282
22283         dprintf-posix: Check against memory leak fixed on 2009-12-15.
22284         * tests/test-dprintf-posix2.sh: New file.
22285         * tests/test-dprintf-posix2.c: New file.
22286         * modules/dprintf-posix-tests (Files): Add them.
22287         (configure.ac): Check for getrlimit and setrlimit.
22288         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22289
22290 2009-12-19  Bruno Haible  <bruno@clisp.org>
22291
22292         fprintf-posix: Check against memory leak fixed on 2009-12-15.
22293         * tests/test-fprintf-posix3.sh: New file.
22294         * tests/test-fprintf-posix3.c: New file.
22295         * modules/fprintf-posix-tests (Files): Add them.
22296         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22297
22298 2009-12-19  Eric Blake  <ebb9@byu.net>
22299
22300         dirfd: fix prototype
22301         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
22302         * lib/dirfd.c (dirfd): Likewise.
22303
22304         canonicalize: reduce memory usage
22305         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
22306         allocation to size.
22307         Reported by Solar Designer <solar@openwall.com>.
22308
22309 2009-12-19  Bruno Haible  <bruno@clisp.org>
22310
22311         New module attribute 'Applicability'.
22312         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
22313         * gnulib-tool: New option --extract-applicability.
22314         (func_usage): Document it.
22315         (sed_extract_prog): Recognize it.
22316         (func_get_applicability): New function.
22317         (func_import): Generalize handling of 'link-warning' module.
22318         * modules/link-warning (Applicability): New section.
22319         * modules/arg-nonnull (Applicability): New section.
22320         Repoted by Simon Josefsson <simon@josefsson.org>.
22321
22322 2009-12-19  Bruno Haible  <bruno@clisp.org>
22323
22324         fflush: tweak
22325         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22326         * lib/fseeko.c (rpl_fseeko): Likewise.
22327
22328 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22329
22330         * lib/gl_list.h: Fix typo in comment.
22331
22332 2009-12-16  Eric Blake  <ebb9@byu.net>
22333
22334         fcntl: use to simplify other modules
22335         * modules/cloexec (Depends-on): Add fcntl.
22336         * modules/fchdir (Depends-on): Likewise.
22337         * modules/fd-safer-flag (Depends-on): Likewise.
22338         * modules/unistd-safer (Depends-on): Likewise.
22339         * modules/dup3 (configure.ac): Set module indicator.
22340         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22341         missing.
22342         * lib/fchdir.c (_gl_register_dup): Fix comment.
22343         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22344         * lib/dup-safer.c (dup_safer): Likewise.
22345         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22346         * lib/dup3.c (dup3): Likewise.
22347         * tests/test-fchdir.c (main): Enhance test.
22348         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22349
22350         fcntl: port portions of fcntl to mingw
22351         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22352         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22353         replacement for mingw.
22354         * modules/fcntl (Description): Update.
22355         (Depends-on): Add dup2.
22356         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22357         * modules/fcntl-h (Makefile.am): Substitute it.
22358         * lib/fcntl.in.h (fcntl): Update declaration.
22359         (F_DUPFD, F_GETFD): New macros, when needed.
22360         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22361         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22362         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22363         we now guarantee.
22364
22365         fcntl: work around cygwin bug in F_DUPFD
22366         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22367         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22368         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22369         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22370         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22371
22372         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22373         * modules/fcntl (Files): List new files.
22374         (configure.ac): Run a test.
22375         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22376         * lib/fcntl.c (rpl_fcntl): Likewise.
22377         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22378         (gl_FCNTL_H): Always replace fcntl.h.
22379         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22380         * lib/fcntl.in.h (fcntl): Declare replacement.
22381         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22382         needed, plus a witness.
22383         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22384         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22385         * tests/test-fcntl.c: New file.
22386         * modules/fcntl-tests: Likewise.
22387
22388         binary-io: avoid potential compilation warning
22389         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22390         directives.
22391
22392         fflush: avoid compilation error on NetBSD
22393         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22394         between off_t and fpos_t, since the latter is sometimes a struct.
22395         * lib/fseeko.c (rpl_fseeko): Likewise.
22396         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22397
22398 2009-12-15  Eric Blake  <ebb9@byu.net>
22399
22400         fcntl-h, stdio, sys_ioctl: fix declarations
22401         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22402         function must not take arguments.
22403         * lib/sys_ioctl.in.h (ioctl): Likewise.
22404         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22405         (open): Add a link warning.
22406
22407 2009-12-15  Jim Meyering  <meyering@redhat.com>
22408
22409         areadlink, areadlink-with-size: relax license to LGPLv2+
22410         * modules/areadlink (License): Relax to LGPLv2+.
22411         * modules/areadlink-with-size (License): Likewise.
22412
22413 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22414             Bruno Haible  <bruno@clisp.org>
22415
22416         *printf: Fix memory leak.
22417         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22418         * lib/vfprintf.c (vfprintf): Likewise.
22419         * lib/dprintf.c (dprintf): Likewise.
22420         * lib/vdprintf.c (vdprintf): Likewise.
22421
22422 2009-12-14  Eric Blake  <ebb9@byu.net>
22423
22424         accept4: adjust module dependencies
22425         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22426
22427         utimens: one more try at avoiding compiler warning
22428         * lib/utimens.c (lutimens): Lower scope of result.
22429
22430 2009-12-13  Bruno Haible  <bruno@clisp.org>
22431
22432         Move the malloc checking from module 'list' to new module 'xlist'.
22433         * modules/xlist: New file.
22434         * lib/gl_xlist.h: New file.
22435         * lib/gl_xlist.c: New file.
22436         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22437         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22438         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22439         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22440         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22441         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22442         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22443         gl_sortedlist_nx_add): New declarations.
22444         (struct gl_list_implementation): Rename and change methods accordingly.
22445         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22446         (gl_list_nx_create): Renamed from gl_list_create.
22447         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22448         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22449         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22450         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22451         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22452         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22453         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22454         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22455         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22456         gl_list_create_empty.
22457         (gl_list_nx_create): Renamed from gl_list_create.
22458         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22459         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22460         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22461         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22462         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22463         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22464         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22465         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22466         * lib/gl_array_list.c: Don't include xalloc.h.
22467         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22468         NULL upon out-of-memory.
22469         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22470         out-of-memory.
22471         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22472         Change return type to 'int'.
22473         (gl_array_nx_set_at): Renamed from gl_array_set_at.
22474         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22475         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
22476         upon out-of-memory.
22477         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
22478         upon out-of-memory.
22479         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
22480         upon out-of-memory.
22481         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
22482         upon out-of-memory.
22483         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
22484         out-of-memory.
22485         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
22486         Update.
22487         (gl_array_list_implementation): Update.
22488         * lib/gl_carray_list.c: Don't include xalloc.h.
22489         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
22490         Return NULL upon out-of-memory.
22491         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
22492         out-of-memory.
22493         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
22494         Change return type to 'int'.
22495         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
22496         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22497         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
22498         upon out-of-memory.
22499         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
22500         upon out-of-memory.
22501         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
22502         out-of-memory.
22503         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
22504         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
22505         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
22506         Update.
22507         (gl_carray_list_implementation): Update.
22508         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
22509         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
22510         gl_linked_create_empty. Return NULL upon out-of-memory.
22511         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
22512         out-of-memory.
22513         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
22514         Change return type to 'int'. Return -1 upon out-of-memory.
22515         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
22516         out-of-memory.
22517         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
22518         upon out-of-memory.
22519         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
22520         upon out-of-memory.
22521         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
22522         NULL upon out-of-memory.
22523         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
22524         upon out-of-memory.
22525         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
22526         out-of-memory.
22527         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
22528         Update.
22529         * lib/gl_linked_list.c: Don't include xalloc.h.
22530         (gl_linked_list_implementation): Update.
22531         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
22532         (add_to_bucket): Change return type to 'int'.
22533         (gl_linkedhash_list_implementation): Update.
22534         * lib/gl_anytree_list1.h (free_subtree): New function.
22535         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
22536         gl_tree_create_empty. Return NULL upon out-of-memory.
22537         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
22538         Change return type to 'int'. Return -1 upon out-of-memory.
22539         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
22540         out-of-memory.
22541         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
22542         (gl_tree_remove_node): New function, moved here from
22543         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
22544         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
22545         Update.
22546         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
22547         malloc, not xmalloc. Return NULL upon out-of-memory.
22548         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22549         out-of-memory.
22550         (gl_tree_remove_node_from_tree): New function, extracted from
22551         gl_tree_remove_node.
22552         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22553         upon out-of-memory.
22554         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22555         out-of-memory.
22556         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22557         upon out-of-memory.
22558         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22559         upon out-of-memory.
22560         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22561         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
22562         not xmalloc. Return NULL upon out-of-memory.
22563         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22564         out-of-memory.
22565         (gl_tree_remove_node_from_tree): New function, extracted from
22566         gl_tree_remove_node.
22567         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22568         upon out-of-memory.
22569         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22570         out-of-memory.
22571         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22572         upon out-of-memory.
22573         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22574         upon out-of-memory.
22575         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22576         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
22577         gl_anytree_list1.h before gl_anyavltree_list2.h.
22578         (gl_avltree_list_implementation): Update.
22579         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
22580         gl_anytree_list1.h before gl_anyavltree_list2.h.
22581         (gl_rbtree_list_implementation): Update.
22582         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
22583         Change return type to 'int'. Return -1 upon out-of-memory. Use
22584         __builtin_expect.
22585         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
22586         (gl_avltreehash_list_implementation): Update.
22587         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
22588         (gl_rbtreehash_list_implementation): Update.
22589         * modules/array-list (Depends-on): Remove xalloc.
22590         * modules/carray-list (Depends-on): Likewise.
22591         * modules/linked-list (Depends-on): Likewise.
22592         * modules/linkedhash-list (Depends-on): Likewise.
22593         * modules/avltree-list (Depends-on): Likewise.
22594         * modules/rbtree-list (Depends-on): Likewise.
22595         * modules/avltreehash-list (Depends-on): Likewise.
22596         * modules/rbtreehash-list (Depends-on): Likewise.
22597
22598         * modules/xsublist: New file.
22599         * lib/gl_xsublist.h: New file.
22600         * lib/gl_xsublist.c: New file.
22601         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
22602         (gl_sublist_nx_create): New declaration.
22603         * lib/gl_sublist.c: Don't include xalloc.h.
22604         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
22605         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
22606         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
22607         Change return type to 'int'. Return -1 upon out-of-memory.
22608         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
22609         upon out-of-memory.
22610         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
22611         NULL upon out-of-memory.
22612         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
22613         upon out-of-memory.
22614         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
22615         NULL upon out-of-memory.
22616         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
22617         NULL upon out-of-memory.
22618         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
22619         upon out-of-memory.
22620         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
22621         (gl_sublist_list_implementation): Update.
22622         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
22623         upon out-of-memory.
22624         * modules/sublist (Depends-on): Remove xalloc.
22625
22626         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
22627         * tests/test-carray_list.c: Likewise.
22628         * tests/test-linked_list.c: Likewise.
22629         * tests/test-linkedhash_list.c: Likewise.
22630         * tests/test-avltree_list.c: Likewise.
22631         * tests/test-rbtree_list.c: Likewise.
22632         * tests/test-avltreehash_list.c: Likewise.
22633         * tests/test-rbtreehash_list.c: Likewise.
22634         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
22635         * modules/carray-list-tests (Makefile.am): Likewise.
22636         * modules/linked-list-tests (Makefile.am): Likewise.
22637         * modules/linkedhash-list-tests (Makefile.am): Likewise.
22638         * modules/avltree-list-tests (Makefile.am): Likewise.
22639         * modules/rbtree-list-tests (Makefile.am): Likewise.
22640         * modules/avltreehash-list-tests (Makefile.am): Likewise.
22641         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
22642
22643         * NEWS: Mention the changes.
22644
22645         * lib/clean-temp.c: Include gl_xlist.h.
22646         * modules/clean-temp (Depends-on): Add xlist.
22647
22648         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
22649         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
22650
22651         * tests/test-array_oset.c: Include gl_xlist.h.
22652         * modules/array-oset-tests (Depends-on): Add xlist.
22653
22654         Reported by José E. Marchesi <jemarch@gnu.org>.
22655
22656 2009-12-13  Bruno Haible  <bruno@clisp.org>
22657
22658         Move the malloc checking from module 'oset' to new module 'xoset'.
22659         * modules/xoset: New file.
22660         * lib/gl_xoset.h: New file.
22661         * lib/gl_xoset.c: New file.
22662         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
22663         declarations.
22664         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
22665         (struct gl_oset_implementation): Rename and change methods accordingly.
22666         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
22667         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22668         'int'. Mark as __warn_unused_result__.
22669         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
22670         gl_oset_create_empty.
22671         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22672         'int'.
22673         * lib/gl_array_oset.c: Don't include xalloc.h.
22674         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
22675         malloc, not xmalloc.
22676         (grow): Change return type to 'int'. Don't call xalloc_die.
22677         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
22678         to 'int'.
22679         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
22680         'int'.
22681         (gl_array_oset_implementation): Update.
22682         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
22683         gl_tree_create_empty.
22684         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
22685         'int'.
22686         * lib/gl_avltree_oset.c: Don't include xalloc.h.
22687         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22688         xmalloc.
22689         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22690         not xmalloc.
22691         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22692         xmalloc.
22693         (gl_avltree_oset_implementation): Update.
22694         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
22695         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22696         xmalloc.
22697         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22698         not xmalloc.
22699         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22700         xmalloc.
22701         (gl_rbtree_oset_implementation): Update.
22702         * modules/array-oset (Depends-on): Remove xalloc.
22703         * modules/avltree-oset (Depends-on): Likewise.
22704         * modules/rbtree-oset (Depends-on): Likewise.
22705         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
22706         * tests/test-avltree_oset.c: Likewise.
22707         * tests/test-rbtree_oset.c: Likewise.
22708         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
22709         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
22710         * modules/rbtree-oset-tests (Makefile.am): Likewise.
22711         * NEWS: Mention the change.
22712
22713 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
22714
22715         maint.mk: allow a project to override release-prep commands
22716         * top/maint.mk (alpha, beta, stable): Move release-preparatory
22717         commands into a new rule.
22718         (release-prep): New rule.
22719         (release-prep-hook): New overridable variable.
22720
22721 2009-12-13  Bruno Haible  <bruno@clisp.org>
22722
22723         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
22724
22725 2009-12-13  Jim Meyering  <meyering@redhat.com>
22726
22727         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
22728         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
22729
22730 2009-12-12  Bruno Haible  <bruno@clisp.org>
22731
22732         duplocale: Tweak.
22733         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
22734
22735 2009-12-12  Karl Berry  <karl@gnu.org>
22736
22737         * config/srclist.txt (strtoll.c): tab changes, no more sync.
22738
22739 2009-12-12  Bruno Haible  <bruno@clisp.org>
22740
22741         * m4/po.m4: Undo incorrect untabification.
22742
22743 2009-12-12  Bruno Haible  <bruno@clisp.org>
22744
22745         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
22746         * modules/c-strtod (Depends-on): Add locale.
22747         * modules/c-strtold (Depends-on): Likewise.
22748
22749 2009-12-12  Bruno Haible  <bruno@clisp.org>
22750
22751         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
22752
22753 2009-12-11  Eric Blake  <ebb9@byu.net>
22754
22755         setenv: relax requirement in light of POSIX ruling
22756         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
22757         not NULL.
22758         * tests/test-setenv.c (main): Relax test.
22759         * tests/test-unsetenv.c (main): Likewise.
22760         * doc/posix-functions/setenv.texi (setenv): Document this.
22761         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22762
22763 2009-12-11  Bruno Haible  <bruno@clisp.org>
22764
22765         New module 'fd-safer-flag'.
22766         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
22767         * lib/dup-safer.c (dup_safer_flag): Remove function.
22768         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
22769         * lib/fd-safer.c (fd_safer_flag): Remove function.
22770         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
22771         * modules/cloexec (configure.ac): Drop indicator macro.
22772         * modules/fd-safer-flag: New file.
22773         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
22774         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
22775         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
22776
22777 2009-12-11  Bruno Haible  <bruno@clisp.org>
22778
22779         Tests for module 'nl_langinfo'.
22780         * modules/nl_langinfo-tests: New file.
22781         * tests/test-nl_langinfo.sh: New file.
22782         * tests/test-nl_langinfo.c: New file.
22783
22784         New module 'nl_langinfo'.
22785         * lib/nl_langinfo.c: New file.
22786         * m4/nl_langinfo.m4: New file.
22787         * modules/nl_langinfo: New file.
22788         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
22789
22790 2009-12-11  Bruno Haible  <bruno@clisp.org>
22791
22792         Tests for module 'langinfo'.
22793         * modules/langinfo-tests: New file.
22794         * tests/test-langinfo.c: New file.
22795
22796         New module 'langinfo'.
22797         * lib/langinfo.in.h: New file.
22798         * m4/langinfo_h.m4: New file.
22799         * modules/langinfo: New file.
22800         * doc/posix-headers/langinfo.texi: Mention the new module.
22801
22802 2009-12-11  Bruno Haible  <bruno@clisp.org>
22803
22804         * lib/config.charset: Untabify.
22805
22806 2009-12-11  Bruno Haible  <bruno@clisp.org>
22807
22808         * modules/unistd-safer (configure.ac): Drop indicator macro.
22809
22810 2009-12-11  Bruno Haible  <bruno@clisp.org>
22811
22812         Move pipe2-safer code to its own file.
22813         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
22814         * lib/pipe-safer.c (pipe2_safer): Remove function.
22815         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
22816         (Makefile.am): Add it to lib_SOURCES.
22817
22818 2009-12-10  Bruno Haible  <bruno@clisp.org>
22819
22820         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
22821
22822 2009-12-10  Bruno Haible  <bruno@clisp.org>
22823
22824         Declare which arguments expect non-NULL values, for GCC and clang.
22825         * build-aux/arg-nonnull.h: New file.
22826         * modules/arg-nonnull: New file.
22827         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
22828         (inet_ntop, inet_pton): Use it.
22829         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
22830         (closedir, dirfd, opendir, scandir, alphasort): Use it.
22831         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
22832         (open, openat): Use it.
22833         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
22834         (fnmatch): Use it.
22835         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
22836         (getopt, getopt_long, getopt_long_only): Use it.
22837         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
22838         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
22839         Use it.
22840         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
22841         (iconv_open): Use it.
22842         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
22843         (strtoimax, strtoumax): Use it.
22844         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
22845         (duplocale): Use it.
22846         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
22847         (frexp, frexpl): Use it.
22848         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
22849         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
22850         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
22851         (tsearch, tfind, tdelete, twalk): Use it.
22852         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
22853         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22854         sigpending): Use it.
22855         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
22856         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22857         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22858         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22859         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22860         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22861         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22862         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22863         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22864         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22865         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22866         Use it.
22867         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
22868         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
22869         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
22870         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
22871         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
22872         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
22873         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
22874         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
22875         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
22876         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
22877         strtoull, unsetenv): Use it.
22878         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
22879         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22880         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22881         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
22882         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
22883         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
22884         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
22885         (strcasecmp, strncasecmp): Use it.
22886         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
22887         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
22888         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
22889         rpl_setsockopt): Use it.
22890         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
22891         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
22892         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
22893         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
22894         (gettimeofday): Use it.
22895         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
22896         (times): Use it.
22897         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
22898         (uname): Use it.
22899         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
22900         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
22901         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
22902         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
22903         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
22904         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
22905         unlinkat, write): Use it.
22906         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
22907         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
22908         * lib/argv-iter.h: Include arg-nonnull.h.
22909         (_ATTRIBUTE_NONNULL_): Remove macro.
22910         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
22911         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
22912         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
22913         optimization.
22914         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
22915         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
22916         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
22917         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
22918         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
22919         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
22920         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
22921         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
22922         * modules/arpa_inet (Depends-on): Add arg-nonnull.
22923         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
22924         * modules/dirent (Depends-on): Add arg-nonnull.
22925         (Makefile.am): Insert arg-nonnull.h into dirent.h.
22926         * modules/fcntl-h (Depends-on): Add arg-nonnull.
22927         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
22928         * modules/fnmatch (Depends-on): Add arg-nonnull.
22929         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
22930         * modules/getopt-posix (Depends-on): Add arg-nonnull.
22931         (Makefile.am): Insert arg-nonnull.h into getopt.h.
22932         * modules/glob (Depends-on): Add arg-nonnull.
22933         (Makefile.am): Insert arg-nonnull.h into glob.h.
22934         * modules/iconv_open (Depends-on): Add arg-nonnull.
22935         (Makefile.am): Insert arg-nonnull.h into iconv.h.
22936         * modules/inttypes (Depends-on): Add arg-nonnull.
22937         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
22938         * modules/locale (Depends-on): Add arg-nonnull.
22939         (Makefile.am): Insert arg-nonnull.h into locale.h.
22940         * modules/math (Depends-on): Add arg-nonnull.
22941         (Makefile.am): Insert arg-nonnull.h into math.h.
22942         * modules/netdb (Depends-on): Add arg-nonnull.
22943         (Makefile.am): Insert arg-nonnull.h into netdb.h.
22944         * modules/search (Depends-on): Add arg-nonnull.
22945         (Makefile.am): Insert arg-nonnull.h into search.h.
22946         * modules/signal (Depends-on): Add arg-nonnull.
22947         (Makefile.am): Insert arg-nonnull.h into signal.h.
22948         * modules/spawn (Depends-on): Add arg-nonnull.
22949         (Makefile.am): Insert arg-nonnull.h into spawn.h.
22950         * modules/stdio (Depends-on): Add arg-nonnull.
22951         (Makefile.am): Insert arg-nonnull.h into stdio.h.
22952         * modules/stdlib (Depends-on): Add arg-nonnull.
22953         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
22954         * modules/string (Depends-on): Add arg-nonnull.
22955         (Makefile.am): Insert arg-nonnull.h into string.h.
22956         * modules/strings (Depends-on): Add arg-nonnull.
22957         (Makefile.am): Insert arg-nonnull.h into strings.h.
22958         * modules/sys_socket (Depends-on): Add arg-nonnull.
22959         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
22960         * modules/sys_stat (Depends-on): Add arg-nonnull.
22961         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
22962         * modules/sys_time (Depends-on): Add arg-nonnull.
22963         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
22964         * modules/sys_times (Depends-on): Add arg-nonnull.
22965         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
22966         * modules/sys_utsname (Depends-on): Add arg-nonnull.
22967         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
22968         * modules/time (Depends-on): Add arg-nonnull.
22969         (Makefile.am): Insert arg-nonnull.h into time.h.
22970         * modules/unistd (Depends-on): Add arg-nonnull.
22971         (Makefile.am): Insert arg-nonnull.h into unistd.h.
22972         * modules/wchar (Depends-on): Add arg-nonnull.
22973         (Makefile.am): Insert arg-nonnull.h into wchar.h.
22974         * modules/argv-iter (Depends-on): Add arg-nonnull.
22975         * tests/test-canonicalize.c (null_ptr): New function.
22976         (main): Use it.
22977         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
22978         (main): Use it.
22979         * tests/test-memmem.c (null_ptr): New function.
22980         (main): Use it.
22981         Reported by Jim Meyering.
22982
22983 2009-12-10  Bruno Haible  <bruno@clisp.org>
22984
22985         Use spaces for indentation, not tabs.
22986         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22987         * m4/*.m4: Untabify.
22988         * build-aux/*.h: Untabify.
22989         * tests/**/*.[hc]: Untabify.
22990         * README: New section "Indent with spaces, not TABs", based on
22991         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
22992         * NEWS: Mention the change.
22993
22994 2009-12-10  Bruno Haible  <bruno@clisp.org>
22995
22996         pty test: Fix link error.
22997         * modules/pty-tests (Makefile.am): Add the default LDADD value to
22998         test_pty_LDADD.
22999
23000 2009-12-07  Simon Josefsson  <simon@josefsson.org>
23001
23002         * modules/pty: New file.
23003         * modules/pty-tests: New file.
23004         * m4/pty.m4: New file.
23005         * tests/test-pty.c: New file.
23006         * doc/glibc-headers/pty.texi: Modified.
23007         * doc/glibc-functions/forkpty.texi: Modified.
23008         * doc/glibc-functions/openpty.texi: Modified.
23009
23010 2009-12-10  Bruno Haible  <bruno@clisp.org>
23011
23012         Avoid syntax error in C++ mode.
23013         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
23014
23015 2009-12-10  Bruno Haible  <bruno@clisp.org>
23016
23017         Use sed with option -e.
23018         * gnulib-tool (func_version, func_emit_copyright_notice,
23019         func_emit_initmacro_end, func_import, func_create_testdir): Pass
23020         option -e to sed.
23021         * modules/link-warning (Makefile.am): Likewise.
23022
23023 2009-12-10  Jim Meyering  <meyering@redhat.com>
23024
23025         mgetgroups: do not write bytes beyond end of malloc'd buffer
23026         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
23027         username, we call getgroups with a one-element-shorter buffer,
23028         but still told it the length was original, max_n_groups.
23029
23030 2009-12-09  Eric Blake  <ebb9@byu.net>
23031
23032         cloexec: relax license
23033         * modules/cloexec (Maintainer): Add myself.
23034         (License): Use LGPL, not GPL.
23035
23036         link-warning: optimize generation
23037         * modules/link-warning (Makefile.am): Reduce process usage.
23038
23039 2009-12-09  Bruno Haible  <bruno@clisp.org>
23040
23041         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
23042         workaround was added on 2009-11-17.
23043
23044 2009-12-09  Jim Meyering  <meyering@redhat.com>
23045             Bruno Haible  <bruno@clisp.org>
23046
23047         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
23048         * modules/link-warning (Makefile.am): Make the comment-removing sed
23049         command more robust in the face of bootstrap-prepended comment lines.
23050
23051 2009-12-09  Bruno Haible  <bruno@clisp.org>
23052
23053         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
23054         most one group.
23055
23056 2009-12-09  Simon Josefsson <simon@josefsson.org>
23057             Bruno Haible  <bruno@clisp.org>
23058
23059         * build-aux/link-warning.h: Add copyright notice.
23060         * modules/link-warning (Makefile.am): Generate link-warning.h from
23061         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
23062         * NEWS: Mention change in link-warning module.
23063         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
23064         * modules/dirent (Makefile.am): Add dependency to dirent.h.
23065         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
23066         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
23067         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
23068         * modules/math (Makefile.am): Add dependency to math.h.
23069         * modules/search (Makefile.am): Add dependency to search.h.
23070         * modules/signal (Makefile.am): Add dependency to signal.h.
23071         * modules/spawn (Makefile.am): Add dependency to spawn.h.
23072         * modules/stdio (Makefile.am): Add dependency to stdio.h.
23073         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
23074         * modules/string (Makefile.am): Add dependency to string.h.
23075         * modules/strings (Makefile.am): Add dependency to strings.h.
23076         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
23077         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
23078         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
23079         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
23080         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
23081         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
23082         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
23083         * modules/unistd (Makefile.am): Add dependency to unistd.h.
23084         * modules/wchar (Makefile.am): Add dependency to wchar.h.
23085
23086 2009-12-09  Bruno Haible  <bruno@clisp.org>
23087
23088         fchdir: Optimize away rpl_fstat when possible.
23089         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
23090         REPLACE_OPEN_DIRECTORY.
23091         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
23092
23093 2009-12-09  Bruno Haible  <bruno@clisp.org>
23094
23095         * lib/fchdir.c: Update comment.
23096
23097 2009-12-09  Bruno Haible  <bruno@clisp.org>
23098
23099         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
23100
23101 2009-12-08  Eric Blake  <ebb9@byu.net>
23102
23103         fchdir: avoid memory leak on re-registration.
23104         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
23105
23106 2009-12-08  Jim Meyering  <meyering@redhat.com>
23107
23108         init.sh: avoid Solaris 10 /bin/sh portability problem
23109         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
23110         sourced script:
23111           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
23112           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
23113           bar
23114         tests/init.sh relied on that, accepting a --set-path=DIR argument,
23115         and two tests used that idiom.
23116         * tests/init.sh: Update suggested usage comments.
23117         (path_prepend_): New function, to be used in place
23118         of the --src-path=DIR option.
23119         (setup_): Move PATH-prepending code into path_prepend_.
23120         * tests/test-pread.sh: Adapt to new usage.
23121         * tests/test-xalloc-die.sh: Likewise.
23122
23123 2009-12-08  Simon Josefsson  <simon@josefsson.org>
23124
23125         * doc/gnulib.texi (Glibc pty.h): Add.
23126         * doc/glibc-functions/forkpty.texi: Add.
23127         * doc/glibc-functions/openpty.texi: Add.
23128         Suggested by Bruno Haible.
23129
23130 2009-12-08  Eric Blake  <ebb9@byu.net>
23131
23132         fchdir: fix logic bugs
23133         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
23134         * tests/test-fchdir.c (main): Enhance test.
23135         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
23136         is in use.
23137
23138         dup2: fix logic bugs
23139         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
23140         REPLACE_DUP2 to decide when rpl_dup2 is needed.
23141         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
23142         exists.
23143         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
23144
23145 2009-12-07  Eric Blake  <ebb9@byu.net>
23146
23147         unlink: fix m4 detection
23148         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
23149
23150         unistd-safer: add unit test
23151         * modules/unistd-safer-tests: New file.
23152         * tests/test-dup-safer.c: Likewise.
23153         * tests/test-cloexec.c (setmode): Avoid compiler warning.
23154         * tests/test-dup2.c (setmode): Likewise.
23155         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
23156
23157         cloexec: preserve text vs. binary across dup_cloexec
23158         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
23159         mode.
23160         * modules/dup2-tests (Depends-on): Add binary-io.
23161         * modules/cloexec-tests (Depends-on): Likewise.
23162         * tests/test-dup2.c (setmode, is_mode): New helpers.
23163         (main): Add tests that translation mode is preserved.
23164         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
23165         Reported by Bruno Haible.
23166
23167         mgetgroups: reduce duplicate listings
23168         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
23169         resulting array.
23170         * tests/test-chown.h (test_chown): Simplify client.
23171         * tests/test-lchown.h (test_lchown): Likewise.
23172
23173 2009-12-06  Bruno Haible  <bruno@clisp.org>
23174
23175         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
23176         value.
23177
23178 2009-12-06  Bruno Haible  <bruno@clisp.org>
23179
23180         * lib/progname.c: Include stdio.h, stdlib.h.
23181         (set_program_name): Reject a NULL argument.
23182
23183 2009-12-05  Eric Blake  <ebb9@byu.net>
23184
23185         pipe2-safer: new module
23186         * modules/pipe2-safer: New file.
23187         * lib/unistd-safer.h (pipe2_safer): New prototype.
23188         * lib/unistd--.h (pipe2): New wrapper.
23189         * lib/pipe-safer.c (pipe2_safer): New function.
23190         * modules/pipe (Depends-on): Add pipe2-safer.
23191         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
23192
23193         stdlib-safer: preserve cloexec flag for mkostemp[s]
23194         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23195         fd_safer_flag.
23196
23197         unistd-safer: allow preservation of cloexec status via flag
23198         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23199         prototypes.
23200         * lib/dup-safer.c (dup_safer_flag): New function.
23201         * lib/fd-safer.c (fd_safer_flag): Likewise.
23202         * modules/cloexec (configure.ac): Set witness.
23203
23204         test-dup2: enhance test
23205         * modules/dup2-tests (Depends-on): Add cloexec.
23206         * tests/test-dup2.c (main): Enhance test.
23207
23208         cloexec: add dup_cloexec
23209         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23210         header and comments.
23211         * lib/cloexec.c (set_cloexec_flag): Add comments.
23212         (dup_cloexec): New function, with mingw implementation borrowed
23213         from...
23214         * lib/w32spawn.h (dup_noinherit): ...here.
23215         * modules/execute (Depends-on): Add cloexec.
23216         * modules/pipe (Depends-on): Likewise.
23217         * modules/cloexec (Depends-on): Add dup2.
23218         * modules/cloexec-tests (Files): New file.
23219         * tests/test-cloexec.c: Likewise.
23220
23221         test-xalloc-die: fix test for mingw
23222         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23223         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23224         directory and .exe suffix off argv[0] output.
23225
23226         test-fseeko: fix test for mingw
23227         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23228         than undefining fseek, so test will pass on mingw.
23229
23230 2009-12-05  Bruno Haible  <bruno@clisp.org>
23231
23232         * lib/progname.h (set_program_name): Clarify specification.
23233         * lib/progname.c (set_program_name): Likewise.
23234         Reported by Jim Meyering.
23235
23236 2009-12-05  Jim Meyering  <meyering@redhat.com>
23237
23238         maint.mk: backslash-escape parens in default regexp
23239         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23240         backslash-escape the literal parentheses.
23241
23242         maint.mk: news-date-check: use grep -E
23243         * top/maint.mk (today): Define a Make variable, not a...
23244         (news-date-check): ...shell variable.
23245         (news-date-regexp): Use the Make variable.
23246         Use grep's -E option.  Change the failing diagnostic to mention
23247         the variable, $(news-date-regexp).
23248
23249 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23250
23251         maintainer-makefile: allow customization of NEWS entry format
23252         * top/maint.mk (news-date-regexp): New overridable variable.
23253         (news-date-check): Use it.
23254
23255 2009-12-04  Eric Blake  <ebb9@byu.net>
23256
23257         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23258         * lib/mgetgroups.h (xgetgroups): New prototype.
23259         * lib/mgetgroups.c (xgetgroups): New wrapper.
23260         (mgetgroups): Handle ENOSYS.
23261         * modules/mgetgroups (Depends-on): Add realloc.
23262         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
23263
23264         mgetgroups: avoid argument promotion issues with -1
23265         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
23266         for invalid gid_t.
23267         * tests/test-chown.h (getegid, test_chown): Likewise.
23268         * tests/test-lchown.h (getegid, test_lchown): Likewise.
23269
23270 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
23271
23272         exclude: Fix header file problems.
23273         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
23274
23275 2009-12-01  Jim Meyering  <meyering@redhat.com>
23276
23277         fts: fts_open: do not let an empty string cause immediate failure
23278         This is required in support of GNU rm, for which the command
23279         "rm A '' B" must process and remove both A and B, in spite of
23280         the empty string argument.
23281         * lib/fts.c (fts_open): Do not let the presence of an empty string
23282         cause fts_open to fail immediately.  Most fts-using tools must be
23283         able to process all arguments, in order, and can be expected to
23284         diagnose such arguments themselves.
23285
23286 2009-11-30  Eric Blake  <ebb9@byu.net>
23287
23288         utimens: fix compilation error
23289         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
23290         Declare variable at right scope.
23291
23292 2009-11-29  Jim Meyering  <meyering@redhat.com>
23293
23294         bootstrap: handle perl-5.11's changed --version output
23295         * build-aux/bootstrap (get_version): Handle perl separately,
23296         since perl-5.11's --version output is different.
23297
23298 2009-11-28  Jim Meyering  <meyering@redhat.com>
23299
23300         userspec: depend on the inttostr module, too
23301         * modules/userspec (Depends-on): Add inttostr.
23302
23303         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
23304         * lib/userspec.c (parse_with_separator): Do not accept a user ID
23305         number of MAXUID when it evaluates to (uid_t) -1.
23306         Likewise for group ID.  Reported by Matt McCutchen in
23307         <http://savannah.gnu.org/bugs/?28113>
23308
23309         userspec: reformat to use spaces, not TABs
23310         * lib/userspec.c: Expand TABs to spaces.
23311         Add Emacs' "indent-tabs-mode: nil" hint.
23312
23313 2009-11-27  Eric Blake  <ebb9@byu.net>
23314
23315         getopt-gnu: flush out another BSD bug
23316         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23317         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
23318         flush out BSD bug.
23319         * tests/test-getopt.h (test_getopt): End lists with NULL.
23320         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23321         (test_getopt_long_posix): Enhance test.
23322         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23323         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23324         getopt-gnu.
23325         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23326         Likewise.
23327
23328 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23329
23330         * modules/idpriv-droptemp-tests (Notice): Fix text.
23331
23332 2009-11-27  Jim Meyering  <meyering@redhat.com>
23333
23334         test-xalloc-die: avoid spurious failure due to libtool argv difference
23335         In a libtool-enabled project, this test would fail due to a difference
23336         in the emitted program name, e.g.,
23337         -test-xalloc-die: memory exhausted
23338         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23339         Use program to avoid that.
23340         * modules/xalloc-die-tests (Depends-on): Add progname.
23341         * tests/test-xalloc-die.c: Include progname.h".
23342         (program_name): Remove decl.
23343         (main): Call set_program_name.
23344         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23345
23346 2009-11-26  Richard Jones  <rjones@redhat.com>
23347
23348         w32sock: leave win32 error in place.
23349         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23350
23351 2009-11-26  Eric Blake  <ebb9@byu.net>
23352
23353         init.sh: suggest to use skip_ and fail_ functions in comments
23354         * tests/init.sh: Add a sentence.
23355
23356 2009-11-25  Bruno Haible  <bruno@clisp.org>
23357
23358         init.sh: add documentation in comments
23359         * tests/init.sh: Add some developer and user documentation.
23360
23361 2009-11-26  Jim Meyering  <meyering@redhat.com>
23362
23363         init.sh: accommodate even those who specify bogus srcdir manually
23364         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23365         configure-time tests to be sanitized, so that there is no need to
23366         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23367         (with no double quotes) suffices.  However, since tests may be
23368         invoked manually, and since you may explicitly set srcdir to the
23369         name of a directory containing spaces, do quote its uses here.
23370         * tests/test-pread.sh: Likewise.
23371         Suggested by Bruno Haible.
23372
23373         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23374         * tests/test-pread.sh: Write no data into the pipe, because
23375         test-pread actually reads none.  This avoids a diagnostic,
23376         "bash: echo: write error: Broken pipe", that arises in the unusual
23377         event something is ignoring SIGPIPE, and might be interpreted
23378         as some sort of failure.  Reported by Bruno Haible.
23379
23380 2009-11-25  Jim Meyering  <meyering@redhat.com>
23381
23382         test-pread: cover failure with ESPIPE and EINVAL
23383         * tests/test-pread.c (main): Test for failure, too.
23384         * tests/test-pread.sh: Invoke with stdin on a pipe.
23385         Suggested by Eric Blake.
23386
23387         pread: improvement and fix
23388         * modules/pread (Depends-on): Depend on lseek, for portability to
23389         e.g., mingw.  Suggested by Eric Blake.
23390         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23391
23392         unistd.in.h: correct declaration of pread
23393         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23394         Reported by Richard W.M. Jones.
23395
23396         test-pread.sh: distribute the test script
23397         * modules/pread-tests (Files): Include test-pread.sh.
23398
23399         test-pread.sh: clean up
23400         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23401         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23402         That is unnecessary, since it's always ".".
23403         Suggestion from Eric Blake.
23404
23405         test-pread.sh: make executable
23406         * tests/test-pread.sh: Set executable bit.
23407         Reported by Eric Blake.
23408
23409         correct typo in test-pread.sh
23410         * tests/test-pread.sh: Add #! line.
23411
23412         test pread
23413         * tests/test-pread.c: New file.
23414         * tests/test-pread.sh: Likewise.
23415         * modules/pread-tests: Likewise.
23416
23417         pread: new module
23418         * modules/pread: New file.
23419         * lib/unistd.in.h (pread): Define/declare.
23420         * lib/pread.c (pread): New file.
23421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23422         * modules/unistd (Makefile.am): Substitute witnesses.
23423         * doc/posix-functions/pread.texi (pread): Update.
23424         * MODULES.html.sh: Add pread.
23425
23426 2009-11-25  Jim Meyering  <meyering@redhat.com>
23427
23428         tests/init.sh: new file to be used via most *.sh tests
23429         * tests/init.sh: New file.
23430
23431 2009-11-25  Eric Blake  <ebb9@byu.net>
23432
23433         utimens: work around older Linux failure with symlinks
23434         * lib/utimens.c (lutimensat_works_really): New variable.
23435         (fdutimens, lutimens): Use it to manage kernels that support
23436         nanosecond times on files, but not on symlinks.
23437         Reported by OndÅ™ej Vašík.
23438
23439         utimes: fix configure grammar
23440         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23441
23442 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23443
23444         regex: Fix fastmap for multibyte character ranges.
23445         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23446         characters when a multibyte character range is included.
23447
23448 2009-11-22  Andy Wingo  <wingo@pobox.com>
23449
23450         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23451         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23452
23453 2009-11-24  Bruno Haible  <bruno@clisp.org>
23454
23455         doc: Most *_l functions exist in MacOS X 10.5.
23456         * doc/posix-functions/duplocale.texi: Update platforms list.
23457         * doc/posix-functions/freelocale.texi: Likewise.
23458         * doc/posix-functions/newlocale.texi: Likewise.
23459         * doc/posix-functions/uselocale.texi: Likewise.
23460         * doc/posix-functions/isalnum_l.texi: Likewise.
23461         * doc/posix-functions/isalpha_l.texi: Likewise.
23462         * doc/posix-functions/isblank_l.texi: Likewise.
23463         * doc/posix-functions/iscntrl_l.texi: Likewise.
23464         * doc/posix-functions/isdigit_l.texi: Likewise.
23465         * doc/posix-functions/isgraph_l.texi: Likewise.
23466         * doc/posix-functions/islower_l.texi: Likewise.
23467         * doc/posix-functions/isprint_l.texi: Likewise.
23468         * doc/posix-functions/ispunct_l.texi: Likewise.
23469         * doc/posix-functions/isspace_l.texi: Likewise.
23470         * doc/posix-functions/isupper_l.texi: Likewise.
23471         * doc/posix-functions/iswalnum_l.texi: Likewise.
23472         * doc/posix-functions/iswalpha_l.texi: Likewise.
23473         * doc/posix-functions/iswblank_l.texi: Likewise.
23474         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23475         * doc/posix-functions/iswctype_l.texi: Likewise.
23476         * doc/posix-functions/iswdigit_l.texi: Likewise.
23477         * doc/posix-functions/iswgraph_l.texi: Likewise.
23478         * doc/posix-functions/iswlower_l.texi: Likewise.
23479         * doc/posix-functions/iswprint_l.texi: Likewise.
23480         * doc/posix-functions/iswpunct_l.texi: Likewise.
23481         * doc/posix-functions/iswspace_l.texi: Likewise.
23482         * doc/posix-functions/iswupper_l.texi: Likewise.
23483         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23484         * doc/posix-functions/isxdigit_l.texi: Likewise.
23485         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
23486         * doc/posix-functions/strcasecmp_l.texi: Likewise.
23487         * doc/posix-functions/strcoll_l.texi: Likewise.
23488         * doc/posix-functions/strfmon_l.texi: Likewise.
23489         * doc/posix-functions/strftime_l.texi: Likewise.
23490         * doc/posix-functions/strncasecmp_l.texi: Likewise.
23491         * doc/posix-functions/strxfrm_l.texi: Likewise.
23492         * doc/posix-functions/tolower_l.texi: Likewise.
23493         * doc/posix-functions/toupper_l.texi: Likewise.
23494         * doc/posix-functions/towctrans_l.texi: Likewise.
23495         * doc/posix-functions/towlower_l.texi: Likewise.
23496         * doc/posix-functions/towupper_l.texi: Likewise.
23497         * doc/posix-functions/wcscoll_l.texi: Likewise.
23498         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23499         * doc/posix-functions/wctrans_l.texi: Likewise.
23500         * doc/posix-functions/wctype_l.texi: Likewise.
23501         * doc/glibc-functions/strptime_l.texi: Likewise.
23502         * doc/glibc-functions/strtod_l.texi: Likewise.
23503         * doc/glibc-functions/strtof_l.texi: Likewise.
23504         * doc/glibc-functions/strtol_l.texi: Likewise.
23505         * doc/glibc-functions/strtold_l.texi: Likewise.
23506         * doc/glibc-functions/strtoll_l.texi: Likewise.
23507         * doc/glibc-functions/strtoul_l.texi: Likewise.
23508         * doc/glibc-functions/strtoull_l.texi: Likewise.
23509         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23510         * doc/glibc-functions/wcstod_l.texi: Likewise.
23511         * doc/glibc-functions/wcstof_l.texi: Likewise.
23512         * doc/glibc-functions/wcstol_l.texi: Likewise.
23513         * doc/glibc-functions/wcstold_l.texi: Likewise.
23514         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23515         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23516         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23517
23518 2009-11-24  Bruno Haible  <bruno@clisp.org>
23519
23520         duplocale: Fix logic bug.
23521         * lib/duplocale.c: Don't include <langinfo.h>.
23522         (_NL_LOCALE_NAME): Remove macro.
23523         (rpl_duplocale): Use setlocale instead of nl_langinfo.
23524         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
23525
23526 2009-11-23  Jim Meyering  <meyering@redhat.com>
23527
23528         test-update-copyright: don't hard-code /usr/bin/perl
23529         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
23530         perl to print the current year.  Gilles Espinasse reported that
23531         the replaced use of perl was hard-coded as /usr/bin/perl.
23532
23533 2009-11-23  Bruno Haible  <bruno@clisp.org>
23534
23535         duplocale: Add support for glibc 2.3.x.
23536         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
23537
23538 2009-11-22  Bruno Haible  <bruno@clisp.org>
23539
23540         vasnprintf: Tiny optimization.
23541         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
23542         MacOS X.
23543
23544 2009-11-22  Bruno Haible  <bruno@clisp.org>
23545
23546         Tests for module 'duplocale'.
23547         * modules/duplocale-tests: New file.
23548         * tests/test-duplocale.c: New file.
23549
23550         New module 'duplocale'.
23551         * m4/duplocale.m4: New file.
23552         * lib/locale.in.h (duplocale): New declaration.
23553         * lib/duplocale.c: New file.
23554         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
23555         gl_LOCALE_H_DEFAULTS): New macros.
23556         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
23557         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
23558         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
23559         REPLACE_DUPLOCALE.
23560         * modules/duplocale: New file.
23561         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
23562
23563 2009-11-22  Bruno Haible  <bruno@clisp.org>
23564
23565         * modules/locale-tests (configure.ac): Test for newlocale function.
23566         * tests/test-locale.c: When the system has extended locale functions,
23567         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
23568
23569         locale: Make locale_t available when possible.
23570         * lib/locale.in.h: Include <xlocale.h> when it exists.
23571         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
23572         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
23573         * modules/locale (Depends-on): Add extensions.
23574         (Makefile.am): Also substitute HAVE_XLOCALE_H.
23575         * doc/posix-headers/locale.texi: Document the problem with locale_t.
23576
23577 2009-11-22  Bruno Haible  <bruno@clisp.org>
23578
23579         Add comments.
23580         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
23581         invocation.
23582         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23583         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23584         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23585
23586 2009-11-22  Bruno Haible  <bruno@clisp.org>
23587
23588         error: account for the possibility of freopen (stdout).
23589         * lib/error.c: Include <unistd.h>.
23590         (flush_stdout): New function, extracted from error and error_at_line.
23591         Determine stdout's fd dynamically.
23592         (error, error_at_line): Invoke flush_stdout.
23593         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
23594         * modules/error (Depends-on): Add unistd.
23595
23596 2009-11-22  Bruno Haible  <bruno@clisp.org>
23597
23598         diffseq: Add comment.
23599         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
23600
23601 2009-11-22  Jim Meyering  <meyering@redhat.com>
23602
23603         c-stack: avoid defining an unused static function
23604         * lib/c-stack.c (find_stack_direction): Do not define this function
23605         when it will not be used.
23606
23607         diffseq: avoid spurious gcc warnings
23608         * lib/diffseq.h (IF_LINT2): Define.
23609         (compareseq): Use it to initialize two members of "part".
23610         This avoids two used-uninitialized warnings.
23611
23612 2009-11-21  Jim Meyering  <meyering@redhat.com>
23613
23614         c-stack: avoid "ignoring return value of `write'" warning
23615         * lib/c-stack.c: Include "ignore-value.h".
23616         (die): Explicitly ignore each write return value.
23617         * modules/c-stack (Depends-on): Add ignore-value.
23618
23619 2009-11-21  Bruno Haible  <bruno@clisp.org>
23620
23621         diffseq: reduce scope of variable 'best'.
23622         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
23623         variable, earlier used for two different purposes.
23624
23625 2009-11-21  Jim Meyering  <meyering@redhat.com>
23626
23627         diffseq: remove useless assignment to "best"
23628         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
23629         assignment.  At that point "best" is already guaranteed to be zero.
23630
23631 2009-11-20  Eric Blake  <ebb9@byu.net>
23632
23633         build: mention ftp redirector in release announcements
23634         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
23635         values that used to come from cfg.mk; mention FTP redirect URL.
23636         * build-aux/announce-gen: Mention the mirror list.
23637         Suggested by Karl Berry.
23638
23639         nanosleep: improve port to mingw
23640         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
23641         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
23642         LIB_NANOSLEEP, but only when needed.
23643         * modules/select (Link): Document LIBSOCKET.
23644         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
23645         enough.
23646
23647         nanosleep: work around cygwin bug
23648         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
23649         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
23650         bug.
23651         (getnow): Delete, not needed.
23652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
23653         LIB_CLOCK_GETTIME.
23654         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
23655         clock-time, gettime.
23656         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
23657         bug.
23658         * modules/nanosleep-tests: New test.
23659         * tests/test-nanosleep.c: New file.
23660
23661         sleep: work around cygwin bug
23662         * lib/sleep.c (rpl_sleep): Work around the bug.
23663         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
23664         (gl_PREREQ_SLEEP): Delete unused macro.
23665         * modules/sleep (Depends-on): Add verify.
23666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23667         * modules/unistd (Makefile.am): Substitute witness.
23668         * lib/unistd.in.h (sleep): Update prototype.
23669         * doc/posix-functions/sleep.texi (sleep): Document the bug.
23670         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
23671         * modules/sleep-tests (Depends-on): Check for alarm.
23672
23673 2009-11-20  Jim Meyering  <meyering@redhat.com>
23674
23675         maint.mk: improve sc_prohibit_magic_number_exit
23676         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
23677         so it does not match uses like System.exit(1).
23678         Add comments showing how to correct all offenders.
23679
23680 2009-11-19  Eric Blake  <ebb9@byu.net>
23681
23682         xalloc-die-tests: add missing library
23683         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
23684
23685         test-xvasprintf: silence compiler warnings
23686         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
23687         empty string from gcc.
23688
23689 2009-11-19  Jim Meyering  <meyering@redhat.com>
23690
23691         xfreopen: new module, from coreutils
23692         * modules/xfreopen: New module.
23693         * lib/xfreopen.c: New file.
23694         * lib/xfreopen.h: New file.
23695         * MODULES.html.sh (File stream based Input/Output"): Add it.
23696
23697 2009-11-19  Eric Blake  <ebb9@byu.net>
23698
23699         manywarnings: depend on warnings
23700         * modules/manywarnings (Depends-on): Add warnings.
23701
23702         build: avoid compiler warnings
23703         * lib/select.c (rpl_select): Delete unused variable.
23704         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
23705
23706 2009-11-18  Eric Blake  <ebb9@byu.net>
23707
23708         tests: avoid false negative with --with-packager
23709         * tests/test-version-etc.sh: Discard packager information.
23710         * tests/test-argp-version-etc-1.sh: Likewise.
23711         Reported by Mike Frysinger.
23712
23713         utimens: fix regression on Solaris
23714         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
23715         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
23716         can only change fd timestamps via futimesat.  Instead, use an
23717         additional witness macro to avoid BSD bug.
23718         Reported by Jim Meyering.
23719
23720 2009-11-17  Eric Blake  <ebb9@byu.net>
23721
23722         usleep: use it to simplify tests
23723         * modules/stat-time-tests (Depends-on): Add usleep.
23724         (configure.ac): Drop usleep check.
23725         * modules/chown-tests (Depends-on, configure.ac): Likewise.
23726         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
23727         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
23728         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
23729         * modules/openat-tests (Depends-on, configure.ac): Likewise.
23730         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
23731         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
23732         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
23733         Likewise.
23734         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
23735         * tests/test-lchown.h (nap): Likewise.
23736         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
23737         * tests/test-stat-time.c (nap): Likewise.
23738         * tests/test-utimens-common.h (nap): Update comments.
23739
23740         usleep: new module
23741         * modules/usleep: New file.
23742         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23743         * lib/usleep.c (usleep): Likewise.
23744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23745         * modules/unistd (Makefile.am): Substitute witnesses.
23746         * lib/unistd.in.h (usleep): Add declaration.
23747         * doc/pastposix-functions/usleep.texi (usleep): Document this.
23748         * MODULES.html.sh (Date and time): Likewise.
23749         * modules/usleep-tests (Depends-on): New test.
23750         * tests/test-usleep.c: New file.
23751
23752         chown: work around OpenBSD bug
23753         * lib/chown.c (rpl_chown): Work around the bug.
23754         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
23755         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
23756         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
23757         * modules/chown (Depends-on): Add stdbool.
23758         * modules/lchown (Depends-on): Likewise.
23759         * doc/posix-functions/chown.texi (chown): Document the bug.
23760         * doc/posix-functions/lchown.texi (lchown): Likewise.
23761         * tests/test-lchown.h (test_chown): Relax test.
23762
23763         mkstemp: avoid conflict with C++ keyword template
23764         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
23765         * lib/mkostemp.c (mkostemp): Likewise.
23766         * lib/mkostemps.c (mkostemps): Likewise.
23767         * lib/mkstemp.c (mkstemp): Likewise.
23768         * lib/mkstemps.c (mkstemps): Likewise.
23769
23770         xalloc-die-tests: optimize
23771         * tests/test-xalloc-die.sh: Reduce number of processes.
23772
23773 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23774
23775         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
23776         patch from ludo@gnu.org (Ludovic Courtès).
23777
23778 2009-11-17  Jim Meyering  <meyering@redhat.com>
23779
23780         version-etc: use proper license string
23781         * modules/version-etc (License): Use LGPL, not LGPLv3+.
23782         * modules/version-etc-fsf: Likewise.
23783
23784 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23785
23786         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
23787         printed to stdout.  Deal with EOL differences.
23788
23789 2009-11-17  Eric Blake  <ebb9@byu.net>
23790
23791         unsetenv: work around Solaris bug
23792         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
23793         * lib/unsetenv.c (rpl_unsetenv): Work around it.
23794         Reported by Jim Meyering.
23795
23796         vasnprintf: avoid compiler warnings
23797         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
23798         variables.
23799         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
23800
23801 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23802
23803         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
23804         settings since xalloc-die is no longer the self test,
23805         xalloc-die.sh is.
23806
23807 2009-11-17  Jim Meyering  <meyering@redhat.com>
23808
23809         test-xalloc-die.sh: make the code agree with the commit log
23810         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
23811         at the end, just in case you happen to have a test-xalloc-die
23812         program in some other PATH directory.
23813
23814         test-xalloc-die.sh: fix a portability bug
23815         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
23816         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
23817         Otherwise, argv[0] (as often seen in diagnostics) would be too
23818         system-dependent, sometimes with, and sometimes without the leading "./".
23819
23820         version-etc-fsf: relax license to LGPLv3+
23821         * modules/version-etc-fsf (License): Relax license.
23822
23823 2009-11-16  Eric Blake  <ebb9@byu.net>
23824
23825         xalloc-die-tests: avoid printing null pointer
23826         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
23827         shell script.
23828         * tests/test-xalloc-die.c (program_name): Declare.
23829         * tests/test-xalloc-die.sh (tmpfiles): New file.
23830
23831         setenv, unsetenv: work around various bugs
23832         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
23833         (setenv) [HAVE_SETENV]: Work around bugs.
23834         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
23835         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
23836         for bugs.
23837         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
23838         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
23839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
23840         * modules/stdlib (Makefile.am): Update substitutions.
23841         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
23842         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
23843         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23844         * modules/setenv-tests: New test.
23845         * modules/unsetenv-tests: Likewise.
23846         * tests/test-setenv.c: New file.
23847         * tests/test-unsetenv.c: Likewise.
23848
23849 2009-11-16  Jim Meyering  <meyering@redhat.com>
23850
23851         version-etc: relax license to LGPLv3+
23852         * modules/version-etc (License): Relax license.
23853
23854         better AC_REQUIRE expanded-before-required-warning avoidance
23855         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
23856         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
23857         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
23858         which is no longer needed.
23859
23860 2009-11-16  Eric Blake  <ebb9@byu.net>
23861
23862         test-freading: clean up temporary file
23863         * tests/test-freading.c (main): Remove file on success, and use
23864         ASSERT more liberally.
23865         Reported by Jim Meyering.
23866
23867 2009-11-16  Jim Meyering  <meyering@redhat.com>
23868
23869         avoid new AC_REQUIRE expanded-before-required warnings
23870         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
23871         merely using it.
23872         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
23873         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
23874
23875 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23876
23877         * tests/test-xalloc-die.c: New file.
23878         * modules/xalloc-die-tests: New file.
23879         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
23880         XFAIL_TESTS so it can be appended by modules.
23881
23882 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23883
23884         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
23885         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
23886
23887 2009-11-14  Eric Blake  <ebb9@byu.net>
23888
23889         fnmatch: avoid compiler warning
23890         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
23891         to silence compiler warning about mismatch signedness in ?:.
23892         Reported by Robert Millan.
23893
23894         intprops: add double-inclusion guard
23895         * lib/intprops.h: Allow idempotent includes.
23896         Suggested by Bruce Korb.
23897
23898         openat: detect Solaris fchownat bug
23899         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
23900         penalizing glibc chownat when only lchownat is broken.
23901         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
23902         trailing slash bugs.
23903         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
23904         * modules/openat-tests (Files): Include more files.
23905         (Depends-on): Add mgetgroups, sleep, stat-time.
23906         (configure.ac): Add additional checks.
23907         (Makefile.am): Build new test.
23908         * tests/test-fchownat.c: New file.
23909
23910         lchown: detect Solaris and FreeBSD bug
23911         * lib/lchown.c (rpl_lchown): Work around bug.
23912         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
23913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23914         * modules/unistd (Makefile.am): Populate it.
23915         * lib/unistd.in.h (lchown): Update declaration.
23916         * doc/posix-functions/lchown.texi (lchown): Document the bug.
23917         * modules/lchown-tests: New file.
23918         * tests/test-lchown.h (test_lchown): Likewise.
23919         * tests/test-lchown.c (main): Likewise.
23920
23921         chown: detect Solaris and FreeBSD bug
23922         * lib/chown.c (rpl_chown): Work around bug.
23923         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
23924         (gl_PREREQ_CHOWN): Delete.
23925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23926         * modules/unistd (Makefile.am): Populate it.
23927         * lib/unistd.in.h (chown): Update declaration.
23928         * lib/lchown.c (chown): Update client.
23929         * modules/lchown (Depends-on): Add lstat.
23930         * doc/posix-functions/chown.texi (chown): Document the bug.
23931         * doc/posix-functions/getgroups.texi (getgroups): Document
23932         getgroups pitfall.
23933         * modules/chown-tests: New file.
23934         * tests/test-chown.h (test_chown): Likewise.
23935         * tests/test-chown.c (main): Likewise.
23936
23937 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
23938
23939         gnulib-tool: correctly detect absence of m4 directories
23940         * gnulib-tool: Avoid extra newline on data passed to wc -l.
23941
23942 2009-11-14  Jim Meyering  <meyering@redhat.com>
23943
23944         maint.mk: Prohibit inclusion of "xalloc.h" without use.
23945         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23946
23947 2009-11-14  John W. Eaton  <jwe@gnu.org>
23948
23949         strftime.h: wrap funtion declaration in extern "C" block
23950         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
23951
23952 2009-11-13  Eric Blake  <ebb9@byu.net>
23953
23954         getgroups: avoid compiler warning
23955         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
23956
23957         getgroups: work around FreeBSD bug
23958         * lib/getgroups.c (rpl_getgroups): Work around the bug.
23959         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
23960         * doc/posix-functions/getgroups.texi (getgroups): Document it.
23961         * tests/test-getgroups.c (main): Fix buffer overrun.
23962
23963         getgroups: avoid compilation failure
23964         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
23965         * modules/getgroups (Depends-on): Add stdint.
23966
23967 2009-11-13  Jim Meyering  <meyering@redhat.com>
23968
23969         test-getgroups: avoid compilation failure
23970         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
23971
23972 2009-11-13  Eric Blake  <ebb9@byu.net>
23973
23974         mgetgroups: new module, taken from coreutils
23975         * modules/mgetgroups: New file.
23976         * lib/mgetgroups.h: Likewise.
23977         * lib/mgetgroups.c (mgetgroups): Likewise.
23978         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
23979         * MODULES.html.sh (Users and groups): Mention it.
23980
23981         getgroups: don't expose GETGROUPS_T to user
23982         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
23983         an element at a time if GETGROUPS_T is wrong size.
23984         * lib/getugroups.h (getugroups): Change signature.
23985         * lib/unistd.in.h (getgroups): Likewise.
23986         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
23987         signature needs fixing.
23988         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
23989         AC_TYPE_GETGROUPS.
23990         * modules/group-member (Depends-on): Add getgroups.
23991         * lib/group-member.c (group_info, get_group_info): Use gid_t.
23992         (group_member): Rely on getgroups replacement.
23993         * lib/getugroups.c (getugroups): Use gid_t.
23994         * tests/test-getgroups.c (main): Likewise.
23995         * NEWS: Mention the signature change.
23996         * doc/posix-functions/getgroups.texi (getgroups): Mention the
23997         problem with signature.
23998         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
23999         GETGROUPS_T is still useful for setgroups.
24000
24001         getgroups, getugroups: provide stubs for mingw
24002         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
24003         * lib/getugroups.c (getugroups): Likewise.
24004         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
24005         function.  Modernize replacement scheme.
24006         (gl_PREREQ_GETGROUPS): Delete.
24007         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
24008         * modules/getgroups (configure.ac): Declare witness.
24009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24010         * modules/unistd (Depends-on): Substitute witness.
24011         * lib/unistd.in.h (getgroups): Declare replacement.
24012
24013         getgroups: avoid calling exit
24014         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
24015         drop xalloc.
24016         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
24017         dependencies.
24018         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
24019         exiting, in the rare case of malloc failure.
24020
24021         getgroups: fix logic error
24022         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
24023         has more than 20 groups.
24024         * modules/getgroups-tests: New test.
24025         * tests/test-getgroups.c: New file.
24026
24027 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24028
24029         * tests/test-base64.c: Improve.
24030
24031 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24032
24033         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
24034         Blake <ebb9@byu.net>.
24035
24036 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24037
24038         * tests/test-xvasprintf.c: Add %s%s related checks.
24039
24040 2009-11-12  Eric Blake  <ebb9@byu.net>
24041
24042         version-etc: match standards.texi style
24043         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
24044         and use <> only for URLs.
24045
24046 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
24047
24048         fts: do not fail on a submount during traversal
24049         * lib/fts.c (fts_build): Read the stat info again after opening
24050         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
24051         Original report at http://bugzilla.redhat.com/501848.
24052
24053 2009-11-12  Jim Meyering  <meyering@redhat.com>
24054
24055         bootstrap: sync from coreutils
24056         * build-aux/bootstrap (bootstrap_epilogue): New function.
24057         Use git_modules_config in one more place.  This make bootstrap's
24058         --gnulib-srcdir option more useful for testing.
24059
24060         bootstrap: generalize autoheader check
24061         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
24062         AC_CONFIG_HEADERS.
24063
24064 2009-11-11  Eric Blake  <ebb9@byu.net>
24065
24066         mkfifoat: use new modules for Solaris and BSD bugs
24067         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
24068         * lib/mkfifoat.c (mknodat): Split...
24069         * lib/mknodat.c (mknodat): ...into new file.
24070         * modules/mkfifoat (Files): Ship new file.
24071         (Depends-on): Add mkfifo, mknod.
24072         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
24073         (Depends-on): Add symlink.
24074         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
24075         redundant with test_mkfifo.h.
24076         (do_mkfifoat, do_mknodat): New helpers.
24077
24078         mknod: new module
24079         * modules/mknod: New file.
24080         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
24081         * lib/mknod.c (mknod): Likewise.
24082         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24083         defaults.
24084         * modules/sys_stat (Makefile.am): Substitute them.
24085         * lib/sys_stat.in.h (mknod): Declare replacement.
24086         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24087         Document it.
24088         * doc/posix-functions/mknod.texi (mknod): Likewise.
24089         * modules/mknod-tests: New test.
24090         * tests/test-mknod.c: Likewise.
24091
24092         mkfifo: new module
24093         * modules/mkfifo: New file.
24094         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24095         * lib/mkfifo.c (mkfifo): Likewise.
24096         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24097         defaults.
24098         * modules/sys_stat (Makefile.am): Substitute them.
24099         * lib/sys_stat.in.h (mkfifo): Declare replacement.
24100         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24101         Document it.
24102         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
24103         * modules/mkfifo-tests: New test.
24104         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
24105         from test-mkfifoat.c.
24106         * tests/test-mkfifo.c: New file.
24107
24108         readlink: detect FreeBSD bug
24109         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
24110         slash on symlink.
24111         * doc/posix-functions/readlink.texi (readlink): Document the bug.
24112         * tests/test-readlink.h (test_readlink): Enhance test.
24113
24114         symlink: detect FreeBSD bug
24115         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
24116         slash on symlink.
24117         * doc/posix-functions/symlink.texi (symlink): Document the bug.
24118         * tests/test-symlink.h (test_symlink): Enhance test.
24119
24120 2009-11-10  Eric Blake  <ebb9@byu.net>
24121
24122         link: detect FreeBSD bug
24123         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
24124         symlink.
24125         * doc/posix-functions/link.texi (link): Document the bug.
24126         * tests/test-link.h (test_link): Enhance test.
24127         * tests/test-linkat.c (main): Update caller.
24128
24129         unlink, remove: detect FreeBSD bug
24130         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
24131         slash on symlink.
24132         * doc/posix-functions/unlink.texi (unlink): Document the bug.
24133         * doc/posix-functions/remove.texi (remove): Likewise.
24134         * tests/test-unlink.h (test_unlink): Enhance test.
24135         * tests/test-remove.c (main): Likewise.
24136
24137 2009-11-09  Eric Blake  <ebb9@byu.net>
24138
24139         rename: detect FreeBSD bug
24140         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
24141         slash on symlink.
24142         * modules/renameat-tests (Depends-on): Add filenamecat.
24143         * tests/test-rename.h (test_rename): Allow one more errno.
24144         * tests/test-renameat.c (main): Likewise.
24145         * doc/posix-functions/rename.texi (rename): Document the bug.
24146
24147         open: detect FreeBSD bug
24148         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
24149         symlink.
24150         * doc/posix-functions/open.texi (open): Document the bug.
24151         * doc/posix-functions/utimes.texi (utimes): Likewise.
24152         * tests/test-open.h (test_open): Add parameters, and test symlink
24153         handling.
24154         * tests/test-open.c (main): Adjust caller.
24155         * tests/test-fcntl-safer.c (main): Likewise.
24156         * modules/open-tests (Depends-on): Add stdbool, symlink.
24157         * modules/fcntl-safer-tests (Depends-on): Likewise.
24158         * tests/test-openat.c (main): Add test-open tests.
24159
24160         stat: detect FreeBSD bug
24161         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
24162         symlink.
24163         * doc/posix-functions/stat.texi (stat): Document the bug.
24164         * tests/test-stat.h (test_stat_func): Add argument.
24165         * tests/test-stat.c (main): Adjust caller.
24166         * tests/test-fstatat.c (main): Likewise.
24167         * modules/stat-tests (Depends-on): Add stdbool, symlink.
24168         Reported by Jim Meyering.
24169
24170 2009-11-09  James Youngman  <jay@gnu.org>
24171
24172         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
24173         * lib/strftime.c: Correct placement of #include "ignore-value.h".
24174
24175 2009-11-08  Jim Meyering  <meyering@redhat.com>
24176
24177         utimens: remove invalid futimesat call
24178         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
24179         It used the file descriptor of the target file as the DIR_FD
24180         parameter and NULL as the file name.  That caused failure with
24181         errno == EFAULT on FreeBSD-8.0-rc2
24182
24183 2009-11-07  Eric Blake  <ebb9@byu.net>
24184
24185         fflush, freadseek: use fseeko, not fseek
24186         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
24187         (clear_ungetc_buffer): Avoid potential problems on large files.
24188         * lib/freadseek.c (freadseek): Likewise.
24189         * modules/freadseek (Depends-on): Add fseeko.
24190         * modules/fseek (configure.ac): Set a witness.
24191         * tests/test-fflush.c (main): Use fseeko.
24192         * tests/test-fpurge.c (fseek): Disable link warning.
24193         * tests/test-freadable.c (fseek): Likewise.
24194         * tests/test-freading.c (fseek): Likewise.
24195         * tests/test-fseeko.c (fseek): Likewise.
24196         * tests/test-ftell.c (fseek): Likewise.
24197         * tests/test-ftello.c (fseek): Likewise.
24198         * tests/test-fwritable.c (fseek): Likewise.
24199         * tests/test-fwriting.c (fseek): Likewise.
24200
24201 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24202
24203         * modules/memchr (Depends-on): Drop getpagesize dependency.
24204
24205 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24206
24207         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24208         Reported by Ludovic Courtès.
24209         * build-aux/pmccabe2html: Improve example usage.
24210         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24211
24212 2009-11-06  Jim Meyering  <meyering@redhat.com>
24213
24214         do-release-commit-and-tag: New module.
24215         Automate the release-commit and tag process.
24216         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24217         * modules/do-release-commit-and-tag: New file.
24218         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24219
24220 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24221
24222         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24223         because test-select.c uses inet_pton.
24224
24225 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24226
24227         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24228         GETADDRINFO_LIB.  Bump serial number.
24229         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24230         Suggested by Eric Blake <ebb9@byu.net>.
24231
24232 2009-11-05  Eric Blake  <ebb9@byu.net>
24233
24234         strtod: detect darwin bug
24235         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24236         Reported by Leo Davis.
24237
24238         freopen-safer: new module
24239         * modules/freopen-safer: New module.
24240         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24241         * lib/freopen-safer.c (freopen_safer): New file.
24242         * lib/stdio-safer.h (freopen_safer): New declaration.
24243         * lib/stdio--.h (freopen): New override.
24244         * MODULES.html.sh (File stream based Input/Output): Mention it.
24245         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24246         freopen-safer module.
24247         * doc/posix-functions/stderr.texi (stderr): Likewise.
24248         * doc/posix-functions/stdin.texi (stdin): Likewise.
24249         * doc/posix-functions/stdout.texi (stdout): Likewise.
24250         * modules/freopen-safer-tests: New test.
24251         * tests/test-reopen-safer.c: New file.
24252
24253 2009-11-05  Jim Meyering  <meyering@redhat.com>
24254
24255         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24256         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24257
24258 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24259
24260         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24261
24262 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24263
24264         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
24265
24266 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24267
24268         Fix link error.
24269         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24270         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24271
24272 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24273
24274         * tests/test-func.c: Also test value of __func__.
24275
24276 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24277
24278         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
24279         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
24280
24281 2009-11-05  Bruno Haible  <bruno@clisp.org>
24282
24283         Fix link error.
24284         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24285         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24286         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
24287
24288 2009-11-05  Bruno Haible  <bruno@clisp.org>
24289
24290         Tests for module 'inet_pton'.
24291         * modules/inet_pton-tests: New file.
24292         * tests/test-inet_pton.c: New file.
24293
24294 2009-11-05  Bruno Haible  <bruno@clisp.org>
24295
24296         Tests for module 'inet_ntop'.
24297         * modules/inet_ntop-tests: New file.
24298         * tests/test-inet_ntop.c: New file.
24299
24300 2009-11-04  Eric Blake  <ebb9@byu.net>
24301
24302         stdlib-safer: wrap all mkstemp variants
24303         * modules/mkostemp (configure.ac): Set witness.
24304         * modules/mkostemps (configure.ac): Likewise.
24305         * modules/mkstemps (configure.ac): Likewise.
24306         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
24307         (mkstemps_safer): Wrap more functions.
24308         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
24309         wrapping.
24310         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
24311         (mkstemps_safer): Implement the wrappers.
24312
24313         mkstemps, mkostemps: new modules
24314         * modules/mkostemps: New module.
24315         * modules/mkstemps: Likewise.
24316         * lib/mkostemps.c (mkostemps): New file.
24317         * lib/mkstemps.c (mkstemps): Likewise.
24318         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
24319         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
24320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24321         * modules/stdlib (Makefile.am): Substitute them.
24322         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24323         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24324         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24325         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24326         * MODULES.html.sh (File system functions): Mention them.
24327
24328         tempname: resync from glibc
24329         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24330         same values for __GT_FILE as glibc.  Abort even when assertions
24331         are disabled.
24332         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24333         match its value otherwise.  Allow idempotent inclusion.
24334         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24335         * lib/mkostemp.c (mkostemp): Likewise.
24336         * lib/mkstemp.c (mkstemp): Likewise.
24337         * lib/tmpfile.c (tmpfile): Likewise.
24338         * NEWS: Document this.
24339
24340         utimens: fix use of futimens on older Linux
24341         * lib/utimens.c (fdutimens): Use updated, rather than original,
24342         timespec to avoid bug in older Linux kernel.
24343         Reported by Simon Josefsson.
24344
24345 2009-11-04  Bruno Haible  <bruno@clisp.org>
24346
24347         Make num_processors more flexible and consistent.
24348         * lib/nproc.h (enum nproc_query): New type.
24349         (num_processors): Add a 'query' argument.
24350         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24351         (num_processors): Add a 'query' argument. Test the value of the
24352         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24353         mingw, count the number of CPUs available for the current process.
24354         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24355         Check for sched_getaffinity and sched_getaffinity_np.
24356         * modules/nproc (Depends-on): Add c-ctype, extensions.
24357         * NEWS: Mention the change.
24358
24359 2009-11-03  Bruno Haible  <bruno@clisp.org>
24360
24361         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24362
24363 2009-11-03  Jim Meyering  <meyering@redhat.com>
24364
24365         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24366         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24367         if it is defined.
24368
24369 2009-11-02  Eric Blake  <ebb9@byu.net>
24370
24371         mktime, timegm: share common declaration
24372         * lib/mktime-internal.h: New file.
24373         * lib/mktime.c: Use it rather than open-coding a declaration.
24374         * lib/timegm.c: Likewise.
24375         * modules/mktime (Files): Ship it.
24376         * modules/timegm (Files): Likewise.
24377         Suggested by Bruno Haible.
24378
24379         test-update-copyright: update test to match script changes
24380         * tests/test-update-copyright.sh: Avoid hard-coding perl
24381         location.  Don't update *.bak created by earlier runs.
24382
24383 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24384             Simon Josefsson  <simon@josefsson.org>
24385             Bruno Haible  <bruno@clisp.org>
24386
24387         Fix link error on Solaris 8.
24388         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24389         also in libnsl. Define also INET_PTON_LIB.
24390         * modules/inet_pton (Link): New section.
24391
24392 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24393             Bruno Haible  <bruno@clisp.org>
24394
24395         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24396         * modules/inet_ntop (Link): New section.
24397         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24398
24399 2009-11-02  Eric Blake  <ebb9@byu.net>
24400
24401         maint: avoid compiler warnings in m4 macros
24402         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24403         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24404
24405 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24406
24407         * m4/pmccabe2html.m4: Remove file.
24408         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24409         function.  Change maintainer.
24410         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24411         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24412         Courtès).
24413
24414 2009-10-31  Eric Blake  <ebb9@byu.net>
24415
24416         fseeko: fix m4 regression
24417         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24418         regression from 2009-10-27.
24419         Reported by Ralf Wildenhues.
24420
24421 2009-10-31  Jim Meyering  <meyering@redhat.com>
24422
24423         inttostr: aesthetics and improved (compile-time) safety
24424         Define inttype_is_signed rather than inttype_is_unsigned,
24425         since the sole use is via "#if inttype_is_signed".
24426         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24427         inttype_is_unsigned.
24428         * lib/offtostr.c (inttype_is_signed): Likewise.
24429         * lib/uinttostr.c (inttype_is_signed): Likewise.
24430         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24431         * lib/inttostr.c (inttostr): Use verify to cross-check the
24432         inttype_is_signed value and the signedness of the actual type.
24433         * modules/inttostr (Depends-on): Add verify.
24434
24435 2009-10-30  Eric Blake  <ebb9@byu.net>
24436
24437         build: avoid compiler warnings
24438         * lib/fchmodat.c (lchmod): Mark unused variables.
24439         * lib/getopt.c (_getopt_initialize): Likewise.
24440         * lib/mktime.c (__mktime_internal): Provide prototype.
24441         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24442         older gcc that do not understand #pragma GCC diagnostic.
24443         * lib/uinttostr.c (inttype_is_unsigned): Define.
24444         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24445
24446 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24447
24448         stat: fix compilation on AIX
24449         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24450         only see struct stat64.
24451
24452 2009-10-30  Eric Blake  <ebb9@byu.net>
24453
24454         exclude: make more robust
24455         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24456         rather than masking a coding bug.
24457         Suggested by Bruno Haible.
24458
24459 2009-10-30  Jim Meyering  <meyering@redhat.com>
24460
24461         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24462         Rather than putting #!/usr/bin/perl on the first line,
24463         start with a variant of what's recommended by "man perlrun" that
24464         invokes the first "perl" program from your shell's search path.
24465         * build-aux/gitlog-to-changelog: Replace #!... as above.
24466         Add a "Local Variables" perl mode setting.
24467         Prompted by a patch from Ludovic Courtès.
24468         Improved by Eric Blake.
24469         * build-aux/useless-if-before-free: Likewise.
24470         * build-aux/announce-gen: Likewise.
24471         * build-aux/update-copyright: Likewise.
24472
24473 2009-10-29  Eric Blake  <ebb9@byu.net>
24474
24475         filenamecat-lgpl: adjust clients
24476         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
24477         filenamecat.
24478         * modules/renameat (Depends-on): Likewise.
24479
24480         filenamecat: split into filenamecat-lgpl
24481         * modules/filenamecat-lgpl: New module.
24482         * modules/filenamecat (Files): Move library-safe files into
24483         filenamecat-lgpl.
24484         (Depends-on): Add filenamecat-lgpl.
24485         (configure.ac): Declare witness.
24486         * lib/filenamecat.h (file_name_concat): Only declare when using
24487         GPL module.
24488         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
24489         Move...
24490         * lib/filenamecat-lgpl.c: ...into new file.
24491         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
24492         (gl_FILE_NAME_CONCAT): Use it.
24493         * MODULES.html.sh (File system functions): Mention new module.
24494
24495         argp: avoid memory leak
24496         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
24497         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
24498         base_name, since the latter malloc()s and can call exit().
24499         Leak introduced 2006-07-03.
24500
24501         dirname-lgpl: adjust clients that don't need full dirname
24502         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
24503         * modules/filenamecat (Depends-on): Likewise.
24504         * modules/linkat (Depends-on): Likewise.
24505         * modules/mkancesdirs (Depends-on): Likewise.
24506         * modules/mkdir (Depends-on): Likewise.
24507         * modules/openat (Depends-on): Likewise.
24508         * modules/savewd (Depends-on): Likewise.
24509         * modules/rename (Depends-on): Likewise.
24510         (License): Relax license.
24511         * modules/mkdir-tests (Depends-on): Drop progname.
24512         (Makefile.am): Delete unneeded LDADD.
24513         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
24514
24515         dirname: split into dirname-lgpl
24516         * modules/dirname-lgpl: New module.
24517         * modules/dirname (Files): Move library-safe files into
24518         dirname-lgpl.
24519         (Depends-on): Add dirname-lgpl.
24520         (configure.ac): Declare witness.
24521         * modules/double-slash-root (License): Relax license.
24522         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
24523         module.
24524         * lib/dirname.c (dir_len, mdir_name): Move...
24525         * lib/dirname-lgpl.c: ...into new file.
24526         * lib/basename.c (last_component, base_len): Move...
24527         * lib/basename-lgpl.c: ...into new file.
24528         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
24529         (gl_DIRNAME): Use it.
24530         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
24531         Mention new module.
24532         * modules/dirname-tests (Depends-on): Add progname.
24533         * tests/test-dirname.c (program_name): Delete.
24534
24535         mkdir: make safe for libraries
24536         * modules/mkdir (Depends-on): Drop xalloc.
24537         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
24538         exit.
24539
24540         tests: avoid some compiler warnings
24541         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
24542         literals.
24543         * tests/test-memchr.c (main): Avoid type mismatch.
24544         * tests/test-arpa_inet.c (main): Avoid unused parameters.
24545         * tests/test-base64.c (main): Likewise.
24546         * tests/test-getdelim.c (main): Likewise.
24547         * tests/test-gethostname.c (main): Likewise.
24548         * tests/test-getline.c (main): Likewise.
24549         * tests/test-netinet_in.c (main): Likewise.
24550         * tests/test-select.c (open_server_socket, main): Likewise.
24551         * tests/test-select-stdin.c (main): Likewise.
24552         * tests/test-sockets.c (main): Likewise.
24553         * tests/test-strsignal.c (main): Likewise.
24554         * tests/test-sys_select.c (main): Likewise.
24555         * tests/test-sys_socket.c (main): Likewise.
24556         * tests/test-u64.c (main): Likewise.
24557         * tests/test-xfprintf-posix.c (main): Likewise.
24558         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
24559
24560         sockets: avoid compiler warning
24561         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
24562
24563         maint: detect usage(1) and other suspicious exits
24564         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
24565
24566 2009-10-29  Jim Meyering  <meyering@redhat.com>
24567
24568         timespec: long-to-int truncation could make timespec_cmp malfunction
24569         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
24570         a multiple of 2^32 nanoseconds as no difference.
24571
24572 2009-10-28  Jim Meyering  <meyering@redhat.com>
24573
24574         fprintftime: wrap macro code argument in "do {...} while(0)"
24575         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
24576         cpy macro must be a statement that can be followed by a semicolon.
24577         Now that the else clause contains a comment and is hence longer
24578         than one line, I require curly braces.  That in turn requires
24579         that we wrap this code block in the standard do...while(0).
24580
24581         fprintftime: remove stray semicolon from previous change
24582         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
24583
24584         fprintftime: avoid a warning about ignored fwrite return value
24585         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
24586         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
24587         that is unsafe.
24588         * modules/fprintftime (Depends-on): Add ignore-value.
24589
24590         exclude: avoid an unwarranted warning
24591         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
24592
24593 2009-10-27  Eric Blake  <ebb9@byu.net>
24594
24595         fseek: avoid compilation failure when fflush is replaced
24596         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
24597         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
24598         module is in use.
24599         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
24600         module is not in use; since REPLACE_FSEEK worked otherwise.
24601         (GNULIB_FTELLO): Likewise for ftell.
24602         Reported by Ian Beckwith and others.
24603
24604 2009-10-27  Bruno Haible  <bruno@clisp.org>
24605
24606         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
24607         Reported by Jim Meyering.
24608
24609 2009-10-27  Jim Meyering  <jim@meyering.net>
24610             Bruno Haible  <bruno@clisp.org>
24611
24612         Avoid warning despite dropping the return value of fwrite.
24613         * lib/unicodeio.c: Include ignore-value.h.
24614         (fwrite_success_callback): Explicitly ignore fwrite's return value.
24615         * modules/unicodeio (Depends-on): Add ignore-value.
24616
24617 2009-10-26  Eric Blake  <ebb9@byu.net>
24618
24619         areadlinkat: fix fallback path
24620         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
24621         pointer and zero.
24622
24623 2009-10-22  Pádraig Brady  <P@draigBrady.com>
24624
24625         Use a better IO block size for modern systems
24626         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
24627         * lib/md2.c: Likewise.
24628         * lib/md4.c: Likewise.
24629         * lib/md5.c: Likewise.
24630         * lib/sha1.c: Likewise.
24631         * lib/sha256.c: Likewise.
24632         * lib/sha512.c: Likewise.
24633
24634 2009-10-22  Eric Blake  <ebb9@byu.net>
24635
24636         tests: avoid several compiler warnings
24637         * tests/test-getcwd.c (main): Avoid buffer underflow.
24638         * tests/test-getdate.c (main): String literals are not safe with
24639         putenv, so use setenv.  Declare unused argument.
24640         * modules/getdate-tests (Depends-on): Add setenv.
24641         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
24642         problems with string literals in char *.
24643         * tests/test-hash.c (main): Avoid shadowing declaration.
24644         (insert_new): Treat string literals as char const *.
24645         * tests/test-getopt.h (test_getopt): Likewise.
24646         (getopt_loop): Alter types to minimize casting elsewhere.
24647         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
24648         (test_getopt_long_posix): Likewise.
24649         (do_getopt_long): Add wrapper to minimize casting.
24650         * tests/test-atexit.c (clear_temp_file): Use void.
24651         * tests/test-areadlink-with-size.c (main): Declare unused
24652         arguments.
24653         * tests/test-areadlink.c (main): Likewise.
24654         * tests/test-areadlinkat-with-size.c (main): Likewise.
24655         * tests/test-areadlinkat.c (main): Likewise.
24656         * tests/test-canonicalize-lgpl.c (main): Likewise.
24657         * tests/test-canonicalize.c (main): Likewise.
24658         * tests/test-dirent-safer.c (main): Likewise.
24659         * tests/test-dirname.c (main): Likewise.
24660         * tests/test-dup2.c (main): Likewise.
24661         * tests/test-fchdir.c (main): Likewise.
24662         * tests/test-fcntl-h.c (main): Likewise.
24663         * tests/test-fcntl-safer.c (main): Likewise.
24664         * tests/test-fdopendir.c (main): Likewise.
24665         * tests/test-fdutimensat.c (main): Likewise.
24666         * tests/test-fflush.c (main): Likewise.
24667         * tests/test-filenamecat.c (main): Likewise.
24668         * tests/test-filevercmp.c (main): Likewise.
24669         * tests/test-fopen-safer.c (main): Likewise.
24670         * tests/test-fopen.c (main): Likewise.
24671         * tests/test-fpending.c (main): Likewise.
24672         * tests/test-fpurge.c (main): Likewise.
24673         * tests/test-freading.c (main): Likewise.
24674         * tests/test-fstatat.c (main): Likewise.
24675         * tests/test-fsync.c (main): Likewise.
24676         * tests/test-futimens.c (main): Likewise.
24677         * tests/test-getndelim2.c (main): Likewise.
24678         * tests/test-gettimeofday.c (main): Likewise.
24679         * tests/test-getopt.c (main): Likewise.
24680         * tests/test-i-ring.c (main): Likewise.
24681         * tests/test-inttypes.c (main): Likewise.
24682         * tests/test-link.c (main): Likewise.
24683         * tests/test-lstat.c (main): Likewise.
24684         * tests/test-math.c (main): Likewise.
24685         * tests/test-md5.c (main): Likewise.
24686         * tests/test-memchr2.c (main): Likewise.
24687         * tests/test-memrchr.c (main): Likewise.
24688         * tests/test-mkdir.c (main): Likewise.
24689         * tests/test-mkdirat.c (main): Likewise.
24690         * tests/test-mkfifoat.c (main): Likewise.
24691         * tests/test-open.c (main): Likewise.
24692         * tests/test-openat-safer.c (main): Likewise.
24693         * tests/test-openat.c (main): Likewise.
24694         * tests/test-quotearg.c (main): Likewise.
24695         * tests/test-rawmemchr.c (main): Likewise.
24696         * tests/test-readlink.c (main): Likewise.
24697         * tests/test-remove.c (main): Likewise.
24698         * tests/test-rename.c (main): Likewise.
24699         * tests/test-renameat.c (main): Likewise.
24700         * tests/test-rmdir.c (main): Likewise.
24701         * tests/test-sha1.c (main): Likewise.
24702         * tests/test-signal.c (main): Likewise.
24703         * tests/test-sigaction.c (main): Likewise.
24704         * tests/test-stat.c (main): Likewise.
24705         * tests/test-stat-time.c (main): Likewise.
24706         * tests/test-stddef.c (main): Likewise.
24707         * tests/test-stdint.c (main): Likewise.
24708         * tests/test-stdio.c (main): Likewise.
24709         * tests/test-stdlib.c (main): Likewise.
24710         * tests/test-strchrnul.c (main): Likewise.
24711         * tests/test-strerror.c (main): Likewise.
24712         * tests/test-string.c (main): Likewise.
24713         * tests/test-strtod.c (main): Likewise.
24714         * tests/test-strverscmp.c (main): Likewise.
24715         * tests/test-symlink.c (main): Likewise.
24716         * tests/test-symlinkat.c (main): Likewise.
24717         * tests/test-sys_stat.c (main): Likewise.
24718         * tests/test-sys_time.c (main): Likewise.
24719         * tests/test-time.c (main): Likewise.
24720         * tests/test-unistd.c (main): Likewise.
24721         * tests/test-unlink.c (main): Likewise.
24722         * tests/test-unlinkat.c (main): Likewise.
24723         * tests/test-utimens.c (main): Likewise.
24724         * tests/test-utimensat.c (main): Likewise.
24725         * tests/test-version-etc.c (main): Likewise.
24726         * tests/test-wchar.c (main): Likewise.
24727         * tests/test-wctype.c (main): Likewise.
24728         * tests/test-xprintf-posix.c (main): Likewise.
24729         * tests/test-posixtm.c (main): Likewise.
24730         (STREQ): Delete unused macro.
24731         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
24732         shadowed variables.
24733         * tests/test-memchr.c (main): Likewise.
24734
24735 2009-10-21  Eric Blake  <ebb9@byu.net>
24736
24737         areadlinkat: avoid failure on older glibc
24738         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
24739         rather than mis-comparing 0 against FUNC_RESULT of char*.
24740
24741 2009-10-21  Bruno Haible  <bruno@clisp.org>
24742
24743         * modules/stpncpy (License): Relicense under LGPLv2+.
24744         Reported by David Lutterkort <lutter@redhat.com>.
24745
24746 2009-10-20  Eric Blake  <ebb9@byu.net>
24747
24748         utimensat: work around Solaris 9 bug
24749         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
24750         has trailing slash bugs.
24751         * tests/test-lutimens.h (test_lutimens): Enhance test.
24752         * tests/test-utimens.h (test_utimens): Likewise.
24753         * doc/posix-functions/utime.texi (utime): Enhance documentation.
24754         * doc/posix-functions/utimes.texi (utimes): Likewise.
24755         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24756         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
24757         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
24758         * doc/posix-functions/futimens.texi (futimens): Likewise.
24759
24760         fdutimensat: new module
24761         * modules/fdutimensat: New file.
24762         * lib/fdutimensat.c (fdutimensat): Likewise.
24763         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
24764         * MODULES.html.sh (File system functions): Mention module.
24765         * modules/fdutimensat-tests: New test.
24766         * tests/test-fdutimensat.c: Likewise.
24767
24768         doc: regenerate INSTALL
24769         * doc/INSTALL: Reflect recent autoconf update.
24770         * doc/INSTALL.ISO: Likewise.
24771         * doc/INSTALL.UTF-8: Likewise.
24772
24773 2009-10-20  Pádraig Brady  <P@draigBrady.com>
24774
24775         acl: warn if ACL support is not detected
24776         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
24777
24778 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
24779
24780         * lib/nproc.h: Add extern "C" block for C++.
24781
24782 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
24783             Bruno Haible  <bruno@clisp.org>
24784
24785         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
24786         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
24787         * doc/posix-functions/isalpha.texi: Likewise.
24788         * doc/posix-functions/isblank.texi: Likewise.
24789         * doc/posix-functions/iscntrl.texi: Likewise.
24790         * doc/posix-functions/isdigit.texi: Likewise.
24791         * doc/posix-functions/isgraph.texi: Likewise.
24792         * doc/posix-functions/islower.texi: Likewise.
24793         * doc/posix-functions/isprint.texi: Likewise.
24794         * doc/posix-functions/ispunct.texi: Likewise.
24795         * doc/posix-functions/isspace.texi: Likewise.
24796         * doc/posix-functions/isupper.texi: Likewise.
24797         * doc/posix-functions/isxdigit.texi: Likewise.
24798
24799 2009-10-18  Bruno Haible  <bruno@clisp.org>
24800
24801         Tests for module 'isblank'.
24802         * modules/isblank-tests: New file.
24803         * tests/test-isblank.c: New file.
24804
24805         New module 'isblank'.
24806         * lib/isblank.c: New file.
24807         * m4/isblank.m4: New file.
24808         * modules/isblank: New file.
24809         * doc/posix-functions/isblank.texi: Mention the new module.
24810
24811 2009-10-18  Bruno Haible  <bruno@clisp.org>
24812
24813         New module 'ctype'.
24814         * lib/ctype.in.h: New file.
24815         * m4/ctype.m4: New file.
24816         * modules/ctype: New file.
24817         * doc/posix-headers/ctype.texi: Mention the new module.
24818
24819 2009-10-18  Jim Meyering  <meyering@redhat.com>
24820
24821         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
24822         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
24823         right after its initialization, rather than farther down.
24824         Keeping these in close proximity makes it easier to ensure
24825         that each such variable is initialized.  E.g.,
24826
24827             LIB_CLOCK_GETTIME=
24828             AC_SUBST([LIB_CLOCK_GETTIME])
24829
24830         This change also increments these serial numbers.
24831         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
24832         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24833         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24834
24835 2009-10-18  Bruno Haible  <bruno@clisp.org>
24836
24837         Don't let environment variables perturb build.
24838         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
24839         (gl_PREREQ_GETHRXTIME): ... not here.
24840
24841 2009-10-18  Bruno Haible  <bruno@clisp.org>
24842
24843         Avoid symlink attack in localcharset module.
24844         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
24845         (O_NOFOLLOW): Define fallback.
24846         (get_charset_aliases): Don't open the file if it is a symbolic link.
24847         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
24848         gl_FCNTL_H.
24849         (gl_FCNTL_H): Require it.
24850         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
24851         * modules/localcharset (Files): Add m4/fcntl_h.m4.
24852         Reported by Fergal Glynn <fglynn@veracode.com>.
24853
24854 2009-10-18  Bruno Haible  <bruno@clisp.org>
24855
24856         Implement nproc for mingw.
24857         * lib/nproc.c: Include <windows.h>
24858         (num_processors): On native Windows platforms, try GetSystemInfo.
24859
24860 2009-10-18  Bruno Haible  <bruno@clisp.org>
24861
24862         Implement nproc for IRIX.
24863         * lib/nproc.c: Include <sys/sysmp.h>.
24864         (num_processors): On IRIX systems, try sysmp.
24865         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
24866
24867 2009-10-18  Bruno Haible  <bruno@clisp.org>
24868
24869         Implement nproc for HP-UX.
24870         * lib/nproc.c: Include <sys/pstat.h>
24871         (num_processors): On HP-UX systems, try pstat_getdynamic.
24872         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
24873         pstat_getdynamic.
24874
24875 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
24876             Bruno Haible  <bruno@clisp.org>
24877
24878         Implement nproc for NetBSD, OpenBSD.
24879         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
24880         (ARRAY_SIZE): New macro.
24881         (num_processors): On BSD systems, try sysctl of HW_NCPU.
24882         * m4/nproc.m4: New file.
24883         * modules/nproc (Files): Add m4/nproc.m4.
24884         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
24885         (Makefile.am): Instead, augment lib_SOURCES.
24886
24887 2009-10-18  Bruno Haible  <bruno@clisp.org>
24888
24889         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
24890         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
24891         sys/param.h.
24892
24893 2009-10-16  Eric Blake  <ebb9@byu.net>
24894
24895         utimensat: new module
24896         * modules/utimensat: New file.
24897         * lib/utimensat.c (utimensat): Likewise.
24898         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24899         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
24900         so we can work around Linux bugs.
24901         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24902         * modules/sys_stat (Makefile.am): Substitute them.
24903         * lib/sys_stat.in.h (utimensat): Declare it.
24904         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24905         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24906         * modules/utimensat-tests: New test.
24907         * tests/test-utimensat.c: Likewise.
24908
24909         utimens: let lutimens work on non-symlinks
24910         * lib/utimens.c (lutimens): Fall back to utimens rather than
24911         failing with ENOSYS, when file is not a symlink.
24912         (utimens): Reduce redirection.
24913         * tests/test-lutimens.h (test_lutimens): Update test to cover
24914         non-symlinks.
24915         * tests/test-utimens.h (test_utimens): Update test to cover
24916         symlinks.
24917         * tests/test-utimens.c (main): Update caller.
24918
24919         utimens: cache whether utimensat syscall works
24920         * lib/utimens.c (utimensat_works_really): New cache variable.
24921         (fdutimens, lutimens): Use it to avoid failing syscall.
24922
24923         test-stat-time, test-utimens: improve portability
24924         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
24925         ext4 on alpha, and for cygwin.
24926         * tests/test-utimens-common.h: New file.
24927         (nap): Factor delays into single function.
24928         * tests/test-lutimens.h (test_lutimens): Use new header.
24929         * tests/test-futimens.h (test_futimens): Likewise.
24930         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
24931         timestamps to occur from same machine, as was done previously for
24932         test_utimens.
24933         * modules/utimens-tests (Files): Ship new file.
24934         * modules/futimens-tests (Files): Likewise.
24935         Reported in part by Jim Meyering.
24936
24937         sys_stat: sort replacement declarations
24938         * lib/sys_stat.in.h: Sort declarations.
24939         * lib/futimens.c (futimens): Fix typo.
24940
24941 2009-10-15  Jim Meyering  <meyering@redhat.com>
24942
24943         don't let environment settings perturb build
24944         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
24945         could cause a configure-time and/or build-time malfunction.
24946         Typically, a configure-time function-in-library test is performed
24947         via code like this:
24948
24949           LIB_VAR=
24950           AC_SUBST([LIB_VAR])
24951           prefix_saved_LIBS=$LIBS
24952             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
24953                        [test "$ac_cv_search_FUNC" = "none required" ||
24954                         LIB_VAR=$ac_cv_search_FUNC])
24955           LIBS=$prefix_saved_LIBS
24956
24957         However, in each of the files affected by this change, the LIB_VAR=
24958         initialization was omitted.  Thus, when set in the environment, its
24959         value would propagate into generated Makefiles when FUNC is not found
24960         in LIB_NAME.
24961         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
24962         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24963         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24964
24965 2009-10-14  Eric Blake  <ebb9@byu.net>
24966
24967         fchdir: avoid infinite recursion in mingw
24968         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
24969         recursing.
24970
24971         test-stat-time: port to mingw
24972         * tests/test-stat-time.c (force_unlink): Return a value.
24973         (test_ctime) [W32]: Fix compilation error.
24974         (nap): Don't call usleep with too large an argument.  Use
24975         force_unlink.
24976         * doc/pastposix-functions/usleep.texi (usleep): Document the
24977         portability issue.
24978
24979 2009-10-13  Jim Meyering  <meyering@redhat.com>
24980
24981         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
24982         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
24983         * modules/pipe-filter-ii: Likewise.
24984         * modules/sys_socket-tests: Likewise.
24985         * modules/tsearch-tests: Likewise.
24986         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
24987         (check): Depend on it.
24988
24989 2009-10-12  Eric Blake  <ebb9@byu.net>
24990
24991         utimens-tests: port to NFS file systems
24992         * tests/test-utimens.h (test_utimens): Refactor utimecmp
24993         comparisons to avoid spurious failures from timestamp drift
24994         between NFS machines.
24995
24996 2009-10-12  Eric Blake  <ebb9@byu.net>
24997
24998         stat-time-tests: minor cleanups
24999         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
25000         * tests/test-stat-time.c (nap): Separate assignment from call.
25001         Suggested by Paolo Bonzini and Bruno Haible.
25002
25003         sys_stat: guarantee struct timespec
25004         * lib/sys_stat.in.h (includes): Always include <time.h>
25005         * modules/sys_stat (Depends-on): Add time.
25006         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
25007         mode_t permission values.
25008         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
25009         get at subsecond timestamps.
25010
25011 2009-10-10  Eric Blake  <ebb9@byu.net>
25012
25013         futimens: new module
25014         * modules/futimens: New file.
25015         * lib/futimens.c (futimens): Likewise.
25016         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
25017         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
25018         we can work around Linux bugs.
25019         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25020         * modules/sys_stat (Makefile.am): Substitute them.
25021         * lib/sys_stat.in.h (futimens): Declare it.
25022         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25023         * doc/posix-functions/futimens.texi (futimens): Likewise.
25024         * modules/futimens-tests: New test.
25025         * tests/test-futimens.c: Likewise.
25026
25027         utimens: introduce fdutimens
25028         * lib/utimens.h (fdutimens): New prototype.
25029         * lib/utimens.c (gl_futimens): Move guts...
25030         (fdutimens): ...to new interface.
25031         * tests/test-utimens.c (do_fdutimens): Use it.
25032
25033         utimens: add UTIME_NOW and UTIME_OMIT support
25034         * lib/utimens.c (validate_timespec, update_timespec): New helper
25035         functions.
25036         (gl_futimens, lutimens): Use them.
25037         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
25038         stdbool, sys_stat.
25039         (Link): Mention resulting library dependency.
25040         * modules/utimecmp (Link): Likewise.
25041         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
25042         (Makefile.am): Pick up library dependency.
25043         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
25044         definition.
25045         * tests/test-sys_stat.c: Test the definitions.
25046         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
25047         * NEWS: Document library dependency.
25048
25049         utimecmp: support symlink timestamps
25050         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
25051         hashing when possible.  Use pathconf when available.
25052         (SYSCALL_RESOLUTION): Recognize tighter resolution.
25053         * modules/utimecmp (Depends-on): Add lstat.
25054
25055         utimens: add lutimens interface
25056         * lib/utimens.c (lutimens): New function.
25057         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
25058         * lib/utimens.h (lutimens): Declare new interface.
25059         * tests/test-utimens.c (main): Enhance test.
25060         * tests/test-lutimens.h (test_lutimens): New file.
25061         * modules/utimens-tests (Files): Distribute it.
25062         (Depends-on): Add symlink.
25063         (configure.ac): Check for usleep.
25064
25065         utimens: validate futimens usage
25066         * lib/utimens.c (gl_futimens): Require valid fd up front, using
25067         fewer syscalls on failure later on.  Avoid compiler warning on
25068         mingw.
25069         * modules/utimens (Depends-on): Add dup2.
25070
25071         utimens: add test
25072         * modules/utimens-tests: New test.
25073         * tests/test-utimens.h: New file.
25074         * tests/test-futimens.h: Likewise.
25075         * tests/test-utimens.c: Likewise.
25076
25077         doc: mention timestamp portability issues
25078         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
25079         instead.
25080         * doc/posix-functions/utime.texi (utime): Likewise.
25081         * doc/posix-functions/utimes.texi (utimes): Likewise.
25082         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
25083         instead.
25084         * doc/posix-functions/futimens.texi (futimens): Mention utimens
25085         module.
25086         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25087         Mention weakness with symlink timestamps.
25088         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
25089         to utimensat/futimens instead.
25090         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
25091
25092         test-dup2: enhance test
25093         * tests/test-dup2.c (main): Also check AT_FDCWD.
25094
25095         test-stat-time: avoid more spurious failures
25096         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
25097         xfs; and avoid race if the two timestamps cross quantization edge.
25098
25099         relocatable: prefer 'file system' over 'filesystem'
25100         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
25101         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
25102         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
25103         * doc/relocatable.texi (Enabling Relocatability): Likewise.
25104         * lib/relocatable.c (compute_curr_prefix): Likewise.
25105
25106 2009-10-10  Jim Meyering  <meyering@redhat.com>
25107
25108         stat-time-tests: check for the usleep function
25109         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
25110
25111 2009-10-10  Bruno Haible  <bruno@clisp.org>
25112
25113         * modules/xnanosleep: Put the Link section after the Include section.
25114
25115 2009-10-09  Eric Blake  <ebb9@byu.net>
25116
25117         dup2: work around FreeBSD 6.1 bug
25118         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
25119         * doc/posix-functions/dup2.texi (dup2): Document it.
25120         Reported by Nelson H. F. Beebe and Jim Meyering.
25121
25122         test-stat-time: port to buggy NFS clients
25123         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
25124         (test_ctime): Also skip test if mtime and ctime are skewed.
25125
25126         maint: prefer 'file system' over 'filesystem'
25127         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25128         * doc/posix-functions/lstat.texi (lstat): Likewise.
25129         * lib/file-has-acl.c (file_has_acl): Likewise.
25130         * lib/fwriteerror.c [TEST]: Likewise.
25131         * tests/test-areadlink.h (test_areadlink): Likewise.
25132         * tests/test-areadlinkat-with-size.c (main): Likewise.
25133         * tests/test-areadlinkat.c (main): Likewise.
25134         * tests/test-canonicalize-lgpl.c (main): Likewise.
25135         * tests/test-canonicalize.c (main): Likewise.
25136         * tests/test-fstatat.c (main): Likewise.
25137         * tests/test-linkat.c (main): Likewise.
25138         * tests/test-lstat.h (test_lstat_func): Likewise.
25139         * tests/test-mkdir.h (test_mkdir): Likewise.
25140         * tests/test-readlink.h (test_readlink): Likewise.
25141         * tests/test-remove.c (main): Likewise.
25142         * tests/test-rename.h (test_rename): Likewise.
25143         * tests/test-renameat.c (main): Likewise.
25144         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25145         * tests/test-symlink.h (test_symlink): Likewise.
25146         * tests/test-symlinkat.c (main): Likewise.
25147         * tests/test-unlink.h (test_unlink_func): Likewise.
25148         * tests/test-unlinkat.c (main): Likewise.
25149
25150         maint: make realtime library usage explicit
25151         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
25152         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
25153         * modules/settime (Link): Likewise.
25154         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
25155
25156         test-stat-time: speed up execution
25157         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
25158         warning on mingw.
25159         (nap): New helper function.
25160         (prepare_test): Use it to reduce sleep time.
25161         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
25162         execution.
25163         * modules/stat-time-tests (configure.ac): Check for usleep.
25164
25165 2009-10-09  Jim Meyering  <meyering@redhat.com>
25166
25167         selinux-h: always use getfilecon wrappers
25168         * lib/getfilecon.c: New file.
25169         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
25170         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
25171         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
25172         (fgetfilecon): Provide a stub.
25173         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
25174         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
25175         file unconditionally.
25176         When <selinux/selinux.h> is found, arrange to use wrappers.
25177         * modules/selinux-h (Files): Add getfilecon.c.
25178         (Makefile.am): Substitute include-next-related bits
25179         into the now-always-generated selinux/selinux.h file.
25180         * doc/glibc-functions/lgetfilecon.texi: New file.
25181         * doc/glibc-functions/fgetfilecon.texi: New file.
25182         * doc/glibc-functions/getfilecon.texi: New file.
25183         * doc/glibc-functions/getfilecon-desc.texi: New file.
25184         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
25185         which to pull in the new files.
25186         * MODULES.html.sh (Misc): Add selinux-h.
25187
25188 2009-10-08  Jim Meyering  <meyering@redhat.com>
25189
25190         unistd: fix comment typo
25191         * lib/unistd.in.h (euidaccess): Fix a comment typo.
25192
25193 2009-10-08  Eric Blake  <ebb9@byu.net>
25194
25195         areadlink: use SIZE_MAX consistently
25196         * modules/areadlink (Depends-on): Add stdint.
25197         * modules/areadlink-with-size (Depends-on): Likewise.
25198         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25199         gives NULL; drop sys/types, since unistd gives size_t; and add
25200         stdint for SIZE_MAX.
25201         (SIZE_MAX): Rely on headers.
25202         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25203         and add stdint.
25204         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25205         (SIZE_MAX): Likewise.
25206         (INITIAL_BUF_SIZE): Turn into enum.
25207         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25208
25209 2009-10-08  Jim Meyering  <meyering@redhat.com>
25210
25211         areadlinkat: avoid compilation failure
25212         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25213         Fix typo in comment.
25214
25215 2009-10-07  Eric Blake  <ebb9@byu.net>
25216
25217         areadlinkat-with-size: new module
25218         * modules/areadlinkat-with-size: New module.
25219         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25220         * lib/areadlink.h (areadlinkat): Declare it.
25221         * MODULES.html.sh (File system functions): Mention it.
25222         * modules/areadlinkat-with-size-tests: New test.
25223         * tests/test-areadlinkat-with-size.c: New file.
25224
25225         xreadlinkat: new module
25226         * modules/xreadlinkat: New module.
25227         * lib/xreadlinkat.c (xreadlinkat): New file.
25228         * lib/xreadlink.h (xreadlinkat): Declare it.
25229         * MODULES.html.sh (File system functions): Mention it.
25230
25231         areadlinkat: new module
25232         * lib/at-func.c (FUNC_FAIL): New define.
25233         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25234         * modules/areadlinkat: New module.
25235         * lib/linkat.c (areadlinkat): Move...
25236         * lib/areadlinkat.c (areadlinkat): ...to new file.
25237         * lib/areadlink.h (areadlinkat): Declare it.
25238         * modules/linkat (Depends-on): Add areadlinkat.
25239         * MODULES.html.sh (File system functions): Mention it.
25240         * modules/areadlinkat-tests: New test.
25241         * tests/test-areadlinkat.c: New file.
25242
25243         areadlink, areadlink-with-size: add tests
25244         * modules/areadlink-tests: New test.
25245         * modules/areadlink-with-size-tests: Likewise.
25246         * tests/test-areadlink.h: New file.
25247         * tests/test-areadlink.c: Likewise.
25248         * tests/test-areadlink-with-size.c: Likewise.
25249
25250         maint: minor cleanups
25251         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25252         _UNUSED_PARAMETER_ instead.
25253         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25254         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25255         * modules/linkat-tests (Files): Distribute test-link.h.
25256
25257         openat, utimens: whitespace cleanup
25258         * lib/openat.c: Prefer space throughout, rather than mix of 8
25259         spaces vs. tabs.
25260         * lib/at-func.c: Likewise.
25261         * lib/utimens.c: Likewise.
25262
25263         openat: avoid using wrong fd
25264         * lib/openat.c (openat_permissive): Reject user's fd if saving the
25265         working directory chooses same fd.
25266         * lib/at-func.c (AT_FUNC_NAME): Likewise.
25267
25268         mkdir, mkdirat: fix cygwin 1.5.x bug
25269         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
25270         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
25271         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
25272         bug.
25273         (gl_PREREQ_MKDIR): Delete unused macro.
25274         * modules/mkdir (Files): Track file rename.
25275         (configure.ac): Update macro name.
25276         * modules/openat (Depends-on): Add mkdir.
25277         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
25278
25279         mkdir, mkdirat: add tests
25280         * modules/mkdir-tests: New test.
25281         * tests/test-mkdir.h: New file.
25282         * tests/test-mkdir.c: Likewise.
25283         * tests/test-mkdirat.c: Likewise.
25284         * modules/openat-tests (Files): Add new files.
25285         (Makefile.am): Run new test.
25286
25287 2009-10-06  Eric Blake  <ebb9@byu.net>
25288
25289         doc: tweak *at function documentation
25290         * doc/posix-functions/faccessat.texi (faccessat): Mention
25291         known issue with replacement.
25292         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
25293         * doc/posix-functions/linkat.texi (linkat): Likewise.
25294         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25295         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25296         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25297         * doc/posix-functions/renameat.texi (renameat): Likewise.
25298         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25299
25300         openat: fix GNU/Hurd bug in unlinkat
25301         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
25302         broken.
25303         * doc/posix-functions/unlink.texi (unlink): Document this.
25304         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
25305
25306         fdopendir: fix GNU/Hurd bug
25307         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
25308         allowing non-directory fds.
25309         * lib/fdopendir.c (rpl_fdopendir): Work around it.
25310         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25311         * modules/dirent (Makefile.am): Substitute it.
25312         * lib/dirent.in.h (fdopendir): Declare replacement.
25313         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
25314         * tests/test-fdopendir.c (main): Test something other than
25315         /dev/null, since on Hurd that behaves like a directory.
25316
25317         test-symlink: port to GNU/Hurd
25318         * tests/test-symlink.h (test_symlink): Relax expected errno.
25319
25320         doc: tweak more cygwin information
25321         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25322         now compatible with glibc.
25323         * doc/posix-functions/getopt.texi (getopt): Likewise.
25324
25325         getopt-gnu: add another test
25326         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25327         guarantee behavior relied on by m4.
25328         * tests/test-getopt.c (main): Use it.
25329         * modules/getopt-posix-tests (Depends-on): Add setenv.
25330         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25331
25332         getopt: fix compilation on darwin
25333         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25334         include.
25335         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25336         Reported by Ludovic Courtès.
25337
25338 2009-10-06  Bruno Haible  <bruno@clisp.org>
25339
25340         * modules/size_max (Description): Discourage its use.
25341         Reported by Simon Josefsson.
25342
25343 2009-10-06  Jim Meyering  <meyering@redhat.com>
25344
25345         linkat: avoid compilation failure
25346         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25347
25348 2009-10-05  Eric Blake  <ebb9@byu.net>
25349
25350         linkat: support Linux 2.6.17
25351         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25352         linkat on Linux, but allow cache variable override.
25353         * lib/linkat.c (rpl_linkat): Define override.
25354         * modules/linkat (Depends-on): Add symlinkat.
25355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25356         * modules/unistd (Makefile.am): Substitute it.
25357         * lib/unistd.in.h (linkat): Declare replacement.
25358         Reported by Pádraig Brady.
25359
25360         quotearg: port test to systems with C.UTF-8 locale
25361         * tests/test-quotearg.c (struct result_strings): Add another
25362         member, differentiating between C.ASCII and C.UTF-8 handling.
25363         (compare_strings): Add parameter.
25364         (main): Adjust all callers.
25365
25366         getopt: avoid clash with FreeBSD _getopt_internal
25367         * lib/getopt.in.h (_getopt_internal): Override the name.
25368         * lib/getopt_int.h (includes): Pick up any overrides.
25369         Reported by Reuben Thomas.
25370
25371         hash: allow C89 compilation
25372         * lib/hash.c (check_tuning): Move declaration before statement.
25373         Reported by Reuben Thomas.
25374
25375 2009-10-05  Karl Berry  <karl@gnu.org>
25376
25377         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25378
25379 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25380             Bruno Haible  <bruno@clisp.org>
25381
25382         * lib/uname.c (uname): Use a table-driven algorithm to compute
25383         Windows NT versions.
25384
25385 2009-10-04  Bruno Haible  <bruno@clisp.org>
25386
25387         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25388         program_invocation_short_name.
25389         * modules/progname (configure.ac): Test for presence of
25390         program_invocation_short_name.
25391         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25392
25393 2009-10-04  Bruno Haible  <bruno@clisp.org>
25394
25395         * lib/progname.c (set_program_name): Fix comment.
25396         Reported by Jim Meyering.
25397
25398 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25399             Bruno Haible  <bruno@clisp.org>
25400
25401         * lib/uname.c: Include <string.h>.
25402         (uname): Do only one call to GetVersionEx in the common case.
25403
25404 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25405             Bruno Haible  <bruno@clisp.org>
25406
25407         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25408         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25409         (uname): Add support for Windows CE and various non-x86 CPU types.
25410
25411 2009-10-03  Bruno Haible  <bruno@clisp.org>
25412
25413         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25414         invocation to tests/configure.ac.
25415         Reported by Ian Beckwith <ianb@erislabs.net>.
25416
25417 2009-10-02  Eric Blake  <ebb9@byu.net>
25418
25419         fchdir: avoid compiler warning
25420         * lib/fchdir.c (canonicalize_file_name)
25421         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25422
25423         test-open: support mingw errno values
25424         * tests/test-open.h (test_open): Relax test.
25425         * tests/test-fopen.h (test_fopen): Likewise.
25426         * tests/test-openat-safer.c (main): Likewise.
25427
25428         open: fix opening directory on mingw
25429         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25430
25431         test-open: on GNU/Hurd, /dev/null is a directory
25432         * tests/test-fopen.h (main): Rename...
25433         (test_fopen): ...to this.  Use a guaranteed non-directory when
25434         confirming open behavior on trailing slash.
25435         * tests/test-openat-safer.c (main): Likewise.
25436         * tests/test-open.h (main): Likewise....
25437         (test_open): ...to this.
25438         * tests/test-fopen.c (main): Adjust caller.
25439         * tests/test-fopen-safer.c (main): Likewise.
25440         * tests/test-open.c (main): Likewise.
25441         * tests/test-fcntl-safer.c (main): Likewise.
25442         Reported by Samuel Thibault.
25443
25444         rename, fchdir: don't ignore chdir failure
25445         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25446         * lib/rename.c (rpl_rename) [W32]: Likewise.
25447         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25448         an empty destination directory if source cannot be renamed,
25449         although there is still possibility for failure.
25450         * doc/posix-functions/rename.texi (rename): Document the race.
25451         Reported by Jim Meyering.
25452
25453         maint: cleanup whitespace in recent commits
25454         * lib/rename.c (rpl_rename): Remove tabs.
25455         * tests/test-link.h (test_link): Likewise.
25456         * lib/fchdir.c (get_name): Likewise.
25457         Reported by Jim Meyering.
25458
25459 2009-10-02  Ben Pfaff  <blp@gnu.org>
25460
25461         relocatable-prog-wrapper: Add missing dependency on
25462         double-slash-root.
25463         * modules/relocatable-prog-wrapper: Add dependency.
25464         Reported by Ian Beckwith <ianb@erislabs.net>.
25465
25466 2009-10-02  Eric Blake  <ebb9@byu.net>
25467
25468         renameat: fix Solaris bugs
25469         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25470         needed fixing.
25471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25472         * modules/stdio (Makefile.am): Substitute it.
25473         * lib/stdio.in.h (renameat): Declare replacement.
25474         * lib/renameat.c (rpl_renameat): Implement fix.
25475
25476         renameat: new module
25477         * modules/renameat: New file.
25478         * lib/renameat.c (renameat): Likewise.
25479         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
25480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25481         * modules/stdio (Makefile.am): Substitute them.
25482         * lib/stdio.in.h (renameat): Declare it.
25483         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25484         * doc/posix-functions/renameat.texi (renameat): Likewise.
25485         * modules/renameat-tests: New test.
25486         * tests/test-renameat.c: Likewise.
25487
25488         rename: fix mingw bugs
25489         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
25490         directory overwrite bugs.
25491
25492         rename: fix another cygwin 1.5 bug
25493         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
25494         checks.
25495         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
25496         unnecessary cygwin workarounds.  Also work around bug with moving
25497         full directory onto an empty one.
25498         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
25499
25500         rename-dest-slash: merge into rename module
25501         * modules/rename-dest-slash (Status): Mark obsolete.
25502         (Depends-on): Add rename.
25503         (Files): Let rename do it all.
25504         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
25505         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
25506         * m4/rename-dest-slash.m4: ...so this file can be deleted.
25507         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
25508         * lib/rename.c (rpl_rename): Update comments.
25509
25510         rename: fix cygwin 1.5.x bugs
25511         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
25512         * lib/rename.c (rpl_rename): Work around them.
25513         * modules/rename (Depends-on): Add same-inode.
25514
25515         rename: fix Solaris 10 bug
25516         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25517         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
25518         was the only bug.
25519
25520         rename: fix Solaris 9 bug
25521         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
25522         on non-directory.  Avoid calling exit.
25523         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
25524         strdup.
25525         * modules/rename-tests (Depends-on): Drop lstat.
25526         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25527         (gl_PREREQ_RENAME): Delete unused macro.
25528
25529         rename-dest-slash: fix NetBSD bug
25530         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
25531         links.
25532         * modules/rename-dest-slash (Depends-on): Add same-inode.
25533
25534         rename-tests: new test, exposes several platform bugs
25535         * modules/rename-tests: New file.
25536         * tests/test-rename.h: Likewise.
25537         * tests/test-rename.c: Likewise.
25538         * doc/posix-functions/rename.texi (rename): Improve documentation,
25539         including bugs that will eventually be fixed in gnulib.
25540
25541 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
25542
25543         * lib/uname.c: Include <stdlib.h>
25544         (uname): Assume version info is available.
25545
25546 2009-10-02  Jim Meyering  <meyering@redhat.com>
25547
25548         gnu-web-doc-update: correct --help output
25549         * build-aux/gnu-web-doc-update: Make --help output relevant.
25550
25551         gnu-web-doc-update: add standard options
25552         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
25553
25554         gnu-web-doc-update: New module.
25555         Use this script to automatically update the on-line web documentation
25556         for your GNU project at http://www.gnu.org/software/$pkg/manual/
25557         * modules/gnu-web-doc-update: New file, from coreutils.
25558         * build-aux/gnu-web-doc-update: New script.
25559
25560 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
25561
25562         link: LoadLibrary is not needed.
25563         * lib/link.c: Use GetModuleHandle.
25564
25565 2009-10-01  Eric Blake  <ebb9@byu.net>
25566
25567         getopt: bump serial number
25568         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
25569         change.
25570
25571         tests: tighten link, rmdir, and remove tests
25572         * tests/test-link.h (includes): No need to use <config.h> here.
25573         Clean up if directory hard link was created, otherwise test for
25574         trailing '.'.
25575         * tests/test-linkat.c (main): Simplify.
25576         * tests/test-remove.c (main): Enhance test for trailing '.'.
25577         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25578
25579 2009-10-01  Jim Meyering  <meyering@redhat.com>
25580
25581         maint.mk: requiring "make major" was annoying, for a "minor" release.
25582         What is intended is "stable", to contrast with alpha and beta,
25583         so require "make stable", not "make major".
25584         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
25585         (get_tool_versions): Likewise.
25586         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
25587
25588 2009-09-30  Ben Pfaff  <blp@gnu.org>
25589
25590         Fix broken build of replacement for Windows tmpfile().
25591         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
25592         flags argument added along with the 'mkostemp' module.
25593
25594 2009-09-28  Bruno Haible  <bruno@clisp.org>
25595
25596         Avoid identifier clash with POSIX function 'remove' defined as a macro.
25597         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
25598         to 'remove_elt'.
25599         (gl_list_remove): Update.
25600         * lib/gl_list.c (gl_list_remove): Update.
25601         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
25602         to 'remove_elt'.
25603         (gl_oset_remove): Update.
25604         * lib/gl_list.c (gl_oset_remove): Update.
25605         Reported by Eric Blake.
25606
25607 2009-09-28  Eric Blake  <ebb9@byu.net>
25608
25609         doc: mention yet more cygwin 1.7 status
25610         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
25611         cygwin.
25612         * doc/glibc-functions/execvpe.texi (execvpe): New file.
25613         * doc/gnulib.texi (Glibc unistd.h): Mention it.
25614
25615         argp: fix test failure
25616         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
25617         that are not upper-case.  Pass correct range to tolower.
25618
25619 2009-09-27  Jim Meyering  <meyering@redhat.com>
25620
25621         test-yesno: work around sparc-dash here-document infelicity
25622         Without this change, the literal \177 byte in a here document
25623         would make dash 0.5.5.1-3 access uninitialized memory.
25624         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
25625         Instead, use a marker, "@", and filter through tr to create the desired
25626         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
25627
25628 2009-09-27  Bruno Haible  <bruno@clisp.org>
25629
25630         Disable untested support for new flavours of ACLs on AIX.
25631         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
25632         progress.
25633         * lib/set-mode-acl.c (qset_acl): Likewise.
25634
25635 2008-12-07  Bruno Haible  <bruno@clisp.org>
25636
25637         Add support for new flavours of ACLs on AIX. (Untested.)
25638         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
25639         (file_has_acl): Add support for newer AIX.
25640         * lib/set-mode-acl.c (qset_acl): Likewise.
25641         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
25642         Rainer Tammer <tammer@tammer.net>.
25643
25644 2009-09-26  Eric Blake  <ebb9@byu.net>
25645
25646         argp: fix compilation of getopt
25647         * lib/getopt.in.h (includes): Use different guard than glibc.
25648         Reported by Sergey Poznyakoff.
25649
25650         doc: mention more cygwin 1.7 status
25651         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
25652         bug.
25653         * doc/posix-functions/execl.texi (execl): Likewise.
25654         * doc/posix-functions/execle.texi (execle): Likewise.
25655         * doc/posix-functions/execlp.texi (execlp): Likewise.
25656         * doc/posix-functions/execv.texi (execv): Likewise.
25657         * doc/posix-functions/execve.texi (execve): Likewise.
25658         * doc/posix-functions/execvp.texi (execvp): Likewise.
25659         * doc/glibc-functions/canonicalize_file_name.texi
25660         (canonicalize_file_name): Cygwin 1.7 now provides this.
25661         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
25662         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
25663         on AT_SYMLINK_NOFOLLOW.
25664
25665 2009-09-24  Eric Blake  <ebb9@byu.net>
25666
25667         test-linkat: make test more robust
25668         * tests/test-linkat.c (main): Avoid collision with EEXIST.
25669
25670         getopt: fix inclusion guards for cygwin
25671         * modules/getopt-posix (Depends-on): Add include-next.
25672         (Makefile.am): Substitute more items in replacement header.
25673         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
25674         <getopt.h>.
25675         * lib/getopt.in.h (includes): Use split inclusion guard, and
25676         prefer <getopt.h> over include <unistd.h> when one is present.
25677         (option): Also override name of 'struct option'.
25678
25679         same-inode: revert prior change; it is not yet ready
25680         * NEWS: Undo mention of this change.
25681         * lib/same-inode.h (same-inode.h): Undo tri-state change.
25682         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25683         * lib/cycle-check.c (cycle_check): Likewise.
25684         * lib/same.c (same_name): Likewise.
25685         * lib/at-func2.c (at_func2): Likewise.
25686
25687 2009-09-23  Eric Blake  <ebb9@byu.net>
25688
25689         linkat: new module
25690         * modules/linkat: New file.
25691         * lib/at-func2.c (at_func2): Likewise.
25692         * lib/linkat.c (linkat): Likewise.
25693         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25694         * lib/openat-priv.h (at_func2): Add declaration.
25695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25696         * modules/unistd (Makefile.am): Substitute them.
25697         * lib/unistd.in.h (linkat): Declare it.
25698         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25699         * doc/posix-functions/linkat.texi (linkat): Likewise.
25700         * doc/posix-functions/link.texi (link): Tweak wording.
25701         * tests/test-link.c (main): Move guts...
25702         * tests/test-link.h (test_link): ...into new file.
25703         * modules/linkat-tests: New test.
25704         * tests/test-linkat.c: Likewise.
25705         * modules/link-tests (Files): Ship new file.
25706         (Depends-on): Add stdbool.
25707
25708         dirname: add library-safe mdir_name
25709         * lib/dirname.h (mdir_name): New prototype.
25710         * lib/dirname.c (dir_name): Move guts...
25711         (mdir_name): ...to new function that avoids xalloc_die.
25712
25713         fchdir: another mingw fix
25714         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
25715         * lib/fchdir.c (get_name): New helper method; skips canonicalize
25716         on mingw (where it has not yet been ported), and make it optional
25717         elsewhere.
25718         (_gl_register_fd): Use it.
25719
25720         same-inode: make SAME_INODE tri-state, to port to mingw
25721         * NEWS: Mention this change.
25722         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
25723         st_ino always being 0.
25724         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25725         * lib/cycle-check.c (cycle_check): Likewise.
25726         * lib/same.c (same_name): Likewise.
25727
25728         lstat: avoid mingw compilation error
25729         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
25730         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
25731         lstat ourselves.
25732         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
25733         was adequate.
25734         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
25735         the checks for lstat.
25736         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
25737
25738         link: fix test failure on Solaris 9
25739         * lib/link.c (rpl_link): Don't assume link will catch bogus
25740         trailing slash on source.
25741
25742         test-symlinkat: enhance test
25743         * tests/test-readlink.c (main): Move guts...
25744         * tests/test-readlink.h (test_readlink): ...into new file.
25745         * tests/test-symlink.c (main): Move guts...
25746         * tests/test-symlink.h (test_symlink): ...into new file.
25747         * tests/test-symlinkat.c (main): Use new files for further
25748         coverage.
25749         (do_symlink, do_readlink): New helper functions.
25750         * modules/symlink-tests (Files): Ship new file.
25751         (Depends-on): Add stdbool.
25752         * modules/readlink-tests (Files): Ship new file.
25753         (Depends-on): Add stdbool.
25754         * modules/symlinkat-tests (Files): Use new files.
25755
25756 2009-09-23  Eric Blake  <ebb9@byu.net>
25757
25758         readlink: document portability issue with symlink length
25759         * doc/posix-functions/lstat.texi (lstat): Mention that some file
25760         systems have bogus st_size on symlinks, and mention the
25761         areadlink-with-size module.
25762         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25763         * doc/posix-functions/readlink.texi (readlink): Mention the
25764         areadlink module, and ERANGE failure.
25765         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25766         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
25767
25768         readlink: fix Solaris 9 bug with trailing slash
25769         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
25770         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
25771         * doc/posix-functions/readlink.texi (readlink): Document this.
25772         * modules/readlink-tests: New test.
25773         * tests/test-readlink.c: Likewise.
25774
25775         readlink: fix cygwin 1.5.x bug with return type
25776         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
25777         * lib/unistd.in.h (readlink): Use ssize_t.
25778         * lib/readlink.c (readlink): Likewise.
25779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25780         * modules/unistd (Makefile.am): Substitute it.
25781         * lib/unistd.in.h (readlink): Declare replacement.
25782         * doc/posix-functions/readlink.texi (readlink): Document this.
25783
25784         symlink: use throughout gnulib
25785         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
25786         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
25787         symlink is not used.
25788         * modules/symlinkat (Depends-on): Add symlink.
25789         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25790         * modules/canonicalize-tests (Depends-on): Likewise.
25791         * modules/lstat-tests (Depends-on): Likewise.
25792         * modules/openat-tests (Depends-on): Likewise.
25793         * modules/remove-tests (Depends-on): Likewise.
25794         * modules/rmdir-tests (Depends-on): Likewise.
25795         * modules/unlink-tests (Depends-on): Likewise.
25796         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
25797         * tests/test-canonicalize.c (symlink): Likewise.
25798         * tests/test-fstatat.c (symlink): Likewise.
25799         * tests/test-lstat.c (symlink): Likewise.
25800         * tests/test-remove.c (symlink): Likewise.
25801         * tests/test-rmdir.c (symlink): Likewise.
25802         * tests/test-unlink.c (symlink): Likewise.
25803         * tests/test-unlinkat.c (symlink): Likewise.
25804
25805         symlink: new module, for Solaris 9 bug
25806         * modules/symlink: New file.
25807         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25808         * lib/symlink.c: Likewise.
25809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25810         * modules/unistd (Makefile.am): Substitute them.
25811         * lib/unistd.in.h (symlink): Declare replacement.
25812         * MODULES.html.sh (File system functions): Mention it.
25813         * doc/posix-functions/symlink.texi (symlink): Likewise.
25814         * modules/symlink-tests: New test.
25815         * tests/test-symlink.c: Likewise.
25816
25817 2009-09-23  Bruno Haible  <bruno@clisp.org>
25818
25819         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
25820         when needed.
25821         Test case: gnulib-tool --import --with-tests atexit inttypes.
25822         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
25823
25824 2009-09-23  Bruno Haible  <bruno@clisp.org>
25825
25826         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
25827         subcommand, not in a subshell.
25828
25829 2009-09-22  Eric Blake  <ebb9@byu.net>
25830
25831         unistd: sort replacement declarations
25832         * lib/unistd.in.h: Sort declarations.
25833
25834         open, openat: minor optimization
25835         * lib/open.c (open): If open succeeded, len is non-zero.
25836         * lib/openat.c (rpl_openat): Likewise.
25837
25838         link-follow: ensure correct result
25839         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
25840         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
25841         distinguish between possible failures.
25842
25843 2009-09-21  Eric Blake  <ebb9@byu.net>
25844
25845         fts: avoid compiler warning
25846         * lib/fts.c (dirent_inode_sort_may_be_useful)
25847         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
25848
25849 2009-09-19  Bruno Haible  <bruno@clisp.org>
25850
25851         * lib/progreloc.c (canonicalize_file_name): New declaration.
25852
25853 2009-09-19  Eric Blake  <ebb9@byu.net>
25854
25855         link: fix quoting
25856         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
25857
25858         openat: fix openat bugs on Solaris 9
25859         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
25860         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
25861         * modules/openat (Depends-on): Add open.
25862         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
25863         * modules/fcntl-h (Makefile.am): Substitute it.
25864         * lib/fcntl.in.h (openat): Declare replacement.
25865         * doc/posix-functions/openat.texi (openat): Document this.
25866
25867         openat: move fstatat and unlinkat into correct files
25868         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
25869         compiled.
25870         * lib/openat.c (fstatat, unlinkat): Move...
25871         * lib/fstatat.c (fstatat): ...into correct files.
25872         * lib/unlinkat.c (unlinkat): Likewise.
25873
25874         openat: fix unlinkat bugs on Solaris 9
25875         * lib/unlinkat.c (unlinkat): New file.
25876         * modules/openat (Depends-on): Add unlink.
25877         (Files): Distribute it.
25878         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
25879         trailing slash behavior is broken.
25880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25881         * modules/unistd (Makefile.am): Substitute it.
25882         * lib/unistd.in.h (unlinkat): Declare replacement.
25883         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
25884
25885         openat: fix fstatat bugs on Solaris 9
25886         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
25887         stat.
25888         * doc/posix-functions/fstatat.texi (fstatat): Document this.
25889
25890         test-unlinkat: enhance test, to expose Solaris 9 bug
25891         * tests/test-unlink.c (main): Factor guts...
25892         * tests/test-unlink.h (test_rmdir_func): ...into new file.
25893         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
25894         * tests/test-rmdir.c (main): Adjust caller.
25895         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
25896         (unlinker): New helper function.
25897         (rmdirat): Enhance check.
25898         * modules/rmdir-tests (Depends-on): Add stdbool.
25899         * modules/unlink-tests (Depends-on): Likewise.
25900         (Files): Add test-unlink.h.
25901         * modules/openat-tests (Files): Likewise.
25902         (Depends-on): Add unlinkdir.
25903
25904         test-fstatat: new test, to expose Solaris 9 bugs
25905         * tests/test-stat.c (main): Factor guts...
25906         * tests/test-stat.h (test_stat_func): ...into new file.
25907         * tests/test-lstat.c (main): Factor guts...
25908         * tests/test-lstat.h (test_lstat_func): ...into new file.
25909         * tests/test-fstatat.c: New file.
25910         * modules/stat-tests (Files): Add test-stat.h.
25911         * modules/lstat-tests (Files): Add test-lstat.h.
25912         (Depends-on): Add stdbool.
25913         * modules/openat-tests (Depends-on): Add pathmax.
25914         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
25915         (Makefile.am): Run new test.
25916
25917         remove: new module, for mingw and Solaris 9 bugs
25918         * modules/remove: New file.
25919         * lib/remove.c: Likewise.
25920         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
25921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25922         * modules/stdio (Makefile.am): Use them.
25923         * lib/stdio.in.h (remove): Declare replacement.
25924         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25925         * doc/posix-functions/remove.texi (remove): Likewise.
25926         * modules/remove-tests: New test.
25927         * tests/test-remove.c: Likewise.
25928
25929         unlink: new module, for Solaris 9 bug
25930         * modules/unlink: New file.
25931         * lib/unlink.c: Likewise.
25932         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25934         * modules/unistd (Makefile.am): Use them.
25935         * lib/unistd.in.h (stat): Declare replacement.
25936         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25937         * doc/posix-functions/unlink.texi (unlink): Likewise.
25938         * modules/unlink-tests: New test.
25939         * tests/test-unlink.c: Likewise.
25940
25941         lstat: fix Solaris 9 bug
25942         * lib/lstat.c (lstat): Also check for trailing slash on
25943         non-symlink, non-directories.  Use stat module to simplify logic.
25944         * doc/posix-functions/lstat.texi (lstat): Document it.
25945         * modules/lstat-tests (Depends-on): Add errno, same-inode.
25946         (configure.ac): Check for symlink.
25947         * tests/test-lstat.c (main): Add more tests.
25948
25949         stat: add as dependency to other modules
25950         * modules/chown (Depends-on): Add stat.
25951         * modules/euidaccess (Depends-on): Likewise.
25952         * modules/fchdir (Depends-on): Likewise.
25953         * modules/isdir (Depends-on): Likewise.
25954         * modules/link (Depends-on): Likewise.
25955         * modules/lstat (Depends-on): Likewise.
25956         * modules/mkdir-p (Depends-on): Likewise.
25957         * modules/modechange (Depends-on): Likewise.
25958         * modules/open (Depends-on): Likewise.
25959         * modules/readlink (Depends-on): Likewise.
25960         * modules/same (Depends-on): Likewise.
25961
25962         stat: fix Solaris 9 bug
25963         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
25964         slash.
25965         * lib/stat.c (rpl_stat): Work around it.
25966         * doc/posix-functions/stat.texi (stat): Update documentation.
25967
25968         stat: new module, for mingw bug
25969         * modules/stat: New file.
25970         * lib/stat.c: Likewise.
25971         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25972         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25973         * modules/sys_stat (Makefile.am): Use them.
25974         * lib/sys_stat.in.h (stat): Declare replacement.
25975         * lib/openat.c (fstatat): Deal with lstat and stat being function
25976         macros.
25977         * modules/openat (Depends-on): Add inline.
25978         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25979         * doc/posix-functions/stat.texi (stat): Likewise.
25980         * modules/stat-tests: New test.
25981         * tests/test-stat.c: Likewise.
25982
25983 2009-09-19  Jim Meyering  <meyering@redhat.com>
25984
25985         syntax-check: detect unnecessary inclusion of canonicalize.h
25986         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
25987
25988 2009-09-19  Eric Blake  <ebb9@byu.net>
25989
25990         canonicalize-lgpl: adjust clients to use correct header
25991         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25992         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
25993         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
25994         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
25995         * lib/progreloc.c (includes): Likewise.
25996
25997 2009-09-19  Jim Meyering  <meyering@redhat.com>
25998
25999         test-posixtm.c: correct a comment
26000         * tests/test-posixtm.c: Correct first-line comment.
26001         Spotted by Eric Blake.
26002
26003 2009-09-16  Jim Meyering  <meyering@redhat.com>
26004
26005         posixtm-tests: make T const-correct; add a test case
26006         * tests/test-posixtm.c (T): Declare const.
26007         Add a test for -(2^31+1).
26008         Remove useless can-succeed-only-in-2002 test.
26009
26010         posixtm-tests: adjust the sole failing test
26011         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
26012         expected output matches what mktime now produces.  Cross-checked via
26013         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
26014
26015         posixtm: move #ifdef'd tests into a new module
26016         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
26017         * tests/test-posixtm.c: ... this new file.
26018         * modules/posixtm-tests: New module.
26019
26020 2009-09-19  Eric Blake  <ebb9@byu.net>
26021
26022         openat: simplify use of at-func.c
26023         * lib/at-func.c (includes): Include prerequisites here, to
26024         simplify requirements on client files.
26025         * lib/openat-priv.h: Add double-inclusion guard.
26026         * lib/faccessat.c (includes): Simplify.
26027         * lib/fchmodat.c (includes): Likewise.
26028         * lib/fchownat.c (includes): Likewise.
26029         * lib/mkdirat.c (includes): Likewise.
26030         * lib/mkfifoat.c (includes): Likewise.
26031         * lib/symlinkat.c (includes): Likewise.
26032
26033         openat: allow return of fd 0
26034         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
26035         * modules/save-cwd (Depends-on): Replace fcntl-safer with
26036         unistd-safer.
26037         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
26038         <fcntl.h>; this module does not leak fds.
26039         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
26040         must be allowed to return 0, leaving openat_safer to add the
26041         safety.
26042         (openat_permissive): Avoid writing to just-opened fd 2 if
26043         restoring the current directory fails.
26044         * lib/openat-die.c (openat_restore_fail): Add comment.
26045         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
26046         (save_cwd): Guarantee safe fd, but without use of open_safer.
26047         * tests/test-openat.c: New test.
26048         * modules/openat-tests (Files, Makefile.am): Distribute and build
26049         new file.
26050
26051         relocatable-prog-wrapper: fix build
26052         * modules/relocatable-prog-wrapper (Files): Update name of
26053         canonicalize m4 file, broken on 2009-09-17.
26054         Reported by emad hajjar <aleppos@hotmail.com>.
26055
26056 2009-09-19  Bruno Haible  <bruno@clisp.org>
26057
26058         * lib/safe-alloc.h: Use the standard header with GPL copyright.
26059         * lib/safe-alloc.c: Likewise.
26060         Reported by Ian Beckwith <ianb@erislabs.net>.
26061
26062 2009-09-18  Bruno Haible  <bruno@clisp.org>
26063
26064         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
26065         Reported by <erobles@sensacd.com.mx>.
26066
26067 2009-09-17  Eric Blake  <ebb9@byu.net>
26068
26069         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
26070         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
26071         slashes when checking if last component is missing.
26072         * tests/test-canonicalize.c (main): Test this.
26073
26074         canonicalize, canonicalize-lgpl: honor // if distinct from /
26075         * modules/canonicalize (Files): Add double-slash-root.m4.
26076         * modules/canonicalize-lgpl (Files): Likewise.
26077         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26078         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
26079         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
26080         fallback definition.
26081         (canonicalize_filename_mode): Use it to protect //.
26082         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
26083         (__realpath): Likewise.
26084         * tests/test-canonicalize.c (main): Test this.
26085         * tests/test-canonicalize-lgpl.c (main): Likewise.
26086         * modules/canonicalize-tests (Depends-on): Add same-inode.
26087         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26088
26089         canonicalize-lgpl: fix glibc bug with trailing slash
26090         * m4/canonicalize-lgpl.m4: Move contents...
26091         * m4/canonicalize.m4: ...here.
26092         (gl_CANONICALIZE_LGPL): Factor realpath check...
26093         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
26094         glibc 2.3.5 bug, fixed 2005-04-27.
26095         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
26096         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
26097         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
26098         * modules/canonicalize-lgpl (Files): Manage file rename.
26099         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26100         * modules/stdlib (Makefile.am): Substitute witness.
26101         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
26102         is needed.
26103         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
26104         replacement is required.
26105         * lib/canonicalize.c (canonicalize_file_name): Likewise.
26106         * doc/glibc-functions/canonicalize_file_name.texi
26107         (canonicalize_file_name): Document this.
26108         * doc/posix-functions/realpath.texi (realpath): Likewise.
26109
26110         canonicalize-lgpl: reject non-directory with trailing slash
26111         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
26112         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
26113         catches failures in glibc 2.3.5.
26114         * tests/test-canonicalize.c (main): Likewise.
26115
26116         canonicalize-lgpl: use native realpath if it works
26117         * lib/canonicalize-lgpl.c (realpath): Guard with
26118         FUNC_REALPATH_WORKS.
26119         * lib/stdlib.in.h (realpath): Make declaration optional based on
26120         HAVE_REALPATH.
26121         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
26122         native realpath works.
26123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26124         * modules/stdlib (Makefile.am): Substitute witness.
26125
26126         canonicalize, canonicalize-lgpl: use <stdlib.h>
26127         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
26128         (Include): Mention <stdlib.h>.
26129         (configure.ac): Mention functions we provide.
26130         * modules/canonicalize (configure.ac): Likewise.
26131         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
26132         realpath if canonicalize_file_name is missing.
26133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
26134         * modules/stdlib (Makefile.am): Substitute witnesses.
26135         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
26136         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
26137         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
26138         * NEWS: Document this.
26139         * doc/glibc-functions/canonicalize_file_name.texi
26140         (canonicalize_file_name): Likewise.
26141         * doc/posix-functions/realpath.texi (realpath): Likewise.
26142         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
26143
26144         test-canonicalize: consolidate into single C program
26145         * tests/test-canonicalize.sh: Delete; move setup into...
26146         * tests/test-canonicalize.c (main): ...the program, making it
26147         easier to run in debugger.  Add some tests.
26148         * modules/canonicalize-tests (Files): Remove unused file.
26149         (Depends-on): Add progname.
26150         (configure.ac, Makefile.am): Simplify.
26151
26152         test-canonicalize-lgpl: consolidate into single C program
26153         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
26154         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
26155         easier to run in debugger.  Add some tests.
26156         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
26157         (configure.ac, Makefile.am): Simplify.
26158
26159         canonicalize: avoid resolvepath
26160         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
26161         unnecessary checks.
26162         * lib/canonicalize.c (includes): Simplify.
26163         (canonicalize_file_name): Drop resolvepath implementation.
26164         * modules/canonicalize (Depends-on): Drop filenamecat.
26165
26166         canonicalize: don't lose errno
26167         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
26168         over calls to free.
26169
26170         canonicalize: simplify errno handling
26171         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
26172         assignment.
26173
26174         canonicalize, canonicalize-lgpl: update module dependencies
26175         * modules/canonicalize (Depends-on): Add extensions, lstat,
26176         pathmax, stdlib.
26177         (Files): Drop pathmax.h.
26178         (configure.ac): Adjust macro name.
26179         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
26180         lstat, stdlib, sys_stat.
26181         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
26182         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
26183         extensions.
26184         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
26185         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
26186         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
26187         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
26188         declaration, if available.
26189         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
26190         we can rely on the readlink module.
26191         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
26192         (includes): Use <unistd.h> unconditionally.
26193
26194 2009-09-17  Eric Blake  <ebb9@byu.net>
26195
26196         maint: make Include sections of modules consistent
26197         * modules/alloca: Use only header name; no need to list #include.
26198         * modules/alloca-opt: Likewise.
26199         * modules/arpa_inet: Likewise.
26200         * modules/canon-host: Likewise.
26201         * modules/configmake: Likewise.
26202         * modules/dirent: Likewise.
26203         * modules/eealloc: Likewise.
26204         * modules/environ: Likewise.
26205         * modules/fchdir: Likewise.
26206         * modules/fcntl: Likewise.
26207         * modules/fcntl-h: Likewise.
26208         * modules/gethrxtime: Likewise.
26209         * modules/gettime: Likewise.
26210         * modules/ignore-value: Likewise.
26211         * modules/inet_ntop: Likewise.
26212         * modules/inet_pton: Likewise.
26213         * modules/inttypes: Likewise.
26214         * modules/isnand-nolibm: Likewise.
26215         * modules/isnanf-nolibm: Likewise.
26216         * modules/mbchar: Likewise.
26217         * modules/mbfile: Likewise.
26218         * modules/mbiter: Likewise.
26219         * modules/mbuiter: Likewise.
26220         * modules/netdb: Likewise.
26221         * modules/netinet_in: Likewise.
26222         * modules/nproc: Likewise.
26223         * modules/pagealign_alloc: Likewise.
26224         * modules/poll: Likewise.
26225         * modules/printf-frexp: Likewise.
26226         * modules/pthread: Likewise.
26227         * modules/putenv: Likewise.
26228         * modules/random_r: Likewise.
26229         * modules/relocatable-prog: Likewise.
26230         * modules/search: Likewise.
26231         * modules/select: Likewise.
26232         * modules/selinux-h: Likewise.
26233         * modules/settime: Likewise.
26234         * modules/signal: Likewise.
26235         * modules/size_max: Likewise.
26236         * modules/socklen: Likewise.
26237         * modules/ssize_t: Likewise.
26238         * modules/stdarg: Likewise.
26239         * modules/stdbool: Likewise.
26240         * modules/stddef: Likewise.
26241         * modules/stdint: Likewise.
26242         * modules/stdio: Likewise.
26243         * modules/stdlib: Likewise.
26244         * modules/string: Likewise.
26245         * modules/strings: Likewise.
26246         * modules/sys_file: Likewise.
26247         * modules/sys_ioctl: Likewise.
26248         * modules/sys_select: Likewise.
26249         * modules/sys_socket: Likewise.
26250         * modules/sys_stat: Likewise.
26251         * modules/sys_time: Likewise.
26252         * modules/sys_times: Likewise.
26253         * modules/sys_utsname: Likewise.
26254         * modules/sys_wait: Likewise.
26255         * modules/sysexits: Likewise.
26256         * modules/time: Likewise.
26257         * modules/times: Likewise.
26258         * modules/tmpfile: Likewise.
26259         * modules/trim: Likewise.
26260         * modules/unistd: Likewise.
26261         * modules/wchar: Likewise.
26262         * modules/wctype: Likewise.
26263
26264 2009-09-17  Bruno Haible  <bruno@clisp.org>
26265
26266         Make getdate.y compile on QNX and NetBSD 5 / i386.
26267         * m4/getdate.m4 (gl_GETDATE): Conditionally define
26268         TIME_T_FITS_IN_LONG_INT.
26269         * lib/getdate.y (long_time_t): New type.
26270         (relative_time): Change type of 'seconds' field to long_time_t.
26271         (get_date): Update types of local variables. Check against overflow
26272         during conversion from long_time_t to time_t.
26273         Reported by Matt Kraai <kraai@ftbfs.org>
26274         and Hasso Tepper <hasso@netbsd.org>.
26275
26276 2009-09-17  Bruno Haible  <bruno@clisp.org>
26277
26278         * modules/COPYING: Update copyright years.
26279         * modules/README: Likeiwse.
26280         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
26281         Reported by Ian Beckwith <ianb@erislabs.net>.
26282
26283 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26284
26285         * users.txt: Update references for gnuit package.
26286
26287 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26288
26289         * m4/getdelim.m4: Fix typo in copyright line.
26290
26291 2009-09-17  Bruno Haible  <bruno@clisp.org>
26292
26293         * lib/atoll.c: Use the standard header with GPL copyright.
26294         * lib/argz.in.h: Likewise.
26295         * lib/glob.c: Likewise.
26296         * lib/glob-libc.h: Likewise.
26297         * lib/random_r.c: Likewise.
26298         * lib/siglist.h: Likewise.
26299         * lib/strsignal.c: Likewise.
26300         Reported by Ian Beckwith <ianb@erislabs.net>.
26301
26302 2009-09-17  Eric Blake  <ebb9@byu.net>
26303
26304         rmdir: ensure correct dependency order
26305         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
26306
26307 2009-09-17  Bruno Haible  <bruno@clisp.org>
26308
26309         Disable assertion that fails on NetBSD 5 / i386.
26310         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
26311         Reported by Sam Steingold <sds@gnu.org>
26312         and Hasso Tepper <hasso@netbsd.org>.
26313
26314 2009-09-16  Eric Blake  <ebb9@byu.net>
26315
26316         unlinkdir: port to mingw
26317         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
26318         on which no one can unlink a directory.
26319
26320         stdlib: sort witness names
26321         * modules/stdlib (Makefile.am): Sort replacements.
26322         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26323         * lib/stdlib.in.h: Likewise.
26324
26325         parse-duration-tests: avoid link failure
26326         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26327         LIBINTL.
26328         Reported by Tom G. Christensen.
26329
26330         openat-tests: ensure unlinkat behaves like rmdir
26331         * tests/test-rmdir.c (main): Factor guts...
26332         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26333         * modules/rmdir-tests (Files): Ship new file.
26334         * modules/openat-tests: New test.
26335         * tests/test-unlinkat.c: Likewise.
26336
26337         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26338         * modules/rmdir-errno (Status, Notice): Now obsolete.
26339
26340         rmdir: work around cygwin 1.5.x and mingw bugs
26341         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26342         * lib/rmdir.c (rmdir): Work around it.
26343         * modules/rmdir (Status, Notice): No longer obsolete.
26344         (Files): Add dos.m4.
26345         (Depends-on): Add unistd.
26346         (configure.ac): Set witnesses.
26347         (License): Relax to LGPLv2+.
26348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26349         * modules/unistd (Makefile.am): Substitute witnesses.
26350         * lib/unistd.in.h (rmdir): Declare replacement.
26351         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26352         * modules/rmdir-tests: New tests.
26353         * tests/test-rmdir.c: Likewise.
26354
26355 2009-09-15  Eric Blake  <ebb9@byu.net>
26356
26357         fchdir: improve use of replacement functions
26358         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26359         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26360         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26361         REPLACE_CLOSEDIR.
26362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26363         * modules/sys_stat (Makefile.am): Substitute correct witness.
26364         * modules/dirent (Makefile.am): Likewise.
26365         * modules/unistd (Makefile.am): Likewise.
26366         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26367         * lib/unistd.in.h (dup): Likewise.
26368         * lib/sys_stat.in.h (fstat): Likewise.
26369
26370         maint: ignore gnulib-tool temp files
26371         * .gitignore: Ignore files created during gnulib-tool --test.
26372
26373 2009-09-13  Jim Meyering  <meyering@redhat.com>
26374
26375         posixtm: don't reject a time that specify "60" as the number of seconds
26376         * lib/posixtm.c (posixtime): The code to reject invalid dates
26377         would also reject a time specified with the .60 suffix.
26378         But POSIX allows that, in order to accommodate leap seconds.
26379         So don't reject it.
26380         (main): Adjust tests accordingly.
26381         * modules/posixtm (Depends-on): Add stpcpy.
26382
26383 2009-09-11  Jim Meyering  <meyering@redhat.com>
26384
26385         announce-gen: include [$release_type] in emitted Subject:
26386         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26387         e.g., [stable] in the emitted Subject: line.
26388
26389 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26390
26391         Remove obsolete macros from several modules.
26392         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26393         obsolete Autoconf macros with their modern counterparts.
26394         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26395         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26396         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26397         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26398         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26399         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26400         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26401         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26402         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26403         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26404         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26405         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26406         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26407         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26408         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26409         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26410         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26411         * m4/time_r.m4 (gl_TIME_R): Likewise.
26412         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26413         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26414         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26415
26416         Fix copyright header in build-aux scripts.
26417         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26418         recommendation.
26419         * build-aux/ncftpput-ftp: Likewise.
26420         * build-aux/update-copyright: Likewise.
26421
26422 2009-09-09  Eric Blake  <ebb9@byu.net>
26423
26424         test-link: allow Linux choice of errno
26425         * tests/test-link.c (main): Relax test for alternate error.
26426
26427         strndup: fix improper m4 caching
26428         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26429         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26430         (gl_PREREQ_STRNDUP): Delete.
26431         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26432         * modules/string (Makefile.am): Substitute it.
26433         * lib/string.in.h (strndup): Modernize prototype.
26434
26435         getcwd: port to mingw
26436         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26437         different from the POSIX assumptions made throughout the getcwd
26438         module; fortunately, the mingw getcwd does not need replacement.
26439         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26440         * modules/getcwd-tests: New test.
26441         * tests/test-getcwd.c: Likewise.
26442
26443         link: fix platform bugs
26444         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26445         * lib/link.c (link): Work around them.  Fix related mingw bug.
26446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26447         * modules/unistd (Makefile.am): Substitute it.
26448         * lib/unistd.in.h (link): Declare replacement.
26449         * doc/posix-functions/link.texi (link): Document this.
26450         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26451
26452         test-link: consolidate into single C program, test more cases
26453         * tests/test-link.sh: Delete.
26454         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26455         at least Cygwin and Solaris.
26456         * modules/link-tests (Files): Remove unused file.
26457         (Depends-on): Add errno, sys_stat.
26458         (Makefile.am): Simplify.
26459
26460 2009-09-08  Bruno Haible  <bruno@clisp.org>
26461
26462         Work around towlower, towupper bug on mingw.
26463         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26464         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26465         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26466         * doc/posix-functions/towupper.texi: Likewise.
26467         Reported by Eric Blake.
26468
26469 2009-09-08  Jim Meyering  <meyering@redhat.com>
26470
26471         build: don't try to run autoheader if we don't use it
26472         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26473         is not used in configure.ac.
26474
26475 2009-09-08  Eric Blake  <ebb9@byu.net>
26476
26477         euidaccess: fix compilation error
26478         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
26479
26480         rawmemchr: relax license
26481         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
26482         okay.
26483         Reported by Jim Meyering.
26484
26485         mkfifoat: new module
26486         * modules/mkfifoat: New file.
26487         * lib/mkfifoat.c: Likewise.
26488         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
26489         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26490         * modules/sys_stat (Makefile.am): Use them.
26491         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
26492         * MODULES.html.sh (File system functions): Mention module.
26493         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26494         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26495         * modules/mkfifoat-tests: New test.
26496         * tests/test-mkfifoat.c: Likewise.
26497
26498         strchrnul: relax license
26499         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
26500         okay.
26501         Reported by Jim Meyering.
26502
26503 2009-09-08  Eric Blake  <ebb9@byu.net>
26504
26505         fstatat: fix compilation on Solaris
26506         * lib/fstatat.c (includes): Add fcntl.h.
26507         Reported by Pádraig Brady.
26508
26509 2009-09-07  Eric Blake  <ebb9@byu.net>
26510
26511         rename: modernize replacement
26512         * modules/rename (Depends-on): Add stdio.
26513         (configure.ac): Declare witness.
26514         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
26515         stdio take care of replacement.
26516         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26517         * modules/stdio (Makefile.am): Substitute them.
26518         * lib/stdio.in.h (rename): Declare replacement.
26519         * lib/rename.c (includes): Allow cross-compilation to non-windows
26520         machines.
26521         * doc/posix-functions/rename.texi (rename): Improve
26522         documentation.
26523
26524         stdio: sort witness names
26525         * modules/stdio (Makefile.am): Sort replacements.
26526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26527         * lib/stdio.in.h: Likewise.
26528
26529         getcwd: minor cleanups
26530         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
26531         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
26532
26533         openat: provide more convenience names
26534         * modules/faccessat (configure.ac): Add C witness.
26535         * lib/unistd.in.h (readlinkat): Fix typo.
26536         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
26537         convenience wrappers.
26538         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
26539         wrappers in syntax checks.
26540
26541 2009-09-06  Eric Blake  <ebb9@byu.net>
26542
26543         doc: fix comments in recent patches
26544         * lib/faccessat.c: Mention correct function.
26545         * lib/fchmodat.c: Likewise.
26546         * lib/fchownat.c: Likewise.
26547         * lib/symlinkat.c: Likewise.
26548         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
26549         constants.
26550
26551         faccessat, symlinkat: continue cleanup of previous patch
26552         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
26553         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26554         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
26555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
26556         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
26557         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
26558         set.
26559
26560 2009-09-06  Bruno Haible  <bruno@clisp.org>
26561
26562         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
26563         (fstatat): Declare if GNULIB_FSTATAT is set.
26564         (mkdirat): Declare if GNULIB_MKDIRAT is set.
26565         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
26566         (unlinkat): Declare if GNULIB_UNLINKAT is set.
26567         * modules/fcntl-h (Files): Remove m4/openat.m4.
26568         * modules/sys_stat (Files): Remove m4/openat.m4.
26569         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
26570         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
26571         * modules/unistd (Files): Remove m4/openat.m4.
26572         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
26573         GNULIB_OPENAT.
26574         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
26575         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
26576         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
26577         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
26578         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
26579         gl_OPENAT_DEFAULTS.
26580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
26581         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
26582         Don't require gl_OPENAT_DEFAULTS.
26583         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
26584         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
26585         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
26586         (gl_OPENAT_DEFAULTS): Remove macro.
26587
26588 2009-09-06  Bruno Haible  <bruno@clisp.org>
26589
26590         * modules/openat (configure.ac): Remove unneeded witness.
26591
26592 2009-09-06  Bruno Haible  <bruno@clisp.org>
26593
26594         Set errno to ENOSYS when a function is entirely unsupported.
26595         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
26596         EOPNOTSUPP.
26597         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26598         * modules/chown (Depends-on): Remove errno.
26599
26600 2009-09-06  Bruno Haible  <bruno@clisp.org>
26601
26602         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
26603
26604 2009-09-06  Bruno Haible  <bruno@clisp.org>
26605
26606         * lib/sys_stat.in.h: Fix preprocessor command indentation.
26607
26608 2009-09-06  Ben Pfaff  <blp@gnu.org>
26609             Bruno Haible  <bruno@clisp.org>
26610
26611         Work around a glibc bug in strtok_r.
26612         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
26613         Undefine if UNDEFINE_STRTOK_R is set.
26614         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
26615         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26616         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
26617         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
26618         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
26619         UNDEFINE_STRTOK_R.
26620         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
26621
26622 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26623
26624         exclude: minor fix
26625         * lib/exclude.c: Include wctype.h
26626
26627 2009-09-06  Akim Demaille  <demaille@gostai.com>
26628
26629         bootstrap: improve error message
26630         * build-aux/bootstrap (find_tool): Upon failure, report the list
26631         of candidates.
26632         Honor the initial value of the envvar.
26633
26634 2009-09-05  Eric Blake  <ebb9@byu.net>
26635
26636         symlinkat: new module
26637         * modules/symlinkat: New file.
26638         * lib/symlinkat.c: Likewise.
26639         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
26640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26641         * modules/unistd (Makefile.am): Use them.
26642         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
26643         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
26644         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
26645         * MODULES.html.sh (File system functions): Mention module.
26646         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26647         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26648         * modules/symlinkat-tests: New test.
26649         * tests/test-symlinkat.c: Likewise.
26650
26651         test-openat-safer: add more checks
26652         * tests/test-openat-safer.c (main): Check more code paths.
26653
26654 2009-09-05  Jim Meyering  <meyering@redhat.com>
26655
26656         syntax-check: detect unnecessary inclusion of openat.h
26657         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
26658
26659 2009-09-05  Bruno Haible  <bruno@clisp.org>
26660
26661         Support towlower, towupper.
26662         * doc/posix-functions/towlower.texi: Mention module wctype.
26663         * doc/posix-functions/towupper.texi: Likewise.
26664         * lib/wctype.in.h (towlower, towupper): New functions.
26665         * tests/test-wctype.c: Include stdio.h, stdlib.h.
26666         (ASSERT): New macro.
26667         (e): New variable.
26668         (main): Test also towlower, towupper. Test WEOF argument.
26669         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26670
26671 2009-09-05  Bruno Haible  <bruno@clisp.org>
26672
26673         Fix conversion behaviour when the input is invalid.
26674         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
26675         mark occurring in first pass of indirect conversion.
26676         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
26677         input.
26678         Found by clang's static analyzer.
26679
26680 2009-09-05  Bruno Haible  <bruno@clisp.org>
26681
26682         * tests/test-striconveh.c (main): Test indirect conversion on platforms
26683         where direct conversion is possible.
26684
26685 2009-09-04  Eric Blake  <ebb9@byu.net>
26686
26687         openat: fail with ENOENT on empty name
26688         * lib/openat-proc.c (openat_proc_name): Special-case the empty
26689         buffer.
26690
26691         link-follow: fix logic bug in prior patch
26692         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
26693         reversed sense of yes and no in prior patch.  Avoid confusing
26694         compilation failure with desired semantics.
26695
26696         link-follow: accomodate mingw and cross-compilation
26697         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
26698         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
26699         cross-compilation results to -1, to make linkat easier to
26700         implement when cross-compiling.  Trivially support mingw.
26701         * modules/link-follow (configure.ac): Call new name.
26702         * NEWS: Mention this.
26703
26704 2009-09-03  Eric Blake  <ebb9@byu.net>
26705
26706         faccessat: compile replacement
26707         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
26708         needed.
26709
26710         fts: fix compilation error
26711         * lib/fts.c (includes): Re-add "openat.h", for
26712         openat_needs_fchdir.
26713
26714         faccessat: new module
26715         * modules/faccessat: New file.
26716         * lib/faccessat.c: Likewise.
26717         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26719         * modules/unistd (Makefile.am): Use it.
26720         * lib/unistd.in.h (faccessat): Declare it.
26721         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
26722         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
26723         * MODULES.html.sh (File system functions): Mention it.
26724         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
26725         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26726
26727         euidaccess: prefer POSIX over non-standard implementation
26728         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
26729         * lib/euidaccess.c (euidaccess): Use it if available.
26730
26731         openat: make template easier to use
26732         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
26733         AT_FUNC_F2 to be undefined.
26734         (VALIDATE_FLAG): New macro; use it to reject bad flags.
26735         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
26736         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
26737         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
26738         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
26739         Likewise.
26740         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
26741         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
26742         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
26743         Likewise.
26744
26745         openat: declare in POSIX headers
26746         * NEWS: Mention this.
26747         * modules/openat (configure.ac): Declare witnesses.
26748         (Depends-on): Add fcntl-h, sys_stat, unistd.
26749         (Include): Mention correct headers.
26750         * modules/fcntl-h (Depends-on): Add link-warning.
26751         (Files): Add openat.m4.
26752         (Makefile.am): Substitute witnesses.
26753         * modules/sys_stat (Files, Makefile.am): Likewise.
26754         * modules/unistd (Files, Makefile.am): Likewise.
26755         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
26756         (gl_OPENAT_DEFAULTS): New macro.
26757         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
26758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
26759         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
26760         (SYS_STAT_H): Remove unused variable.
26761         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
26762         * lib/fcntl--.h (includes): Remove unneeded header.
26763         * lib/openat-safer.c (includes): Likewise.
26764         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
26765         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
26766         appropriate headers.
26767         (__OPENAT_PREFIX): Delete.
26768         * lib/fcntl.in.h (openat): Provide declaration.
26769         (AT_FDCWD): Fix Solaris bug.
26770         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
26771         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
26772         * lib/fchmodat.c (includes):  Adjust to find declaration.
26773         * lib/fchownat.c (includes): Likewise.
26774         * lib/mkdirat.c (includes): Likewise.
26775         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
26776         still visible.
26777
26778 2009-09-02  Eric Blake  <ebb9@byu.net>
26779
26780         errno: use consistently
26781         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
26782         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
26783         * lib/canonicalize.c (ELOOP): Likewise.
26784         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
26785         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
26786         * lib/lchown.c (EOPNOTSUPP): Likewise.
26787         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
26788         * lib/savewd.c (ESTALE): Likewise.
26789         * lib/settime.c (ENOSYS): Likewise.
26790         * lib/utimens.c (ENOSYS): Likewise.
26791         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
26792         * lib/chdir-safer.c (ELOOP): Likewise.
26793         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
26794         * modules/c-stack (Depends-on): Add errno.
26795         * modules/canonicalize (Depends-on): Likewise.
26796         * modules/chdir-safer (Depends-on): Likewise.
26797         * modules/fdopendir (Depends-on): Likewise.
26798         * modules/inet_ntop (Depends-on): Likewise.
26799         * modules/inet_pton (Depends-on): Likewise.
26800         * modules/lchown (Depends-on): Likewise.
26801         * modules/openat (Depends-on): Likewise.
26802         * modules/savewd (Depends-on): Likewise.
26803         * modules/settime (Depends-on): Likewise.
26804         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
26805
26806         fts: avoid leaking fds
26807         * modules/fts (Depends-on): Add cloexec.
26808         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
26809         flag.
26810
26811         fts: make directory fds more robust
26812         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
26813         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
26814
26815         backupfile, chdir-long, fts, savedir: make safer
26816         * lib/backupfile.c (includes): Use "dirent--.h", since
26817         numbered_backup can write to stderr during readdir.
26818         * lib/savedir.c (includes): Likewise.
26819         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
26820         emulation can write to stderr on failure.
26821         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
26822         * lib/getcwd.c: Document why opendir_safer is unused.
26823         * lib/glob.c: Likewise.
26824         * lib/scandir.c: Likewise.
26825         * lib/openat-proc.c: Likewise, for open_safer.
26826         * modules/backupfile (Depends-on): Add dirent-safer.
26827         * modules/savedir (Depends-on): Likewise.
26828         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
26829         * modules/chdir-long (Depends-on): Add openat-safer.
26830
26831         openat-safer: new module
26832         * modules/openat-safer: New file.
26833         * lib/openat-safer.c: Likewise.
26834         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
26835         * lib/fcntl-safer.h (openat_safer): Declare.
26836         * lib/fcntl--.h (openat): Override.
26837         * MODULES.html.sh (File descriptor based I/O): Mention it.
26838         * lib/openat.h: Add double-inclusion guards.
26839         * lib/openat.c (includes): Only include "fcntl-safer.h", not
26840         "fcntl--.h", so we can implement openat.
26841         * modules/openat-safer-tests: New test.
26842         * tests/test-openat-safer.c: New file.
26843
26844         dirent-safer: new module
26845         * modules/dirent-safer: New file.
26846         * lib/dirent--.h: Likewise.
26847         * lib/dirent-safer.h: Likewise.
26848         * lib/opendir-safer.c: Likewise.
26849         * m4/dirent-safer.m4: Likewise.
26850         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
26851         * modules/dirent-safer-tests: New test.
26852         * tests/test-dirent-safer.c: New file.
26853         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
26854
26855         fdopendir: optimize on mingw
26856         * lib/unistd.in.h (_gl_directory_name): New prototype.
26857         * lib/fchdir.c (_gl_directory_name): Implement it.
26858         (fchdir): Use it to simplify implementation.
26859         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
26860         fchdir, when available, to avoid calling [f]chdir().
26861
26862         fdopendir: split into its own module
26863         * lib/openat.c (fdopendir): Move...
26864         * lib/fdopendir.c: ...into new file.
26865         * modules/fdopendir: New module.
26866         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
26867         * modules/openat (Depends-on): Add fdopendir.
26868         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
26869         fdopendir here.
26870         * modules/savedir (Depends-on): Only need fdopendir, not full
26871         openat.
26872         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
26873         * lib/openat.h (fdopendir): Drop prototype.
26874         * lib/dirent.in.h (fdopendir): Provide prototype.
26875         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
26876         * modules/dirent (Makefile.am): Substitute them.
26877         * MODULES.html.sh (File system functions): Mention it.
26878         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
26879         * modules/fdopendir-tests: New file.
26880         * tests/test-fdopendir.c: Likewise.
26881
26882         fchdir: use more consistent macro convention
26883         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
26884         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
26885         REPLACE_FCHDIR, rather than relying on config.h macros.
26886         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
26887         inside a single make-time REPLACE_FCHDIR block, rather than using
26888         the config.h FCHDIR_REPLACEMENT.
26889         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
26890         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
26891         Manage fstat replacement.
26892         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
26893         REPLACE_FCHDIR.
26894         * modules/sys_stat (Files): Add m4/unistd_h.m4.
26895         (Makefile.am): Substitute REPLACE_FCHDIR.
26896         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
26897         FCHDIR_REPLACEMENT.
26898         * lib/dup-safer.c (dup_safer): Likewise.
26899         * lib/dup2.c (rpl_dup2): Likewise.
26900         * lib/dup3.c (rpl_dup3): Likewise.
26901         * lib/open.c (rpl_open): Likewise.
26902
26903         fchdir: simplify error handling, and support dup3
26904         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
26905         stdbool, malloc-posix, realloc-posix.
26906         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
26907         (ensure_dirs_slot): Return false on allocation failure.
26908         (rpl_dup2): Delete.
26909         (_gl_register_dup): New function.
26910         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
26911         (_gl_register_fd): Close fd on allocation failure.
26912         * lib/fcntl.in.h (_gl_register_fd): Update signature.
26913         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
26914         prototype.
26915         (rpl_dup2_fchdir): Delete prototype.
26916         * lib/open.c (open): Update caller.
26917         * lib/dup2.c (dup2): Track fchdir metadata.
26918         * lib/dup3.c (dup3): Likewise.
26919         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
26920         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
26921
26922 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26923
26924         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
26925         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
26926         don't pass arguments to AC_OUTPUT.
26927
26928 2009-09-02  Bruno Haible  <bruno@clisp.org>
26929
26930         * modules/mkdtemp (License): Relicense under LGPLv2+.
26931         Reported by Paolo Bonzini.
26932
26933 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26934
26935         Replace uses of obsolete autoconf macros in Jim's modules.
26936         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
26937         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
26938         can evoke a warning from autoconf when run with -Wobsolete
26939         enabled.  They were declared obsolete for good reasons (see
26940         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
26941         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
26942         should not continue using the deprecated macros.
26943         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
26944         obsolete Autoconf macros with modern counterparts.
26945         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26946         * m4/dos.m4 (gl_AC_DOS): Likewise.
26947         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
26948         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26949         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
26950         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
26951         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
26952         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
26953         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
26954         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
26955         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
26956         Likewise.
26957         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26958         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26959         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
26960         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
26961         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
26962         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26963
26964 2009-09-01  Eric Blake  <ebb9@byu.net>
26965
26966         fchdir: fix off-by-one bug in previous patch
26967         * lib/fchdir.c (rpl_fstat): Use correct bounds.
26968         (_gl_unregister_fd): Delete useless if.
26969
26970 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
26971
26972         maint.mk: sort the list of syntax-check rules
26973         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
26974         easier to get a sense of progress when the rules are run sequentially
26975         and take a long time.
26976
26977 2009-09-01  Simon Josefsson  <simon@josefsson.org>
26978
26979         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
26980         * modules/netinet_in: Likewise.
26981         * modules/sys_file: Likewise.
26982         * modules/sys_ioctl: Likewise.
26983         * modules/sys_select: Likewise.
26984         * modules/sys_socket: Likewise.
26985         * modules/sys_stat: Likewise.
26986         * modules/sys_time: Likewise.
26987         * modules/sys_times: Likewise.
26988         * modules/sys_utsname: Likewise.
26989         * modules/sys_wait: Likewise.
26990
26991 2009-09-01  Jim Meyering  <meyering@redhat.com>
26992
26993         fts: help ensure that return values are not ignored
26994         * lib/fts_.h (__GNUC_PREREQ): Define.
26995         (__attribute_warn_unused_result__): Define.
26996         (fts_children, fts_close, fts_open, fts_read): Declare with
26997         __attribute_warn_unused_result__.
26998
26999         fts: fts_close now fails also when closing a dir file descriptor fails
27000         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
27001         and propagate to caller, along with errno.
27002
27003         announce-gen: correct formatting in --help output
27004         * build-aux/announce-gen (usage): Move the one-line description in
27005         --help output "up", to where it belongs, just after Usage:.
27006
27007 2009-08-31  Eric Blake  <ebb9@byu.net>
27008
27009         fchdir: port to mingw
27010         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
27011         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
27012         opened, then use a substitute.
27013         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
27014         replacement.
27015         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
27016         (_gl_register_fd): No need to check stat if open already filters
27017         all directories.
27018         (fchdir): Fix error condition to match POSIX.
27019         * modules/fchdir (Depends-on): Add sys_stat.
27020         * doc/posix-functions/open.texi (open): Document the limitation.
27021         * modules/fchdir-tests: New file.
27022         * tests/test-fchdir.c: Likewise.
27023
27024         canonicalize: allow cross-testing from cygwin to mingw
27025         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
27026         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
27027         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
27028         Likewise.
27029         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
27030         target does not support symlinks.
27031         * tests/test-canonicalize-lgpl.sh: Likewise.
27032
27033         chown: avoid compilation warning on mingw
27034         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
27035         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
27036         mingw.
27037         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27038         * modules/chown (Depends-on): Add errno.
27039
27040 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27041
27042         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
27043         command.
27044
27045 2009-08-31  Jim Meyering  <meyering@redhat.com>
27046
27047         canonicalize: remove useless initialization
27048         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
27049         initialization of local, "end".
27050
27051 2009-08-30  Bruno Haible  <bruno@clisp.org>
27052
27053         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
27054         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
27055         ENOSYS.
27056
27057 2009-08-30  Bruno Haible  <bruno@clisp.org>
27058
27059         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
27060         /usr/xpg4/bin/tr when it exists.
27061         * tests/test-pipe-filter-gi1.sh: Likewise.
27062
27063 2009-08-30  Bruno Haible  <bruno@clisp.org>
27064
27065         Work around deficient /usr/bin/id program on Solaris.
27066         * tests/test-file-has-acl.sh (ID): New variable.
27067         * tests/test-set-mode-acl.sh (ID): Likewise.
27068         * tests/test-copy-acl.sh (ID): Likewise.
27069         * tests/test-copy-file.sh (ID): Likewise.
27070
27071 2009-08-30  Bruno Haible  <bruno@clisp.org>
27072
27073         New module 'xstriconveh'.
27074         * lib/xstriconveh.h: New file.
27075         * lib/xstriconveh.c: New file.
27076         * modules/xstriconveh: New file.
27077
27078 2009-08-30  Bruno Haible  <bruno@clisp.org>
27079
27080         Make it easier to use mem_cd_iconveh.
27081         * lib/striconveh.h (iconveh_t): New type.
27082         (iconveh_open, iconveh_close): New declarations.
27083         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27084         with a single 'const iconveh_t *' argument.
27085         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
27086         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27087         with a single 'const iconveh_t *' argument.
27088         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
27089         * tests/test-striconveh.c (main): Update.
27090         * NEWS: Mention the change.
27091
27092 2009-08-30  Bruno Haible  <bruno@clisp.org>
27093
27094         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
27095         problem.
27096
27097 2009-08-30  Bruno Haible  <bruno@clisp.org>
27098
27099         Work around iconv_open problem on Solaris.
27100         * lib/iconv_open-solaris.gperf: New file.
27101         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
27102         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
27103         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
27104         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
27105         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
27106         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
27107
27108 2009-08-29  Jim Meyering  <meyering@redhat.com>
27109
27110         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
27111         * top/maint.mk (cvs-check): Remove target; it was just an alias
27112         to the better-named vc-diff-check.
27113         (maintainer-distcheck): Remove rule.  It was used only from
27114         the (alpha/beta/major) target, and all of its commands but one
27115         were coreutils-specific.
27116         (vc-dist): Remove rule.
27117         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
27118         Run vc-diff-check, not vc-dist.
27119         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
27120
27121 2009-08-27  Bruno Haible  <bruno@clisp.org>
27122
27123         * tests/test-bitrotate.c (main): Remove test that uses a shift count
27124         of 0.
27125
27126 2009-08-27  Bruno Haible  <bruno@clisp.org>
27127
27128         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
27129         compilers.
27130         * doc/func.texi: Document the SunPRO C bug.
27131
27132 2009-08-27  Bruno Haible  <bruno@clisp.org>
27133
27134         Fix link error on Solaris.
27135         * tests/test-parse-duration.c (xstrdup): Remove function.
27136
27137 2009-08-26  Pádraig Brady  <P@draigbrady.com>
27138
27139         ignore-value: handle pointer types, too
27140         * lib/ignore-value.h (__attribute__): Remove definition.
27141         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
27142         of a more concise and more-often effective "(void) i" statement.
27143         (ignore_ptr): New function to suppress warnings from functions that
27144         return pointers, and to make it explicit that one function doesn't
27145         handle all cases.
27146
27147 2009-08-25  Bruno Haible  <bruno@clisp.org>
27148
27149         dup2: work around a Linux bug.
27150         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
27151         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
27152         * doc/posix-functions/dup2.texi: Mention the Linux bug.
27153         Reported by Simon Josefsson.
27154
27155 2009-08-25  Jim Meyering  <meyering@redhat.com>
27156
27157         libguestfs uses gnulib
27158         * users.txt: Add libguestfs.
27159
27160 2009-08-24  Eric Blake  <ebb9@byu.net>
27161
27162         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
27163         * lib/pipe2.c (includes): Add binary-io.h.
27164         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
27165
27166 2009-08-24  Bruno Haible  <bruno@clisp.org>
27167
27168         Tolerate declared but missing accept4 syscall.
27169         * lib/accept4.c (accept4): Invoke original accept4 function first, if
27170         available.
27171         * lib/sys_socket.in.h (accept4): If the function is already present,
27172         override it.
27173         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
27174         * modules/accept4 (Makefile.am): Compile accept4.c always.
27175         Reported by Paolo Bonzini and Eric Blake.
27176
27177 2009-08-23  Bruno Haible  <bruno@clisp.org>
27178
27179         New module 'accept4'.
27180         * lib/sys_socket.in.h (accept4): New declaration.
27181         * lib/accept4.c: New file.
27182         * m4/accept4.m4: New file.
27183         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27184         GNULIB_ACCEPT4, HAVE_ACCEPT4.
27185         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
27186         HAVE_ACCEPT4.
27187         * modules/accept4: New file.
27188         * doc/glibc-functions/accept4.texi: Mention the new module.
27189
27190 2009-08-24  Jim Meyering  <meyering@redhat.com>
27191
27192         progname: also set global program_invocation_name, when possible
27193         Before this change, a libtool-enabled program that calls glibc's
27194         error function would report the program name as
27195         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27196         * modules/progname (configure.ac): Check for a declaration of
27197         program_invocation_name.
27198         * lib/progname.c:  Include <errno.h>.
27199         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27200         Set program_invocation_name.
27201
27202 2009-08-23  Bruno Haible  <bruno@clisp.org>
27203
27204         * lib/dup3.c: Include <string.h>.
27205
27206 2009-08-23  Bruno Haible  <bruno@clisp.org>
27207
27208         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27209         * lib/pipe2.c (pipe2): Likewise.
27210         Suggested by Eric Blake.
27211
27212 2009-08-23  Bruno Haible  <bruno@clisp.org>
27213
27214         Tolerate declared but missing dup3 syscall.
27215         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27216         * lib/unistd.in.h (dup3): If the function is already present,
27217         override it.
27218         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27219         * modules/dup3 (Makefile.am): Compile dup3.c always.
27220         Reported by Paolo Bonzini.
27221
27222 2009-08-23  Bruno Haible  <bruno@clisp.org>
27223
27224         Tolerate declared but missing pipe2 syscall.
27225         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27226         available.
27227         * lib/unistd.in.h (pipe2): If the function is already present,
27228         override it.
27229         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27230         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27231         Reported by Paolo Bonzini.
27232
27233 2009-08-23  Bruno Haible  <bruno@clisp.org>
27234
27235         * lib/pipe2.c (pipe2): Move #ifs inside function.
27236
27237 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27238
27239         quotearg: document limitations of quote_these_too
27240         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27241         those limitations are created.
27242         * lib/quotearg.h (set_char_quoting): Document that digits and
27243         letters that are special after backslash are not permitted.
27244         (quotearg_char): Cross-reference set_char_quoting documentation.
27245
27246 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27247
27248         quotearg: implement custom_quoting_style
27249         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27250         right_quote fields.
27251         (set_custom_quoting): New public function.
27252         (quotearg_buffer_restyled): Add left_quote and right_quote
27253         arguments, handle them very much like locale quoting, and update
27254         all uses.
27255         (quotearg_n_custom): New public function.
27256         (quotearg_n_custom_mem): New public function.
27257         (quotearg_custom): New public function.
27258         (quotearg_custom_mem): New public function.
27259         * lib/quotearg.h: Prototype and document new public functions.
27260         (enum quoting_style): For escape_quoting_style and
27261         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27262         ignored even though they're otherwise like c_quoting_style.
27263         Add custom_quoting_style member and document with comparison to
27264         clocale_quoting_style.
27265         * tests/test-quotearg.c (custom_quotes): New array.
27266         (custom_results): New array.
27267         (main): Extend to test custom quoting.
27268
27269 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27270
27271         quotearg: fix right quote escaping when it's in quote_these_too
27272         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
27273         quote, be sure to prepend only one backslash.
27274         * tests/test-quotearg.c (use_quote_double_quotes): New function.
27275         (main): Test it.
27276
27277 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27278
27279         quotearg-tests: test escaping of embedded locale quotes
27280         * tests/test-quotearg.c (struct result_strings): Add member for
27281         new input.
27282         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
27283         (inputs): Add new input.
27284         (results_g): Add expected results.
27285         (flag_results): Likewise.
27286         (locale_results): Likewise.
27287         (compare_strings): Check those.
27288
27289 2009-08-23  Bruno Haible  <bruno@clisp.org>
27290
27291         Tests for module 'dup3'.
27292         * modules/dup3-tests: New file.
27293         * tests/test-dup3.c: New file.
27294
27295         New module 'dup3'.
27296         * lib/unistd.in.h (dup3): New declaration.
27297         * lib/dup3.c: New file.
27298         * m4/dup3.m4: New file.
27299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
27300         HAVE_DUP3.
27301         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
27302         * modules/dup3: New file.
27303         * doc/glibc-functions/dup3.texi: Mention the new module.
27304
27305 2009-08-23  Bruno Haible  <bruno@clisp.org>
27306
27307         Tweak the dup2 test.
27308         * tests/test-dup2.c (main): Create the test file empty. Verify that an
27309         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
27310         the test file is still empty. Fix argument order of lseek.
27311
27312 2009-08-23  Bruno Haible  <bruno@clisp.org>
27313
27314         Avoid test link errors when the modules getopt-gnu, gettext are used.
27315         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27316         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27317
27318 2009-08-23  Bruno Haible  <bruno@clisp.org>
27319
27320         Fix getdtablesize() on mingw.
27321         * lib/getdtablesize.c (getdtablesize): Implement differently.
27322         * lib/unistd.in.h (getdtablesize): Improve comment.
27323
27324 2009-08-23  Bruno Haible  <bruno@clisp.org>
27325
27326         New module 'mkostemp'.
27327         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27328         * lib/stdlib.in.h (mksotemp): New declaration.
27329         * lib/mkostemp.c: New file, from glibc with modifications.
27330         * lib/tempname.h (GT_FILE): Remove outdated comment.
27331         (gen_tempname): Add flags argument.
27332         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27333         (__GT_FILE): Map to 1.
27334         (small_open, large_open): Remove macros.
27335         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27336         * lib/mkstemp.c (mkstemp): Update.
27337         * lib/mkdtemp.c (mkdtemp): Likewise.
27338         * m4/mkostemp.m4: New file.
27339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27340         HAVE_MKOSTEMP.
27341         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27342         HAVE_MKOSTEMP.
27343         * modules/mkostemp: New file, based on modules/mkstemp.
27344         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27345         * NEWS: Mention the change.
27346
27347 2009-08-23  Bruno Haible  <bruno@clisp.org>
27348
27349         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27350         Reported by Eric Blake.
27351
27352 2009-08-23  Bruno Haible  <bruno@clisp.org>
27353
27354         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27355         Reported by Eric Blake.
27356
27357 2009-08-23  Bruno Haible  <bruno@clisp.org>
27358
27359         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27360         * modules/pipe2 (Depends-on): Likewise.
27361
27362 2009-08-23  Eric Blake  <ebb9@byu.net>
27363
27364         fcntl-h: add O_TTY_INIT support
27365         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27366         * tests/test-fcntl-h.c (o): Test it.
27367         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27368
27369         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27370         * modules/fcntl: Move <fcntl.h> header replacement...
27371         * modules/fcntl-h: ...to new name, so as not to collide with
27372         like-named function.
27373         * tests/test-fcntl.c: Rename...
27374         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27375         * modules/fcntl-tests: Rename...
27376         * modules/fcntl-h-tests: ...to this.  Update test file name.
27377         * modules/chdir-long (Depends-on): Update clients.
27378         * modules/chdir-safer (Depends-on): Likewise.
27379         * modules/fcntl-safer (Depends-on): Likewise.
27380         * modules/fts (Depends-on): Likewise.
27381         * modules/mkancesdirs (Depends-on): Likewise.
27382         * modules/mkdir-p (Depends-on): Likewise.
27383         * modules/open (Depends-on): Likewise.
27384         * modules/savewd (Depends-on): Likewise.
27385         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27386         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27387
27388 2009-08-22  Bruno Haible  <bruno@clisp.org>
27389
27390         * modules/binary-io (License): Relicense under LGPL.
27391         * modules/pipe2 (License): Likewise.
27392
27393 2009-08-22  Bruno Haible  <bruno@clisp.org>
27394
27395         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27396         return value.
27397         * lib/pipe-filter-gi.c (filter_init): Likewise.
27398         Reported by Eric Blake.
27399
27400 2009-08-22  Bruno Haible  <bruno@clisp.org>
27401
27402         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27403         * modules/pipe (Depends-on): Add pipe2.
27404
27405 2009-08-22  Bruno Haible  <bruno@clisp.org>
27406
27407         Tests for module 'pipe2'.
27408         * modules/pipe2-tests: New file.
27409         * tests/test-pipe2.c: New file.
27410
27411         New module 'pipe2'.
27412         * lib/unistd.in.h (pipe2): New declaration.
27413         * lib/pipe2.c: New file.
27414         * m4/pipe2.m4: New file.
27415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27416         HAVE_PIPE2.
27417         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27418         * modules/pipe2: New file.
27419         * doc/glibc-functions/pipe2.texi: Mention the new module.
27420
27421 2009-08-22  Bruno Haible  <bruno@clisp.org>
27422
27423         Reference some new glibc functions.
27424         * doc/glibc-functions/accept4.texi: New file.
27425         * doc/glibc-functions/dup3.texi: New file.
27426         * doc/glibc-functions/mkostemp.texi: New file.
27427         * doc/glibc-functions/pipe2.texi: New file.
27428         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27429         (Glibc sys/socket.h): Refer to accept4.
27430         (Glibc unistd.h): Refer to dup3, pipe2.
27431         Reported by Eric Blake.
27432
27433 2009-08-22  Jim Meyering  <meyering@redhat.com>
27434             Bruno Haible  <bruno@clisp.org>
27435
27436         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27437         This makes it so packages using automake-1.11's silent-rules option
27438         can print e.g., a single "GEN    configmake.h" line, rather than
27439         the 30+ statements that perform the job.  If you want to see the
27440         actual commands, you can still run "make V=1".
27441         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27442         so that make output is abbreviated when those variables are defined
27443         appropriately.
27444         * modules/argz: Likewise.
27445         * modules/arpa_inet: Likewise.
27446         * modules/byteswap: Likewise.
27447         * modules/configmake: Likewise.
27448         * modules/dirent: Likewise.
27449         * modules/errno: Likewise.
27450         * modules/fcntl: Likewise.
27451         * modules/float: Likewise.
27452         * modules/fnmatch: Likewise.
27453         * modules/getopt-posix: Likewise.
27454         * modules/glob: Likewise.
27455         * modules/iconv_open: Likewise.
27456         * modules/inttypes: Likewise.
27457         * modules/localcharset: Likewise.
27458         * modules/locale: Likewise.
27459         * modules/math: Likewise.
27460         * modules/netdb: Likewise.
27461         * modules/netinet_in: Likewise.
27462         * modules/poll: Likewise.
27463         * modules/posix_spawnp-tests: Likewise.
27464         * modules/sched: Likewise.
27465         * modules/search: Likewise.
27466         * modules/selinux-h: Likewise.
27467         * modules/signal: Likewise.
27468         * modules/spawn: Likewise.
27469         * modules/stdarg: Likewise.
27470         * modules/stdbool: Likewise.
27471         * modules/stddef: Likewise.
27472         * modules/stdint: Likewise.
27473         * modules/stdio: Likewise.
27474         * modules/stdlib: Likewise.
27475         * modules/string: Likewise.
27476         * modules/strings: Likewise.
27477         * modules/sys_file: Likewise.
27478         * modules/sys_ioctl: Likewise.
27479         * modules/sys_select: Likewise.
27480         * modules/sys_socket: Likewise.
27481         * modules/sys_stat: Likewise.
27482         * modules/sys_time: Likewise.
27483         * modules/sys_times: Likewise.
27484         * modules/sys_utsname: Likewise.
27485         * modules/sys_wait: Likewise.
27486         * modules/sysexits: Likewise.
27487         * modules/time: Likewise.
27488         * modules/unistd: Likewise.
27489         * modules/wchar: Likewise.
27490         * modules/wctype: Likewise.
27491
27492 2009-08-22  Jim Meyering  <meyering@redhat.com>
27493
27494         announce-gen: detect write failure
27495         * build-aux/announce-gen: Add Coda at end.
27496         Remove equivalent-but-more-verbose block at top.
27497
27498 2009-08-19  Akim Demaille  <demaille@gostai.com>
27499
27500         bootstrap: --help to stdout.
27501         * bootstrap (usage): Don't send --help to stderr.
27502         Use a here doc instead of a long string.
27503
27504 2009-08-21  Eric Blake  <ebb9@byu.net>
27505
27506         test-popen-safer: split from test-popen
27507         * tests/test-popen.c (main): Move...
27508         * tests/test-popen.h: ...into new file.
27509         * tests/test-popen-safer2.c: New file.
27510         * modules/popen-tests (Files): Add test-popen.h.
27511         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
27512         Suggested by Bruno Haible.
27513
27514         test-fcntl-safer: split from test-open
27515         * tests/test-open.c (main): Move...
27516         * tests/test-open.h: ...into new file.
27517         * tests/test-fcntl-safer.c: New file.
27518         * modules/open-tests (Files): Add test-open.h.
27519         * modules/fcntl-safer-tests: New file.
27520         Suggested by Bruno Haible.
27521
27522         test-fopen-safer: split from test-fopen
27523         * tests/test-fopen.c (main): Move...
27524         * tests/test-fopen.h: ...into new file.
27525         * tests/test-fopen-safer.c: New file.
27526         * modules/fopen-tests (Files): Add test-fopen.h.
27527         * modules/fopen-safer-tests: New file.
27528         Suggested by Bruno Haible.
27529
27530 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27531
27532         popen-safer: test O_CLOEXEC at run-time.
27533         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
27534
27535 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27536
27537         fcntl: move more flags to the header
27538         * lib/cloexec.c: Do not define FD_CLOEXEC here.
27539         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
27540         * lib/fcntl.in.h: Do both things here.
27541
27542 2009-08-21  Jim Meyering  <meyering@redhat.com>
27543
27544         consistently remove $@-t before redirecting to it
27545         * modules/argz: Remove $@-t and $@ before redirecting to the former.
27546         * modules/alloca-opt: Likewise.
27547         * modules/byteswap: Likewise.
27548         * modules/fnmatch: Likewise.
27549         * modules/getopt-posix: Likewise.
27550         * modules/glob: Likewise.
27551         * modules/poll: Likewise.
27552         * modules/posix_spawnp-tests: Likewise.
27553         * modules/sys_socket: Likewise.
27554         * modules/sysexits: Likewise.
27555
27556 2009-08-21  Eric Blake  <ebb9@byu.net>
27557
27558         popen: simplify access to original popen
27559         * lib/popen.c (rpl_popen): No need to worry about popen being a
27560         macro.
27561         Reported by Bruno Haible.
27562
27563 2009-08-20  Eric Blake  <ebb9@byu.net>
27564
27565         build: avoid some compiler warnings
27566         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
27567         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
27568         type.
27569         (new_exclude_segment, excluded_file_pattern_p)
27570         (excluded_file_name_p): Reduce scope.
27571         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
27572         old-style declaration.
27573
27574 2009-08-20  Simon Josefsson  <simon@josefsson.org>
27575
27576         * tests/test-exclude1.sh: Handle Windows EOL.
27577         * tests/test-exclude2.sh: Likewise.
27578         * tests/test-exclude3.sh: Likewise.
27579         * tests/test-exclude4.sh: Likewise.
27580         * tests/test-exclude5.sh: Likewise.
27581         * tests/test-exclude6.sh: Likewise.
27582         * tests/test-exclude7.sh: Likewise.
27583
27584 2009-08-19  Akim Demaille  <demaille@gostai.com>
27585
27586         bootstrap: find sha1sum when named gsha1sum.
27587         * bootstrap (find_tool): New.
27588         ($SHA1SUM): New.
27589         Use it.
27590
27591 2009-08-20  Jim Meyering  <meyering@redhat.com>
27592
27593         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
27594         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
27595         expression that converts "." in a file name to "\." in the resulting
27596         regexp.  Start with a dummy statement, so that prior shell variable
27597         definitions are expanded portably.  Reported by Simon Josefsson.
27598
27599 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
27600
27601         Fix polling for writeability of a screen buffer.
27602         * lib/poll.c: Distinguish input and screen buffers for the
27603         Win32 implementation.
27604         * lib/select.c: Likewise.
27605
27606 2009-08-19  Eric Blake  <ebb9@byu.net>
27607
27608         popen-safer: prevent popen from clobbering std descriptors
27609         * modules/popen-safer: New file.
27610         * lib/popen-safer.c: Likewise.
27611         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
27612         * lib/stdio--.h (popen): Provide override.
27613         * lib/stdio-safer.h (popen_safer): Provide declaration.
27614         * tests/test-popen.c (includes): Partially test this.
27615         * modules/popen-safer-tests: New file, for more tests.
27616         * tests/test-popen-safer.c: Likewise.
27617         * MODULES.html.sh (file stream based Input/Output): Mention it.
27618
27619         tests: test some of the *-safer modules
27620         * modules/fopen-safer (Depends-on): Add fopen.
27621         * modules/fcntl-safer (Depends-on): Add fcntl.
27622         * modules/stdlib-safer (Depends-on): Add stdlib.
27623         (configure.ac): Set indicator.
27624         * modules/unistd-safer (configure.ac): Likewise.
27625         * modules/tmpfile-safer (configure.ac): Likewise.
27626         (Depends-on): Add tmpfile.
27627         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
27628         active.
27629         * tests/test-fopen.c (includes): Test safer versions when they are
27630         in use.
27631         * tests/test-open.c (includes): Likewise.
27632
27633         popen: fix cygwin 1.5 bug when stdin closed
27634         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
27635         * modules/popen: New file.
27636         * modules/popen-tests: Likewise.
27637         * tests/test-popen.c: Likewise.
27638         * m4/popen.m4: Likewise.
27639         * lib/popen.c: Likewise.
27640         * lib/stdio.in.h (popen): New declaration.
27641         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
27642         * modules/stdio (Makefile.am): Likewise.
27643         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
27644
27645 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
27646
27647         maint.mk: give full control over update-copyright exclusions
27648         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
27649         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
27650         (update-copyright): Don't force inclusion of top-level
27651         ChangeLog.  Don't force exclusion of all COPYING files, but make
27652         them the default exclusion instead.
27653
27654 2009-08-16  Bruno Haible  <bruno@clisp.org>
27655
27656         Fix test failures on Solaris 10.
27657         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
27658         tests when Solaris iconv() is used.
27659         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
27660         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
27661         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
27662         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
27663         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
27664
27665 2009-08-16  Bruno Haible  <bruno@clisp.org>
27666
27667         Fix test failures on Solaris 10.
27668         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
27669         'tr' program and pass it as first argument.
27670         * tests/test-pipe-filter-gi1.sh: Likewise.
27671         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
27672         program as first argument.
27673         * tests/test-pipe-filter-gi1.c (main): Likewise.
27674
27675 2009-08-16  Eric Blake  <ebb9@byu.net>
27676
27677         fpurge: fix previous commits
27678         * modules/fpurge (Makefile.am): Make replacement conditional,
27679         partially reverting 2007-04-29 change; missed in previous
27680         attempt.
27681         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
27682         is missing.
27683
27684 2009-08-16  Bruno Haible  <bruno@clisp.org>
27685
27686         Clarify fpurge's effect on the file position.
27687         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
27688         * tests/test-fpurge.c (main): Make a second pass for checking the file
27689         position.
27690
27691 2009-08-16  Bruno Haible  <bruno@clisp.org>
27692
27693         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
27694         declaration of fpurge is missing.
27695         * tests/test-fpurge.c (main): Check that the file has not more contents
27696         than expected. Close the file before removing it.
27697
27698 2009-08-15  Eric Blake  <ebb9@byu.net>
27699
27700         fpurge: don't wrap working cygwin implementation
27701         * lib/fpurge.c (fpurge): Fix comment typo.
27702         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
27703         1.7 to avoid replacement.
27704         * tests/test-fpurge.c (main): Enhance test.
27705
27706 2009-08-15  Eric Blake  <ebb9@byu.net>
27707         and Jim Meyering  <meyering@redhat.com>
27708
27709         test-update-copyright: skip if perl is insufficient
27710         * tests/test-update-copyright.sh: Failure to run maintainer tool
27711         should not cause testsuite failure on cygwin 1.5.
27712
27713 2009-08-14  Eric Blake  <ebb9@byu.net>
27714
27715         doc: mention more functions added in cygwin 1.7.0
27716         * doc/posix-headers/limits.texi (limits.h): Update for recent
27717         cygwin additions.
27718         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
27719         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
27720         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
27721         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
27722         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
27723
27724 2009-08-14  Eric Blake  <ebb9@byu.net>
27725
27726         maint.mk: simplify update-copyright rule
27727         * top/maint.mk (update-copyright-local): Delete, and document how
27728         to do it in cfg.mk instead.
27729         (update-copyright-exclude-regexp): Delete, and document how to do
27730         it in .x-update-copyright instead.
27731         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
27732         exclude ChangeLog.
27733
27734 2009-08-14  Bruno Haible  <bruno@clisp.org>
27735
27736         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
27737
27738 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27739
27740         maint.mk: support update-copyright-env
27741         * top/maint.mk (update-copyright-env): Define place-holder.
27742         (update-copyright): Expand $(update-copyright-env) before
27743         invoking update-copyright.
27744
27745 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27746
27747         update-copyright: implement forced reformatting
27748         * build-aux/update-copyright: Implement and document
27749         UPDATE_COPYRIGHT_FORCE.
27750         * tests/test-update-copyright.sh: Test it.
27751
27752 2009-08-14  Eric Blake  <ebb9@byu.net>
27753         and Bruno Haible  <bruno@clisp.org>
27754
27755         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
27756         * tests/test-locale.c: Revert previous patch related to NULL.
27757         * tests/test-stdio.c: Likewise.
27758         * tests/test-stdlib.c: Likewise.
27759         * tests/test-string.c: Likewise.
27760         * tests/test-unistd.c: Likewise.
27761         * modules/time-tests (Depends-on): Add verify.
27762         * modules/wchar-tests (Depends-on): Likewise.
27763         * tests/test-time.c: Test for NULL compliance.
27764         * tests/test-wchar.c: Likewise.
27765         * modules/locale (Depends-on): Add stddef.
27766         * modules/stdio (Depends-on): Likewise.
27767         * modules/stdlib (Depends-on): Likewise.
27768         * modules/string (Depends-on): Likewise.
27769         * modules/time (Depends-on): Likewise.
27770         * modules/unistd (Depends-on): Likewise.
27771         * modules/wchar (Depends-on): Likewise.
27772         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
27773         * lib/stdlib.in.h (includes): Likewise.
27774         * lib/string.in.h (includes): Likewise.
27775         * lib/time.in.h (includes): Likewise.
27776         * lib/unistd.in.h (includes): Likewise.
27777         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
27778         replaced.
27779         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27780         * m4/stddef_h.m4: New file.
27781         * modules/stddef: Likewise.
27782         * lib/stddef.in.h: Likewise.
27783         * modules/stddef-tests: Likewise.
27784         * tests/test-stddef.c: Likewise.
27785         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
27786         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
27787         * doc/posix-headers/locale.texi (locale.h): Likewise.
27788         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
27789         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27790         * doc/posix-headers/string.texi (string.h): Likewise.
27791         * doc/posix-headers/time.texi (time.h): Likewise.
27792         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
27793         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
27794
27795 2009-08-14  Eric Blake  <ebb9@byu.net>
27796
27797         doc: improve git diff of texinfo files
27798         * .gitattributes: Add rule for *.texi files, with hint on how to
27799         use it.
27800         Copied from m4, and based on a report by Bruno Haible.
27801
27802 2009-08-14  Bruno Haible  <bruno@clisp.org>
27803
27804         Disable multithread support by default on Cygwin 1.5.x for real.
27805         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
27806
27807 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27808
27809         update-copyright: much ado about intervals
27810         * build-aux/update-copyright: Implement and document
27811         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
27812         of copyright year intervals.
27813         Also, document UPDATE_COPYRIGHT_YEAR.
27814         * tests/test-update-copyright.sh: Test it.
27815
27816         update-copyright: convert 2-digit to 4-digit years
27817         * build-aux/update-copyright: Implement and document.
27818         * tests/test-update-copyright.sh: Update.
27819
27820 2009-08-14  Jim Meyering  <meyering@redhat.com>
27821
27822         test-exclude: avoid coreutils "make check" failure
27823         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
27824         just as in test-argmatch.c.
27825
27826 2009-08-13  Eric Blake  <ebb9@byu.net>
27827
27828         test-dup2: fix bad assumption
27829         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
27830         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
27831
27832         test-version-etc: fix CRLF portability issue
27833         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
27834         recognize \r.
27835         * tests/test-argp-version-etc-1.sh: Likewise.
27836
27837         getopt: update client modules
27838         * modules/argp (Depends-on): Use getopt-gnu.
27839         * modules/git-merge-changelog (Depends-on): Likewise.
27840         * modules/long-options (Depends-on): Likewise.
27841         * modules/xstrtol (Depends-on): Likewise.
27842
27843 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27844
27845         * tests/test-version-etc.sh: Don't fail on different
27846         project/version.  Don't fail on CRLF differences.  Rewrite to use
27847         multiple -e instead of multiple sed forks, suggested by Eric Blake
27848         <ebb9@byu.net>.
27849         * tests/test-argp-version-etc-1.sh: Likewise.
27850
27851 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27852
27853         * tests/test-version-etc.sh: Don't fail on different
27854         project/version.
27855
27856 2009-08-12  Bruno Haible  <bruno@clisp.org>
27857
27858         Tests for modules 'getopt-posix', 'getopt-gnu'.
27859         * modules/getopt-posix-tests: New file.
27860         * tests/test-getopt.c: New file.
27861         * tests/test-getopt.h: New file.
27862         * tests/test-getopt_long.h: New file.
27863
27864         New modules 'getopt-posix', 'getopt-gnu'.
27865         * modules/getopt-gnu: New file, renamed from modules/getopt.
27866         * modules/getopt-posix: New file.
27867         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
27868         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
27869         (gl_GETOPT): Remove macro.
27870         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
27871         Disable the test against BSD systems that declare optreset. Test
27872         against mingw bug. Test against lack of support of optional arguments
27873         on many platforms.
27874         * doc/glibc-headers/getopt.texi: Update module name and list of
27875         relevant platforms.
27876         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
27877         'getopt-gnu' and more portability problems.
27878         * NEWS: Mention the changes.
27879
27880 2009-08-12  Bruno Haible  <bruno@clisp.org>
27881
27882         Ensure that optarg etc. get declared by <unistd.h>.
27883         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
27884         AC_USE_SYSTEM_EXTENSIONS.
27885         * modules/getopt (Depends-on): Add 'extensions'.
27886
27887 2009-08-12  Bruno Haible  <bruno@clisp.org>
27888
27889         Avoid test link errors.
27890         * modules/pipe-filter-ii-tests (Makefile.am): Define
27891         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
27892         * modules/pipe-filter-gi-tests (Makefile.am): Define
27893         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
27894         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27895
27896 2009-08-12  Bruno Haible  <bruno@clisp.org>
27897
27898         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
27899         gl_GETOPT_SUBSTITUTE before.
27900         (gl_GETOPT): Use it.
27901         * m4/argp.m4 (gl_ARGP): Update.
27902         Reported by Sergey Poznyakoff.
27903
27904         * m4/getopt.m4: Reorder macros.
27905         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
27906         (gl_GETOPT_SUBSTITUTE): Remove macro.
27907
27908 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27909
27910         Minor improvement in gitlog-to-changelog
27911
27912         * build-aux/gitlog-to-changelog: New option `--format' makes
27913         output format string configurable.
27914
27915 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27916
27917         Optimize exclude: use hash tables for non-wildcard patterns.
27918
27919         * lib/exclude.c: Include hash.h and mbuiter.h
27920         (struct exclude_pattern, exclude_segment): New data types.
27921         (struct exclude): Rewrite.
27922         (fnmatch_pattern_has_wildcards): New function.
27923         (new_exclude_segment, free_exclude_segment): New functions.
27924         (excluded_file_pattern_p, excluded_file_name_p): New functions.
27925         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
27926         * lib/exclude.h (is_fnmatch_pattern): New prototype.
27927         * modules/exclude: Depend on hash and mbuiter.
27928
27929         * modules/exclude-tests: New file.
27930         * tests/test-exclude.c: New file.
27931         * tests/test-exclude1.sh: New file.
27932         * tests/test-exclude2.sh: New file.
27933         * tests/test-exclude3.sh: New file.
27934         * tests/test-exclude4.sh: New file.
27935         * tests/test-exclude5.sh: New file.
27936         * tests/test-exclude6.sh: New file.
27937         * tests/test-exclude7.sh: New file.
27938
27939 2009-08-12  Bruno Haible  <bruno@clisp.org>
27940
27941         Ensure that getopt() gets declared by <unistd.h>.
27942         * lib/unistd.in.h: Conditionally include getopt.h.
27943         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
27944         Set GNULIB_UNISTD_H_GETOPT.
27945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27946         GNULIB_UNISTD_H_GETOPT.
27947         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
27948
27949 2009-08-12  Bruno Haible  <bruno@clisp.org>
27950
27951         Clarify logic.
27952         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
27953         gl_replace_getopt instead of GETOPT_H.
27954
27955 2009-08-12  Bruno Haible  <bruno@clisp.org>
27956
27957         * m4/getopt.m4: Add comments.
27958
27959 2009-08-12  Bruno Haible  <bruno@clisp.org>
27960
27961         Disable multithread support by default on Cygwin 1.5.x.
27962         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
27963         set gl_use_threads=no if not specified otherwise.
27964
27965 2009-08-11  Bruno Haible  <bruno@clisp.org>
27966
27967         Avoid compilation error on NetBSD 5.0.
27968         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
27969         * tests/test-stdio.c: Likewise.
27970         * tests/test-stdlib.c: Likewise.
27971         * tests/test-string.c: Likewise.
27972         * tests/test-unistd.c: Likewise.
27973         Reported by Greg Troxel <gdt@ir.bbn.com>
27974         at <https://savannah.gnu.org/support/?106973>.
27975
27976 2009-08-11  Bruno Haible  <bruno@clisp.org>
27977
27978         * modules/dup2-tests (Depends-on): Remove close.
27979
27980         Undo 2009-07-19 commit.
27981         * modules/acl-tests (Depends-on): Remove close.
27982         * modules/binary-io-tests (Depends-on): Likewise.
27983         * modules/closein-tests (Depends-on): Likewise.
27984         * modules/flock-tests (Depends-on): Likewise.
27985         * modules/fsync-tests (Depends-on): Likewise.
27986         * modules/lseek-tests (Depends-on): Likewise.
27987         * modules/pipe-tests (Depends-on): Likewise.
27988         * modules/posix_spawn-tests (Depends-on): Likewise.
27989         * modules/posix_spawnp-tests (Depends-on): Likewise.
27990         * modules/stat-time-tests (Depends-on): Likewise.
27991         * modules/yesno-tests (Depends-on): Likewise.
27992
27993 2009-08-10  Bruno Haible  <bruno@clisp.org>
27994
27995         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
27996
27997 2009-08-10  Bruno Haible  <bruno@clisp.org>
27998
27999         Fix a gcc warning.
28000         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
28001
28002 2009-08-10  Bruno Haible  <bruno@clisp.org>
28003
28004         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
28005         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
28006         not only the first time.
28007         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
28008         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
28009         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
28010         is 1, not only the the first time.
28011
28012 2009-08-10  Bruno Haible  <bruno@clisp.org>
28013
28014         Make it possible to use module 'gethostname' without module 'close'.
28015         * lib/unistd.in.h (close): Evoke a link error only if
28016         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28018         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28019         * modules/unistd (Makefile.am): Substitute
28020         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28021         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
28022         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28023         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28024         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28025         * modules/sys_ioctl (Makefile.am): Substitute
28026         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28027         * modules/socket (configure.ac): On native Windows, set
28028         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
28029         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28030         Reported by Sam Steingold <sds@gnu.org>.
28031
28032 2009-08-10  Bruno Haible  <bruno@clisp.org>
28033
28034         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
28035         * modules/ioctl (configure.ac): Likewise.
28036
28037 2009-08-10  Bruno Haible  <bruno@clisp.org>
28038
28039         Avoid collision between gnulib wrapper and libintl wrapper.
28040         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
28041         already defined in intl/printf.c.
28042         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
28043         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
28044
28045 2009-08-09  Bruno Haible  <bruno@clisp.org>
28046
28047         Make <sys/select.h> really self-contained, also on Solaris 10.
28048         * lib/sys_select.in.h: Include <string.h>.
28049         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
28050         Solaris 10 problem.
28051         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
28052         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
28053         Reported by Jim Meyering.
28054
28055 2009-08-09  Bruno Haible  <bruno@clisp.org>
28056
28057         Avoid warnings from 'aclocal' that are due to a use of macro name
28058         AM_XGETTEXT_OPTION that is not defined in automake.
28059         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
28060         automake.
28061         * modules/error (configure.ac): Likewise.
28062         * modules/propername (configure.ac): Likewise.
28063         * modules/vasprintf (configure.ac): Likewise.
28064         * modules/verror (configure.ac): Likewise.
28065         * modules/xprintf (configure.ac): Likewise.
28066         * modules/xvasprintf (configure.ac): Likewise.
28067
28068 2009-08-08  Bruno Haible  <bruno@clisp.org>
28069
28070         Avoid compilation error in C++ mode.
28071         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
28072         Reported by Sam Steingold <sds@gnu.org>.
28073
28074 2009-08-08  Bruno Haible  <bruno@clisp.org>
28075
28076         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
28077         for the various Unix platforms.
28078         * doc/posix-headers/limits.texi: Update platforms list regarding
28079         HOST_NAME_MAX.
28080         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28081
28082 2009-08-07  Jim Meyering  <meyering@redhat.com>
28083
28084         selinux-at: fix typo in a comment
28085         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
28086         Spotted by Paolo Bonzini.
28087
28088         selinux-at: remove redundant m4 code, add documentation
28089         * modules/selinux-at (configure.ac): Remove redundant code.
28090         LIB_SELINUX is already set via the dependent module, selinux-h.
28091         (Include): Add quotes around selinux-at.h.
28092         * lib/selinux-at.h: Add documentation.
28093         Reported by Bruno Haible in
28094         http://marc.info/?l=gnulib-bug&m=124958988300749
28095
28096 2009-08-07  Bruno Haible  <bruno@clisp.org>
28097
28098         Avoid link error on MacOS X 10.3 and 10.4.
28099         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
28100         on non-ELF systems.
28101         * lib/argp-pv.c (argp_program_version): Likewise.
28102         Reported by Simon Josefsson.
28103
28104 2009-08-07  Simon Josefsson  <simon@josefsson.org>
28105
28106         * tests/test-version-etc.sh: Use $EXEEXT.
28107
28108 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
28109
28110         update-copyright: update documentation to point to maint.mk
28111         * build-aux/update-copyright: Here.
28112
28113 2009-08-06  Jim Meyering  <meyering@redhat.com>
28114
28115         maint.mk: support update-copyright-local
28116         * top/maint.mk (update-copyright-local): Define place-holder.
28117         (update-copyright): Depend on $(update-copyright-local).
28118
28119 2009-08-06  Jim Meyering  <meyering@redhat.com>
28120
28121         selinux-at: new module
28122         Initially written for coreutils, this module will soon be
28123         used by findutils, too.
28124         * MODULES.html.sh [Misc]: Add selinux-at.
28125         * lib/selinux-at.h: New file, from coreutils.
28126         * lib/selinux-at.c: Likewise.
28127         * modules/selinux-at: Likewise.
28128         (License): Change from LGPL to GPL, since it depends
28129         on the GPL'd openat module.
28130
28131         doc: update README
28132         * README: Remove references to cogito.
28133         Remove cvs-repo-updating instructions from 2007.
28134         Don't imply that CVS is better if you have limited disk space.
28135
28136 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28137
28138         update-copyright: support C-style comments
28139         * build-aux/update-copyright: Implement and document.
28140         * tests/test-update-copyright.sh: Test.
28141
28142 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28143
28144         update-copyright: support omitted "(C)"
28145         * build-aux/update-copyright: Implement and document.  Also,
28146         allow variable whitespace before "(C)".
28147         * tests/test-update-copyright.sh: Test.
28148
28149 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28150
28151         update-copyright: don't trip on non-FSF copyright statements
28152         * build-aux/update-copyright: Fix so that the first correctly
28153         formatted FSF copyright statement is recognized no matter what
28154         appears before it.  Update documentation.
28155         * tests/test-update-copyright.sh: Test that.
28156
28157 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28158
28159         update-copyright: clean up code a little
28160         * build-aux/update-copyright: Append "_re" to the name of any
28161         variable holding a regular expression.
28162         Replace "old" and "new" with "stmt" in variable names.
28163         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
28164         handled correctly.
28165         Format code more consistently.
28166
28167 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28168
28169         update-copyright-tests: improve portability
28170         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
28171         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
28172
28173 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28174
28175         update-copyright: support @copyright{} and &copy;
28176         * build-aux/update-copyright: Implement and document.
28177         * tests/test-update-copyright.sh: Test.
28178
28179 2009-08-04  Jim Meyering  <meyering@redhat.com>
28180
28181         update-copyright-tests: correctly test EOL=\r\n handling
28182         * tests/test-update-copyright.sh: Put \r at the end of some lines
28183         for the dos-eol tests.  Based on a patch by Joel E. Denny.
28184
28185         maint.mk: make update-copyright exclusion list more configurable
28186         * top/maint.mk (update-copyright): Default to excluding COPYING,
28187         but allow an override, in case someone does want to update that file.
28188
28189         maint.mk: don't update copyright date in COPYING
28190         * top/maint.mk (update-copyright): Exclude COPYING.
28191
28192         maint.mk: add a copyright-updating rule
28193         * top/maint.mk (update-copyright): New rule.
28194         Derived from coreutils/Makefile.am.
28195
28196         update-copyright: rename some variables
28197         * build-aux/update-copyright: Rename a few variables for clarity.
28198         Tweak syntax.  List Joel E. Denny as coauthor.
28199
28200 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28201
28202         update-copyright: fix bug for 2-digit last year and add tests
28203         * build-aux/update-copyright: Fix bug.
28204         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28205         specified.
28206         * modules/update-copyright-tests: New
28207         * tests/test-update-copyright.sh: New.
28208
28209 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28210
28211         update-copyright: handle leading tabs in line prefix
28212         * build-aux/update-copyright: Count leading tabs as 8 spaces
28213         when computing margin.  This helps with the formatting of
28214         ChangeLogs, for example.
28215         Fix documentation a little.
28216
28217 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28218
28219         update-copyright: support EOL=\r\n
28220         * build-aux/update-copyright: Implement that.
28221
28222 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28223
28224         update-copyright: automatically format copyright statements
28225         * build-aux/update-copyright: Implement that.
28226         Also, be a little more predictable and safer by always failing
28227         when the full copyright format is not perfectly recognized as an
28228         unbroken whole.  Discussed at
28229         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28230         Rewrite documentation.
28231
28232 2009-08-03  Bruno Haible  <bruno@clisp.org>
28233
28234         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28235
28236 2009-08-02  Bruno Haible  <bruno@clisp.org>
28237
28238         Tests for module 'uname'.
28239         * modules/uname-tests: New file.
28240         * tests/test-uname.c: New file.
28241
28242         New module 'uname'.
28243         * lib/uname.c: New file.
28244         * m4/uname.m4: New file.
28245         * modules/uname: New file.
28246         * doc/posix-functions/uname.texi: Mention the new module.
28247
28248 2009-08-02  Bruno Haible  <bruno@clisp.org>
28249
28250         Tests for module 'sys_utsname'.
28251         * modules/sys_utsname-tests: New file.
28252         * tests/test-sys_utsname.c: New file.
28253
28254         New module 'sys_utsname'.
28255         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28256         * m4/sys_utsname_h.m4: New file.
28257         * modules/sys_utsname: New file.
28258         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28259
28260 2009-08-02  Bruno Haible  <bruno@clisp.org>
28261
28262         Implicitly initialize the sockets library.
28263         * lib/gethostname.c: Include sockets.h.
28264         (rpl_gethostname): Invoke gl_sockets_startup.
28265         * lib/socket.c: Include sockets.h.
28266         (rpl_socket): Invoke gl_sockets_startup.
28267         * modules/gethostname (Depends-on): Add sockets.
28268         * modules/socket (Depends-on): Likewise.
28269         * tests/test-poll.c: Don't include sockets.h.
28270         (main): Don't invoke gl_sockets_startup.
28271         * tests/test-select.c: Don't include sockets.h.
28272         (main): Don't invoke gl_sockets_startup.
28273
28274 2009-08-02  Bruno Haible  <bruno@clisp.org>
28275
28276         Allow multiple calls to gl_sockets_startup.
28277         * lib/sockets.c (initialized_sockets_version): New variable.
28278         (gl_sockets_startup): Do nothing if already called for this or a higher
28279         version.
28280         (gl_sockets_cleanup): Reset initialized_sockets_version.
28281
28282 2009-08-03  Simon Josefsson  <simon@josefsson.org>
28283
28284         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
28285         different project/version.
28286
28287 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
28288             Bruno Haible  <bruno@clisp.org>
28289
28290         Tests for module 'pipe-filter-gi'.
28291         * modules/pipe-filter-gi-tests: New file.
28292         * tests/test-pipe-filter-gi1.sh: New file.
28293         * tests/test-pipe-filter-gi1.c: New file.
28294         * tests/test-pipe-filter-gi2.sh: New file.
28295         * tests/test-pipe-filter-gi2-main.c: New file.
28296         * tests/test-pipe-filter-gi2-child.c: New file.
28297
28298         New module 'pipe-filter-gi'.
28299         * lib/pipe-filter-gi.c: New file.
28300         * modules/pipe-filter-gi: New file.
28301
28302 2009-08-02  Bruno Haible  <bruno@clisp.org>
28303             Paolo Bonzini  <bonzini@gnu.org>
28304
28305         Tests for module 'pipe-filter-ii'.
28306         * modules/pipe-filter-ii-tests: New file.
28307         * tests/test-pipe-filter-ii1.sh: New file.
28308         * tests/test-pipe-filter-ii1.c: New file.
28309         * tests/test-pipe-filter-ii2.sh: New file.
28310         * tests/test-pipe-filter-ii2-main.c: New file.
28311         * tests/test-pipe-filter-ii2-child.c: New file.
28312
28313         New module 'pipe-filter-ii'.
28314         * lib/pipe-filter.h: New file.
28315         * lib/pipe-filter-ii.c: New file.
28316         * lib/pipe-filter-aux.h: New file.
28317         * modules/pipe-filter-ii: New file.
28318
28319 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28320
28321         * lib/gc-libgcrypt.c: Change copyright to FSF.
28322         * lib/gc-gnulib.c: Likewise.
28323
28324 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28325
28326         * lib/gethostname.c: Include limits.h.
28327
28328 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28329             Bruno Haible  <bruno@clisp.org>
28330
28331         Ensure HOST_NAME_MAX as part of the gethostname module.
28332         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28333         define also HOST_NAME_MAX.
28334         * tests/test-gethostname.c: Include <limits.h>.
28335         (main): Check also HOST_NAME_MAX.
28336         * doc/posix-headers/limits.texi: Document the mingw problem.
28337
28338 2009-08-02  Bruno Haible  <bruno@clisp.org>
28339
28340         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28341         Add comments.
28342
28343 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28344
28345         * lib/gethostname.c: Add Windows wrapper.
28346         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28347         * modules/gethostname: Depend on sys_socket & errno, for also
28348         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28349         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28350
28351 2009-07-31  Jim Meyering  <meyering@redhat.com>
28352
28353         getloadavg: fix symbol name in comment
28354         * lib/getloadavg.c: Correct a typo I introduced when adding
28355         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28356         Matt Kraai spotted the problem.
28357
28358 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28359
28360         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28361         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28362         code also if ! defined N_NAME_POINTER.
28363         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28364         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28365         but the n_name member is a 12-byte array.
28366
28367 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28368
28369         update-copyright: generalize comment handling
28370         * build-aux/update-copyright: Handle copyright statements
28371         within more comment styles.
28372         Document usage.
28373         Report any file with an external copyright holder or parse failure.
28374
28375 2009-07-29  Jim Meyering  <meyering@redhat.com>
28376
28377         mktime: correct setting of REPLACE_MKTIME
28378         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28379
28380         update-copyright: new module
28381         * modules/update-copyright: New file.
28382         * build-aux/update-copyright: New file.
28383         * MODULES.html.sh (maint+release support): Add update-copyright.
28384
28385 2009-07-27  Bruno Haible  <bruno@clisp.org>
28386
28387         Fix compilation error when <ctime> is used and mktime is replaced.
28388         * lib/time.in.h (mktime): New declaration.
28389         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28390         REPLACE_MKTIME instead of defining mktime in config.h.
28391         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28392         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28393         Reported by Ross McFarland <rwmcfa1@neces.com>.
28394
28395 2009-07-27  Bruno Haible  <bruno@clisp.org>
28396
28397         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28398         Reported by Matt Kraai <mkraai@beckman.com>.
28399
28400 2009-07-25  Jim Meyering  <meyering@redhat.com>
28401
28402         maint.mk: avoid warnings about missing files
28403         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28404         diagnostic when .prev-version does not exist.
28405         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28406         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28407         nonexistent cfg.mk.
28408         Suggestions from Simon Josefsson.
28409
28410 2009-07-25  Bruno Haible  <bruno@clisp.org>
28411
28412         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28413         defined as macros. Needed on QNX 6.4.1.
28414         Reported by Matt Kraai <mkraai@beckman.com>.
28415
28416 2009-07-23  Jim Meyering  <meyering@redhat.com>
28417
28418         maint.mk: invoke "make dist" with a working value of XZ_OPT
28419         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28420
28421 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28422
28423         Make fseeko.c compile on QNX.
28424         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28425
28426 2009-07-22  Peter Simons  <simons@cryp.to>
28427
28428         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28429         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28430         * lib/md4.h: Likewise.
28431         * lib/md5.h: Likewise.
28432         * lib/sha1.h: Likewise.
28433         * lib/sha256.h: Likewise.
28434         * lib/sha512.h: Likewise.
28435
28436         tests-sha1: don't assign literal string to 'char *' variable
28437         * tests/test-sha1.c (main): Declare locals with "const" to match
28438         attributes of the right hand side.
28439
28440 2009-07-21  Eric Blake  <ebb9@byu.net>
28441
28442         dup2: fix more mingw problems
28443         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28444         fd to itself.
28445         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28446         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28447         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28448         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28449         care of mingw bugs.
28450
28451 2009-07-21  Jim Meyering  <meyering@redhat.com>
28452
28453         vc-list-files: avoid failure when /bin/sh is dash
28454         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28455         On some Debian based systems, /bin/sh is a symlink to dash, and running
28456         this command would omit the "/" following each 'tests' prefix:
28457           dash -x build-aux/vc-list-files -C . tests
28458         That is because bash and dash work differently:
28459           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28460           bash ok
28461           dash odd
28462
28463 2009-07-21  Eric Blake  <ebb9@byu.net>
28464
28465         dup2-tests: test previous patch
28466         * modules/dup2-tests: New file.
28467         * tests/test-dup2.c: Likewise.
28468         * tests/test-open.c (main): Avoid unspecified behavior.
28469         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28470         test.
28471
28472         dup2: work around mingw and cygwin 1.5 bug
28473         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
28474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28475         * modules/unistd (Makefile.am): Substitute it.
28476         * lib/unistd.in.h (dup2): Declare the replacement.
28477         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
28478         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
28479         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
28480         * modules/execute (Depends-on): Add dup2.
28481         * modules/fseterr (Depends-on): Likewise.
28482         * modules/pipe (Depends-on): Likewise.
28483         * modules/posix_spawn-internal (Depends-on): Likewise.
28484
28485 2009-07-21  Bruno Haible  <bruno@clisp.org>
28486
28487         * modules/.gitattributes: New file.
28488
28489 2009-07-20  Bruno Haible  <bruno@clisp.org>
28490
28491         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
28492         (main): Use it.
28493
28494 2009-07-20  Eric Blake  <ebb9@byu.net>
28495
28496         test-pipe: make a bit more robust.
28497         * tests/test-pipe.c (myerr): Allow error messages regardless of
28498         what we do to stderr.
28499         (test_pipe): Rearrange to avoid deadlock.
28500         (child_main): Try a larger read, to ensure we avoided deadlock.
28501         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
28502         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
28503         if misused.
28504
28505 2009-07-19  Jim Meyering  <meyering@redhat.com>
28506
28507         fts: avoid false-positive cycle-detection
28508         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
28509         for each new command line argument.
28510
28511 2009-07-19  Bruno Haible  <bruno@clisp.org>
28512
28513         Fix build error on mingw with the modules sys_select and unistd.
28514         * modules/acl-tests (Depends-on): Add close.
28515         * modules/binary-io-tests (Depends-on): Likewise.
28516         * modules/closein-tests (Depends-on): Likewise.
28517         * modules/flock-tests (Depends-on): Likewise.
28518         * modules/fsync-tests (Depends-on): Likewise.
28519         * modules/lseek-tests (Depends-on): Likewise.
28520         * modules/pipe-tests (Depends-on): Likewise.
28521         * modules/posix_spawn-tests (Depends-on): Likewise.
28522         * modules/posix_spawnp-tests (Depends-on): Likewise.
28523         * modules/stat-time-tests (Depends-on): Likewise.
28524         * modules/yesno-tests (Depends-on): Likewise.
28525
28526 2009-07-19  Bruno Haible  <bruno@clisp.org>
28527
28528         Unify conditionals.
28529         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
28530         macros, not at the compiler macros.
28531         * lib/pipe.c: Likewise.
28532         * lib/execute.c: Likewise.
28533         * lib/spawni.c: Likewise.
28534
28535 2009-07-19  Bruno Haible  <bruno@clisp.org>
28536
28537         Fix handling of closed stdin/stdout/stderr on mingw.
28538         * lib/w32spawn.h: Include unistd.h.
28539         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
28540         file descriptor with O_NOINHERIT flag.
28541         (fd_safer_noinherit): New function, based on fd-safer.c.
28542         (dup_safer_noinherit): New function, based on dup-safer.c.
28543         (undup_safer_noinherit): New function.
28544         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
28545         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
28546         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
28547         instead of fd_safer.
28548         * tests/test-pipe.c: Include <windows.h>.
28549         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
28550         result.
28551
28552         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
28553         from main.
28554         (test_pipe): Pass an extra argument for disambiguation.
28555         (main): Invoke parent_main or child_main.
28556
28557         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
28558         consistently.
28559
28560 2009-07-18  Eric Blake  <ebb9@byu.net>
28561
28562         test-pipe: fix mingw build
28563         * tests/test-pipe.c (main): Avoid fcntl on mingw.
28564
28565 2009-07-18  Bruno Haible  <bruno@clisp.org>
28566
28567         * modules/pipe-tests (Makefile.am): Fix typo.
28568
28569 2009-07-18  Eric Blake  <ebb9@byu.net>
28570
28571         error: fix mingw build
28572         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
28573         Reported by Bruno Haible.
28574
28575         error: avoid undefined use of stdout
28576         * lib/error.c (error, error_at_line): Check that fd 1 is open
28577         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
28578         is handling faults and the close_stdout module wants to report the
28579         detection of closed stdout as an error.
28580
28581 2009-07-17  Eric Blake  <ebb9@byu.net>
28582
28583         pipe: be robust in face of closed fds
28584         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
28585         should cause child to misbehave.
28586         * modules/pipe-tests: New module.
28587         * tests/test-pipe.c: New file.
28588         * tests/test-pipe.sh: New file.
28589         Reported by Akim Demaille.
28590
28591 2009-07-14  Bruno Haible  <bruno@clisp.org>
28592
28593         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
28594         Reported by anonymous kc.
28595
28596 2009-07-07  Jim Meyering  <meyering@redhat.com>
28597
28598         maint.mk: don't look for translatable strings in *.m4 or *.mk
28599         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
28600         when searching for translatable strings.
28601
28602 2009-07-05  Jim Meyering  <meyering@redhat.com>
28603
28604         remove superfluous parentheses in STREQ definition
28605         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
28606         * lib/getugroups.c (STREQ): Likewise.
28607         * lib/fnmatch.c (STREQ): Likewise.
28608         Spotted by Bruno Haible.
28609
28610 2009-07-04  Jim Meyering  <meyering@redhat.com>
28611
28612         argv-iter: new module
28613         * MODULES.html.sh: Add argv-iter.
28614         * lib/argv-iter.c, lib/argv-iter.h: New files.
28615         * modules/argv-iter: New file.
28616         * modules/argv-iter-tests: New file.
28617         * tests/test-argv-iter.c: Test it.
28618
28619 2009-07-04  Bruno Haible  <bruno@clisp.org>
28620
28621         Fix assertion.
28622         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
28623         contains more exact copies of a given entry than file2, leave the extra
28624         copies unpaired rather than aborting.
28625         Reported by Eric Blake.
28626
28627 2009-07-02  Bruno Haible  <bruno@clisp.org>
28628
28629         Speedup git-merge-changelog for git cherry-pick.
28630         * lib/git-merge-changelog.c (struct entries_mapping): New type.
28631         (entries_mapping_get): New function, extracted from compute_mapping.
28632         (entries_mapping_reverse_get): New function.
28633         (compute_mapping): Add a 'full' argument. Return the result in a
28634         'struct entries_mapping'.
28635         (main): Update. Access the mappings through entries_mapping_get.
28636         Reported by Eric Blake.
28637
28638 2009-07-02  Bruno Haible  <bruno@clisp.org>
28639
28640         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
28641         best_i.
28642
28643 2009-07-02  Bruno Haible  <bruno@clisp.org>
28644
28645         Speed up approximate search for matching ChangeLog entries.
28646         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
28647         argument. Call fstrcmp_bounded instead of fstrcmp.
28648         (compute_mapping, try_split_merged_entry, main): Update callers.
28649
28650 2009-07-02  Bruno Haible  <bruno@clisp.org>
28651
28652         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
28653
28654 2009-06-30  Bruno Haible  <bruno@clisp.org>
28655
28656         Reduce the number of uc_is_cased calls.
28657         * lib/unicase.h (casing_suffix_context_t): Add
28658         'first_char_except_ignorable' field.
28659         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
28660         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
28661         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
28662         Update initializer.
28663         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
28664         case-ignorable characters.
28665         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
28666         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
28667         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
28668         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
28669         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
28670
28671 2009-06-30  Bruno Haible  <bruno@clisp.org>
28672
28673         Tests for module 'unicase/ignorable'.
28674         * modules/unicase/ignorable-tests: New file.
28675         * tests/unicase/test-ignorable.c: New file, generated by
28676         gen-uni-tables.
28677
28678         Tests for module 'unicase/cased'.
28679         * modules/unicase/cased-tests: New file.
28680         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
28681         * tests/unicase/test-predicate-part1.h: New file, derived from
28682         tests/unictype/test-predicate-part1.h.
28683         * tests/unicase/test-predicate-part2.h: New file, same as
28684         tests/unictype/test-predicate-part2.h.
28685
28686         Fix evaluation of "Before C" condition of FINAL_SIGMA.
28687         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
28688         (output_casing_properties): New function.
28689         (main): Call it.
28690         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
28691         * lib/unicase/cased.c: Include unictype/bitmap.h.
28692         (uc_is_cased): Define through a bitmap lookup.
28693         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
28694         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
28695         (uc_is_case_ignorable): Define through a bitmap lookup.
28696         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
28697         lib/unictype/bitmap.h.
28698         (Depends-on): Add inline. Clean up.
28699         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
28700         lib/unictype/bitmap.h.
28701         (Depends-on): Add inline. Clean up.
28702         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
28703         recognition.
28704         * tests/unicase/test-u16-tolower.c (main): Likewise.
28705         * tests/unicase/test-u32-tolower.c (main): Likewise.
28706
28707 2009-06-30  Bruno Haible  <bruno@clisp.org>
28708
28709         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
28710         * lib/unicase/u16-casemap.c: Likewise.
28711         * lib/unicase/u32-casemap.c: Likewise.
28712
28713 2009-06-29  Bruno Haible  <bruno@clisp.org>
28714
28715         Define u32_casefold as a wrapper around u32_ct_casefold.
28716         * lib/unicase/u32-casefold.c: Update.
28717         * modules/unicase/u32-casefold (Depends-on): Add
28718         unicase/u32-ct-casefold, unicase/empty-prefix-context,
28719         unicase/empty-suffix-context. Clean up.
28720
28721         Define u16_casefold as a wrapper around u16_ct_casefold.
28722         * lib/unicase/u16-casefold.c: Update.
28723         * modules/unicase/u16-casefold (Depends-on): Add
28724         unicase/u16-ct-casefold, unicase/empty-prefix-context,
28725         unicase/empty-suffix-context. Clean up.
28726
28727         Define u8_casefold as a wrapper around u8_ct_casefold.
28728         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
28729         * lib/unicase/u8-casefold.c: Update.
28730         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
28731         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28732
28733         Define u32_totitle as a wrapper around u32_ct_totitle.
28734         * lib/unicase/u32-totitle.c: Update.
28735         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
28736         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28737
28738         Define u16_totitle as a wrapper around u16_ct_totitle.
28739         * lib/unicase/u16-totitle.c: Update.
28740         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
28741         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28742
28743         Define u8_totitle as a wrapper around u8_ct_totitle.
28744         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
28745         functions.
28746         (FUNC): Delegate to U_CT_TOTITLE.
28747         * lib/unicase/u8-totitle.c: Update.
28748         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
28749         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28750
28751         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
28752         invocation.
28753         * modules/unicase/u32-tolower (Depends-on): Add
28754         unicase/empty-prefix-context, unicase/empty-suffix-context.
28755
28756         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
28757         invocation.
28758         * modules/unicase/u16-tolower (Depends-on): Add
28759         unicase/empty-prefix-context, unicase/empty-suffix-context.
28760
28761         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
28762         * modules/unicase/u8-tolower (Depends-on): Add
28763         unicase/empty-prefix-context, unicase/empty-suffix-context.
28764
28765         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
28766         invocation.
28767         * modules/unicase/u32-toupper (Depends-on): Add
28768         unicase/empty-prefix-context, unicase/empty-suffix-context.
28769
28770         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
28771         invocation.
28772         * modules/unicase/u16-toupper (Depends-on): Add
28773         unicase/empty-prefix-context, unicase/empty-suffix-context.
28774
28775         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
28776         * modules/unicase/u8-toupper (Depends-on): Add
28777         unicase/empty-prefix-context, unicase/empty-suffix-context.
28778
28779         New module 'unicase/u32-ct-casefold'.
28780         * lib/unicase/u32-ct-casefold.c: New file.
28781         * modules/unicase/u32-ct-casefold: New file.
28782
28783         New module 'unicase/u16-ct-casefold'.
28784         * lib/unicase/u16-ct-casefold.c: New file.
28785         * modules/unicase/u16-ct-casefold: New file.
28786
28787         New module 'unicase/u8-ct-casefold'.
28788         * lib/unicase/u8-ct-casefold.c: New file.
28789         * lib/unicase/u-ct-casefold.h: New file, derived from
28790         lib/unicase/u-casefold.h.
28791         * modules/unicase/u8-ct-casefold: New file.
28792
28793         New module 'unicase/u32-ct-totitle'.
28794         * lib/unicase/u32-ct-totitle.c: New file.
28795         * modules/unicase/u32-ct-totitle: New file.
28796
28797         New module 'unicase/u16-ct-totitle'.
28798         * lib/unicase/u16-ct-totitle.c: New file.
28799         * modules/unicase/u16-ct-totitle: New file.
28800
28801         New module 'unicase/u8-ct-totitle'.
28802         * lib/unicase/u8-ct-totitle.c: New file.
28803         * lib/unicase/u-ct-totitle.h: New file, derived from
28804         lib/unicase/u-totitle.h.
28805         * modules/unicase/u8-ct-totitle: New file.
28806
28807         New module 'unicase/u32-ct-tolower'.
28808         * lib/unicase/u32-ct-tolower.c: New file.
28809         * modules/unicase/u32-ct-tolower: New file.
28810
28811         New module 'unicase/u16-ct-tolower'.
28812         * lib/unicase/u16-ct-tolower.c: New file.
28813         * modules/unicase/u16-ct-tolower: New file.
28814
28815         New module 'unicase/u8-ct-tolower'.
28816         * lib/unicase/u8-ct-tolower.c: New file.
28817         * modules/unicase/u8-ct-tolower: New file.
28818
28819         New module 'unicase/u32-ct-toupper'.
28820         * lib/unicase/u32-ct-toupper.c: New file.
28821         * modules/unicase/u32-ct-toupper: New file.
28822
28823         New module 'unicase/u16-ct-toupper'.
28824         * lib/unicase/u16-ct-toupper.c: New file.
28825         * modules/unicase/u16-ct-toupper: New file.
28826
28827         New module 'unicase/u8-ct-toupper'.
28828         * lib/unicase/u8-ct-toupper.c: New file.
28829         * modules/unicase/u8-ct-toupper: New file.
28830
28831         Add context arguments to u*_casemap functions.
28832         * lib/unicase/unicasemap.h: Include unicase.h.
28833         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
28834         suffix_context arguments.
28835         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
28836         functions.
28837         (FUNC): Add prefix_context and suffix_context arguments. Use
28838         uc_is_cased and uc_is_case_ignorable.
28839         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
28840         * lib/unicase/u16-casemap.c: Likewise.
28841         * lib/unicase/u32-casemap.c: Likewise.
28842         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
28843         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28844         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
28845         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28846         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
28847         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28848
28849         New module 'unicase/u32-suffix-context'.
28850         * lib/unicase/u32-suffix-context.c: New file.
28851         * modules/unicase/u32-suffix-context: New file.
28852
28853         New module 'unicase/u16-suffix-context'.
28854         * lib/unicase/u16-suffix-context.c: New file.
28855         * modules/unicase/u16-suffix-context: New file.
28856
28857         New module 'unicase/u8-suffix-context'.
28858         * lib/unicase/u8-suffix-context.c: New file.
28859         * lib/unicase/u-suffix-context.h: New file.
28860         * modules/unicase/u8-suffix-context: New file.
28861
28862         New module 'unicase/empty-suffix-context'.
28863         * lib/unicase/empty-suffix-context.c: New file.
28864         * modules/unicase/empty-suffix-context: New file.
28865
28866         New module 'unicase/u32-prefix-context'.
28867         * lib/unicase/u32-prefix-context.c: New file.
28868         * modules/unicase/u32-prefix-context: New file.
28869
28870         New module 'unicase/u16-prefix-context'.
28871         * lib/unicase/u16-prefix-context.c: New file.
28872         * modules/unicase/u16-prefix-context: New file.
28873
28874         New module 'unicase/u8-prefix-context'.
28875         * lib/unicase/u8-prefix-context.c: New file.
28876         * lib/unicase/u-prefix-context.h: New file.
28877         * lib/unicase/context.h: New file.
28878         * modules/unicase/u8-prefix-context: New file.
28879
28880         New module 'unicase/empty-prefix-context'.
28881         * lib/unicase/empty-prefix-context.c: New file.
28882         * modules/unicase/empty-prefix-context: New file.
28883
28884         New module 'unicase/ignorable'.
28885         * lib/unicase/ignorable.c: New file.
28886         * modules/unicase/ignorable: New file.
28887
28888         New module 'unicase/cased'.
28889         * lib/unicase/caseprop.h: New file.
28890         * lib/unicase/cased.c: New file.
28891         * modules/unicase/cased: New file.
28892
28893         New functions for case mapping of substrings.
28894         * lib/unicase.h (casing_prefix_context_t): New type.
28895         (unicase_empty_prefix_context): New variable.
28896         (u8_casing_prefix_context, u16_casing_prefix_context,
28897         u32_casing_prefix_context, u8_casing_prefixes_context,
28898         u16_casing_prefixes_context, u32_casing_prefixes_context): New
28899         declarations.
28900         (casing_suffix_context_t): New type.
28901         (unicase_empty_suffix_context): New variable.
28902         (u8_casing_suffix_context, u16_casing_suffix_context,
28903         u32_casing_suffix_context, u8_casing_suffixes_context,
28904         u16_casing_suffixes_context, u32_casing_suffixes_context,
28905         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
28906         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
28907         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
28908         declarations.
28909
28910 2009-06-28  Jim Meyering  <meyering@redhat.com>
28911
28912         boostrap: indent only with spaces
28913         * build-aux/bootstrap: Indent only with spaces, never TABs.
28914
28915         bootstrap: split long lines
28916         * build-aux/bootstrap: Keep line length < 80.
28917
28918         bootstrap: sync from coreutils
28919         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
28920         just as autoreconf does.  Verify a list of prerequisite
28921         package-name,version-number pairs if defined in bootstrap.conf.
28922         Refer to README-prereq, if prerequisites are not satisfied.
28923
28924 2009-06-27  Eric Blake  <ebb9@byu.net>
28925
28926         tests: add test for bogus NULL definition
28927         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
28928         * tests/test-stdlib.c: Likewise.
28929         * tests/test-string.c: Likewise.
28930         * tests/test-locale.c: Likewise.
28931         * tests/test-unistd.c: Likewise.
28932         * modules/stdio-tests (Depends-on): Add verify.
28933         * modules/stdlib-tests (Depends-on): Likewise.
28934         * modules/string-tests (Depends-on): Likewise.
28935         * modules/locale-tests (Depends-on): Likewise.
28936         * modules/unistd-tests (Depends-on): Likewise.
28937
28938 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
28939
28940         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
28941         self-explaining comment.
28942         * m4/selinux-selinux-h: Update serial.
28943         (gl_LIBSELINUX): New macro, adding a warning for missing development
28944         packages to code extracted from...
28945         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
28946         Add warning for missing development packages here, too.
28947
28948 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
28949
28950         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
28951
28952 2009-06-25  Eric Blake  <ebb9@byu.net>
28953
28954         version-etc: fix regression
28955         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
28956         gcc.
28957         (version_etc): Use it, to catch bugs with trailing NULL.
28958         * lib/version-etc.c (version_etc_arn): Delete unused argument.
28959         (version_etc_va): Fix logic bug.
28960         * modules/version-etc-tests: Add test.
28961         * tests/test-version-etc.c: New file.
28962         * tests/test-version-etc.sh: Likewise.
28963
28964 2009-06-25  Sam Steingold  <sds@gnu.org>
28965
28966         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
28967         mbtowc declaration.
28968
28969 2009-06-25  Eric Blake  <ebb9@byu.net>
28970
28971         fpurge: migrate into <stdio.h>
28972         * lib/fpurge.h: Delete...
28973         * lib/stdio.in.h (fpurge): ...and declare here, instead.
28974         * lib/fpurge.c (fpurge): Change declaring header.
28975         * modules/fpurge (Files): Drop deleted file.
28976         (Depends-on): Add stdio.
28977         (configure.ac): Set witness.
28978         * modules/stdio (Makefile.am): Support fpurge macros.
28979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28980         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
28981         * lib/fflush.c: Update client.
28982         * tests/test-fpurge.c: Likewise.
28983         * NEWS: Mention the change.
28984
28985 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28986
28987         * lib/argp-version-etc.c (program_authors): Add const
28988         qualifier.
28989         * lib/version-etc.c: Fix typos in the comments.
28990         * modules/argp-version-etc: Depends on version-etc.
28991
28992 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28993
28994         argp-version-etc: new module.
28995
28996         * lib/argp-version-etc.c: New file.
28997         * lib/argp-version-etc.h: New file.
28998         * modules/argp-version-etc: New file.
28999         * modules/argp-version-etc-tests: New file.
29000         * tests/test-argp-version-etc.c: New test.
29001         * tests/test-argp-version-etc-1.sh: New test.
29002
29003 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29004
29005         Provide additional interfaces and documentation for version-etc
29006         module.
29007
29008         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
29009         interfaces.
29010         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
29011         prototypes.
29012
29013 2009-06-24  Bruno Haible  <bruno@clisp.org>
29014
29015         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
29016         HAVE_LIB${NAME} macro.
29017         Reported by Sam Steingold <sds@gnu.org>.
29018
29019 2009-06-23  Simon Josefsson  <simon@josefsson.org>
29020
29021         * modules/hash-tests (test_hash_LDADD): Link to libintl when
29022         needed.
29023
29024 2009-06-21  Bruno Haible  <bruno@clisp.org>
29025
29026         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
29027         work.
29028         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
29029         together with LIB${NAME}, LTLIB${NAME}.
29030         Reported by Sam Steingold <sds@gnu.org>.
29031
29032 2009-06-20  Jim Meyering  <meyering@redhat.com>
29033
29034         tests: make sc_require_test_exit_idiom more generic
29035         * top/maint.mk (Exit_witness_file): New overridable variable.
29036         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
29037         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
29038
29039 2009-06-19  Jim Meyering  <meyering@redhat.com>
29040
29041         hash: reverse order of src/dst parameters in an internal interface
29042         * lib/hash.c (transfer_entries): Reverse order of parameters to
29043         put DST before SRC.  Adjust callers.
29044
29045         tests: test-hash: avoid wholesale duplication
29046         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
29047         Instead, use a loop and add a single conditional.
29048
29049         tests: test-hash: allow seed selection via a command line argument
29050         * tests/test-hash.c (get_seed): New function.
29051         (main): Use it.
29052
29053 2009-06-19  Eric Blake  <ebb9@byu.net>
29054
29055         hash: avoid memory leak on allocation failure
29056         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
29057         failure.  Factor repeated algorithm...
29058         (transfer_entries): ...into new helper routine.
29059         (hash_delete): React to hash_rehash return value.
29060
29061         hash: reduce memory pressure in hash_rehash no-op case
29062         * lib/hash.c (next_prime): Avoid overflow.
29063         (hash_initialize): Factor bucket size computation...
29064         (compute_bucket_size): ...into new helper function.
29065         (hash_rehash): Use new function and open coding to reduce memory
29066         pressure, and avoid a memory leak in USE_OBSTACK code.
29067         Reported by Jim Meyering.
29068
29069 2009-06-18  Eric Blake  <ebb9@byu.net>
29070
29071         hash: make rotation more obvious
29072         * modules/hash (Depends-on): Add bitrotate and stdint.
29073         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
29074         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
29075         (SIZE_MAX): Rely on headers for definition.
29076         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
29077         (raw_hasher): Use rotr_sz.
29078         Suggested by Jim Meyering.
29079
29080         hash: fix memory leak in last patch
29081         * lib/hash.c (hash_rehash): Avoid memory leak.
29082
29083         hash: avoid no-op rehashing
29084         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
29085
29086         hash: provide default callback functions
29087         * lib/hash.c (raw_hasher, raw_comparator): New functions.
29088         (hash_initialize): Use them as defaults.
29089         * tests/test-hash.c (main): Test this.
29090
29091         hash: minor optimization
29092         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
29093         when possible.
29094         (hash_initialize): Document this promise.
29095         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
29096         * tests/test-hash.c (hash_compare_strings): Test this.
29097
29098 2009-06-18  Bruno Haible  <bruno@clisp.org>
29099
29100         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
29101         going to be replaced anyway.
29102
29103 2009-06-18  Bruno Haible  <bruno@clisp.org>
29104
29105         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
29106         in one place.
29107         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
29108         be replaced anyway.
29109
29110 2009-06-18  Eric Blake  <ebb9@byu.net>
29111
29112         hash: check for resize before insertion
29113         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
29114         threshold before insertion, so that a pathological hash_rehash
29115         that fills every bucket can still trigger another rehash.
29116
29117 2009-06-18  Jim Meyering  <meyering@redhat.com>
29118
29119         hash-tests: add a loop around the small tests
29120         * tests/test-hash.c (main): Repeat small tests with selected
29121         small initial table sizes.
29122
29123 2009-06-17  Eric Blake  <ebb9@byu.net>
29124
29125         hash: minor cleanups
29126         * lib/hash.h (hash_entry): Make opaque, by moving...
29127         * lib/hash.c (hash_entry): ...here.
29128         (hash_insert): Clarify restrictions on what can be inserted.
29129         (hash_get_next): Clarify when it is safe to remove an element
29130         during traversal.
29131         (check_tuning): Skip verification when tuning is known safe.
29132         (hash_initialize): Clarify restrictions on tuning.
29133
29134 2009-06-17  Jim Meyering  <jim@meyering.net>
29135         and Eric Blake  <ebb9@byu.net>
29136
29137         hash-tests: new module
29138         * modules/hash-tests: New file.
29139         * tests/test-hash.c: New file.
29140
29141 2009-06-17  Eric Blake  <ebb9@byu.net>
29142
29143         strstr-simple: document new module
29144         * MODULES.html.sh: Document new module.
29145
29146         strstr, strcasestr: replace on platforms with broken memchr
29147         * modules/strstr: Split into...
29148         * modules/strstr-simple: ...new module that does not care about
29149         performance, but does care about glibc bug.
29150         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
29151         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
29152         if platform memchr is broken, per Debian bug 521737.
29153         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
29154         memchr.
29155         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
29156         * doc/posix-functions/strstr.texi (strstr): Document the fix.
29157         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29158         * modules/mountlist (Depends-on): Add strstr-simple.
29159         * modules/gen-uni-tables (Depends-on): Likewise.
29160         * modules/argz (Depends-on): Add strstr.
29161
29162 2009-06-17  Bruno Haible  <bruno@clisp.org>
29163
29164         * modules/posix_spawn-internal (Depends-on): Add errno.
29165
29166 2009-06-17  Bruno Haible  <bruno@clisp.org>
29167
29168         Define missing ESTALE on Interix 3.5.
29169         * lib/errno.in.h (ESTALE): Assign a value if missing.
29170         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
29171         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
29172         missing.
29173         * doc/posix-headers/errno.texi: Mention the Interix bug.
29174         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
29175
29176 2009-06-15  Eric Blake  <ebb9@byu.net>
29177
29178         memchr, memchr2: add valgrind exception
29179         * lib/memchr.valgrind: New file.
29180         * lib/memchr2.valgrind: New file.
29181         * modules/memchr (Files): Distribute valgrind file.
29182         * modules/memchr2 (Files): Likewise.
29183
29184         docs: memchr is no longer obsolete
29185         * MODULES.html.sh: Move memchr from obsolete to string.h section.
29186         * lib/string.in.h (memchr): Simplify logic.
29187
29188 2009-06-14  Jim Meyering  <meyering@redhat.com>
29189
29190         link-follow: fix the "checking..." message to not mention trailing slash
29191         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
29192         never considered trailing slashes.
29193
29194 2009-06-14  Bruno Haible  <bruno@clisp.org>
29195
29196         * m4/memchr.m4: Mention also the bug on IA-64.
29197         * doc/posix-functions/memchr.texi: Likewise.
29198
29199 2009-06-12  Eric Blake  <ebb9@byu.net>
29200
29201         memchr: detect broken x86_64 and alpha implementations
29202         * modules/memchr-tests (Depends-on): Move mmap detection...
29203         * modules/memchr (Depends-on): ...here.
29204         (configure.ac): Set indicator.
29205         * lib/string.in.h (memchr): Declare replacement.
29206         * modules/string (Makefile.am): Trigger replacement.
29207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29208         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29209         bugs.
29210         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29211         * modules/getpagesize (License): Relax license.
29212
29213 2009-06-11  Bruno Haible  <bruno@clisp.org>
29214
29215         * lib/idpriv.h: Add more references.
29216
29217 2009-06-08  Bruno Haible  <bruno@clisp.org>
29218
29219         Tests for module 'idpriv-droptemp'.
29220         * modules/idpriv-droptemp-tests: New file.
29221         * tests/test-idpriv-droptemp.sh: New file.
29222         * tests/test-idpriv-droptemp.su.sh: New file.
29223         * tests/test-idpriv-droptemp.c: New file.
29224
29225         New module 'idpriv-droptemp'.
29226         * lib/idpriv-droptemp.c: New file.
29227         * modules/idpriv-droptemp: New file.
29228
29229 2009-06-08  Bruno Haible  <bruno@clisp.org>
29230
29231         Tests for module 'idpriv-drop'.
29232         * modules/idpriv-drop-tests: New file.
29233         * tests/test-idpriv-drop.sh: New file.
29234         * tests/test-idpriv-drop.su.sh: New file.
29235         * tests/test-idpriv-drop.c: New file.
29236
29237         New module 'idpriv-drop'.
29238         * lib/idpriv.h: New file.
29239         * lib-idpriv-drop.c: New file.
29240         * m4/idpriv.m4: New file.
29241         * modules/idpriv-drop: New file.
29242
29243 2009-06-08  Bruno Haible  <bruno@clisp.org>
29244
29245         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29246         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29247         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29248         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29249         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29250         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29251         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29252
29253 2009-06-08  Eric Blake  <ebb9@byu.net>
29254
29255         test-strstr: use memory fence, when possible
29256         * tests/test-strstr.c (main): Use memory fence, in order to be
29257         more likely to trigger Debian bug 521737.
29258         * modules/strstr-tests (Files): Pull in additional files.
29259
29260         memchr: no longer obsolete, for wider field testing
29261         * modules/memchr (Status, Notice): Delete, this module is no
29262         longer obsolete.
29263         * modules/vasnprintf (Depends-on): Add memchr.
29264
29265 2009-06-07  Jim Meyering  <meyering@redhat.com>
29266
29267         hash: declare some functions with the warn_unused_result attribute
29268         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
29269
29270 2009-06-07  Bruno Haible  <bruno@clisp.org>
29271
29272         * tests/test-alignof.c: Don't test int64_t if it does not exist.
29273         Reported by Eric Blake.
29274
29275 2009-06-06  Eric Blake  <ebb9@byu.net>
29276
29277         test-alignof: fix typo with long double
29278         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
29279         compiler error.
29280
29281 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
29282
29283         Escape non-texinfo { and }s.
29284         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
29285         markup error.
29286
29287 2009-06-04  Jim Meyering  <meyering@redhat.com>
29288
29289         gitlog-to-changelog: don't infloop on an empty commit log
29290         * build-aux/gitlog-to-changelog: Warn about an empty log message.
29291         Reported by Boris Petersen <transacid@centerim.org>.
29292
29293 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
29294
29295         version-etc: extend for packagers
29296         Add three new configure options, intended for packagers:
29297           --with-packager="packager name"
29298           --with-packager-version="packager-specific version"
29299           --with-packager-bug-reports="packager bug reporting"
29300         An example with coreutils:
29301           $ ./configure \
29302             --with-packager=Gentoo \
29303             --with-packager-bug-report=http://bugs.gentoo.org/ \
29304             --with-packager-version="patchset 1.6"
29305           $ ./src/ls --version | head -n2
29306           ls (GNU coreutils) 7.1-dirty
29307           Packaged by Gentoo (patchset 1.6)
29308         Note that the bug reporting info via --help doesn't show up because
29309         coreutils uses its own custom emit_bug_reporting_address() implementation
29310         in src/system.h.  If it didn't, it'd look like:
29311           $ ./src/ls --help | tail -n4
29312           Report bugs to <bug-coreutils@gnu.org>.
29313           Report Gentoo bugs to <http://bugs.gentoo.org/>.
29314           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29315           General help using GNU software: <http://www.gnu.org/gethelp/>.
29316         * lib/version-etc.c: Print new information, if provided.
29317         * m4/version-etc.m4: New file.
29318         * modules/version-etc (Files): Add m4/version-etc.m4.
29319         (configure.ac): Add gl_VERSION_ETC.
29320
29321 2009-05-31  Bruno Haible  <bruno@clisp.org>
29322
29323         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29324         and 'int64_t'.
29325         * modules/alignof-tests (Dependencies): Add stdint.
29326         Reported by Eric Blake.
29327
29328 2009-05-31  Bruno Haible  <bruno@clisp.org>
29329
29330         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29331         restriction due to compiler bugs.
29332         Reported by Eric Blake.
29333
29334 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29335             Bruno Haible  <bruno@clisp.org>
29336
29337         Fix test-alignof failure.
29338         * lib/alignof.h (alignof_slot): New macro.
29339         (alignof_type): New macro, with the same semantics as the previous
29340         'alignof'.
29341         (alignof): Alias to alignof_slot.
29342         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29343         check that the results are usable as constant expressions.
29344
29345 2009-05-31  Bruno Haible  <bruno@clisp.org>
29346
29347         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29348         * tests/test-memchr.c (main): Check that memchr does not read past the
29349         first occurrence of the byte.
29350         * tests/test-strstr.c (main): Update comment.
29351         Suggested by Eric Blake.
29352
29353 2009-05-30  Bruno Haible  <bruno@clisp.org>
29354
29355         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29356         detail how to use dumpbin.
29357         Reported by David Byron <dbyron@dbyron.com>.
29358
29359 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29360
29361         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29362
29363 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29364
29365         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29366
29367 2009-05-28  Bruno Haible  <bruno@clisp.org>
29368
29369         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29370         build-aux/ files.
29371
29372 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29373
29374         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29375
29376 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29377
29378         * gnulib-tool (sed_transform_main_lib_file)
29379         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29380         regexps.
29381
29382 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29383
29384         * tests/test-strstr.c: Add another self-test.
29385         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29386         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29387
29388 2009-05-23  Bruno Haible  <bruno@clisp.org>
29389
29390         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29391         change.
29392
29393 2009-05-21  Bruno Haible  <bruno@clisp.org>
29394
29395         Simplify use of mode_t varargs.
29396         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29397         uses 'mode_t' or 'int'.
29398         * lib/openat.c (openat): Likewise.
29399         * lib/open-safer.c (open_safer): Likewise.
29400         * m4/mode_t.m4: New file.
29401         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29402         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29403         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29404         * modules/open (Files): Add m4/mode_t.m4.
29405         * modules/openat (Files): Likewise.
29406         * modules/fcntl-safer (Files): Likewise.
29407         Suggested by Eric Blake.
29408
29409 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29410
29411         * doc/glibc-functions/fallocate.texi: New file.
29412         * doc/gnulib.texi: Include it.
29413
29414 2009-05-21  Eric Blake  <ebb9@byu.net>
29415             Bruno Haible  <bruno@clisp.org>
29416
29417         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29418         invocations.
29419         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29420
29421 2009-05-21  Eric Blake  <ebb9@byu.net>
29422             Bruno Haible  <bruno@clisp.org>
29423
29424         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29425         include_next. Fix of 2008-11-20 commit.
29426         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29427         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29428         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29429         NEXT_MATH_H.
29430         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29431         instead of NEXT_MATH_H.
29432
29433 2009-05-21  Bruno Haible  <bruno@clisp.org>
29434
29435         Avoid redefinition warnings for SIZE_MAX.
29436         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29437         Reported by Simon Josefsson.
29438
29439 2009-05-21  Bruno Haible  <bruno@clisp.org>
29440
29441         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29442         AC_CACHE_VAL.
29443
29444 2009-05-20  Bruno Haible  <bruno@clisp.org>
29445
29446         Make zeroptr.h work on mingw.
29447         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29448         mprotect.
29449         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29450         * modules/memchr2-tests (configure.ac): Likewise.
29451         * modules/memcmp-tests (configure.ac): Likewise.
29452         * modules/memmem-tests (configure.ac): Likewise.
29453         * modules/memrchr-tests (configure.ac): Likewise.
29454         Reported by Simon Josefsson.
29455
29456 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29457
29458         * tests/test-glob.c: Include string.h for strcmp prototype.
29459
29460 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29461
29462         * modules/getdelim (Depends-on): Add explicit stdint, although it
29463         was implicitly already pulled in via realloc-posix.
29464         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29465
29466 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29467
29468         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29469         G. Christensen" <tgc@jupiterrise.com>.
29470         * m4/sys_socket_h.m4: Check for sa_family_t.
29471         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29472         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29473         * tests/test-sys_socket.c: Check that sa_family_t works.
29474
29475 2009-05-18  Eric Blake  <ebb9@byu.net>
29476
29477         maint.mk: allow gnulib_dir in VPATH build
29478         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
29479
29480 2009-05-15  Jim Meyering  <meyering@redhat.com>
29481
29482         maint.mk: Give gnulib_dir a default definition.
29483         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
29484         Thus, most packages no longer need to specify this variable in cfg.mk
29485
29486 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
29487
29488         rename.m4: fix typos that would make non-mingw cross-configure fail
29489         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
29490
29491 2009-05-13  Eric Blake  <ebb9@byu.net>
29492
29493         mmap-anon: avoid out-of-order autoconf expansion
29494         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
29495         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
29496         * modules/memchr-tests (Depends-on): Add extensions.
29497         * modules/memchr2-tests (Depends-on): Add extensions.
29498         * modules/memcmp-tests (Depends-on): Add extensions.
29499         * modules/memmem-tests (Depends-on): Add extensions.
29500         * modules/memrchr-tests (Depends-on): Add extensions.
29501
29502 2009-05-13  Bruno Haible  <bruno@clisp.org>
29503
29504         Make some tests ISO C 99 compliant.
29505         * tests/zerosize-ptr.h: New file.
29506         * tests/test-memchr.c: Include zerosize-ptr.h.
29507         (main): Use a zero-size object pointer instead of NULL.
29508         * tests/test-memchr2.c: Include zerosize-ptr.h.
29509         (main): Use a zero-size object pointer instead of NULL.
29510         * tests/test-memcmp.c: Include zerosize-ptr.h.
29511         (main): Use a zero-size object pointer instead of NULL.
29512         * tests/test-memmem.c: Include zerosize-ptr.h.
29513         (main): Use a zero-size object pointer instead of NULL.
29514         * tests/test-memrchr.c: Include zerosize-ptr.h.
29515         (main): Use a zero-size object pointer instead of NULL.
29516         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
29517         m4/mmap-anon.m4.
29518         (Depends-on): Add getpagesize.
29519         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29520         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
29521         m4/mmap-anon.m4.
29522         (Depends-on): Add getpagesize.
29523         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29524         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
29525         m4/mmap-anon.m4.
29526         (Depends-on): Add getpagesize.
29527         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29528         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
29529         m4/mmap-anon.m4.
29530         (Depends-on): Add getpagesize.
29531         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29532         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
29533         m4/mmap-anon.m4.
29534         (Depends-on): Add getpagesize.
29535         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29536
29537 2009-05-12  Bruno Haible  <bruno@clisp.org>
29538
29539         Tests for module 'alignof'.
29540         * modules/alignof-tests: New file.
29541         * tests/test-alignof.c: New file.
29542
29543 2009-05-12  Bruno Haible  <bruno@clisp.org>
29544
29545         Fix alignof macro.
29546         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
29547         vendor compilers that are always correct.
29548
29549 2009-05-12  Bruno Haible  <bruno@clisp.org>
29550
29551         Make the MAP_ANONYMOUS detection work on HP-UX 11.
29552         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
29553         not whether its fully works.
29554
29555 2009-05-12  Bruno Haible  <bruno@clisp.org>
29556
29557         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
29558
29559 2009-05-12  Jim Meyering  <meyering@redhat.com>
29560
29561         * top/maint.mk: Adjust backslash alignment.
29562
29563 2009-05-11  Simon Josefsson  <simon@josefsson.org>
29564
29565         * top/maint.mk: Make $(srcdir)/build-aux configurable.
29566
29567 2009-05-11  Eric Blake  <ebb9@byu.net>
29568
29569         argp: avoid undefined behavior
29570         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
29571         macros.
29572
29573 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29574
29575         * tests/test-vc-list-files-git.sh: Do git config of user.email and
29576         user.name to prevent git commit from complaining.
29577
29578 2009-05-10  Bruno Haible  <bruno@clisp.org>
29579
29580         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
29581         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
29582         it rewrites every file name only once.
29583         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
29584
29585 2009-05-08  Bruno Haible  <bruno@clisp.org>
29586
29587         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
29588         instead of 'max'.
29589
29590 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29591
29592         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
29593         sockaddr_storage test.
29594
29595 2009-05-07  Simon Josefsson  <simon@josefsson.org>
29596
29597         * modules/sys_socket (Makefile.am): Substitute
29598         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
29599         * m4/sys_socket_h.m4: Check for sockaddr_storage.
29600         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
29601         * tests/test-sys_socket.c: Check sockaddr_storage.
29602
29603 2009-05-08  Bruno Haible  <bruno@clisp.org>
29604
29605         New module 'alignof'.
29606         * lib/alignof.h: New file.
29607         * modules/alignof: New file.
29608
29609 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29610             Bruno Haible  <bruno@clisp.org>
29611
29612         Fix test-file-has-acl on FreeBSD.
29613         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
29614         mask is implicitly added.
29615         * tests/test-file-has-acl.c: Include <signal.h>.
29616         (main): Terminate the test after 5 seconds.
29617         * modules/acl-tests (configure.ac): Check for alarm function.
29618
29619 2009-05-04  Bruno Haible  <bruno@clisp.org>
29620
29621         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
29622         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
29623         * modules/errno (configure.ac): Drop AC_REQUIRE.
29624         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
29625         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
29626
29627 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29628
29629         * modules/glob-tests: New module.
29630         * tests/test-glob.c: Add.
29631
29632 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29633
29634         * modules/fnmatch-tests: New module.
29635         * tests/test-fnmatch.c: Add.
29636
29637 2009-05-04  Eric Blake  <ebb9@byu.net>
29638
29639         maint: make the new no-submodule-changes rule VPATH-safe
29640         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
29641
29642 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29643             Bruno Haible  <bruno@clisp.org>
29644
29645         acl: Fix infinite loop on FreeBSD.
29646         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
29647         of return value from acl_get_entry.
29648         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
29649         Likewise.
29650
29651 2009-05-03  Bruno Haible  <bruno@clisp.org>
29652
29653         * lib/acl-internal.h (acl_entries): Clarify return value.
29654         * lib/acl_entries.c (acl_entries): Likewise.
29655
29656 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29657
29658         Bug fix in acl module.
29659         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
29660
29661 2009-05-03  Bruno Haible  <bruno@clisp.org>
29662
29663         Create gperf-generated file in the source dir, not in the build dir.
29664         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
29665         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
29666         * modules/unicase/locale-language (unicase/locale-languages.h):
29667         Likewise.
29668         * modules/unicase/special-casing (unicase/special-casing-table.h):
29669         Likewise.
29670         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
29671         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
29672         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
29673         Reported by Ralf Wildenhues.
29674
29675 2009-05-03  Bruno Haible  <bruno@clisp.org>
29676
29677         * modules/fnmatch (Description, configure.ac): Taken from
29678         fnmatch-posix.
29679         * modules/fnmatch-posix: Turn into a symbolic reference to the
29680         'fnmatch' module, and deprecate.
29681         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
29682
29683 2009-05-03  Bruno Haible  <bruno@clisp.org>
29684
29685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
29686         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
29687         Reported by Ralf Wildenhues.
29688
29689 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29690
29691         * m4/fnmatch.m4: Fix fnmatch re-define.
29692
29693 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29694
29695         priv-set: new module and tests; adapt write-any-file
29696         * lib/priv-set.c: New file.
29697         * lib/priv-set.h: New file.
29698         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
29699         * lib/write-any-file.c: Simplify by using priv-set module.
29700         * m4/priv-set.m4: New file.
29701         * modules/priv-set: New file.
29702         * modules/unlinkdir: Add dependency on priv-set module.
29703         * modules/write-any-file: Likewise.
29704
29705         Tests for module 'priv-set'.
29706         * modules/priv-set-tests: New file.
29707         * tests/test-priv-set.c: New file.
29708
29709 2009-05-03  Jim Meyering  <meyering@redhat.com>
29710             Bruno Haible  <bruno@clisp.org>
29711
29712         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
29713         use the converted UTF-8 variant of the name instead.
29714
29715 2009-05-03  Jim Meyering  <meyering@redhat.com>
29716
29717         tests: tighten some getdate tests
29718         * tests/test-getdate.c (main): Tighten tests: require equality,
29719         not just greater than.  Set TZ envvar to UTC0.
29720
29721 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29722
29723         getdate: correctly interpret "next monday" when run on a Monday
29724         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
29725         that e.g., "next tues" (when run on a tuesday) results in a date
29726         that is one week in the future, and not today's date.
29727         I.e., add a week when the wday is the same as the current one.
29728         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
29729         and earlier by Martin Bernreuther and Jan Minář.
29730         * tests/test-getdate.c (main): Check that "next DAY" is always in
29731         the future and that "last DAY" is always in the past.
29732
29733 2009-05-02  Jim Meyering  <meyering@redhat.com>
29734
29735         build: ensure that a release build fails when a submodule is unclean
29736         * top/maint.mk (no-submodule-changes): New rule.
29737         (alpha beta major): Depend on it.
29738
29739 2009-05-02  Bruno Haible  <bruno@clisp.org>
29740
29741         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
29742         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
29743         shell variable gl_fnmatch_required to detect which variant is
29744         requested.
29745         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
29746         gl_FUNC_FNMATCH_POSIX.
29747         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
29748         exclude fnmatch-posix.
29749
29750 2009-05-02  Bruno Haible  <bruno@clisp.org>
29751
29752         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
29753         * modules/mbsrtowcs (License): Change to LGPLv2+.
29754         * modules/strnlen1 (License): Likewise.
29755         Reported by Simon Josefsson.
29756
29757 2009-05-02  Bruno Haible  <bruno@clisp.org>
29758
29759         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
29760         "cross".
29761         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
29762         gnulib-tool was called with option --source-base=lib.
29763
29764 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29765
29766         Use automake *-local hooks without commands, for extensibility.
29767         * modules/localcharset (Makefile.am): Rename install-exec-local
29768         rule to install-exec-localcharset, and make it a prerequisite of
29769         install-exec-local.  Likewise, rename the uninstall-local rule to
29770         uninstall-localcharset, and make it a prerequisite of the former.
29771
29772 2009-05-01  Bruno Haible  <bruno@clisp.org>
29773
29774         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
29775         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29776         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
29777         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
29778         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
29779         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29780         m4/locale-zh.m4, m4/codeset.m4.
29781
29782         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29783         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
29784         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29785         m4/locale-zh.m4.
29786
29787         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
29788         REPLACE_WCRTOMB if mbstate_t must be replaced.
29789         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
29790         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
29791
29792 2009-05-01  Bruno Haible  <bruno@clisp.org>
29793
29794         Avoid compiler warnings when redefining macros defined by <libintl.h>.
29795         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
29796         dngettext, dcngettext, textdomain, bindtextdomain,
29797         bind_textdomain_codeset): Undefine before redefining.
29798
29799 2009-04-30  Bruno Haible  <bruno@clisp.org>
29800
29801         Fix bug introduced on 2009-04-25.
29802         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
29803         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
29804         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
29805         is defined.
29806         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
29807         is defined.
29808         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
29809         is defined.
29810         Reported by Elbert_Pol <elbert.pol@gmail.com>.
29811
29812 2009-04-28  Bruno Haible  <bruno@clisp.org>
29813
29814         Comment tweaks.
29815         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
29816         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
29817         * lib/unicase.h (u*_casexfrm): Likewise.
29818         Reported by Paolo Bonzini.
29819
29820 2009-04-28  Bruno Haible  <bruno@clisp.org>
29821
29822         Fix a compilation error.
29823         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
29824         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29825         Reported by Jim Meyering.
29826
29827 2009-04-27  Bruno Haible  <bruno@clisp.org>
29828
29829         New module 'libunistring'.
29830         * modules/libunistring: New file.
29831         * m4/libunistring.m4: New file.
29832         * MODULES.html.sh (Unicode string functions): Add it.
29833
29834 2009-04-27  Eric Blake  <ebb9@byu.net>
29835
29836         maint.mk: allow package-specific header to provide <config.h>
29837         * top/maint.mk (sc_require_config_h): New variable.
29838         (sc_require_config_h, sc_require_config_h_first): Use it.
29839
29840 2009-04-27  Simon Josefsson  <simon@josefsson.org>
29841
29842         * top/maint.mk (sc_avoid_if_before_free): Except
29843         useless-if-before-free script.
29844
29845 2009-04-27  Eric Blake  <ebb9@byu.net>
29846
29847         maintainer-makefile: depend on all required helper scripts
29848         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
29849         useless-if-before-free.
29850         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
29851         version, rather than assuming gnulib checkout is available.
29852         Reported by Simen Josefsson.
29853
29854 2009-04-26  Bruno Haible  <bruno@clisp.org>
29855
29856         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
29857         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
29858         "../" or "..".
29859
29860 2009-04-26  Bruno Haible  <bruno@clisp.org>
29861
29862         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
29863         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
29864         AC_LIB_HAVE_LINKFLAGS.
29865
29866 2009-04-26  Bruno Haible  <bruno@clisp.org>
29867
29868         Simplify calling convention of u*_conv_from_encoding.
29869         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
29870         u32_conv_from_encoding): Expect a resultbuf argument and return the
29871         result directly as a pointer.
29872         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
29873         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
29874         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
29875         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
29876         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
29877         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29878         Update.
29879         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
29880         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
29881         * lib/vasnprintf.c (VASNPRINTF): Update.
29882         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
29883         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
29884         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
29885         * NEWS: Mention the change.
29886
29887 2009-04-26  Bruno Haible  <bruno@clisp.org>
29888
29889         Simplify calling convention of u*_conv_to_encoding.
29890         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
29891         u32_conv_to_encoding): Expect a resultbuf argument and return the
29892         result directly as a pointer.
29893         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29894         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
29895         freeing scaled_offsets if mem_iconveha failed.
29896         * lib/unicase/u-casexfrm.h (FUNC): Update.
29897         * lib/uninorm/u-normxfrm.h (FUNC): Update.
29898         * lib/vasnprintf.c (VASNPRINTF): Update.
29899         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
29900         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
29901         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
29902         * NEWS: Mention the change.
29903
29904 2009-04-26  Bruno Haible  <bruno@clisp.org>
29905
29906         Avoid test failures on AIX and OSF/1.
29907         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
29908         malloc(0).
29909         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29910         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29911         Likewise.
29912         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
29913         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
29914         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
29915         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
29916         * doc/posix-functions/malloc.texi: Document the portability problem
29917         related to malloc(0).
29918
29919 2009-04-26  Bruno Haible  <bruno@clisp.org>
29920
29921         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
29922         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
29923         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
29924
29925 2009-04-25  Bruno Haible  <bruno@clisp.org>
29926
29927         Avoid link error when creating a namespace clean library.
29928         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
29929         as macro with arguments if already defined as an alias.
29930         * lib/signbitf.c (gl_signbitf): Don't undefine.
29931         * lib/signbitd.c (gl_signbitd): Don't undefine.
29932         * lib/signbitl.c (gl_signbitl): Don't undefine.
29933
29934 2009-04-25  Jim Meyering  <meyering@redhat.com>
29935
29936         vc-list-files: fix another quoting bug
29937         * build-aux/vc-list-files: Avoid sed backslash expansion
29938         of pathological directory names.
29939
29940 2009-04-25  Eric Blake  <ebb9@byu.net>
29941
29942         vc-list-files: fix shell quoting error
29943         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
29944         timestamp.
29945
29946 2009-04-25  Jim Meyering  <meyering@redhat.com>
29947
29948         vc-list-files: restore lost functionality with subdir argument
29949         * build-aux/vc-list-files: When given a non-"." sub-directory
29950         argument, substitute the $dir/ prefix back onto each resulting name.
29951         Otherwise, coreutils' root_tests check would fail.
29952
29953 2009-04-24  Eric Blake  <ebb9@byu.net>
29954
29955         vc-list-files: ignore git symlinks
29956         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
29957         than ls-files, to ignore git symlinks.
29958
29959         maint.mk: import improvements from m4
29960         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
29961         (move_if_change): Delete unused macro.
29962         (news-date-check, vc-diff-check): Support VPATH builds.
29963         (announcement): Likewise.  Split --bootstrap-tools list...
29964         (boostrap-tools): ...into separate list, which can be overridden
29965         in cfg.mk.
29966         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
29967         requiring dependency on useless-if-before-free module.
29968         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
29969         Support VPATH builds.
29970
29971 2009-04-24  Jim Meyering  <meyering@redhat.com>
29972
29973         maint.mk: remove coreutils-specific rules and variables
29974         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
29975         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
29976         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
29977
29978         maint.mk: remove obsolete rule
29979         * top/maint.mk (rel-check): Remove rule.
29980         (WGET, WGETFLAGS): Remove now-unused variables.
29981
29982 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29983
29984         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
29985         consistency.
29986
29987         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
29988         '$(PATH_SEPARATOR)' instead of ':'.
29989
29990 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29991
29992         * lib/getopt1.c (main): Use 'const' for static array.
29993
29994 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29995
29996         * top/maint.mk: Sync with coreutils.
29997         * NEWS: Explain incompatibilities.
29998
29999 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30000             Bruno Haible  <bruno@clisp.org>
30001
30002         Fix cross-compilation results.
30003         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
30004         statement, as third argument of AC_TRY_RUN.
30005         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30006         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30007         Likewise.
30008         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30009         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
30010         Likewise.
30011         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30012         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
30013         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
30014
30015 2009-04-20  Bruno Haible  <bruno@clisp.org>
30016
30017         Avoid test failure on mingw.
30018         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
30019
30020 2009-04-20  Bruno Haible  <bruno@clisp.org>
30021
30022         Avoid compilation error on mingw.
30023         * modules/localename-tests (Depends-on): Add locale.
30024
30025 2009-04-19  Bruno Haible  <bruno@clisp.org>
30026
30027         Support for building a shared library on Windows platforms.
30028         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
30029         (main): Test the presence of UNINORM_NFC here.
30030         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
30031         (main): Test the presence of UNINORM_NFD here.
30032         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
30033         (main): Test the presence of UNINORM_NFKC here.
30034         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
30035         (main): Test the presence of UNINORM_NFKD here.
30036
30037 2009-04-19  Bruno Haible  <bruno@clisp.org>
30038
30039         Avoid a compiler warning.
30040         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
30041         Change type of variable 'sequence'.
30042
30043 2009-04-19  Bruno Haible  <bruno@clisp.org>
30044
30045         * modules/configmake (Makefile.am): When the contents of configmake.h
30046         does not change, arrange to preserve its modification time.
30047
30048 2009-04-17  Simon Josefsson  <simon@josefsson.org>
30049
30050         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
30051         gettext domain.
30052
30053 2009-04-16  Jim Meyering  <meyering@redhat.com>
30054
30055         useless-if-before-free: improve conversion code
30056         * build-aux/useless-if-before-free: Adjust code-in-comment to match
30057         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
30058
30059 2009-04-14  Bruno Haible  <bruno@clisp.org>
30060
30061         * modules/fcntl (Depends-on): Add extensions.
30062         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
30063
30064 2009-04-12  Ben Pfaff  <blp@gnu.org>
30065
30066         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
30067         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
30068
30069 2009-03-20  Ben Pfaff  <blp@gnu.org>
30070
30071         Make rename replace existing destinations on Windows.
30072         * m4/rename.m4: Add test for Mingw.
30073         * lib/rename.c: Add rename replacement that uses MoveFileEx with
30074         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
30075         * doc/posix-functions/rename.texi: Document.
30076
30077 2009-04-10  Bruno Haible  <bruno@clisp.org>
30078
30079         New include file "iconveh.h".
30080         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
30081         * lib/striconveh.h: Include it.
30082         (enum iconv_ilseq_handler): Remove definition.
30083         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
30084         striconveh.h.
30085         * lib/striconveha.c: Include striconveh.h.
30086         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
30087         * modules/striconveh (Files): Add lib/iconveh.h.
30088         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
30089         lib/striconveh.h.
30090
30091 2009-04-10  Bruno Haible  <bruno@clisp.org>
30092
30093         * lib/uniconv.h: Update comment.
30094
30095 2009-04-10  Bruno Haible  <bruno@clisp.org>
30096
30097         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
30098         always.
30099         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30100         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30101         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30102         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
30103         "unistring-notinline.h", so that the function gets defined always.
30104         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30105         * lib/unistr/u8-uctomb.c: Likewise.
30106         * lib/unistr/u16-mbtouc.c: Likewise.
30107         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30108         * lib/unistr/u16-uctomb.c: Likewise.
30109         * lib/unistr/u32-mbtouc.c: Likewise.
30110         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30111         * lib/unistr/u32-uctomb.c: Likewise.
30112
30113 2009-04-10  Bruno Haible  <bruno@clisp.org>
30114
30115         Mark 'utime' obsolete.
30116         * modules/utime (Status, Notice): New sections.
30117         Suggested by Jim Meyering.
30118
30119         Fix cross-compile guess for utime test.
30120         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
30121         autoconf.
30122         * doc/posix-functions/utime.texi: Give more precisions.
30123         Reported by Jan <ipif@ymail.com>.
30124
30125 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
30126
30127         filevercmp: correct today's change
30128         * lib/filevercmp.c: Also handle coreutils' test inputs.
30129         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
30130
30131         Fix regression in 'filevercmp' module. Thanks Sven Joachim
30132         for reporting it.
30133         * lib/filevercmp.c: Special handle for "", "." and "..".
30134         * tests/test-filevercmp.c: Enlarge the set suite.
30135
30136 2009-04-07  Jim Meyering  <meyering@redhat.com>
30137
30138         useless-if-before-free: show how to remove braced useless free, too
30139         * build-aux/useless-if-before-free: still only in a comment, though.
30140
30141 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
30142
30143         maint.mk: import changes to syntax-check macros from coreutils
30144         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
30145         Use them in the relevant macros.
30146
30147 2009-04-06  Bruno Haible  <bruno@clisp.org>
30148
30149         Fix unportable use of bit-fields.
30150         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
30151         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
30152         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
30153
30154 2009-04-06  Bruno Haible  <bruno@clisp.org>
30155
30156         Avoid test failures on AIX and OSF/1.
30157         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
30158         that malloc(0) = NULL.
30159         * tests/unicase/test-u8-tolower.c (check): Likewise.
30160         * tests/unicase/test-u8-totitle.c (check): Likewise.
30161         * tests/unicase/test-u8-toupper.c (check): Likewise.
30162         * tests/unicase/test-u16-casefold.c (check): Likewise.
30163         * tests/unicase/test-u16-tolower.c (check): Likewise.
30164         * tests/unicase/test-u16-totitle.c (check): Likewise.
30165         * tests/unicase/test-u16-toupper.c (check): Likewise.
30166         * tests/unicase/test-u32-casefold.c (check): Likewise.
30167         * tests/unicase/test-u32-tolower.c (check): Likewise.
30168         * tests/unicase/test-u32-totitle.c (check): Likewise.
30169         * tests/unicase/test-u32-toupper.c (check): Likewise.
30170         * tests/uninorm/test-u8-nfc.c (check): Likewise.
30171         * tests/uninorm/test-u8-nfd.c (check): Likewise.
30172         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
30173         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
30174         * tests/uninorm/test-u16-nfc.c (check): Likewise.
30175         * tests/uninorm/test-u16-nfd.c (check): Likewise.
30176         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
30177         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
30178         * tests/uninorm/test-u32-nfc.c (check): Likewise.
30179         * tests/uninorm/test-u32-nfd.c (check): Likewise.
30180         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
30181         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
30182
30183 2009-04-05  Bruno Haible  <bruno@clisp.org>
30184
30185         Work around an autoconf limitation.
30186         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
30187         comment line if it would be longer than 3 KB.
30188
30189 2009-04-05  Bruno Haible  <bruno@clisp.org>
30190
30191         Avoid test failure with libiconv-1.13.
30192         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30193         of the expected test results.
30194
30195 2009-04-05  Bruno Haible  <bruno@clisp.org>
30196
30197         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30198         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30199         that it should be installed.
30200
30201 2009-04-05  Bruno Haible  <bruno@clisp.org>
30202
30203         * gnulib-tool: New option --copy-file.
30204         (func_usage): Document it.
30205         (func_dest_tmpfilename): Moved out of func_import.
30206         (func_add_file, func_update_file): New functions, extracted from
30207         func_import.
30208         (func_import): Update.
30209
30210 2009-04-05  Karl Berry  <karl@gnu.org>
30211
30212         * README: prominently mention gnulib-tool.
30213         Rearrange sections so getting the code is near the top.
30214
30215 2009-04-05  Bruno Haible  <bruno@clisp.org>
30216
30217         * lib/unicase.h: Mention u*_cmp2.
30218         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30219         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30220         * lib/unicase/ulc-casecmp.c: Likewise.
30221         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30222         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30223         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30224         unistr/u8-cmp.
30225         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30226         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30227         unistr/u16-cmp.
30228         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30229         unistr/u32-cmp.
30230
30231         * lib/uninorm.h: Mention u*_cmp2.
30232         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30233         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30234         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30235         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30236         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30237         unistr/u8-cmp.
30238         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30239         unistr/u16-cmp.
30240         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30241         unistr/u32-cmp.
30242
30243         New module 'unistr/u32-cmp2'.
30244         * lib/unistr/u32-cmp2.c: New file.
30245         * modules/unistr/u32-cmp2: New file.
30246
30247         New module 'unistr/u16-cmp2'.
30248         * lib/unistr/u16-cmp2.c: New file.
30249         * modules/unistr/u16-cmp2: New file.
30250
30251         New module 'unistr/u8-cmp2'.
30252         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30253         * lib/unistr/u8-cmp2.c: New file.
30254         * lib/unistr/u-cmp2.h: New file.
30255         * modules/unistr/u8-cmp2: New file.
30256
30257 2009-04-05  Bruno Haible  <bruno@clisp.org>
30258
30259         * lib/unictype.h (uc_property_is_valid): New macro.
30260         * tests/unictype/test-pr_byname.c (main): Use it.
30261
30262         * lib/unistr.h: Doc fixes.
30263         * lib/uniconv.h: Doc fixes.
30264         * lib/unictype.h: Doc fixes.
30265
30266 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
30267
30268         Port coreutils 7.2 to Solaris 8.
30269
30270         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
30271         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
30272         for Solaris 8.  This is a bit of a hack, as it means it's the
30273         caller's responsibility to add -lnsl if needed, but most likely it
30274         won't be needed since only getaddrinfo uses this and getaddrinfo
30275         isn't needed on Solaris 8.
30276
30277         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
30278         problem to Solaris 8 encountered with coreutils 7.2, which
30279         resulted in a message "fnmatch.c:292: warning: passing argument 4
30280         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
30281         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
30282
30283 2009-04-03  Simon Josefsson  <simon@josefsson.org>
30284
30285         * m4/ld-version-script.m4: Add FIXME comment.
30286
30287 2009-04-02  Simon Josefsson  <simon@josefsson.org>
30288
30289         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
30290         SOVERSION variable.
30291
30292 2009-04-02  Bruno Haible  <bruno@clisp.org>
30293
30294         * Makefile (info, html, dvi, pdf): Combine the rules.
30295         Suggested by Jim Meyering.
30296
30297 2009-04-01  Bruno Haible  <bruno@clisp.org>
30298
30299         * Makefile (info, html, dvi, pdf): New targets.
30300         Reported by Reuben Thomas <rrt@sc3d.org>.
30301
30302 2009-04-01  Bruno Haible  <bruno@clisp.org>
30303
30304         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
30305         can be put into PATH.
30306         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
30307
30308 2009-04-01  Bruno Haible  <bruno@clisp.org>
30309
30310         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
30311
30312 2009-04-01  Bruno Haible  <bruno@clisp.org>
30313
30314         Rename module 'visibility'.
30315         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30316         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30317         * doc/gnulib.texi: Update.
30318         * MODULES.html.sh (Misc): Update.
30319         * NEWS: Mention the change.
30320
30321 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30322
30323         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30324         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30325         Eric Blake <ebb9@byu.net> for review.
30326         * MODULES.html.sh: Add lib-msvc-compat.
30327         * doc/gnulib.texi: Link to new section.
30328         * m4/ld-output-def.m4: New file.
30329         * doc/ld-output-def.texi: New file.
30330
30331 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30332
30333         Rename ld-version-script to lib-symbol-versions.  Suggested by
30334         Bruno Haible <bruno@clisp.org>.
30335         * modules/ld-version-script: Renamed to lib-symbol-versions.
30336         * doc/ld-version-script.texi: Fix module name.
30337         * MODULES.html.sh: Add lib-symbol-versions.
30338
30339 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30340
30341         * modules/u64-tests: New file.
30342         * tests/test-u64.c: New file.
30343
30344 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30345
30346         * MODULES.html.sh: Mention u64.
30347         * modules/u64: New module.
30348         * modules/crypto/sha512: Depend on u64 module instead of providing
30349         u64.h.
30350
30351 2009-03-27  Eric Blake  <ebb9@byu.net>
30352
30353         test-strerror: make debugging EAI_SYSTEM easier
30354         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30355         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30356         failure was EAI_SYSTEM.
30357
30358 2009-03-25  Bruno Haible  <bruno@clisp.org>
30359
30360         Fix a problem with --enable-relocatable on Solaris 7.
30361         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30362         since 2008-02-24.
30363
30364 2009-03-25  Eric Blake  <ebb9@byu.net>
30365
30366         test-sockets: avoid gcc warning
30367         * tests/test-sockets.c (main): Silence compiler warning.
30368
30369 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30370
30371         New modules nproc, pthread, contributed by Glen Lenker.
30372
30373         * MODULES.html.sh: Add pthread, nproc.
30374         * lib/nproc.c: New file.
30375         * lib/nproc.h: New file.
30376         * lib/pthread.in.h: New file.
30377         * m4/pthread.m4: New file.
30378         * modules/nproc: New file.
30379         * modules/pthread: New file.
30380
30381 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30382
30383         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30384         New variable.
30385
30386 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30387
30388         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30389         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30390         * tests/test-filevercmp.c: Add tests for backup suffixes.
30391
30392 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30393
30394         * modules/stdlib (Depends-on): Add stdint, needed when defining
30395         struct random_data on, for example, HP-UX 10.20.  Reported by
30396         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30397
30398 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30399
30400         * lib/readline.c (readline): Call fflush on stdout after printing
30401         prompt.
30402
30403 2009-03-20  Bruno Haible  <bruno@clisp.org>
30404
30405         Remove dependency from 'close' module to -lws2_32 on native Windows.
30406         * lib/close-hook.h: New file.
30407         * lib/close-hook.c: New file.
30408         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30409         w32sock.h.
30410         (_gl_close_fd_maybe_socket): Remove function.
30411         (rpl_close): Invoke execute_all_close_hooks instead of
30412         _gl_close_fd_maybe_socket.
30413         * lib/sockets.c: Include close-hook.h, w32sock.h.
30414         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30415         (close_sockets_hook): New variable.
30416         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30417         (gl_sockets_cleanup): Unregister it.
30418         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30419         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30420         * modules/close-hook: New file.
30421         * modules/close (Files): Remove lib/w32sock.h.
30422         (Depends-on): Add close-hook.
30423         (Link): Remove section.
30424         * modules/sockets (Files): Add lib/w32sock.h.
30425         (Depends-on): Add close-hook.
30426         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30427         invocation.
30428         * NEWS: Mention that LIB_CLOSE is gone.
30429
30430 2009-03-23  Eric Blake  <ebb9@byu.net>
30431
30432         signal-tests: test previous patch
30433         * tests/test-signal.c: New file.
30434         * modules/signal-tests: Likewise.
30435
30436         signal.h: always support 'volatile sig_atomic_t'
30437         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30438         (gl_SIGNAL_H_DEFAULTS): Add a default.
30439         * modules/signal (Makefile.am): Substitute if needed.
30440         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30441         users can blindly add volatile.
30442         * doc/posix-headers/signal.texi (signal.h): Document it.
30443         Reported by Matthew Woehlke.
30444
30445 2009-03-23  Jim Meyering  <meyering@redhat.com>
30446
30447         pathmax: PATH_MAX: use pathconf only when available
30448         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30449         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30450         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30451         This avoids a link failure in a PSP cross-compilation environment
30452         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30453
30454         * lib/vasnprintf.c (divide): Fix typo in comment.
30455
30456 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30457
30458         * gnulib-tool (func_filter_filelist): Fix comment.
30459
30460 2009-03-20  Bruno Haible  <bruno@clisp.org>
30461
30462         Make sockets.h self-contained.
30463         * lib/sockets.c: Include sockets.h first.
30464         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30465
30466 2009-03-19  Eric Blake  <ebb9@byu.net>
30467
30468         doc: mention more functions added in cygwin 1.7.0
30469         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30470         addition.
30471         * doc/posix-functions/log2f.texi: Likewise.
30472
30473 2009-03-19  Jim Meyering  <meyering@redhat.com>
30474
30475         fsusage: avoid syntax error due to statement-before-declaration
30476         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
30477         after all declarations.  Reported by Matthew Woehlke in
30478         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
30479
30480 2009-03-18  Eric Blake  <ebb9@byu.net>
30481
30482         build-aux/compile: sync from automake
30483         * build-aux/compile: New file, from automake.
30484         * config/srclist.txt: Mention build-aux/compile.
30485
30486 2009-03-17  Bruno Haible  <bruno@clisp.org>
30487
30488         * lib/git-merge-changelog.c: Fix typo in comment.
30489         Reported by Reuben Thomas <rrt@sc3d.org>.
30490
30491 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
30492
30493         * m4/regex.m4: update and improve help for
30494         --without-included-regex.
30495
30496 2009-03-17  Simon Josefsson  <simon@josefsson.org>
30497
30498         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
30499         failure on missing include files.
30500
30501 2009-03-17  Eric Blake  <ebb9@byu.net>
30502
30503         doc: mention more functions added in cygwin 1.7.0
30504         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
30505         addition.
30506         * doc/posix-functions/fwscanf.texi: Likewise.
30507         * doc/posix-functions/swprintf.texi: Likewise.
30508         * doc/posix-functions/swscanf.texi: Likewise.
30509         * doc/posix-functions/vfwprintf.texi: Likewise.
30510         * doc/posix-functions/vfwscanf.texi: Likewise.
30511         * doc/posix-functions/vswprintf.texi: Likewise.
30512         * doc/posix-functions/vswscanf.texi: Likewise.
30513         * doc/posix-functions/vwprintf.texi: Likewise.
30514         * doc/posix-functions/vwscanf.texi: Likewise.
30515         * doc/posix-functions/wcscasecmp.texi: Likewise.
30516         * doc/posix-functions/wcsdup.texi: Likewise.
30517         * doc/posix-functions/wcsftime.texi: Likewise.
30518         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30519         * doc/posix-functions/wprintf.texi: Likewise.
30520         * doc/posix-functions/wscanf.texi: Likewise.
30521         * doc/glibc-functions/gethostbyname2.texi: Likewise.
30522
30523 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30524
30525         maint.mk: really add $(AM_MAKEFLAGS)
30526         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
30527         was inadvertently omitted in the last commit.
30528         Spotted by Bruno Haible.
30529
30530         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
30531         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
30532         $(AM_MAKEFLAGS)' rather than plain `make'.
30533
30534         gnulib-tool: execute $MAKE not make
30535         * gnulib-tool: Default $MAKE to 'make'.
30536         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
30537         than make.  Initialize $MAKE in the do-autobuild script.
30538
30539         gnulib-tool: use $MAKE not make in generated files
30540         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
30541         make, in generated files.  Initialize $MAKE in the do-autobuild
30542         script.
30543
30544         * top/GNUmakefile (_have-git-version-gen): Fix typo.
30545
30546         GNUmakefile: disable parallelism only for multiple, recursive targets
30547         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
30548         additions in the Makefile.
30549         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
30550         by Automake.
30551         (.NOTPARALLEL): Only disable parallel builds if multiple targets
30552         are listed on the command line and at least one of them is
30553         listed in $(ALL_RECURSIVE_TARGETS).
30554
30555 2009-03-14  Bruno Haible  <bruno@clisp.org>
30556
30557         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
30558         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
30559         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
30560         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
30561         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
30562         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
30563         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
30564         unistr/u8-uctomb.
30565         * modules/unistr/u8-strchr (Depends-on): Likewise.
30566         * modules/unistr/u8-strrchr (Depends-on): Likewise.
30567         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
30568         unistr/u16-uctomb.
30569         * modules/unistr/u16-strchr (Depends-on): Likewise.
30570         * modules/unistr/u16-strrchr (Depends-on): Likewise.
30571
30572 2009-03-12  Bruno Haible  <bruno@clisp.org>
30573
30574         Work around select() bug on Interix 3.5.
30575         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
30576         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
30577         * m4/select.m4: New file.
30578         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
30579         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
30580         * modules/select (Files): Add m4/select.m4.
30581         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
30582         * modules/nanosleep (Depends-on): Add select.
30583         * modules/poll (Depends-on): Likewise.
30584         * doc/posix-functions/select.texi: Mention the Interix bug.
30585         Reported by Markus Duft <mduft@gentoo.org>.
30586
30587         * lib/select.c: Renamed from lib/winsock-select.c.
30588         * modules/select (Files): Add lib/select.c, remove
30589         lib/winsock-select.c.
30590         (configure.ac): Update.
30591
30592 2009-03-12  Jim Meyering  <meyering@redhat.com>
30593
30594         avoid gcc warnings about unused macro definitions
30595         * lib/readtokens.c (STREQ): Remove unused definition.
30596         * lib/xmalloc.c (SIZE_MAX): Likewise.
30597         * lib/openat-die.c (N_): Likewise.
30598         * lib/mountlist.c (SIZE_MAX): Remove definition.
30599         Instead, include <stdint.h>.
30600         * lib/readutmp.c: Likewise.
30601         * modules/readutmp (Depends-on): Add stdint.
30602         * modules/mountlist (Depends-on): Add stdint.
30603         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
30604
30605 2009-03-10  Bruno Haible  <bruno@clisp.org>
30606
30607         Tests for module 'mbmemcasecoll'.
30608         * modules/mbmemcasecoll-tests: New file.
30609         * tests/test-mbmemcasecoll1.sh: New file.
30610         * tests/test-mbmemcasecoll2.sh: New file.
30611         * tests/test-mbmemcasecoll3.sh: New file.
30612         * tests/test-mbmemcasecoll.c: New file.
30613
30614         New module 'mbmemcasecoll'.
30615         * lib/mbmemcasecoll.h: New file.
30616         * lib/mbmemcasecoll.c: New file.
30617         * modules/mbmemcasecoll: New file.
30618
30619         * tests/test-mbmemcasecmp.h: New file, extracted from
30620         tests/test-mbmemcasecmp.c.
30621         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
30622         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
30623         (main): Update.
30624         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
30625
30626 2009-03-09  Bruno Haible  <bruno@clisp.org>
30627
30628         Tests for module 'mbmemcasecmp'.
30629         * modules/mbmemcasecmp-tests: New file.
30630         * tests/test-mbmemcasecmp1.sh: New file.
30631         * tests/test-mbmemcasecmp2.sh: New file.
30632         * tests/test-mbmemcasecmp3.sh: New file.
30633         * tests/test-mbmemcasecmp.c: New file.
30634
30635         New module 'mbmemcasecmp'.
30636         * lib/mbmemcasecmp.h: New file.
30637         * lib/mbmemcasecmp.c: New file.
30638         * modules/mbmemcasecmp: New file.
30639
30640 2009-03-09  Bruno Haible  <bruno@clisp.org>
30641
30642         Tests for module 'unicase/ulc-casecoll'.
30643         * modules/unicase/ulc-casecoll-tests: New file.
30644         * tests/unicase/test-ulc-casecoll1.sh: New file.
30645         * tests/unicase/test-ulc-casecoll2.sh: New file.
30646         * tests/unicase/test-ulc-casecoll.c: New file.
30647
30648         New module 'unicase/ulc-casecoll'.
30649         * lib/unicase.h (ulc_casecoll): New declaration.
30650         * lib/unicase/ulc-casecoll.c: New file.
30651         * modules/unicase/ulc-casecoll: New file.
30652
30653         New module 'unicase/ulc-casexfrm'.
30654         * lib/unicase.h (ulc_casexfrm): New declaration.
30655         * lib/unicase/ulc-casexfrm.c: New file.
30656         * modules/unicase/ulc-casexfrm: New file.
30657
30658 2009-03-09  Bruno Haible  <bruno@clisp.org>
30659
30660         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
30661         invocations.
30662
30663         * m4/mbscasecmp.m4: Remove file.
30664         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
30665         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
30666
30667         * m4/mbscasestr.m4: Remove file.
30668         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
30669         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
30670
30671         * m4/mbschr.m4: Remove file.
30672         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
30673         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
30674
30675         * m4/mbscspn.m4: Remove file.
30676         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
30677         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
30678
30679         * m4/mbslen.m4: Remove file.
30680         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
30681         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
30682
30683         * m4/mbsncasecmp.m4: Remove file.
30684         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
30685         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
30686
30687         * m4/mbsnlen.m4: Remove file.
30688         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
30689         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
30690
30691         * m4/mbspbrk.m4: Remove file.
30692         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
30693         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
30694
30695         * m4/mbspcasecmp.m4: Remove file.
30696         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
30697         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
30698
30699         * m4/mbsrchr.m4: Remove file.
30700         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
30701         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
30702
30703         * m4/mbssep.m4: Remove file.
30704         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
30705         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
30706
30707         * m4/mbsspn.m4: Remove file.
30708         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
30709         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
30710
30711         * m4/mbsstr.m4: Remove file.
30712         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
30713         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
30714
30715         * m4/mbstok_r.m4: Remove file.
30716         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
30717         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
30718
30719         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
30720
30721         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
30722         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
30723
30724         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
30725
30726 2009-03-08  Bruno Haible  <bruno@clisp.org>
30727
30728         Tests for module 'unicase/ulc-casecmp'.
30729         * modules/unicase/ulc-casecmp-tests: New file.
30730         * tests/unicase/test-ulc-casecmp1.sh: New file.
30731         * tests/unicase/test-ulc-casecmp2.sh: New file.
30732         * tests/unicase/test-ulc-casecmp.c: New file.
30733
30734         New module 'unicase/ulc-casecmp'.
30735         * lib/unicase.h (ulc_casecmp): New declaration.
30736         * lib/unicase/ulc-casecmp.c: New file.
30737         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
30738         'const SRC_UNIT *'.
30739         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
30740         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
30741         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
30742         * modules/unicase/ulc-casecmp: New file.
30743
30744         Tests for module 'unicase/u32-is-cased'.
30745         * modules/unicase/u32-is-cased-tests: New file.
30746         * tests/unicase/test-u32-is-cased.c: New file.
30747
30748         Tests for module 'unicase/u16-is-cased'.
30749         * modules/unicase/u16-is-cased-tests: New file.
30750         * tests/unicase/test-u16-is-cased.c: New file.
30751
30752         Tests for module 'unicase/u8-is-cased'.
30753         * modules/unicase/u8-is-cased-tests: New file.
30754         * tests/unicase/test-u8-is-cased.c: New file.
30755         * tests/unicase/test-is-cased.h: New file.
30756
30757         New module 'unicase/u32-is-cased'.
30758         * lib/unicase/u32-is-cased.c: New file.
30759         * modules/unicase/u32-is-cased: New file.
30760
30761         New module 'unicase/u16-is-cased'.
30762         * lib/unicase/u16-is-cased.c: New file.
30763         * modules/unicase/u16-is-cased: New file.
30764
30765         New module 'unicase/u8-is-cased'.
30766         * lib/unicase/u8-is-cased.c: New file.
30767         * lib/unicase/u-is-cased.h: New file.
30768         * modules/unicase/u8-is-cased: New file.
30769
30770         Tests for module 'unicase/u32-is-casefolded'.
30771         * modules/unicase/u32-is-casefolded-tests: New file.
30772         * tests/unicase/test-u32-is-casefolded.c: New file.
30773
30774         Tests for module 'unicase/u16-is-casefolded'.
30775         * modules/unicase/u16-is-casefolded-tests: New file.
30776         * tests/unicase/test-u16-is-casefolded.c: New file.
30777
30778         Tests for module 'unicase/u8-is-casefolded'.
30779         * modules/unicase/u8-is-casefolded-tests: New file.
30780         * tests/unicase/test-u8-is-casefolded.c: New file.
30781         * tests/unicase/test-is-casefolded.h: New file.
30782
30783         New module 'unicase/u32-is-casefolded'.
30784         * lib/unicase/u32-is-casefolded.c: New file.
30785         * modules/unicase/u32-is-casefolded: New file.
30786
30787         New module 'unicase/u16-is-casefolded'.
30788         * lib/unicase/u16-is-casefolded.c: New file.
30789         * modules/unicase/u16-is-casefolded: New file.
30790
30791         New module 'unicase/u8-is-casefolded'.
30792         * lib/unicase/u8-is-casefolded.c: New file.
30793         * modules/unicase/u8-is-casefolded: New file.
30794
30795         Tests for module 'unicase/u32-is-titlecase'.
30796         * modules/unicase/u32-is-titlecase-tests: New file.
30797         * tests/unicase/test-u32-is-titlecase.c: New file.
30798
30799         Tests for module 'unicase/u16-is-titlecase'.
30800         * modules/unicase/u16-is-titlecase-tests: New file.
30801         * tests/unicase/test-u16-is-titlecase.c: New file.
30802
30803         Tests for module 'unicase/u8-is-titlecase'.
30804         * modules/unicase/u8-is-titlecase-tests: New file.
30805         * tests/unicase/test-u8-is-titlecase.c: New file.
30806         * tests/unicase/test-is-titlecase.h: New file.
30807
30808         New module 'unicase/u32-is-titlecase'.
30809         * lib/unicase/u32-is-titlecase.c: New file.
30810         * modules/unicase/u32-is-titlecase: New file.
30811
30812         New module 'unicase/u16-is-titlecase'.
30813         * lib/unicase/u16-is-titlecase.c: New file.
30814         * modules/unicase/u16-is-titlecase: New file.
30815
30816         New module 'unicase/u8-is-titlecase'.
30817         * lib/unicase/u8-is-titlecase.c: New file.
30818         * modules/unicase/u8-is-titlecase: New file.
30819
30820         Tests for module 'unicase/u32-is-lowercase'.
30821         * modules/unicase/u32-is-lowercase-tests: New file.
30822         * tests/unicase/test-u32-is-lowercase.c: New file.
30823
30824         Tests for module 'unicase/u16-is-lowercase'.
30825         * modules/unicase/u16-is-lowercase-tests: New file.
30826         * tests/unicase/test-u16-is-lowercase.c: New file.
30827
30828         Tests for module 'unicase/u8-is-lowercase'.
30829         * modules/unicase/u8-is-lowercase-tests: New file.
30830         * tests/unicase/test-u8-is-lowercase.c: New file.
30831         * tests/unicase/test-is-lowercase.h: New file.
30832
30833         New module 'unicase/u32-is-lowercase'.
30834         * lib/unicase/u32-is-lowercase.c: New file.
30835         * modules/unicase/u32-is-lowercase: New file.
30836
30837         New module 'unicase/u16-is-lowercase'.
30838         * lib/unicase/u16-is-lowercase.c: New file.
30839         * modules/unicase/u16-is-lowercase: New file.
30840
30841         New module 'unicase/u8-is-lowercase'.
30842         * lib/unicase/u8-is-lowercase.c: New file.
30843         * modules/unicase/u8-is-lowercase: New file.
30844
30845         Tests for module 'unicase/u32-is-uppercase'.
30846         * modules/unicase/u32-is-uppercase-tests: New file.
30847         * tests/unicase/test-u32-is-uppercase.c: New file.
30848
30849         Tests for module 'unicase/u16-is-uppercase'.
30850         * modules/unicase/u16-is-uppercase-tests: New file.
30851         * tests/unicase/test-u16-is-uppercase.c: New file.
30852
30853         Tests for module 'unicase/u8-is-uppercase'.
30854         * modules/unicase/u8-is-uppercase-tests: New file.
30855         * tests/unicase/test-u8-is-uppercase.c: New file.
30856         * tests/unicase/test-is-uppercase.h: New file.
30857
30858         New module 'unicase/u32-is-uppercase'.
30859         * lib/unicase/u32-is-uppercase.c: New file.
30860         * modules/unicase/u32-is-uppercase: New file.
30861
30862         New module 'unicase/u16-is-uppercase'.
30863         * lib/unicase/u16-is-uppercase.c: New file.
30864         * modules/unicase/u16-is-uppercase: New file.
30865
30866         New module 'unicase/u8-is-uppercase'.
30867         * lib/unicase/u8-is-uppercase.c: New file.
30868         * modules/unicase/u8-is-uppercase: New file.
30869
30870         New module 'unicase/u32-is-invariant'.
30871         * lib/unicase/u32-is-invariant.c: New file.
30872         * modules/unicase/u32-is-invariant: New file.
30873
30874         New module 'unicase/u16-is-invariant'.
30875         * lib/unicase/u16-is-invariant.c: New file.
30876         * modules/unicase/u16-is-invariant: New file.
30877
30878         New module 'unicase/u8-is-invariant'.
30879         * lib/unicase/u8-is-invariant.c: New file.
30880         * lib/unicase/invariant.h: New file.
30881         * lib/unicase/u-is-invariant.h: New file.
30882         * modules/unicase/u8-is-invariant: New file.
30883
30884         Tests for module 'unicase/u32-casecoll'.
30885         * modules/unicase/u32-casecoll-tests: New file.
30886         * tests/unicase/test-u32-casecoll.c: New file.
30887
30888         Tests for module 'unicase/u16-casecoll'.
30889         * modules/unicase/u16-casecoll-tests: New file.
30890         * tests/unicase/test-u16-casecoll.c: New file.
30891
30892         Tests for module 'unicase/u8-casecoll'.
30893         * modules/unicase/u8-casecoll-tests: New file.
30894         * tests/unicase/test-u8-casecoll.c: New file.
30895
30896         New module 'unicase/u32-casecoll'.
30897         * lib/unicase/u32-casecoll.c: New file.
30898         * modules/unicase/u32-casecoll: New file.
30899
30900         New module 'unicase/u16-casecoll'.
30901         * lib/unicase/u16-casecoll.c: New file.
30902         * modules/unicase/u16-casecoll: New file.
30903
30904         New module 'unicase/u8-casecoll'.
30905         * lib/unicase/u8-casecoll.c: New file.
30906         * lib/unicase/u-casecoll.h: New file.
30907         * modules/unicase/u8-casecoll: New file.
30908
30909         New module 'unicase/u32-casexfrm'.
30910         * lib/unicase/u32-casexfrm.c: New file.
30911         * modules/unicase/u32-casexfrm: New file.
30912
30913         New module 'unicase/u16-casexfrm'.
30914         * lib/unicase/u16-casexfrm.c: New file.
30915         * modules/unicase/u16-casexfrm: New file.
30916
30917         New module 'unicase/u8-casexfrm'.
30918         * lib/unicase/u8-casexfrm.c: New file.
30919         * lib/unicase/u-casexfrm.h: New file.
30920         * modules/unicase/u8-casexfrm: New file.
30921
30922         Tests for module 'unicase/u32-casecmp'.
30923         * modules/unicase/u32-casecmp-tests: New file.
30924         * tests/unicase/test-u32-casecmp.c: New file.
30925
30926         Tests for module 'unicase/u16-casecmp'.
30927         * modules/unicase/u16-casecmp-tests: New file.
30928         * tests/unicase/test-u16-casecmp.c: New file.
30929
30930         Tests for module 'unicase/u8-casecmp'.
30931         * modules/unicase/u8-casecmp-tests: New file.
30932         * tests/unicase/test-u8-casecmp.c: New file.
30933         * tests/unicase/test-casecmp.h: New file.
30934
30935         New module 'unicase/u32-casecmp'.
30936         * lib/unicase/u32-casecmp.c: New file.
30937         * modules/unicase/u32-casecmp: New file.
30938
30939         New module 'unicase/u16-casecmp'.
30940         * lib/unicase/u16-casecmp.c: New file.
30941         * modules/unicase/u16-casecmp: New file.
30942
30943         New module 'unicase/u8-casecmp'.
30944         * lib/unicase/u8-casecmp.c: New file.
30945         * lib/unicase/u-casecmp.h: New file.
30946         * modules/unicase/u8-casecmp: New file.
30947
30948         Tests for module 'unicase/u32-casefold'.
30949         * modules/unicase/u32-casefold-tests: New file.
30950         * tests/unicase/test-u32-casefold.c: New file.
30951
30952         Tests for module 'unicase/u16-casefold'.
30953         * modules/unicase/u16-casefold-tests: New file.
30954         * tests/unicase/test-u16-casefold.c: New file.
30955
30956         Tests for module 'unicase/u8-casefold'.
30957         * modules/unicase/u8-casefold-tests: New file.
30958         * tests/unicase/test-u8-casefold.c: New file.
30959
30960         New module 'unicase/u32-casefold'.
30961         * lib/unicase/u32-casefold.c: New file.
30962         * modules/unicase/u32-casefold: New file.
30963
30964         New module 'unicase/u16-casefold'.
30965         * lib/unicase/u16-casefold.c: New file.
30966         * modules/unicase/u16-casefold: New file.
30967
30968         New module 'unicase/u8-casefold'.
30969         * lib/unicase/u8-casefold.c: New file.
30970         * lib/unicase/u-casefold.h: New file.
30971         * modules/unicase/u8-casefold: New file.
30972
30973         New module 'unicase/tocasefold'.
30974         * lib/unicase/casefold.h: New file.
30975         * lib/unicase/tocasefold.c: New file.
30976         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
30977         * modules/unicase/tocasefold: New file.
30978
30979         Tests for module 'unicase/u32-totitle'.
30980         * modules/unicase/u32-totitle-tests: New file.
30981         * tests/unicase/test-u32-totitle.c: New file.
30982
30983         Tests for module 'unicase/u16-totitle'.
30984         * modules/unicase/u16-totitle-tests: New file.
30985         * tests/unicase/test-u16-totitle.c: New file.
30986
30987         Tests for module 'unicase/u8-totitle'.
30988         * modules/unicase/u8-totitle-tests: New file.
30989         * tests/unicase/test-u8-totitle.c: New file.
30990
30991         New module 'unicase/u32-totitle'.
30992         * lib/unicase/u32-totitle.c: New file.
30993         * modules/unicase/u32-totitle: New file.
30994
30995         New module 'unicase/u16-totitle'.
30996         * lib/unicase/u16-totitle.c: New file.
30997         * modules/unicase/u16-totitle: New file.
30998
30999         New module 'unicase/u8-totitle'.
31000         * lib/unicase/u8-totitle.c: New file.
31001         * lib/unicase/u-totitle.h: New file.
31002         * modules/unicase/u8-totitle: New file.
31003
31004         Tests for module 'unicase/u32-tolower'.
31005         * modules/unicase/u32-tolower-tests: New file.
31006         * tests/unicase/test-u32-tolower.c: New file.
31007
31008         Tests for module 'unicase/u16-tolower'.
31009         * modules/unicase/u16-tolower-tests: New file.
31010         * tests/unicase/test-u16-tolower.c: New file.
31011
31012         Tests for module 'unicase/u8-tolower'.
31013         * modules/unicase/u8-tolower-tests: New file.
31014         * tests/unicase/test-u8-tolower.c: New file.
31015
31016         New module 'unicase/u32-tolower'.
31017         * lib/unicase/u32-tolower.c: New file.
31018         * modules/unicase/u32-tolower: New file.
31019
31020         New module 'unicase/u16-tolower'.
31021         * lib/unicase/u16-tolower.c: New file.
31022         * modules/unicase/u16-tolower: New file.
31023
31024         New module 'unicase/u8-tolower'.
31025         * lib/unicase/u8-tolower.c: New file.
31026         * modules/unicase/u8-tolower: New file.
31027
31028         Tests for module 'unicase/u32-toupper'.
31029         * modules/unicase/u32-toupper-tests: New file.
31030         * tests/unicase/test-u32-toupper.c: New file.
31031
31032         Tests for module 'unicase/u16-toupper'.
31033         * modules/unicase/u16-toupper-tests: New file.
31034         * tests/unicase/test-u16-toupper.c: New file.
31035
31036         Tests for module 'unicase/u8-toupper'.
31037         * modules/unicase/u8-toupper-tests: New file.
31038         * tests/unicase/test-u8-toupper.c: New file.
31039
31040         New module 'unicase/u32-toupper'.
31041         * lib/unicase/u32-toupper.c: New file.
31042         * modules/unicase/u32-toupper: New file.
31043
31044         New module 'unicase/u16-toupper'.
31045         * lib/unicase/u16-toupper.c: New file.
31046         * modules/unicase/u16-toupper: New file.
31047
31048         New module 'unicase/u8-toupper'.
31049         * lib/unicase/u8-toupper.c: New file.
31050         * modules/unicase/u8-toupper: New file.
31051
31052         New module 'unicase/u32-casemap'.
31053         * lib/unicase/u32-casemap.c: New file.
31054         * modules/unicase/u32-casemap: New file.
31055
31056         New module 'unicase/u16-casemap'.
31057         * lib/unicase/u16-casemap.c: New file.
31058         * modules/unicase/u16-casemap: New file.
31059
31060         New module 'unicase/u8-casemap'.
31061         * lib/unicase/unicasemap.h: New file.
31062         * lib/unicase/u8-casemap.c: New file.
31063         * lib/unicase/u-casemap.h: New file.
31064         * modules/unicase/u8-casemap: New file.
31065
31066         New module 'unicase/special-casing'.
31067         * lib/unicase/special-casing.h: New file.
31068         * lib/unicase/special-casing.c: New file.
31069         * lib/unicase/special-casing-table.gperf: New file, generated by
31070         gen-uni-tables.c.
31071         * modules/unicase/special-casing: New file.
31072
31073         Tests for module 'unicase/locale-language'.
31074         * modules/unicase/locale-language-tests: New file.
31075         * tests/unicase/test-locale-language.sh: New file.
31076         * tests/unicase/test-locale-language.c: New file.
31077
31078         New module 'unicase/locale-language'.
31079         * lib/unicase/locale-language.c: New file.
31080         * lib/unicase/locale-languages.gperf: New file.
31081         * modules/unicase/locale-language: New file.
31082
31083         Generate more tables for case conversion and case folding.
31084         * lib/gen-uni-tables.c (SCC_*): New enum items.
31085         (struct special_casing_rule): New type.
31086         (casing_rules, num_casing_rules, allocated_casing_rules): New
31087         variables.
31088         (add_casing_rule, fill_casing_rules): New functions.
31089         (struct casefold_rule): New type.
31090         (casefolding_rules, num_casefolding_rules,
31091         allocated_casefolding_rules): New variables.
31092         (fill_casefolding_rules): New function.
31093         (unicode_casefold): New variable.
31094         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
31095         sort_casing_rules, output_casing_rules): New functions.
31096         (main): Accept to more arguments: SpecialCasing.txt and
31097         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
31098         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
31099         Output mapping for casefolding.
31100
31101         * lib/unicase.h: Include stdbool.h, uninorm.h.
31102         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
31103         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
31104         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
31105         arguments.
31106         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
31107         resultp arguments.
31108         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
31109         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
31110         resultp arguments.
31111         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
31112         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
31113         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
31114         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
31115         declarations.
31116         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
31117
31118 2009-03-08  Bruno Haible  <bruno@clisp.org>
31119
31120         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31121         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
31122         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
31123         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31124
31125 2009-03-07  Bruno Haible  <bruno@clisp.org>
31126
31127         Adjust u*_normcmp, u*_normcoll API.
31128         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31129         u16_normcoll, u32_normcoll): Change failure conventions.
31130         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
31131         errno and return -1.
31132         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31133
31134 2009-03-07  Bruno Haible  <bruno@clisp.org>
31135
31136         Tests for module 'uninorm/u32-normcoll'.
31137         * modules/uninorm/u32-normcoll-tests: New file.
31138         * tests/uninorm/test-u32-normcoll.c: New file.
31139
31140         Tests for module 'uninorm/u16-normcoll'.
31141         * modules/uninorm/u16-normcoll-tests: New file.
31142         * tests/uninorm/test-u16-normcoll.c: New file.
31143
31144         Tests for module 'uninorm/u8-normcoll'.
31145         * modules/uninorm/u8-normcoll-tests: New file.
31146         * tests/uninorm/test-u8-normcoll.c: New file.
31147
31148 2009-03-07  Bruno Haible  <bruno@clisp.org>
31149
31150         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
31151         tests/uninorm/test-u32-normcmp.c.
31152         * tests/uninorm/test-u32-normcmp.c: Include it.
31153         (test_nonascii): New function, extracted from main. Add some more
31154         tests.
31155         (main): Invoke test_ascii and test_nonascii.
31156         * modules/uninorm/u32-normcmp-tests (Files): Add
31157         tests/uninorm/test-u32-normcmp.h.
31158         (Depends-on): Remove uninorm/u32-normcmp.
31159
31160         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
31161         tests/uninorm/test-u16-normcmp.c.
31162         * tests/uninorm/test-u16-normcmp.c: Include it.
31163         (test_nonascii): New function, extracted from main. Add some more
31164         tests.
31165         (main): Invoke test_ascii and test_nonascii.
31166         * modules/uninorm/u16-normcmp-tests (Files): Add
31167         tests/uninorm/test-u16-normcmp.h.
31168         (Depends-on): Remove uninorm/u16-normcmp.
31169
31170         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
31171         tests/uninorm/test-u8-normcmp.c.
31172         * tests/uninorm/test-u8-normcmp.c: Include it.
31173         (test_nonascii): New function, extracted from main. Add some more
31174         tests.
31175         (main): Invoke test_ascii and test_nonascii.
31176         * modules/uninorm/u8-normcmp-tests (Files): Add
31177         tests/uninorm/test-u8-normcmp.h.
31178         (Depends-on): Remove uninorm/u8-normcmp.
31179
31180 2009-03-07  Bruno Haible  <bruno@clisp.org>
31181
31182         New module 'uninorm/u32-normcoll'.
31183         * lib/uninorm/u32-normcoll.c: New file.
31184         * modules/uninorm/u32-normcoll: New file.
31185
31186         New module 'uninorm/u16-normcoll'.
31187         * lib/uninorm/u16-normcoll.c: New file.
31188         * modules/uninorm/u16-normcoll: New file.
31189
31190         New module 'uninorm/u8-normcoll'.
31191         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
31192         declarations.
31193         * lib/uninorm/u8-normcoll.c: New file.
31194         * lib/uninorm/u-normcoll.h: New file.
31195         * modules/uninorm/u8-normcoll: New file.
31196
31197         New module 'uninorm/u32-normxfrm'.
31198         * lib/uninorm/u32-normxfrm.c: New file.
31199         * modules/uninorm/u32-normxfrm: New file.
31200
31201         New module 'uninorm/u16-normxfrm'.
31202         * lib/uninorm/u16-normxfrm.c: New file.
31203         * modules/uninorm/u16-normxfrm: New file.
31204
31205         New module 'uninorm/u8-normxfrm'.
31206         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31207         declarations.
31208         * lib/uninorm/u8-normxfrm.c: New file.
31209         * lib/uninorm/u-normxfrm.h: New file.
31210         * modules/uninorm/u8-normxfrm: New file.
31211
31212 2009-03-07  Bruno Haible  <bruno@clisp.org>
31213
31214         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31215         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31216         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31217
31218 2009-03-07  Bruno Haible  <bruno@clisp.org>
31219
31220         New module 'memxfrm'.
31221         * lib/memxfrm.h: New file.
31222         * lib/memxfrm.c: New file.
31223         * modules/memxfrm: New file.
31224
31225 2009-03-07  Bruno Haible  <bruno@clisp.org>
31226
31227         New module 'memcmp2'.
31228         * lib/memcmp2.h: New file.
31229         * lib/memcmp2.c: New file.
31230         * modules/memcmp2: New file.
31231
31232 2009-03-07  Bruno Haible  <bruno@clisp.org>
31233
31234         Tests for module 'uninorm/decomposing-form'.
31235         * modules/uninorm/decomposing-form-tests: New file.
31236         * tests/uninorm/test-decomposing-form.c: New file.
31237
31238         New module 'uninorm/decomposing-form'.
31239         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31240         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31241         Add 'decomposing_variant' field.
31242         * lib/uninorm/decomposing-form.c: New file.
31243         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31244         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31245         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31246         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31247         * modules/uninorm/decomposing-form: New file.
31248         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31249         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31250
31251 2009-03-07  Bruno Haible  <bruno@clisp.org>
31252
31253         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31254         strings.
31255
31256 2009-03-06  Bruno Haible  <bruno@clisp.org>
31257
31258         Tests for module 'uninorm/u32-normcmp'.
31259         * tests/uninorm/test-u32-normcmp.c: New file.
31260         * modules/uninorm/u32-normcmp-tests: New file.
31261
31262         Tests for module 'uninorm/u16-normcmp'.
31263         * tests/uninorm/test-u16-normcmp.c: New file.
31264         * modules/uninorm/u16-normcmp-tests: New file.
31265
31266         Tests for module 'uninorm/u8-normcmp'.
31267         * tests/uninorm/test-u8-normcmp.c: New file.
31268         * modules/uninorm/u8-normcmp-tests: New file.
31269
31270         New module 'uninorm/u32-normcmp'.
31271         * lib/uninorm/u32-normcmp.c: New file.
31272         * modules/uninorm/u32-normcmp: New file.
31273
31274         New module 'uninorm/u16-normcmp'.
31275         * lib/uninorm/u16-normcmp.c: New file.
31276         * modules/uninorm/u16-normcmp: New file.
31277
31278         New module 'uninorm/u8-normcmp'.
31279         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
31280         declarations.
31281         * lib/uninorm/u8-normcmp.c: New file.
31282         * lib/uninorm/u-normcmp.h: New file.
31283         * modules/uninorm/u8-normcmp: New file.
31284
31285 2009-03-06  Bruno Haible  <bruno@clisp.org>
31286
31287         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
31288         Reported by Eric Blake.
31289
31290 2009-03-06  Eric Blake  <ebb9@byu.net>
31291             Bruno Haible  <bruno@clisp.org>
31292
31293         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
31294         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
31295         condition.
31296         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31297         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
31298         condition.
31299         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31300
31301 2009-03-06  Eric Blake  <ebb9@byu.net>
31302
31303         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
31304         to avoid compiler warnings.
31305         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
31306
31307 2009-03-05  Bruno Haible  <bruno@clisp.org>
31308
31309         * tests/test-ftell.c (main): Disable test beyond end of file on
31310         FreeMiNT.
31311         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31312
31313 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
31314
31315         * lib/filevercmp.c: Move hidden files up in ordering.
31316         * tests/test-filevercmp.c: Add tests for hidden files.
31317
31318 2009-03-04  Bruno Haible  <bruno@clisp.org>
31319
31320         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31321         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31322         AM_CFLAGS.
31323         Reported by Simon Josefsson.
31324
31325 2009-03-03  Bruno Haible  <bruno@clisp.org>
31326
31327         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31328         Reported by Simon Josefsson.
31329
31330         * doc/ld-version-script.texi: Update node reference.
31331
31332 2009-03-03  Bruno Haible  <bruno@clisp.org>
31333
31334         * modules/visibility (License): Change to 'unlimited'.
31335         Suggested by Simon Josefsson.
31336
31337 2009-03-03  Jim Meyering  <meyering@redhat.com>
31338
31339         unlinkdir: cannot_unlink_dir may modify process state
31340         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31341         it's neither thread-safe nor appropriate for use in a library.
31342
31343 2009-03-03  Eric Blake  <ebb9@byu.net>
31344
31345         test-closein: silence test under Darwin
31346         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31347         care if it dies from EPIPE or EBADF.
31348
31349 2009-03-03  Bruno Haible  <bruno@clisp.org>
31350
31351         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31352         earlier.
31353         * doc/visibility.texi: Fix @node and @section.
31354
31355 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31356
31357         * doc/gnulib.texi: Link to sections for ld version script and
31358         visibility.
31359         * doc/visibility.texi: Add @node and @section.
31360         * modules/ld-version-script: New module.
31361         * m4/ld-version-script.m4: New file.
31362         * doc/ld-version-script.texi: New file.
31363
31364 2009-03-02  David Lutterkort  <lutter@redhat.com>
31365
31366         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31367         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31368
31369 2009-03-02  Bruno Haible  <bruno@clisp.org>
31370
31371         * doc/visibility.texi: Mention libtool's -export-symbols option.
31372
31373 2009-03-02  Jim Meyering  <meyering@redhat.com>
31374
31375         announce-gen: new option: --no-print-checksums
31376         * build-aux/announce-gen (usage): Describe it.
31377         (print_checksums): Print a newline here, not in the [*] footnote.
31378         (main): Honor it.
31379
31380 2009-03-01  Bruno Haible  <bruno@clisp.org>
31381
31382         Use socklen_t in the native Windows replacements prototypes.
31383         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31384         instead of 'int'.
31385         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31386         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31387         * modules/getsockopt (Depends-on): Add socklen.
31388         * modules/setsockopt (Depends-on): Add socklen.
31389
31390 2009-03-01  Bruno Haible  <bruno@clisp.org>
31391
31392         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31393         least 4.2.
31394
31395 2009-03-01  Eric Blake  <ebb9@byu.net>
31396             Bruno Haible  <bruno@clisp.org>
31397
31398         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31399         error messages.
31400         * lib/wait-process.c (wait_subprocess): Omit error message about
31401         deadly signal sent to the child of termsigp != NULL.
31402
31403 2009-03-01  Eric Blake  <ebb9@byu.net>
31404
31405         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31406
31407 2009-03-01  Bruno Haible  <bruno@clisp.org>
31408
31409         Avoid a gcc warning.
31410         * tests/test-sched.c (b): Make global.
31411         Reported by Eric Blake.
31412
31413 2009-01-19  Martin Lambers  <marlam@marlam.de>
31414
31415         Provide POSIX semantics for socket timeout options on W32.
31416         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31417         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31418         * modules/setsockopt: Depend on sys_time module for struct timeval.
31419         * modules/getsockopt: Depend on sys_time module for struct timeval.
31420
31421 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31422
31423         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31424         __USE_GNU, for consistency with netdb.in.h.
31425         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31426
31427 2009-03-01  Bruno Haible  <bruno@clisp.org>
31428
31429         More support for FreeMiNT.
31430         * lib/fseeko.c (rpl_fseeko): Complete last commit.
31431         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31432
31433 2009-03-01  Bruno Haible  <bruno@clisp.org>
31434
31435         More support for FreeMiNT.
31436         * lib/fpurge.c (fpurge): Correct last commit.
31437         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31438
31439 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31440
31441         Fix unportable awk script in vc-list-files.
31442         * build-aux/vc-list-files: In the replacement awk script, use
31443         substr with a second argument of 1, not zero.
31444         Report by Simon Josefsson.
31445
31446 2009-02-28  Bruno Haible  <bruno@clisp.org>
31447
31448         More support for FreeMiNT.
31449         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31450         to FreeMiNT today.
31451         * lib/fwriting.c (fwriting): Likewise.
31452         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31453
31454 2009-02-28  Bruno Haible  <bruno@clisp.org>
31455
31456         * tests/test-freadseek.c (main): Disable test beyond end of file on
31457         FreeMiNT.
31458         * tests/test-ftello.c (main): Likewise.
31459         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31460
31461 2009-02-28  Bruno Haible  <bruno@clisp.org>
31462
31463         Add tentative support for FreeMiNT.
31464         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31465         * lib/fpurge.c (fpurge): Likewise.
31466         * lib/freadable.c (freadable): Likewise.
31467         * lib/freading.c (freading): Likewise.
31468         * lib/freadptr.c (freadptr): Likewise.
31469         * lib/freadseek.c (freadptrinc): Likewise.
31470         * lib/fseeko.c (rpl_fseeko): Likewise.
31471         * lib/fseterr.c (fseterr): Likewise.
31472         * lib/fwritable.c (fwritable): Likewise.
31473         * lib/fwriting.c (fwriting): Likewise.
31474         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
31475         Hourihane.
31476         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31477
31478 2009-02-28  Bruno Haible  <bruno@clisp.org>
31479
31480         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
31481         SIGCHLD.
31482         Reported by Jim Meyering.
31483
31484 2009-02-28  Bruno Haible  <bruno@clisp.org>
31485
31486         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
31487         Mention the results of these tests on various platforms.
31488         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
31489         order.
31490         * doc/posix-functions/printf.texi: Likewise.
31491         * doc/posix-functions/snprintf.texi: Likewise.
31492         * doc/posix-functions/sprintf.texi: Likewise.
31493         * doc/posix-functions/vfprintf.texi: Likewise.
31494         * doc/posix-functions/vprintf.texi: Likewise.
31495         * doc/posix-functions/vsnprintf.texi: Likewise.
31496         * doc/posix-functions/vsprintf.texi: Likewise.
31497         * doc/glibc-functions/obstack_printf.texi: Likewise.
31498         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31499
31500 2009-02-28  Bruno Haible  <bruno@clisp.org>
31501
31502         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
31503         Reported by Loïc Minier <lool@dooz.org>.
31504
31505 2009-02-27  Bruno Haible  <bruno@clisp.org>
31506
31507         * gnulib-tool (func_import): Make the sed expression used to create the
31508         sed script for updating the .gitignore file POSIX compliant.
31509         Reported by Eric Blake.
31510
31511 2009-02-27  Bruno Haible  <bruno@clisp.org>
31512
31513         * gnulib-tool (sed): Don't alias as "sed --posix".
31514         Reported by Eric Blake.
31515
31516 2009-02-27  Bruno Haible  <bruno@clisp.org>
31517
31518         Avoid test link errors.
31519         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
31520         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
31521         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
31522         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
31523         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31524
31525 2009-02-27  Bruno Haible  <bruno@clisp.org>
31526
31527         Avoid spurious "(cached)" in configure output.
31528         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
31529         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
31530         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31531         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31532         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31533         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31534         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31535         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31536         Reported by Eric Blake.
31537
31538 2009-02-27  Eric Blake  <ebb9@byu.net>
31539
31540         printf: fix regression in previous patch
31541         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
31542
31543 2009-02-27  Bruno Haible  <bruno@clisp.org>
31544
31545         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
31546         value.
31547         * lib/stdint.in.h: Likewise.
31548         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
31549
31550 2009-02-27  Eric Blake  <ebb9@byu.net>
31551
31552         doc: mention more functions added in cygwin 1.7.0
31553         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
31554         addition.
31555         * doc/posix-functions/open_wmemstream.texi: Likewise.
31556         * doc/posix-functions/wcsnlen.texi: Likewise.
31557         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31558         * doc/posix-functions/wcstod.texi: Likewise.
31559         * doc/posix-functions/wcstof.texi: Likewise.
31560         * doc/posix-functions/wcstoimax.texi: Likewise.
31561         * doc/posix-functions/wcstok.texi: Likewise.
31562         * doc/posix-functions/wcstoumax.texi: Likewise.
31563
31564         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
31565         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
31566         * doc/posix-functions/fprintf.texi: Update.
31567         * doc/posix-functions/printf.texi: Update.
31568         * doc/posix-functions/snprintf.texi: Update.
31569         * doc/posix-functions/sprintf.texi: Update.
31570         * doc/posix-functions/vfprintf.texi: Update.
31571         * doc/posix-functions/vprintf.texi: Update.
31572         * doc/posix-functions/vsnprintf.texi: Update.
31573         * doc/posix-functions/vsprintf.texi: Update.
31574         * doc/glibc-functions/obstack_printf.texi: Update.
31575         * doc/glibc-functions/obstack_vprintf.texi: Update.
31576
31577 2009-02-26  Eric Blake  <ebb9@byu.net>
31578
31579         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
31580         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
31581         compilation bug by using runtime conversion.
31582         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31583         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
31584         * modules/ceill-tests (Files): Use nan.h.
31585         * modules/floorl-tests (Files): Likewise.
31586         * modules/frexpl-tests (Files): Likewise.
31587         * modules/isnanl-tests (Files): Likewise.
31588         * modules/ldexpl-tests (Files): Likewise.
31589         * modules/roundl-tests (Files): Likewise.
31590         * modules/truncl-tests (Files): Likewise.
31591         * tests/test-ceill.c (main): Use a working NaN.
31592         * tests/test-floorl.c (main): Likewise.
31593         * tests/test-frexpl.c (main): Likewise.
31594         * tests/test-isnan.c (test_long_double): Likewise.
31595         * tests/test-isnanl.h (main): Likewise.
31596         * tests/test-ldexpl.h (main): Likewise.
31597         * tests/test-roundl.h (main): Likewise.
31598         * tests/test-truncl.h (main): Likewise.
31599         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
31600
31601 2009-02-26  Eric Blake  <ebb9@byu.net>
31602             Bruno Haible  <bruno@clisp.org>
31603
31604         Work around a *printf bug with %ls on Solaris.
31605         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
31606         precision is specified, sprintf stops converting the wide string
31607         argument when the number of bytes that have been produced by this
31608         conversion equals or exceeds the precision.
31609         * doc/posix-functions/fprintf.texi: Update.
31610         * doc/posix-functions/printf.texi: Update.
31611         * doc/posix-functions/snprintf.texi: Update.
31612         * doc/posix-functions/sprintf.texi: Update.
31613         * doc/posix-functions/vfprintf.texi: Update.
31614         * doc/posix-functions/vprintf.texi: Update.
31615         * doc/posix-functions/vsnprintf.texi: Update.
31616         * doc/posix-functions/vsprintf.texi: Update.
31617         * doc/glibc-functions/obstack_printf.texi: Update.
31618         * doc/glibc-functions/obstack_vprintf.texi: Update.
31619
31620 2009-02-26  Eric Blake  <ebb9@byu.net>
31621
31622         stdlib: favor compiler check of random.h
31623         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
31624         to avoid an ObjC random.h installed by Swarm.
31625
31626 2009-02-26  Bruno Haible  <bruno@clisp.org>
31627
31628         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
31629         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
31630         Reported by Gary V. Vaughan <gary@gnu.org>.
31631
31632 2009-02-26  Bruno Haible  <bruno@clisp.org>
31633
31634         Fix *printf behaviour regarding the %ls directive.
31635         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
31636         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
31637         NEED_PRINTF_DIRECTIVE_LS.
31638         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
31639         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31640         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31641         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
31642         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
31643         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
31644         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31645         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31646         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31647         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31648         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31649         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
31650         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31651         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31652         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31653         * doc/posix-functions/fprintf.texi: Update.
31654         * doc/posix-functions/printf.texi: Update.
31655         * doc/posix-functions/snprintf.texi: Update.
31656         * doc/posix-functions/sprintf.texi: Update.
31657         * doc/posix-functions/vfprintf.texi: Update.
31658         * doc/posix-functions/vprintf.texi: Update.
31659         * doc/posix-functions/vsnprintf.texi: Update.
31660         * doc/posix-functions/vsprintf.texi: Update.
31661         * doc/glibc-functions/obstack_printf.texi: Update.
31662         * doc/glibc-functions/obstack_vprintf.texi: Update.
31663         Reported by Eric Blake.
31664
31665 2009-02-25  Bruno Haible  <bruno@clisp.org>
31666
31667         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
31668         with known value.
31669         Reported by Gary V. Vaughan <gary@gnu.org>.
31670
31671 2009-02-25  Bruno Haible  <bruno@clisp.org>
31672
31673         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
31674         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
31675         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
31676         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
31677         Reported by Gary V. Vaughan <gary@gnu.org>.
31678
31679 2009-02-25  Bruno Haible  <bruno@clisp.org>
31680
31681         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
31682         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
31683         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
31684         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
31685         Reported by Gary V. Vaughan <gary@gnu.org>.
31686
31687 2009-02-25  Eric Blake  <ebb9@byu.net>
31688
31689         tests: skip fseek/ftell tests if ungetc is broken
31690         * m4/ungetc.m4: New file.
31691         * modules/fseek-tests: Split test, so ungetc dependency is
31692         separate from rest of test.
31693         * modules/fseeko-tests: Likewise.
31694         * modules/ftell-tests: Likewise.
31695         * modules/ftello-tests: Likewise.
31696         * tests/test-fseek.c (main): Isolate ungetc dependency.
31697         * tests/test-fseeko.c (main): Likewise.
31698         * tests/test-ftell.c (main): Likewise.
31699         * tests/test-ftello.c (main): Likewise.
31700         * tests/test-fseek2.sh: New file.
31701         * tests/test-fseeko2.sh: Likewise.
31702         * tests/test-ftell2.sh: Likewise.
31703         * tests/test-ftello2.sh: Likewise.
31704
31705 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
31706
31707         test-getaddrinfo: fix usage of skip return code 77
31708         * tests/test-gettaddrinfo.c: Return skip code 77 only
31709         for first occurance of skip (4x77 is not 77)
31710
31711 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
31712
31713         strtod: avoid C99 decl-after-statement
31714         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
31715
31716 2009-02-24  Eric Blake  <ebb9@byu.net>
31717
31718         strtod: detect HP-UX 11.31 bug
31719         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
31720         Reported by Gary V. Vaughan.
31721
31722 2009-02-23  Bruno Haible  <bruno@clisp.org>
31723
31724         Fix invalid read past end of memory block.
31725         * lib/vasnprintf.c (DCHAR_SET): Define.
31726         (local_wcslen): Define only when needed.
31727         (local_strnlen, local_wcsnlen): New functions.
31728         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
31729         directives that involve a conversion ourselves.
31730         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
31731         wcsnlen, mbrtowc, wcrtomb.
31732         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
31733         * tests/test-vasprintf-posix.c (test_function): Likewise.
31734         * tests/test-snprintf-posix.h (test_function): Likewise.
31735         * tests/test-sprintf-posix.h (test_function): Likewise.
31736         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31737
31738 2009-02-22  Bruno Haible  <bruno@clisp.org>
31739
31740         Implement new clarified decomposition of Hangul syllables.
31741         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
31742         of type LTV, return only a pairwise decomposition.
31743         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
31744         Likewise.
31745         * tests/uninorm/test-decomposition.c (main): Updated expected result.
31746         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
31747         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
31748
31749 2009-02-22  Bruno Haible  <bruno@clisp.org>
31750
31751         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
31752         zero-length results and shrink excess allocated memory.
31753         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
31754         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
31755         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
31756         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
31757         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
31758         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
31759         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
31760         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
31761         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
31762         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
31763         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
31764         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
31765
31766 2009-02-21  Bruno Haible  <bruno@clisp.org>
31767
31768         * doc/gnulib.texi: Include safe-alloc.texi earlier.
31769         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
31770         spaces after a period. Put a space between a macro name and its
31771         argument list. Trivial rewordings.
31772         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
31773         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
31774         (main): Return 0 explicitly.
31775
31776 2009-02-21  Bruno Haible  <bruno@clisp.org>
31777
31778         Tests for module 'uninorm/filter'.
31779         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
31780         * modules/uninorm/filter-tests: New file.
31781
31782         New module 'uninorm/filter'.
31783         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
31784         uninorm_filter_flush, uninorm_filter_free): New declarations.
31785         * lib/uninorm/uninorm-filter.c: New file.
31786         * modules/uninorm/filter: New file.
31787
31788 2009-02-21  Bruno Haible  <bruno@clisp.org>
31789
31790         Tests for module 'uninorm/nfkc'.
31791         * tests/uninorm/test-nfkc.c: New file.
31792         * tests/uninorm/test-u8-nfkc.c: New file.
31793         * tests/uninorm/test-u16-nfkc.c: New file.
31794         * tests/uninorm/test-u32-nfkc.c: New file.
31795         * tests/uninorm/test-u32-nfkc-big.sh: New file.
31796         * tests/uninorm/test-u32-nfkc-big.c: New file.
31797         * modules/uninorm/nfkc-tests: New file.
31798
31799         New module 'uninorm/nfkc'.
31800         * lib/uninorm/nfkc.c: New file.
31801         * modules/uninorm/nfkc: New file.
31802
31803         Tests for module 'uninorm/nfkd'.
31804         * tests/uninorm/test-nfkd.c: New file.
31805         * tests/uninorm/test-u8-nfkd.c: New file.
31806         * tests/uninorm/test-u16-nfkd.c: New file.
31807         * tests/uninorm/test-u32-nfkd.c: New file.
31808         * tests/uninorm/test-u32-nfkd-big.sh: New file.
31809         * tests/uninorm/test-u32-nfkd-big.c: New file.
31810         * modules/uninorm/nfkd-tests: New file.
31811
31812         New module 'uninorm/nfkd'.
31813         * lib/uninorm/nfkd.c: New file.
31814         * modules/uninorm/nfkd: New file.
31815
31816         Tests for module 'uninorm/nfc'.
31817         * tests/uninorm/test-nfc.c: New file.
31818         * tests/uninorm/test-u8-nfc.c: New file.
31819         * tests/uninorm/test-u16-nfc.c: New file.
31820         * tests/uninorm/test-u32-nfc.c: New file.
31821         * tests/uninorm/test-u32-nfc-big.sh: New file.
31822         * tests/uninorm/test-u32-nfc-big.c: New file.
31823         * modules/uninorm/nfc-tests: New file.
31824
31825         New module 'uninorm/nfc'.
31826         * lib/uninorm/nfc.c: New file.
31827         * modules/uninorm/nfc: New file.
31828
31829         Tests for module 'uninorm/nfd'.
31830         * tests/uninorm/test-nfd.c: New file.
31831         * tests/uninorm/test-u8-nfd.c: New file.
31832         * tests/uninorm/test-u16-nfd.c: New file.
31833         * tests/uninorm/test-u32-nfd.c: New file.
31834         * tests/uninorm/test-u32-nfd-big.sh: New file.
31835         * tests/uninorm/test-u32-nfd-big.c: New file.
31836         * tests/uninorm/test-u32-normalize-big.h: New file.
31837         * tests/uninorm/test-u32-normalize-big.c: New file.
31838         * tests/uninorm/NormalizationTest.txt: New file, created from
31839         Unicode 5.1.0 NormalizationTest.txt.
31840         * modules/uninorm/nfd-tests: New file.
31841
31842         New module 'uninorm/nfd'.
31843         * lib/uninorm/nfd.c: New file.
31844         * modules/uninorm/nfd: New file.
31845
31846         New module 'uninorm/u32-normalize'.
31847         * lib/uninorm/u32-normalize.c: New file.
31848         * modules/uninorm/u32-normalize: New file.
31849
31850         New module 'uninorm/u16-normalize'.
31851         * lib/uninorm/u16-normalize.c: New file.
31852         * modules/uninorm/u16-normalize: New file.
31853
31854         New module 'uninorm/u8-normalize'.
31855         * lib/uninorm/u8-normalize.c: New file.
31856         * lib/uninorm/normalize-internal.h: New file.
31857         * lib/uninorm/u-normalize-internal.h: New file.
31858         * modules/uninorm/u8-normalize: New file.
31859
31860         New module 'uninorm/decompose-internal'.
31861         * lib/uninorm/decompose-internal.c: New file.
31862         * modules/uninorm/decompose-internal: New file.
31863
31864         Tests for module 'uninorm/composition'.
31865         * tests/uninorm/test-composition.c: New file.
31866         * modules/uninorm/composition-tests: New file.
31867
31868         New module 'uninorm/composition'.
31869         * lib/uninorm/composition.c: New file.
31870         * lib/uninorm/composition-table.gperf: New file, generated by
31871         gen-uni-tables.
31872         * modules/uninorm/composition: New file.
31873
31874         Tests for module 'uninorm/compat-decomposition'.
31875         * tests/uninorm/test-compat-decomposition.c: New file.
31876         * modules/uninorm/compat-decomposition-tests: New file.
31877
31878         New module 'uninorm/compat-decomposition'.
31879         * lib/uninorm/decompose-internal.h: New file.
31880         * lib/uninorm/compat-decomposition.c: New file.
31881         * modules/uninorm/compat-decomposition: New file.
31882
31883         Tests for module 'uninorm/canonical-decomposition'.
31884         * tests/uninorm/test-canonical-decomposition.c: New file.
31885         * modules/uninorm/canonical-decomposition-tests: New file.
31886
31887         New module 'uninorm/canonical-decomposition'.
31888         * lib/uninorm/canonical-decomposition.c: New file.
31889         * modules/uninorm/canonical-decomposition: New file.
31890
31891         Tests for module 'uninorm/decomposition'.
31892         * tests/uninorm/test-decomposition.c: New file.
31893         * modules/uninorm/decomposition-tests: New file.
31894
31895         New module 'uninorm/decomposition'.
31896         * lib/uninorm/decomposition.c: New file.
31897         * modules/uninorm/decomposition: New file.
31898
31899         New module 'uninorm/decomposition-table'.
31900         * lib/uninorm/decomposition-table.h: New file.
31901         * lib/uninorm/decomposition-table.c: New file.
31902         * lib/uninorm/decomposition-table1.h: New file, generated by
31903         gen-uni-tables.
31904         * lib/uninorm/decomposition-table2.h: New file, generated by
31905         gen-uni-tables.
31906         * modules/uninorm/decomposition-table: New file.
31907
31908         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
31909         (UC_DECOMP_*): New enumeration items.
31910         (get_decomposition): New function.
31911         (struct decomp_table): New type.
31912         (output_decomposition, output_decomposition_tables): New functions.
31913         (unicode_composition_exclusions): New variable.
31914         (fill_composition_exclusions, debug_output_composition_tables): New
31915         functions.
31916         (main): Accept one more argument. Invoke fill_composition_exclusions.
31917         Output decomposition and composition tables.
31918
31919         New module 'uninorm/base'.
31920         * lib/uninorm.h: New file.
31921         * lib/unictype.h: Update comment.
31922         * modules/uninorm/base: New file.
31923
31924 2009-02-21  David Lutterkort  <lutter@redhat.com>
31925
31926         Tests for module 'safe-alloc'.
31927         * tests/test-safe-alloc.c: New file.
31928         * modules/safe-alloc-tests: New file.
31929
31930         New module 'safe-alloc'.
31931         * lib/safe-alloc.h: New file.
31932         * lib/safe-alloc.c: New file.
31933         * m4/safe-alloc.m4: New file.
31934         * modules/safe-alloc: New file.
31935         * doc/safe-alloc.texi: New file.
31936         * doc/gnulib.texi: Include it.
31937         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31938         safe-alloc.
31939
31940 2009-02-18  Bruno Haible  <bruno@clisp.org>
31941
31942         Fix link error on non-glibc systems.
31943         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
31944         variable.
31945         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31946
31947 2009-02-18  Jim Meyering  <meyering@redhat.com>
31948
31949         fts: avoid used-uninitialized error due to recent change
31950         * lib/fts.c (fts_read): Guard uses of the new member,
31951         parent->fts_n_dirs_remaining, since it's not relevant for
31952         the parent of a directory specified on the command-line.
31953
31954 2009-02-17  James Youngman  <jay@gnu.org>
31955             Bruno Haible  <bruno@clisp.org>
31956
31957         * m4/include_next.m4: Reformulate comment.
31958
31959 2009-02-16  Jim Meyering  <meyering@redhat.com>
31960
31961         fts: add #if guards so that the fts_lgpl module still builds
31962         * lib/fts.c: Guard just-added hash-table-using parts with
31963         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
31964         Reported by Simon Josefsson.
31965
31966 2009-02-15  Bruno Haible  <bruno@clisp.org>
31967
31968         * modules/array-mergesort-tests: New file.
31969         * tests/test-array-mergesort.c: New file.
31970
31971         New module 'array-mergesort'.
31972         * modules/array-mergesort: New file.
31973         * lib/array-mergesort.h: New file.
31974
31975 2009-02-15  Bruno Haible  <bruno@clisp.org>
31976
31977         Fix 2009-02-07 commit.
31978         * lib/gen-uni-tables.c (output_predicate, output_category,
31979         output_combclass, output_bidi_category, output_decimal_digit,
31980         output_digit, output_numeric, output_mirror, output_scripts,
31981         output_ident_category, output_simple_mapping): Fix format directives.
31982         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
31983
31984 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
31985
31986         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
31987         fixes are available from IBM.
31988
31989 2009-02-13  Jim Meyering  <meyering@redhat.com>
31990
31991         fts: arrange not to stat non-directories in more cases
31992         This makes GNU find (when it doesn't need to stat each file)
31993         *much* more efficient at traversing reiserfs file systems.
31994         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
31995         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
31996         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
31997         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
31998         (leaf_optimization_applies): New function.
31999         (LCO_hash, LCO_compare): New helper functions.
32000         (link_count_optimize_ok): New function.
32001         (fts_stat): Initialize new member (if dir).
32002         (fts_read): Decrement parent's fts_n_dirs_remaining count if
32003         we've just stat'ed a directory.  Skip the stat call when possible.
32004         ---
32005         Note this AFS-related exchange:
32006         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
32007         and note find's pioctl call in find/fstype.c.
32008         But that is necessary only if you want to enable the
32009         optimization for AFS, and for now, I don't.
32010
32011         fts: move a function definition "up" (no semantic change)
32012         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
32013         "up" to precede upcoming use of a related function.
32014
32015 2009-02-11  Jim Meyering  <meyering@redhat.com>
32016
32017         fts: correct internal computation of nlinks (optimization-related)
32018         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
32019         whether the current entry is a directory, so don't test it.
32020
32021 2009-02-10  Bruno Haible  <bruno@clisp.org>
32022
32023         Tests for module 'uniwbrk/ulc-wordbreaks'.
32024         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
32025         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
32026         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
32027
32028         Tests for module 'uniwbrk/u32-wordbreaks'.
32029         * modules/uniwbrk/u32-wordbreaks-tests: New file.
32030         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
32031
32032         Tests for module 'uniwbrk/u16-wordbreaks'.
32033         * modules/uniwbrk/u16-wordbreaks-tests: New file.
32034         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
32035
32036         Tests for module 'uniwbrk/u8-wordbreaks'.
32037         * modules/uniwbrk/u8-wordbreaks-tests: New file.
32038         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
32039
32040 2009-02-10  Bruno Haible  <bruno@clisp.org>
32041
32042         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
32043         property.
32044         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
32045         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
32046         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
32047
32048 2009-02-10  Simon Josefsson  <simon@josefsson.org>
32049
32050         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
32051         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
32052
32053 2009-02-10  Bruno Haible  <bruno@clisp.org>
32054
32055         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
32056         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
32057         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
32058         * lib/unilbrk/u8-possible-linebreaks.c: Update.
32059         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
32060         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
32061
32062 2009-02-09  Simon Josefsson  <simon@josefsson.org>
32063
32064         * lib/sockets.h (gl_fd_to_handle): New function.
32065
32066         * tests/test-sockets.c: Call gl_fd_to_handle.
32067
32068 2009-02-09  Bruno Haible  <bruno@clisp.org>
32069
32070         * doc/havelib.texi: Document the conventions on bi-arch systems.
32071
32072 2009-02-08  Bruno Haible  <bruno@clisp.org>
32073
32074         Document the AC_LIB_LINKFLAGS macro.
32075         * doc/havelib.texi: New file, mostly written on 2005-05-24.
32076         * doc/gnulib.texi: Include it.
32077
32078 2009-02-08  Bruno Haible  <bruno@clisp.org>
32079
32080         Fix wrong order of sections, compared to TOC.
32081         * doc/gnulib.texi: Include relocatable-maint.texi after the
32082         "Regular expressions" node, not before.
32083
32084 2009-02-08  Bruno Haible  <bruno@clisp.org>
32085
32086         Tests for module 'unicase/totitle'.
32087         * modules/unicase/totitle-tests: New file.
32088
32089         Tests for module 'unicase/tolower'.
32090         * modules/unicase/tolower-tests: New file.
32091
32092         Tests for module 'unicase/toupper'.
32093         * modules/unicase/toupper-tests: New file.
32094         * tests/unicase/test-mapping-part1.h: New file.
32095         * tests/unicase/test-mapping-part2.h: New file.
32096
32097         New module 'unicase/totitle'.
32098         * modules/unicase/totitle: New file.
32099         * lib/unicase/totitle.c: New file.
32100
32101         New module 'unicase/tolower'.
32102         * modules/unicase/tolower: New file.
32103         * lib/unicase/tolower.c: New file.
32104
32105         New module 'unicase/toupper'.
32106         * modules/unicase/toupper: New file.
32107         * lib/unicase/toupper.c: New file.
32108         * lib/unicase/simple-mapping.h: New file.
32109
32110         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
32111         (mapping_table): New structure.
32112         (output_simple_mapping): New function.
32113         (main): Invoke output_simple_mapping_test and output_simple_mapping.
32114         * modules/gen-uni-tables (Description): Update.
32115         * lib/unicase/toupper.h: New file, automatically generated by
32116         gen-uni-tables.
32117         * lib/unicase/tolower.h: New file, automatically generated by
32118         gen-uni-tables.
32119         * lib/unicase/totitle.h: New file, automatically generated by
32120         gen-uni-tables.
32121         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
32122         gen-uni-tables.
32123         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
32124         gen-uni-tables.
32125         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
32126         gen-uni-tables.
32127
32128         New module 'unicase/base'.
32129         * modules/unicase/base: New file.
32130         * lib/unicase.h: New file.
32131
32132 2009-02-08  Bruno Haible  <bruno@clisp.org>
32133
32134         New module 'uniwbrk/ulc-wordbreaks'.
32135         * modules/uniwbrk/ulc-wordbreaks: New file.
32136         * lib/uniwbrk/ulc-wordbreaks.c: New file.
32137
32138         New module 'uniwbrk/u32-wordbreaks'.
32139         * modules/uniwbrk/u32-wordbreaks: New file.
32140         * lib/uniwbrk/u32-wordbreaks.c: New file.
32141
32142         New module 'uniwbrk/u16-wordbreaks'.
32143         * modules/uniwbrk/u16-wordbreaks: New file.
32144         * lib/uniwbrk/u16-wordbreaks.c: New file.
32145
32146         New module 'uniwbrk/u8-wordbreaks'.
32147         * modules/uniwbrk/u8-wordbreaks: New file.
32148         * lib/uniwbrk/u8-wordbreaks.c: New file.
32149         * lib/uniwbrk/u-wordbreaks.h: New file.
32150
32151         New module 'uniwbrk/table'.
32152         * modules/uniwbrk/table: New file.
32153         * lib/uniwbrk/wbrktable.h: New file.
32154         * lib/uniwbrk/wbrktable.c: New file.
32155
32156         New module 'uniwbrk/wordbreak-property'.
32157         * modules/uniwbrk/wordbreak-property: New file.
32158         * lib/uniwbrk/wordbreak-property.c: New file.
32159
32160         * lib/gen-uni-tables.c (WBP_*): New enum items.
32161         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
32162         (unicode_org_wbp): New variable.
32163         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
32164         New functions.
32165         (wbp_table): New structure.
32166         (output_wbp, output_wbrk_tables): New functions.
32167         (main): Accept additional argument. Invoke fill_org_wbp,
32168         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
32169         output_wbrk_tables.
32170         * modules/gen-uni-tables (Description): Update.
32171         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
32172         gen-uni-tables.
32173
32174         New module 'uniwbrk/base'.
32175         * modules/uniwbrk/base: New file.
32176         * lib/uniwbrk.h: New file.
32177
32178 2009-02-08  Bruno Haible  <bruno@clisp.org>
32179
32180         Update to Unicode 5.1.0.
32181         * lib/gen-uni-tables.c (is_property_alphabetic): Include
32182         U+2185..U+2188.
32183         (is_property_default_ignorable_code_point): Don't include characters
32184         of category Cc or Cs and not-a-characters.
32185         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
32186         U+0D79, U+109E, U+109F, U+A60C.
32187         * lib/unictype/bidi_of.h: Regenerated.
32188         * lib/unictype/blocks.h: Regenerated.
32189         * lib/unictype/categ_C.h: Regenerated.
32190         * lib/unictype/categ_Cf.h: Regenerated.
32191         * lib/unictype/categ_Cn.h: Regenerated.
32192         * lib/unictype/categ_L.h: Regenerated.
32193         * lib/unictype/categ_Ll.h: Regenerated.
32194         * lib/unictype/categ_Lm.h: Regenerated.
32195         * lib/unictype/categ_Lo.h: Regenerated.
32196         * lib/unictype/categ_Lu.h: Regenerated.
32197         * lib/unictype/categ_M.h: Regenerated.
32198         * lib/unictype/categ_Mc.h: Regenerated.
32199         * lib/unictype/categ_Me.h: Regenerated.
32200         * lib/unictype/categ_Mn.h: Regenerated.
32201         * lib/unictype/categ_N.h: Regenerated.
32202         * lib/unictype/categ_Nd.h: Regenerated.
32203         * lib/unictype/categ_Nl.h: Regenerated.
32204         * lib/unictype/categ_No.h: Regenerated.
32205         * lib/unictype/categ_P.h: Regenerated.
32206         * lib/unictype/categ_Pd.h: Regenerated.
32207         * lib/unictype/categ_Pe.h: Regenerated.
32208         * lib/unictype/categ_Pf.h: Regenerated.
32209         * lib/unictype/categ_Pi.h: Regenerated.
32210         * lib/unictype/categ_Po.h: Regenerated.
32211         * lib/unictype/categ_Ps.h: Regenerated.
32212         * lib/unictype/categ_S.h: Regenerated.
32213         * lib/unictype/categ_Sk.h: Regenerated.
32214         * lib/unictype/categ_Sm.h: Regenerated.
32215         * lib/unictype/categ_So.h: Regenerated.
32216         * lib/unictype/categ_of.h: Regenerated.
32217         * lib/unictype/combining.h: Regenerated.
32218         * lib/unictype/ctype_alnum.h: Regenerated.
32219         * lib/unictype/ctype_alpha.h: Regenerated.
32220         * lib/unictype/ctype_graph.h: Regenerated.
32221         * lib/unictype/ctype_lower.h: Regenerated.
32222         * lib/unictype/ctype_print.h: Regenerated.
32223         * lib/unictype/ctype_punct.h: Regenerated.
32224         * lib/unictype/ctype_upper.h: Regenerated.
32225         * lib/unictype/decdigit.h: Regenerated.
32226         * lib/unictype/digit.h: Regenerated.
32227         * lib/unictype/mirror.h: Regenerated.
32228         * lib/unictype/numeric.h: Regenerated.
32229         * lib/unictype/pr_alphabetic.h: Regenerated.
32230         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32231         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32232         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32233         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32234         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32235         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32236         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32237         * lib/unictype/pr_combining.h: Regenerated.
32238         * lib/unictype/pr_dash.h: Regenerated.
32239         * lib/unictype/pr_decimal_digit.h: Regenerated.
32240         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32241         * lib/unictype/pr_deprecated.h: Regenerated.
32242         * lib/unictype/pr_diacritic.h: Regenerated.
32243         * lib/unictype/pr_extender.h: Regenerated.
32244         * lib/unictype/pr_format_control.h: Regenerated.
32245         * lib/unictype/pr_grapheme_base.h: Regenerated.
32246         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32247         * lib/unictype/pr_grapheme_link.h: Regenerated.
32248         * lib/unictype/pr_id_continue.h: Regenerated.
32249         * lib/unictype/pr_id_start.h: Regenerated.
32250         * lib/unictype/pr_ideographic.h: Regenerated.
32251         * lib/unictype/pr_ignorable_control.h: Regenerated.
32252         * lib/unictype/pr_lowercase.h: Regenerated.
32253         * lib/unictype/pr_math.h: Regenerated.
32254         * lib/unictype/pr_numeric.h: Regenerated.
32255         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32256         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32257         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32258         * lib/unictype/pr_other_id_continue.h: Regenerated.
32259         * lib/unictype/pr_other_lowercase.h: Regenerated.
32260         * lib/unictype/pr_other_math.h: Regenerated.
32261         * lib/unictype/pr_punctuation.h: Regenerated.
32262         * lib/unictype/pr_sentence_terminal.h: Regenerated.
32263         * lib/unictype/pr_soft_dotted.h: Regenerated.
32264         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
32265         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
32266         * lib/unictype/pr_unified_ideograph.h: Regenerated.
32267         * lib/unictype/pr_uppercase.h: Regenerated.
32268         * lib/unictype/pr_xid_continue.h: Regenerated.
32269         * lib/unictype/pr_xid_start.h: Regenerated.
32270         * lib/unictype/pr_zero_width.h: Regenerated.
32271         * lib/unictype/scripts.h: Regenerated.
32272         * lib/unictype/scripts_byname.gperf: Regenerated.
32273         * lib/unictype/sy_java_ident.h: Regenerated.
32274         * lib/unilbrk/lbrkprop1.h: Regenerated.
32275         * lib/unilbrk/lbrkprop2.h: Regenerated.
32276         * tests/unictype/test-categ_C.c: Regenerated.
32277         * tests/unictype/test-categ_Cf.c: Regenerated.
32278         * tests/unictype/test-categ_Cn.c: Regenerated.
32279         * tests/unictype/test-categ_L.c: Regenerated.
32280         * tests/unictype/test-categ_Ll.c: Regenerated.
32281         * tests/unictype/test-categ_Lm.c: Regenerated.
32282         * tests/unictype/test-categ_Lo.c: Regenerated.
32283         * tests/unictype/test-categ_Lu.c: Regenerated.
32284         * tests/unictype/test-categ_M.c: Regenerated.
32285         * tests/unictype/test-categ_Mc.c: Regenerated.
32286         * tests/unictype/test-categ_Me.c: Regenerated.
32287         * tests/unictype/test-categ_Mn.c: Regenerated.
32288         * tests/unictype/test-categ_N.c: Regenerated.
32289         * tests/unictype/test-categ_Nd.c: Regenerated.
32290         * tests/unictype/test-categ_Nl.c: Regenerated.
32291         * tests/unictype/test-categ_No.c: Regenerated.
32292         * tests/unictype/test-categ_P.c: Regenerated.
32293         * tests/unictype/test-categ_Pd.c: Regenerated.
32294         * tests/unictype/test-categ_Pe.c: Regenerated.
32295         * tests/unictype/test-categ_Pf.c: Regenerated.
32296         * tests/unictype/test-categ_Pi.c: Regenerated.
32297         * tests/unictype/test-categ_Po.c: Regenerated.
32298         * tests/unictype/test-categ_Ps.c: Regenerated.
32299         * tests/unictype/test-categ_S.c: Regenerated.
32300         * tests/unictype/test-categ_Sk.c: Regenerated.
32301         * tests/unictype/test-categ_Sm.c: Regenerated.
32302         * tests/unictype/test-categ_So.c: Regenerated.
32303         * tests/unictype/test-ctype_alnum.c: Regenerated.
32304         * tests/unictype/test-ctype_alpha.c: Regenerated.
32305         * tests/unictype/test-ctype_graph.c: Regenerated.
32306         * tests/unictype/test-ctype_lower.c: Regenerated.
32307         * tests/unictype/test-ctype_print.c: Regenerated.
32308         * tests/unictype/test-ctype_punct.c: Regenerated.
32309         * tests/unictype/test-ctype_upper.c: Regenerated.
32310         * tests/unictype/test-decdigit.h: Regenerated.
32311         * tests/unictype/test-digit.h: Regenerated.
32312         * tests/unictype/test-numeric.h: Regenerated.
32313         * tests/unictype/test-pr_alphabetic.c: Regenerated.
32314         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32315         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32316         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32317         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
32318         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
32319         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
32320         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32321         * tests/unictype/test-pr_combining.c: Regenerated.
32322         * tests/unictype/test-pr_dash.c: Regenerated.
32323         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32324         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32325         * tests/unictype/test-pr_deprecated.c: Regenerated.
32326         * tests/unictype/test-pr_diacritic.c: Regenerated.
32327         * tests/unictype/test-pr_extender.c: Regenerated.
32328         * tests/unictype/test-pr_format_control.c: Regenerated.
32329         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32330         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32331         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32332         * tests/unictype/test-pr_id_continue.c: Regenerated.
32333         * tests/unictype/test-pr_id_start.c: Regenerated.
32334         * tests/unictype/test-pr_ideographic.c: Regenerated.
32335         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32336         * tests/unictype/test-pr_lowercase.c: Regenerated.
32337         * tests/unictype/test-pr_math.c: Regenerated.
32338         * tests/unictype/test-pr_numeric.c: Regenerated.
32339         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32340         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32341         Regenerated.
32342         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32343         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32344         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32345         * tests/unictype/test-pr_other_math.c: Regenerated.
32346         * tests/unictype/test-pr_punctuation.c: Regenerated.
32347         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32348         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32349         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32350         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32351         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32352         * tests/unictype/test-pr_uppercase.c: Regenerated.
32353         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32354         * tests/unictype/test-pr_xid_start.c: Regenerated.
32355         * tests/unictype/test-pr_zero_width.c: Regenerated.
32356
32357         Update to Unicode 5.1.0.
32358         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32359         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32360         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32361         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32362         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32363         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32364         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32365         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32366         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32367         (nonspacing_table_ind): Update.
32368         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32369
32370         Update to Unicode 5.1.0.
32371         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32372         code transform.
32373         * lib/uniname/uniname.c (unicode_character_name,
32374         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32375         * lib/uniname/uninames.h: Regenerated.
32376         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32377
32378 2009-02-07  Bruno Haible  <bruno@clisp.org>
32379
32380         Merge gen-ctype and gen-lbrk into a single program.
32381         * lib/gen-uni-tables.c: New file, incorporating
32382         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32383         Add directory prefixes to the names of the generated files.
32384         * lib/unictype/gen-ctype.c: Remove file.
32385         * lib/unilbrk/gen-lbrk.c: Remove file.
32386         * modules/gen-uni-tables: New file.
32387         * modules/unictype/gen-ctype: Remove file.
32388         * modules/unilbrk/gen-lbrk: Remove file.
32389
32390 2009-02-07  Bruno Haible  <bruno@clisp.org>
32391
32392         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32393
32394         New module 'unistr/u32-strcoll'.
32395         * modules/unistr/u32-strcoll: New file.
32396         * lib/unistr/u32-strcoll.c: New file.
32397
32398         New module 'unistr/u16-strcoll'.
32399         * modules/unistr/u16-strcoll: New file.
32400         * lib/unistr/u16-strcoll.c: New file.
32401
32402         New module 'unistr/u8-strcoll'.
32403         * modules/unistr/u8-strcoll: New file.
32404         * lib/unistr/u8-strcoll.c: New file.
32405         * lib/unistr/u-strcoll.h: New file.
32406
32407 2009-02-07  Bruno Haible  <bruno@clisp.org>
32408
32409         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32410         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32411         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32412         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32413         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32414         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32415
32416 2009-02-07  Bruno Haible  <bruno@clisp.org>
32417
32418         Make 64-bit clean.
32419         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32420         output_combclass, output_bidi_category, output_decimal_digit,
32421         output_digit, output_numeric, output_mirror, output_scripts,
32422         output_ident_category): Use proper width specifier in format strings.
32423
32424 2009-02-07  Bruno Haible  <bruno@clisp.org>
32425
32426         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32427         failure behaviour.
32428
32429 2009-02-07  Jim Meyering  <meyering@redhat.com>
32430
32431         regex: avoid compilation failure with upcoming gcc-4.4
32432         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32433         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32434         "... error: integer overflow in preprocessor expression".
32435
32436 2009-02-05  Ben Pfaff  <blp@gnu.org>
32437
32438         Fix link errors on Windows when close module is used.
32439         * modules/close: Add $(LIB_CLOSE) to Link section.
32440         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32441         $(LIB_CLOSE) on Windows.
32442
32443 2009-02-05  Jim Meyering  <meyering@redhat.com>
32444
32445         still avoid unused-parameter warnings, but do it cleanly
32446         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32447         (get_fs_usage): Cast to void instead.
32448         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32449         (dev_from_mount_options, read_file_system_list): Cast to void.
32450         Prompted by Bruno Haible.
32451
32452 2009-02-04  Jim Meyering  <meyering@redhat.com>
32453
32454         fsusage.c: correct copyright year
32455         * lib/fsusage.c: Reflect year in which the change is pushed into
32456
32457         avoid misc. warnings
32458         * lib/fsusage.c (UNUSED_PARAM): Define.
32459         (get_fs_usage): Mark parameter "disk" as unused.
32460         * lib/getugroups.c (getgrent): Use "void" in prototype.
32461         * lib/mountlist.c: Mark unused parameters.
32462         (read_file_system_list): Declare a local with "const".
32463         * lib/nanosleep.c (getnow): Declare static.
32464         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32465
32466         dirfd: set errno upon failure
32467         * lib/dirfd.c: Include <errno.h>.
32468         Set errno to ENOTSUP when returning -1.
32469         * modules/dirfd (Depends-on): Add errno.
32470         Suggested by John Kodis <kodis@comcast.net>.
32471
32472 2009-02-01  Bruno Haible  <bruno@clisp.org>
32473
32474         Don't assume sizeof (long) >= sizeof (void *).
32475         * lib/memcmp.c: Include stdint.h.
32476         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
32477         srcp2 to 'const byte *'.
32478         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
32479         types to uintptr_t.
32480         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
32481         * modules/memcmp (Depends-on): Add stdint.
32482         Reported by Ozkan Sezer <sezeroz@gmail.com>.
32483
32484 2009-01-30  Eric Blake  <ebb9@byu.net>
32485
32486         fix more require-before-expand issues
32487         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
32488         expand, AC_PROG_AWK.
32489         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
32490
32491 2009-01-28  Eric Blake  <ebb9@byu.net>
32492
32493         version-etc: use consistent URL formatting
32494         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
32495         Improve formatting.  Use fputs for string without %.
32496
32497 2009-01-28  Jim Meyering  <meyering@redhat.com>
32498
32499         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
32500         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
32501         "underquoted definition of NAME" from autoconf-2.59.
32502
32503 2009-01-28  Bruno Haible  <bruno@clisp.org>
32504
32505         * doc/gnulib.texi: Add "Obsolete modules" to index.
32506
32507 2009-01-28  Jim Meyering  <meyering@redhat.com>
32508
32509         useless-if-before-free: recognize more variants
32510         * build-aux/useless-if-before-free: Also recognize e.g.,
32511         if (NULL != p) free (p);
32512
32513 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
32514
32515         test-getaddrinfo: skip (don't fail) this test when there's no network
32516         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
32517         on the presumption that it means you lack network access.
32518
32519 2009-01-26  Jim Meyering  <meyering@redhat.com>
32520
32521         fflush: avoid warnings on modern systems
32522         * lib/fflush.c (rpl_fflush): Move declarations of locals,
32523         pos and result, into scopes where they're used.
32524
32525 2009-01-26  Eric Blake  <ebb9@byu.net>
32526
32527         Silence warning reintroduced by recent extensions patch.
32528         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
32529         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
32530         autoconf.
32531
32532         Backport improved autoconf semantics of AC_DEFUN_ONCE.
32533         * m4/00gnulib.m4: New file.
32534         * gnulib-tool (func_get_filelist): Always use it.
32535         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
32536         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
32537
32538 2009-01-25  Bruno Haible  <bruno@clisp.org>
32539
32540         Make test-quotearg work on MacOS X and AIX.
32541         * tests/test-quotearg.sh: New file.
32542         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
32543         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
32544         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
32545         include <libintl.h>.
32546         (fake_locale): Remove variable.
32547         (gettext, dgettext, dcgettext): Remove functions.
32548         (main): Instead of setting a fake locale, set a real locale. Call
32549         textdomain and bindtextdomain.
32550         * modules/quotearg-tests (Files): Add the new files.
32551         (Depends-on): Add gettext, setenv, unsetenv.
32552         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32553         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
32554         Augment TESTS_ENVIRONMENT.
32555
32556 2009-01-25  Bruno Haible  <bruno@clisp.org>
32557
32558         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
32559         fr_FR.ISO8859-1 locale on MacOS X.
32560         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
32561         ja_JP.eucJP locale on MacOS X.
32562         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
32563         zh_CN.GB18030 locale on MacOS X.
32564
32565 2009-01-25  Bruno Haible  <bruno@clisp.org>
32566
32567         Avoid link errors on MacOS X 10.3.
32568         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
32569         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32570
32571 2009-01-25  Bruno Haible  <bruno@clisp.org>
32572
32573         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32574         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
32575         * modules/pipe (Files): Remove m4/posix_spawn.m4.
32576         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32577         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
32578         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32579         posix_spawnattr_init, posix_spawnattr_setsigmask,
32580         posix_spawnattr_setflags, posix_spawnattr_destroy.
32581
32582         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32583         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
32584         * modules/execute (Files): Remove m4/posix_spawn.m4.
32585         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32586         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32587         posix_spawnattr_init, posix_spawnattr_setsigmask,
32588         posix_spawnattr_setflags, posix_spawnattr_destroy.
32589
32590 2009-01-25  Bruno Haible  <bruno@clisp.org>
32591
32592         * lib/glthread/threadlib.c: Include <stdlib.h>.
32593
32594 2009-01-25  Bruno Haible  <bruno@clisp.org>
32595
32596         * lib/glthread/threadlib.c (dummy): New declaration.
32597
32598 2009-01-25  Bruno Haible  <bruno@clisp.org>
32599
32600         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
32601         multibyte characters also for the GB18030 encoding. Don't crash when
32602         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
32603
32604 2009-01-25  Bruno Haible  <bruno@clisp.org>
32605
32606         Avoid redefining 'struct random_data' on OSF/1 5.1.
32607         * lib/stdlib.in.h: Include <random.h> if it exists.
32608         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
32609         HAVE_RANDOM_H. Include <random.h> when testing whether
32610         'struct random_data' exists.
32611         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
32612
32613 2009-01-25  Bruno Haible  <bruno@clisp.org>
32614
32615         Don't install charset.alias on MacOS X >= 10.3.
32616         * lib/localcharset.c (DARWIN7): New macro.
32617         (get_charset_aliases): Hardcode the result for Darwin7.
32618         * modules/localcharset (install-exec-local): Don't install
32619         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
32620
32621 2009-01-25  Bruno Haible  <bruno@clisp.org>
32622
32623         Don't install charset.alias on mingw and Cygwin.
32624         * modules/localcharset (install-exec-local): Don't install
32625         charset.alias on mingw and Cygwin, if the file does not yet exist.
32626         The result for these platforms is hardcoded in localcharset.c.
32627
32628 2009-01-25  Bruno Haible  <bruno@clisp.org>
32629
32630         Make it possible again to use AC_GNU_SOURCE together with gnulib.
32631         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
32632         before requiring AC_USE_SYSTEM_EXTENSIONS.
32633
32634 2009-01-25  Jim Meyering  <meyering@redhat.com>
32635
32636         c-strtod: avoid warnings
32637         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
32638         "assignment discards qualifiers from pointer target type" warnings.
32639
32640 2009-01-24  Bruno Haible  <bruno@clisp.org>
32641
32642         Add support for non-UTF-8 locales on MacOS X.
32643         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
32644         canonical encodings. For Darwin 7 and newer, don't map traditional
32645         encodings to UTF-8.
32646         Reported by Vincent Lefevre <vincent@vinc17.org>
32647         at <http://savannah.gnu.org/bugs/?25235>.
32648
32649 2009-01-24  Bruno Haible  <bruno@clisp.org>
32650
32651         * doc/gnulib.texi (Obsolete modules): New section.
32652         Reported by Mike Frysinger <vapier@gentoo.org>.
32653
32654 2009-01-24  Bruno Haible  <bruno@clisp.org>
32655
32656         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
32657         (%.dvi): New rule.
32658
32659 2009-01-24  Bruno Haible  <bruno@clisp.org>
32660
32661         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
32662         Reported by Eric Blake.
32663
32664 2009-01-24  Bruno Haible  <bruno@clisp.org>
32665
32666         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
32667         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
32668         Reported by Gary V. Vaughan <gary@gnu.org>.
32669
32670 2009-01-24  Bruno Haible  <bruno@clisp.org>
32671
32672         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
32673
32674 2009-01-23  Bruno Haible  <bruno@clisp.org>
32675
32676         Make c-strtod, c-strtold usable in libraries.
32677         * lib/c-strtod.c: Include string.h instead of xalloc.h.
32678         (C_STRTOD): Call strdup instead of xstrdup.
32679         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
32680         * modules/c-strtold (Depends-on): Likewise.
32681         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
32682         * NEWS: Mention the change.
32683         Reported by Michael Gold <mgold@ncf.ca>.
32684
32685 2009-01-23  Jim Meyering  <meyering@redhat.com>
32686
32687         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
32688         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
32689         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
32690
32691 2009-01-23  Simon Josefsson  <simon@josefsson.org>
32692
32693         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
32694         GNU CoreUtils.
32695         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
32696         * modules/version-etc (Description): Update.
32697
32698 2009-01-22  Bruno Haible  <bruno@clisp.org>
32699
32700         Cache the C locale object.
32701         * lib/c-strtod.c (c_locale_cache): New variable.
32702         (c_locale): New function.
32703         (C_STRTOD): Use it, and don't call freelocale.
32704         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
32705         Suggested by Paolo Bonzini.
32706
32707 2009-01-21  Bruno Haible  <bruno@clisp.org>
32708
32709         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
32710         conditions other than overflow.
32711
32712 2009-01-21  Bruno Haible  <bruno@clisp.org>
32713
32714         * lib/c-strtod.c: Include errno.h.
32715         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
32716         value from STRTOD_L and STRTOD.
32717
32718 2009-01-21  Bruno Haible  <bruno@clisp.org>
32719         and Jim Meyering  <meyering@redhat.com>
32720
32721         nanosleep: skip configure test (fail it) for apple universal builds
32722         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
32723         universal builds, assume that nanosleep does not work.
32724         * modules/nanosleep (Depends-on): Add multiarch.
32725
32726         mktime: skip configure test (fail it) for apple universal builds
32727         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
32728         universal builds, assume that mktime does not work.
32729         * modules/mktime (Depends-on): Add multiarch.
32730
32731 2009-01-21  Eric Blake  <ebb9@byu.net>
32732
32733         multiarch: avoid expand-before-require warning
32734         * modules/multiarch (configure.ac): Require, rather than expand,
32735         gl_MULTIARCH.
32736         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
32737         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
32738         enforce that all clients require it.  Partial reversion of
32739         2008-12-29 patch.
32740
32741         error: avoid expand-before-require warning
32742         * modules/errno (configure.ac): Require, rather than expand,
32743         gl_HEADER_ERRNO_H.
32744         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
32745         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
32746         enforce that all clients require it.
32747
32748         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
32749         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
32750         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
32751         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
32752
32753 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
32754
32755         Revert:
32756         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32757
32758         regex: do not depend on obsolete modules.
32759         * modules/regex: Remove memcmp and memmove.
32760
32761 2009-01-20  Bruno Haible  <bruno@clisp.org>
32762
32763         Make the 'link' module link on Windows NT 4.
32764         * lib/link.c (_WIN32_WINNT): Don't define.
32765         (CreateHardLinkFuncType): New type.
32766         (CreateHardLinkFunc, initialized): New variables.
32767         (initialize): New function.
32768         (link): Invoke CreateHardLink indirectly through the function pointer.
32769
32770 2009-01-20  Bruno Haible  <bruno@clisp.org>
32771
32772         Fix compilation failure on mingw.
32773         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
32774
32775 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
32776
32777         * doc/c-strtod.texi: Mention a couple of restrictions.
32778
32779 2009-01-20  Jim Meyering  <meyering@redhat.com>
32780
32781         gettimeofday: move more declarations out of functions
32782         * lib/gettimeofday.c: Move extern declarations of tzset and
32783         gmtime out of containing functions.  Prompted by Bruno Haible.
32784
32785 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32786
32787         regex: do not depend on obsolete modules.
32788         * modules/regex: Remove memcmp and memmove.
32789
32790 2009-01-19  Bruno Haible  <bruno@clisp.org>
32791
32792         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32793         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
32794         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32795         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
32796         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
32797
32798 2009-01-19  Bruno Haible  <bruno@clisp.org>
32799
32800         * tests/test-link.c: Include <errno.h>.
32801         (main): Exit with code 77 when a hard link cannot be created due to
32802         the file system.
32803         * tests/test-link.sh: Skip test when a hard link cannot be created due
32804         to the file system.
32805         Suggested by Eric Blake.
32806
32807 2009-01-19  Martin Lambers  <marlam@marlam.de>
32808
32809         * modules/link-tests: New file.
32810         * tests/test-link.sh: New file.
32811         * tests/test-link.c: New file.
32812
32813 2009-01-19  Eric Blake  <ebb9@byu.net>
32814
32815         doc: mention another function added in cygwin 1.7.0
32816         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
32817         Another new function in cygwin 1.7.
32818
32819 2009-01-19  Bruno Haible  <bruno@clisp.org>
32820
32821         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32822         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
32823         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
32824         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32825         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32826         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32827         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32828         * m4/md4.m4 (gl_MD4): Likewise.
32829         * m4/md5.m4 (gl_MD5): Likewise.
32830         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
32831         * m4/sha1.m4 (gl_SHA1): Likewise.
32832         * m4/sha256.m4 (gl_SHA256): Likewise.
32833         * m4/sha512.m4 (gl_SHA512): Likewise.
32834
32835 2009-01-19  Bruno Haible  <bruno@clisp.org>
32836
32837         * modules/uniname/uniname-tests (Depends-on): Add progname.
32838         * tests/uniname/test-uninames.c: Include progname.h.
32839         (main): Call set_program_name.
32840
32841         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
32842         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
32843         (main): Call set_program_name.
32844
32845         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
32846         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
32847         (main): Call set_program_name.
32848
32849         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
32850         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
32851         (main): Call set_program_name.
32852
32853         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
32854         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
32855         (main): Call set_program_name.
32856
32857         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
32858         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
32859         (main): Call set_program_name.
32860
32861         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
32862         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
32863         (main): Call set_program_name.
32864
32865         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
32866         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
32867         (main): Call set_program_name.
32868
32869         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
32870         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
32871         (main): Call set_program_name.
32872
32873 2009-01-19  Eric Blake  <ebb9@byu.net>
32874
32875         test-unistd: test previous patch
32876         * tests/test-unistd.c: Test *_FILENO macros.
32877
32878         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
32879         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32880         Guarantee a definition.
32881         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
32882         * modules/unistd-safer (Depends-on): Add dependency on unistd.
32883         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
32884         * lib/dup-safer.c (STDERR_FILENO): Likewise.
32885         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32886         Likewise.
32887         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
32888         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
32889         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32890         Likewise.
32891         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
32892         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
32893         (STDERR_FILENO): Likewise.
32894         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
32895         (STDERR_FILENO): Likewise.
32896         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
32897         (STDERR_FILENO): Likewise.
32898         Reported by Elbert Pol.
32899
32900 2009-01-19  Eric Blake  <ebb9@byu.net>
32901
32902         doc: mention more functions added in cygwin 1.7.0
32903         * doc/posix-functions/abort.texi (abort): Update wording related
32904         to cygwin.
32905         * doc/posix-functions/daylight.texi (daylight): Likewise.
32906         * doc/posix-functions/optarg.texi (optarg): Likewise.
32907         * doc/posix-functions/optarg.texi (opterr): Likewise.
32908         * doc/posix-functions/optarg.texi (optind): Likewise.
32909         * doc/posix-functions/optarg.texi (optopt): Likewise.
32910         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
32911         worked in 1.5.x, and was withdrawn in 1.7.
32912         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
32913         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
32914         cygwin versions.
32915         * doc/posix-functions/perror.texi (perror): Likewise.
32916         * doc/posix-functions/printf.texi (printf): Likewise.
32917         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
32918         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
32919         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32920         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32921         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
32922         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
32923         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
32924         Likewise.
32925         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
32926         Likewise.
32927         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
32928         this function.
32929         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
32930         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
32931         Likewise.
32932         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
32933         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
32934         * doc/posix-functions/confstr.texi (confstr): Likewise.
32935         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
32936         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
32937         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
32938         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
32939         * doc/posix-functions/fputws.texi (fputws): Likewise.
32940         * doc/posix-functions/fwide.texi (fwide): Likewise.
32941         * doc/posix-functions/getwc.texi (getwc): Likewise.
32942         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
32943         * doc/posix-functions/putwc.texi (putwc): Likewise.
32944         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
32945         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
32946         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
32947         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
32948         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
32949         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
32950         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
32951         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
32952         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
32953         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
32954         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
32955
32956 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32957
32958         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
32959         * lib/ioctl.c: Include <sys/ioctl.h>.
32960
32961 2009-01-19  Simon Josefsson  <simon@josefsson.org>
32962
32963         * modules/getdate-tests (Depends-on): Add progname.
32964         * tests/test-getdate.c: Use progname module, to avoid link errors
32965         on non-glibc systems.
32966
32967 2009-01-18  Simon Josefsson  <simon@josefsson.org>
32968
32969         * modules/filenamecat-tests (Depends-on): Add progname.
32970         * modules/fstrcmp-tests (Depends-on): Likewise.
32971
32972         * tests/test-filenamecat.c: Use progname module, to avoid link
32973         errors on non-glibc systems.
32974         * tests/test-fstrcmp.c: Likewise.
32975
32976 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32977
32978         gettimeofday: avoid warning: nested extern declaration of 'localtime'
32979         * lib/gettimeofday.c: Move extern declaration out of function.
32980
32981 2009-01-18  Bruno Haible  <bruno@clisp.org>
32982
32983         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
32984         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
32985         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
32986
32987 2009-01-18  Bruno Haible  <bruno@clisp.org>
32988
32989         * lib/strftime.c (MEMPCPY): Remove unused macro.
32990         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
32991
32992 2009-01-18  Martin Lambers  <marlam@marlam.de>
32993
32994         New module 'link'.
32995         * lib/unistd.in.h (link): New declaration.
32996         * lib/link.c: New file.
32997         * m4/link.m4: New file.
32998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
32999         HAVE_LINK.
33000         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
33001         * modules/link: New file.
33002         * doc/posix-functions/link.texi: Mention the new module.
33003
33004 2009-01-18  Bruno Haible  <bruno@clisp.org>
33005
33006         * tests/test-avltree_list.c (main): Call set_program_name.
33007         * tests/test-avltree_oset.c (main): Likewise.
33008         * tests/test-obstack-printf.c: Include progname.h.
33009         (main): Call set_program_name.
33010         * tests/test-quotearg.c: Include progname.h.
33011         (main): Call set_program_name.
33012         * tests/test-xmemdup0.c: Include progname.h.
33013         (main): Call set_program_name.
33014
33015 2009-01-18  Bruno Haible  <bruno@clisp.org>
33016
33017         New module 'alphasort'.
33018         * lib/dirent.in.h (alphasort): New declaration.
33019         * lib/alphasort.c: New file, from glibc with modifications.
33020         * m4/alphasort.m4: New file.
33021         * modules/alphasort: New file.
33022         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
33023         HAVE_ALPHASORT.
33024         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
33025         HAVE_ALPHASORT.
33026         * doc/posix-functions/alphasort.texi: Mention the new module and the
33027         portability problems.
33028
33029 2009-01-18  Bruno Haible  <bruno@clisp.org>
33030
33031         New module 'scandir'.
33032         * lib/dirent.in.h (scandir): New declaration.
33033         * lib/scandir.c: New file, from glibc with modifications.
33034         * m4/scandir.m4: New file.
33035         * modules/scandir: New file.
33036         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
33037         HAVE_SCANDIR.
33038         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
33039         HAVE_SCANDIR.
33040         * doc/posix-functions/scandir.texi: Mention the new module and the
33041         portability problems.
33042
33043 2009-01-17  Bruno Haible  <bruno@clisp.org>
33044
33045         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
33046         Update documentation.
33047         (func_remove_suffix): Escape all dots in the suffix. Update
33048         documentation.
33049         (func_filter_filelist): Update documentation.
33050         Reported by Ralf Wildenhues.
33051
33052 2009-01-17  Bruno Haible  <bruno@clisp.org>
33053
33054         * modules/dprintf-posix-tests: New file.
33055         * tests/test-dprintf-posix.sh: New file.
33056         * tests/test-dprintf-posix.c: New file.
33057
33058         New modules 'dprintf', 'dprintf-posix'.
33059         * lib/stdio.in.h (dprintf): New declaration.
33060         * lib/dprintf.c: New file.
33061         * m4/dprintf.m4: New file.
33062         * m4/dprintf-posix.m4: New file.
33063         * modules/dprintf: New file.
33064         * modules/dprintf-posix: New file.
33065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
33066         HAVE_DPRINTF, REPLACE_DPRINTF.
33067         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
33068         HAVE_DPRINTF, REPLACE_DPRINTF.
33069         * doc/posix-functions/dprintf.texi: Mention the new modules.
33070
33071 2009-01-17  Bruno Haible  <bruno@clisp.org>
33072
33073         * modules/vdprintf-posix-tests: New file.
33074         * tests/test-vdprintf-posix.sh: New file.
33075         * tests/test-vdprintf-posix.c: New file.
33076
33077         New modules 'vdprintf', 'vdprintf-posix'.
33078         * lib/stdio.in.h (vdprintf): New declaration.
33079         * lib/vdprintf.c: New file.
33080         * m4/vdprintf.m4: New file.
33081         * m4/vdprintf-posix.m4: New file.
33082         * modules/vdprintf: New file.
33083         * modules/vdprintf-posix: New file.
33084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
33085         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33086         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
33087         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33088         * doc/posix-functions/vdprintf.texi: Mention the new modules.
33089
33090 2009-01-17  Bruno Haible  <bruno@clisp.org>
33091
33092         Fix replacement of fopen on mingw.
33093         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
33094         mingw.
33095
33096 2009-01-17  Bruno Haible  <bruno@clisp.org>
33097
33098         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
33099         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
33100
33101 2009-01-17  Bruno Haible  <bruno@clisp.org>
33102
33103         Avoid test-fflush2.sh failure on mingw.
33104         * tests/test-fflush2.c: Include binary-io.h.
33105         (main): Put standard input into binary mode.
33106         * modules/fflush-tests (Depends-on): Add binary-io.
33107
33108 2009-01-17  Bruno Haible  <bruno@clisp.org>
33109
33110         * lib/wchar.in.h: In another particular situation, include only the
33111         system's <wchar.h> file.
33112         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
33113         Reported by Albert Chin-A-Young <china@thewrittenword.com>
33114         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
33115
33116 2009-01-17  Bruno Haible  <bruno@clisp.org>
33117
33118         Support for stripping executables in --enable-relocatable.
33119         * build-aux/install-reloc: Expect one more argument, or an environment
33120         variable RELOC_STRIP_PROG. If set, strip the destination program and
33121         its wrapper.
33122         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
33123         RELOC_STRIP_PROG.
33124         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
33125         to set RELOCATABLE_STRIP.
33126         * NEWS: Mention the new Makefile requirement.
33127
33128 2009-01-17  Bruno Haible  <bruno@clisp.org>
33129
33130         * build-aux/install-reloc: Remove debugging information left over by
33131         C compiler on MacOS X.
33132
33133 2009-01-17  Bruno Haible  <bruno@clisp.org>
33134
33135         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
33136         * lib/progreloc.c (find_executable): Fix type of pointer passed to
33137         _NSGetExecutablePath.
33138
33139 2009-01-16  Jim Meyering  <meyering@redhat.com>
33140
33141         strerror: avoid warnings about discarding "const"
33142         * lib/strerror.c (rpl_strerror): Instead of returning a const
33143         string from each and every "case", use a variable, and add a single
33144         cast after the switch.
33145
33146 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
33147
33148         * lib/arpa_inet.in.h: Add extern "C" block for C++.
33149
33150 2009-01-16  Bruno Haible  <bruno@clisp.org>
33151
33152         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
33153         array initializer syntax that also works in C++ mode.
33154         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33155
33156 2009-01-16  Jim Meyering  <meyering@redhat.com>
33157
33158         poll: suppress a warning
33159         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
33160         to ignore "...unsigned expression < 0 is always false" warnings.
33161
33162 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
33163
33164         poll: remove declarations of unused variables
33165         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
33166         sockbuf and optlen.
33167
33168 2009-01-15  Bruno Haible  <bruno@clisp.org>
33169
33170         Make fflush-after-ungetc POSIX compliant on BSD systems.
33171         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
33172         (clear_ungetc_buffer): Implement also for other systems.
33173         (rpl_fflush): On glibc systems, invoke
33174         clear_ungetc_buffer_preserving_position. Otherwise, invoke
33175         clear_ungetc_buffer after fetching the stream's position, not before.
33176
33177 2009-01-15  Bruno Haible  <bruno@clisp.org>
33178
33179         Make fflush-after-ungetc POSIX compliant on glibc systems.
33180         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
33181         after ungetc.
33182         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
33183         (rpl_fflush): On glibc systems, simply call the system's fflush
33184         function after clearing the ungetc buffer.
33185         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
33186         Instead, lseek only to the end of file, then use the system's fseeko
33187         for the rest. On glibc systems, reset the EOF indicator bit.
33188
33189 2009-01-15  Jim Meyering  <meyering@redhat.com>
33190
33191         openmp.m4: revert quote-adding change, for portability to older autoconf
33192         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33193         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33194         Simon Josefsson noticed the problem when using autoconf-2.61.
33195
33196 2009-01-15  Bruno Haible  <bruno@clisp.org>
33197
33198         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33199         * tests/test-fflush2.c (ASSERT): Always fail.
33200         (main): Add two tests for fflush() after ungetc(), taking into account
33201         the Austin Group's clarification.
33202         Suggested by Eric Blake.
33203
33204 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33205
33206         mktime.m4: remove K&R-style function prototypes
33207         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33208         for the Sun C++ compiler.
33209
33210 2009-01-14  Bruno Haible  <bruno@clisp.org>
33211
33212         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33213         while including <wchar.h>.
33214         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33215         the system's <wchar.h> file.
33216         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33217
33218 2009-01-14  Bruno Haible  <bruno@clisp.org>
33219
33220         * m4/csharp.m4: Don't mention gettext on the serial number line.
33221         * m4/csharpexec.m4: Likewise.
33222         * m4/eaccess.m4: Likewise.
33223         * m4/javaexec.m4: Likewise.
33224         * m4/sig_atomic_t.m4: Likewise.
33225         * m4/tmpdir.m4: Likewise.
33226         * m4/intldir.m4: Bump gettext version.
33227         * m4/lib-ld.m4: Likewise.
33228
33229 2009-01-14  Bruno Haible  <bruno@clisp.org>
33230
33231         * lib/progname.c (set_program_name): Add more comments.
33232         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33233
33234 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33235
33236         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33237         were sys/stat.h does not define it.
33238
33239 2009-01-14  Jim Meyering  <meyering@redhat.com>
33240
33241         many *.m4 files: improve m4 quoting
33242         99% of this change was performed by running the following commands:
33243         git ls-files | grep '\.m4$' | xargs perl -pi \
33244           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33245           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33246           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33247           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33248         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33249         The remainder were to add Copyright dates, increment serial numbers,
33250         undo some changes in comments, exclude m4/intl.m4, and add quotes
33251         around the "1" in ",1" where the unusual spacing prohibited the
33252         above regexps from doing the job.  For more details, see
33253         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33254         * m4/acl.m4: Modified.
33255         * m4/afs.m4: Likewise.
33256         * m4/alloca.m4: Likewise.
33257         * m4/argp.m4: Likewise.
33258         * m4/argz.m4: Likewise.
33259         * m4/atexit.m4: Likewise.
33260         * m4/bison-i18n.m4: Likewise.
33261         * m4/bison.m4: Likewise.
33262         * m4/byteswap.m4: Likewise.
33263         * m4/c-stack.m4: Likewise.
33264         * m4/c-strtod.m4: Likewise.
33265         * m4/calloc.m4: Likewise.
33266         * m4/canonicalize-lgpl.m4: Likewise.
33267         * m4/chown.m4: Likewise.
33268         * m4/clock_time.m4: Likewise.
33269         * m4/codeset.m4: Likewise.
33270         * m4/copy-file.m4: Likewise.
33271         * m4/csharp.m4: Likewise.
33272         * m4/csharpcomp.m4: Likewise.
33273         * m4/csharpexec.m4: Likewise.
33274         * m4/d-ino.m4: Likewise.
33275         * m4/d-type.m4: Likewise.
33276         * m4/dirfd.m4: Likewise.
33277         * m4/double-slash-root.m4: Likewise.
33278         * m4/eaccess.m4: Likewise.
33279         * m4/eealloc.m4: Likewise.
33280         * m4/environ.m4: Likewise.
33281         * m4/errno_h.m4: Likewise.
33282         * m4/euidaccess.m4: Likewise.
33283         * m4/execute.m4: Likewise.
33284         * m4/fatal-signal.m4: Likewise.
33285         * m4/fchdir.m4: Likewise.
33286         * m4/fcntl_h.m4: Likewise.
33287         * m4/fileblocks.m4: Likewise.
33288         * m4/filenamecat.m4: Likewise.
33289         * m4/findprog.m4: Likewise.
33290         * m4/flexmember.m4: Likewise.
33291         * m4/fnmatch.m4: Likewise.
33292         * m4/fopen.m4: Likewise.
33293         * m4/fpending.m4: Likewise.
33294         * m4/fprintf-posix.m4: Likewise.
33295         * m4/free.m4: Likewise.
33296         * m4/frexp.m4: Likewise.
33297         * m4/frexpl.m4: Likewise.
33298         * m4/fsusage.m4: Likewise.
33299         * m4/ftruncate.m4: Likewise.
33300         * m4/gc-camellia.m4: Likewise.
33301         * m4/gc-random.m4: Likewise.
33302         * m4/gc.m4: Likewise.
33303         * m4/getaddrinfo.m4: Likewise.
33304         * m4/getcwd-abort-bug.m4: Likewise.
33305         * m4/getcwd-path-max.m4: Likewise.
33306         * m4/getdate.m4: Likewise.
33307         * m4/getdomainname.m4: Likewise.
33308         * m4/getgroups.m4: Likewise.
33309         * m4/gethostname.m4: Likewise.
33310         * m4/gethrxtime.m4: Likewise.
33311         * m4/getline.m4: Likewise.
33312         * m4/getloadavg.m4: Likewise.
33313         * m4/getndelim2.m4: Likewise.
33314         * m4/getpass.m4: Likewise.
33315         * m4/gettext.m4: Likewise.
33316         * m4/gettime.m4: Likewise.
33317         * m4/gettimeofday.m4: Likewise.
33318         * m4/gnulib-common.m4: Likewise.
33319         * m4/group-member.m4: Likewise.
33320         * m4/host-os.m4: Likewise.
33321         * m4/iconv.m4: Likewise.
33322         * m4/iconv_open.m4: Likewise.
33323         * m4/inet_ntop.m4: Likewise.
33324         * m4/inet_pton.m4: Likewise.
33325         * m4/inline.m4: Likewise.
33326         * m4/intldir.m4: Likewise.
33327         * m4/intlmacosx.m4: Likewise.
33328         * m4/intmax.m4: Likewise.
33329         * m4/intmax_t.m4: Likewise.
33330         * m4/inttypes.m4: Likewise.
33331         * m4/inttypes_h.m4: Likewise.
33332         * m4/inttypes-pri.m4: Likewise.
33333         * m4/isapipe.m4: Likewise.
33334         * m4/isnand.m4: Likewise.
33335         * m4/isnanf.m4: Likewise.
33336         * m4/isnanl.m4: Likewise.
33337         * m4/javacomp.m4: Likewise.
33338         * m4/javaexec.m4: Likewise.
33339         * m4/jm-winsz1.m4: Likewise.
33340         * m4/jm-winsz2.m4: Likewise.
33341         * m4/lchown.m4: Likewise.
33342         * m4/lcmessage.m4: Likewise.
33343         * m4/ldexpl.m4: Likewise.
33344         * m4/lib-ld.m4: Likewise.
33345         * m4/lib-link.m4: Likewise.
33346         * m4/libsigsegv.m4: Likewise.
33347         * m4/link-follow.m4: Likewise.
33348         * m4/localcharset.m4: Likewise.
33349         * m4/locale-fr.m4: Likewise.
33350         * m4/locale-ja.m4: Likewise.
33351         * m4/locale-tr.m4: Likewise.
33352         * m4/locale-zh.m4: Likewise.
33353         * m4/lock.m4: Likewise.
33354         * m4/longlong.m4: Likewise.
33355         * m4/ls-mntd-fs.m4: Likewise.
33356         * m4/lstat.m4: Likewise.
33357         * m4/malloc.m4: Likewise.
33358         * m4/mathl.m4: Likewise.
33359         * m4/mbrtowc.m4: Likewise.
33360         * m4/mbstate_t.m4: Likewise.
33361         * m4/mbswidth.m4: Likewise.
33362         * m4/memchr.m4: Likewise.
33363         * m4/memcmp.m4: Likewise.
33364         * m4/memcpy.m4: Likewise.
33365         * m4/memmem.m4: Likewise.
33366         * m4/memmove.m4: Likewise.
33367         * m4/mempcpy.m4: Likewise.
33368         * m4/memrchr.m4: Likewise.
33369         * m4/memset.m4: Likewise.
33370         * m4/minmax.m4: Likewise.
33371         * m4/mkdir-slash.m4: Likewise.
33372         * m4/mkdtemp.m4: Likewise.
33373         * m4/mktime.m4: Likewise.
33374         * m4/mmap-anon.m4: Likewise.
33375         * m4/mountlist.m4: Likewise.
33376         * m4/nanosleep.m4: Likewise.
33377         * m4/nls.m4: Likewise.
33378         * m4/nocrash.m4: Likewise.
33379         * m4/open.m4: Likewise.
33380         * m4/openat.m4: Likewise.
33381         * m4/openmp.m4: Likewise.
33382         * m4/pathmax.m4: Likewise.
33383         * m4/perl.m4: Likewise.
33384         * m4/physmem.m4: Likewise.
33385         * m4/pipe.m4: Likewise.
33386         * m4/po.m4: Likewise.
33387         * m4/poll.m4: Likewise.
33388         * m4/posixtm.m4: Likewise.
33389         * m4/posixver.m4: Likewise.
33390         * m4/printf-frexp.m4: Likewise.
33391         * m4/printf-frexpl.m4: Likewise.
33392         * m4/printf-posix.m4: Likewise.
33393         * m4/printf-posix-rpl.m4: Likewise.
33394         * m4/printf.m4: Likewise.
33395         * m4/progtest.m4: Likewise.
33396         * m4/putenv.m4: Likewise.
33397         * m4/readline.m4: Likewise.
33398         * m4/readlink.m4: Likewise.
33399         * m4/readutmp.m4: Likewise.
33400         * m4/realloc.m4: Likewise.
33401         * m4/regex.m4: Likewise.
33402         * m4/relocatable.m4: Likewise.
33403         * m4/relocatable-lib.m4: Likewise.
33404         * m4/rename-dest-slash.m4: Likewise.
33405         * m4/rename.m4: Likewise.
33406         * m4/rmdir-errno.m4: Likewise.
33407         * m4/rmdir.m4: Likewise.
33408         * m4/roundf.m4: Likewise.
33409         * m4/roundl.m4: Likewise.
33410         * m4/rpmatch.m4: Likewise.
33411         * m4/save-cwd.m4: Likewise.
33412         * m4/selinux-selinux-h.m4: Likewise.
33413         * m4/setenv.m4: Likewise.
33414         * m4/settime.m4: Likewise.
33415         * m4/sig2str.m4: Likewise.
33416         * m4/sig_atomic_t.m4: Likewise.
33417         * m4/signalblocking.m4: Likewise.
33418         * m4/signbit.m4: Likewise.
33419         * m4/sigpipe.m4: Likewise.
33420         * m4/sockets.m4: Likewise.
33421         * m4/sockpfaf.m4: Likewise.
33422         * m4/st_dm_mode.m4: Likewise.
33423         * m4/stat-time.m4: Likewise.
33424         * m4/stdbool.m4: Likewise.
33425         * m4/stdint.m4: Likewise.
33426         * m4/stdint_h.m4: Likewise.
33427         * m4/stpcpy.m4: Likewise.
33428         * m4/stpncpy.m4: Likewise.
33429         * m4/strcase.m4: Likewise.
33430         * m4/strchrnul.m4: Likewise.
33431         * m4/strcspn.m4: Likewise.
33432         * m4/strdup.m4: Likewise.
33433         * m4/strftime.m4: Likewise.
33434         * m4/strndup.m4: Likewise.
33435         * m4/strnlen.m4: Likewise.
33436         * m4/strpbrk.m4: Likewise.
33437         * m4/strptime.m4: Likewise.
33438         * m4/strsep.m4: Likewise.
33439         * m4/strtod.m4: Likewise.
33440         * m4/strtoimax.m4: Likewise.
33441         * m4/strtok_r.m4: Likewise.
33442         * m4/strtol.m4: Likewise.
33443         * m4/strtoll.m4: Likewise.
33444         * m4/strtoul.m4: Likewise.
33445         * m4/strtoull.m4: Likewise.
33446         * m4/strtoumax.m4: Likewise.
33447         * m4/strverscmp.m4: Likewise.
33448         * m4/threadlib.m4: Likewise.
33449         * m4/timegm.m4: Likewise.
33450         * m4/tm_gmtoff.m4: Likewise.
33451         * m4/tmpdir.m4: Likewise.
33452         * m4/tmpfile.m4: Likewise.
33453         * m4/tzset.m4: Likewise.
33454         * m4/uintmax_t.m4: Likewise.
33455         * m4/unlinkdir.m4: Likewise.
33456         * m4/unlocked-io.m4: Likewise.
33457         * m4/uptime.m4: Likewise.
33458         * m4/userspec.m4: Likewise.
33459         * m4/utimbuf.m4: Likewise.
33460         * m4/utime.m4: Likewise.
33461         * m4/utimes-null.m4: Likewise.
33462         * m4/utimes.m4: Likewise.
33463         * m4/vararrays.m4: Likewise.
33464         * m4/vasnprintf.m4: Likewise.
33465         * m4/vfprintf-posix.m4: Likewise.
33466         * m4/vprintf-posix.m4: Likewise.
33467         * m4/wait-process.m4: Likewise.
33468         * m4/wchar_t.m4: Likewise.
33469         * m4/wint_t.m4: Likewise.
33470         * m4/write-any-file.m4: Likewise.
33471         * m4/yield.m4: Likewise.
33472
33473 2009-01-13  Bruno Haible  <bruno@clisp.org>
33474
33475         Avoid test-copy-file.sh failures when ACL support insufficient.
33476         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
33477         TESTS_ENVIRONMENT.
33478         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
33479         Reported by Jim Meyering.
33480
33481 2009-01-13  Bruno Haible  <bruno@clisp.org>
33482
33483         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
33484         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
33485         * modules/unistdio/u8-printf-parse (Files): Likewise.
33486         * modules/unistdio/u32-printf-parse (Files): Likewise.
33487         * modules/unistdio/ulc-printf-parse (Files): Likewise.
33488
33489 2009-01-13  Simon Josefsson  <simon@josefsson.org>
33490
33491         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
33492         and m4/inttypes_h.m4 too.
33493
33494 2009-01-12  Eric Blake  <ebb9@byu.net>
33495
33496         tests: IRIX 6.2 cc can't compile -0.0 into .data
33497         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
33498         rather than at compile-time.
33499         * tests/test-floorl.c (minus_zero): Likewise.
33500         * tests/test-frexpl.c (minus_zero): Likewise.
33501         * tests/test-isnan.c (minus_zerol): Likewise.
33502         * tests/test-isnanl.h (minus_zero): Likewise.
33503         * tests/test-ldexpl.c (minus_zero): Likewise.
33504         * tests/test-roundl.c (minus_zero): Likewise.
33505         * tests/test-signbit.c (minus_zerol): Likewise.
33506         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33507         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33508         * tests/test-truncl.c (minus_zero): Likewise.
33509         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33510         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33511         Reported by Tom G. Christensen and Nelson H. F. Beebe.
33512
33513 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33514
33515         regex: fix glibc bug 9697
33516         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
33517         handling.
33518
33519 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33520
33521         regex: fix glibc bug 697
33522         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
33523         being NULL also if there are no backreferences.
33524
33525 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33526
33527         regex: merge glibc changes
33528         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
33529         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
33530         re_string_skip_chars, re_string_reconstruct): Likewise.
33531         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
33532
33533 2009-01-07  Jim Meyering  <meyering@redhat.com>
33534
33535         poll: filter through cppi
33536         * lib/poll.c: Indent cpp directives to reflect nesting.
33537
33538 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
33539
33540         poll: don't return uninitialized
33541         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
33542
33543 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
33544
33545         avoid compile failure on AIX 6.1
33546         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
33547         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
33548
33549 2009-01-04  Jim Meyering  <meyering@redhat.com>
33550
33551         remove duplicate inclusion of <stdio.h>
33552         * tests/test-fprintf-posix.c: Likewise.
33553         * tests/test-printf-posix.c: Likewise.
33554         * tests/test-snprintf-posix.c: Likewise.
33555         * tests/test-sprintf-posix.c: Likewise.
33556         * tests/test-vasprintf-posix.c: Likewise.
33557         * tests/test-vfprintf-posix.c: Likewise.
33558         * tests/test-vprintf-posix.c: Likewise.
33559         * tests/test-vsnprintf-posix.c: Likewise.
33560         * tests/test-vsprintf-posix.c: Likewise.
33561
33562 2009-01-03  Jim Meyering  <meyering@redhat.com>
33563
33564         gnulib-tool: fix sed-based filtering
33565         * gnulib-tool (func_filter_filelist): Remove extra backslash
33566         in sed_fff_filter definition.
33567
33568 2009-01-02  Jim Meyering  <meyering@redhat.com>
33569
33570         strftime: avoid compilation failure on Solaris 2.6
33571         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
33572         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
33573         Don't #define mbrlen or mbsinit, since now they're guaranteed to
33574         be available.  Reported by Tom G. Christensen.  Details in
33575         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
33576
33577 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33578             Bruno Haible  <bruno@clisp.org>
33579
33580         Speed up gnulib-tool by doing more string processing through shell
33581         built-ins.
33582         * gnulib-tool (fast_func_append): New variable.
33583         (func_remove_prefix, func_remove_suffix): New functions.
33584         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
33585         (func_filter_filelist): New function.
33586         (func_get_dependencies): Use func_remove_suffix instead of sed.
33587         (func_get_automake_snippet): Use func_filter_filelist instead of a
33588         subshell and sed invocation.
33589
33590 2009-01-01  Bruno Haible  <bruno@clisp.org>
33591
33592         Fix a security bug.
33593         * gnulib-tool (func_import, import, update): Don't allow the characters
33594         '"', '$', '`', '\' in macro arguments that become part of commands that
33595         are evaluated.
33596
33597 2009-01-01  Bruno Haible  <bruno@clisp.org>
33598
33599         * gnulib-tool (func_reset_sigpipe): Add more comments.
33600
33601 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33602
33603         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
33604         func_emit_tests_Makefile_am, func_import): Abort loops early if we
33605         already know the answer.
33606
33607 2009-01-01  Jim Meyering  <meyering@redhat.com>
33608
33609         * lib/version-etc.c (version_etc_va): Update copyright year.
33610
33611 2008-12-30  Bruno Haible  <bruno@clisp.org>
33612
33613         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
33614         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
33615         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
33616
33617 2008-12-29  Eric Blake  <ebb9@byu.net>
33618
33619         multiarch: avoid autoconf AC_REQUIRE bug
33620         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
33621         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
33622         2.63 and older.
33623         Reported by Bruno Haible, and analyzed in
33624         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
33625
33626 2008-12-29  Bruno Haible  <bruno@clisp.org>
33627
33628         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
33629         files in subdirectories correctly.
33630         Reported by Ralf Wildenhues.
33631
33632 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33633
33634         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
33635         rather than 'join FILE -', for Solaris join.
33636
33637 2008-12-29  Bruno Haible  <bruno@clisp.org>
33638
33639         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
33640         quoting.
33641         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
33642         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
33643         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
33644         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
33645         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
33646         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
33647         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
33648         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
33649         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33650         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
33651         * m4/nls.m4 (AM_NLS): Likewise.
33652         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
33653         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
33654         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
33655         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
33656         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
33657         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
33658         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
33659         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
33660         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
33661         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
33662         * m4/xsize.m4 (gl_XSIZE): Likewise.
33663         Suggested by Jim Meyering.
33664
33665 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33666
33667         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
33668         * lib/parse-duration.c: use a switch instead of cascading if's.
33669
33670 2008-12-29  Eric Blake  <ebb9@byu.net>
33671
33672         wchar.h: supply WEOF on Irix 5.3
33673         * lib/wchar.in.h (wint_t): Also supply WEOF.
33674         * lib/wctype.in.h (wint_t): Likewise.
33675         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
33676         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
33677         Reported by Tom G. Christensen.
33678
33679 2008-12-26  Bruno Haible  <bruno@clisp.org>
33680
33681         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
33682         i486, i586, i686.
33683
33684 2008-12-26  Bruno Haible  <bruno@clisp.org>
33685
33686         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
33687
33688 2008-12-26  Bruno Haible  <bruno@clisp.org>
33689
33690         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
33691         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
33692         not __STDC_CONSTANT_MACROS.
33693         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33694
33695 2008-12-25  Bruno Haible  <bruno@clisp.org>
33696
33697         Add support for universal builds to vasnprintf.
33698         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
33699         universal builds, guess no.
33700         * modules/vasnprintf-posix (Depends-on): Add multiarch.
33701         * modules/vasprintf-posix (Depends-on): Likewise.
33702         * modules/fprintf-posix (Depends-on): Likewise.
33703         * modules/vfprintf-posix (Depends-on): Likewise.
33704         * modules/snprintf-posix (Depends-on): Likewise.
33705         * modules/vsnprintf-posix (Depends-on): Likewise.
33706         * modules/sprintf-posix (Depends-on): Likewise.
33707         * modules/vsprintf-posix (Depends-on): Likewise.
33708         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33709         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33710         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33711         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33712         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33713         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33714         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33715
33716         Add support for universal builds to <inttypes.h>.
33717         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
33718         _SCNu64_PREFIX): In Apple
33719         universal builds, define directly, using _LP64.
33720         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
33721         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
33722         * modules/inttypes (Depends-on): Add multiarch.
33723         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33724
33725         Add support for universal builds to <stdint.h>.
33726         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
33727         universal builds, define directly, using _LP64.
33728         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
33729         Apple universal builds, don't test for the size and suffix of ptrdiff_t
33730         and size_t.
33731         * modules/stdint (Depends-on): Add multiarch.
33732         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33733
33734         New module 'multiarch'.
33735         * modules/multiarch: New file.
33736         * m4/multiarch.m4: New file.
33737
33738 2008-12-25  Bruno Haible  <bruno@clisp.org>
33739
33740         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
33741
33742 2008-12-25  Bruno Haible  <bruno@clisp.org>
33743
33744         * modules/btowc (License): Relicense under LGPLv2+.
33745         * modules/mbsinit (License): Likewise.
33746         * modules/mbrtowc (License): Likewise.
33747         * modules/wcrtomb (License): Likewise.
33748         * modules/streq (License): Likewise.
33749         Reported by David Lutterkort <lutter@redhat.com>.
33750
33751 2008-12-23  Bruno Haible  <bruno@clisp.org>
33752
33753         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
33754
33755 2008-12-23  Bruno Haible  <bruno@clisp.org>
33756
33757         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
33758         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
33759         GETADDRINFO_LIB, not in LIBS.
33760         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
33761         * modules/canon-host (Link): Likewise.
33762         * NEWS: Mention the change.
33763         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
33764         GETADDRINFO_LIB.
33765
33766 2008-12-22  Bruno Haible  <bruno@clisp.org>
33767
33768         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
33769         * doc/posix-functions/iswalpha_l.texi: Likewise.
33770         * doc/posix-functions/iswblank_l.texi: Likewise.
33771         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33772         * doc/posix-functions/iswctype_l.texi: Likewise.
33773         * doc/posix-functions/iswdigit_l.texi: Likewise.
33774         * doc/posix-functions/iswgraph_l.texi: Likewise.
33775         * doc/posix-functions/iswlower_l.texi: Likewise.
33776         * doc/posix-functions/iswprint_l.texi: Likewise.
33777         * doc/posix-functions/iswpunct_l.texi: Likewise.
33778         * doc/posix-functions/iswspace_l.texi: Likewise.
33779         * doc/posix-functions/iswupper_l.texi: Likewise.
33780         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33781         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
33782         * doc/posix-functions/open_wmemstream.texi: Likewise.
33783         * doc/posix-functions/swscanf.texi: Likewise.
33784         * doc/posix-functions/towctrans_l.texi: Likewise.
33785         * doc/posix-functions/towlower.texi: Likewise.
33786         * doc/posix-functions/towlower_l.texi: Likewise.
33787         * doc/posix-functions/towupper.texi: Likewise.
33788         * doc/posix-functions/towupper_l.texi: Likewise.
33789         * doc/posix-functions/vfwprintf.texi: Likewise.
33790         * doc/posix-functions/vfwscanf.texi: Likewise.
33791         * doc/posix-functions/vswscanf.texi: Likewise.
33792         * doc/posix-functions/vwprintf.texi: Likewise.
33793         * doc/posix-functions/vwscanf.texi: Likewise.
33794         * doc/posix-functions/wcpcpy.texi: Likewise.
33795         * doc/posix-functions/wcpncpy.texi: Likewise.
33796         * doc/posix-functions/wcscasecmp.texi: Likewise.
33797         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
33798         * doc/posix-functions/wcscoll_l.texi: Likewise.
33799         * doc/posix-functions/wcsdup.texi: Likewise.
33800         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33801         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
33802         * doc/posix-functions/wcsnlen.texi: Likewise.
33803         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33804         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33805         * doc/posix-functions/wctrans_l.texi: Likewise.
33806         * doc/posix-functions/wctype_l.texi: Likewise.
33807         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
33808         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
33809         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
33810         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
33811         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
33812         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
33813         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
33814         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
33815         * doc/glibc-functions/wcschrnul.texi: Likewise.
33816         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33817         * doc/glibc-functions/wcstod_l.texi: Likewise.
33818         * doc/glibc-functions/wcstof_l.texi: Likewise.
33819         * doc/glibc-functions/wcstol_l.texi: Likewise.
33820         * doc/glibc-functions/wcstold_l.texi: Likewise.
33821         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33822         * doc/glibc-functions/wcstoq.texi: Likewise.
33823         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33824         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33825         * doc/glibc-functions/wcstouq.texi: Likewise.
33826         * doc/glibc-functions/wmempcpy.texi: Likewise.
33827
33828 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
33829             Eric Blake  <ebb9@byu.net>
33830             Paolo Bonzini  <bonzini@gnu.org>
33831             Bruno Haible  <bruno@clisp.org>
33832
33833         Make c-stack work on Haiku.
33834         * lib/c-stack.c (SA_ONSTACK): Define fallback.
33835         (c_stack_action): Use SA_ONSTACK flag.
33836
33837 2008-12-22  Bruno Haible  <bruno@clisp.org>
33838
33839         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
33840
33841 2008-12-22  Bruno Haible  <bruno@clisp.org>
33842
33843         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
33844         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
33845         being overridden.
33846         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
33847         New macros.
33848         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
33849         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
33850         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
33851         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
33852
33853 2008-12-22  Bruno Haible  <bruno@clisp.org>
33854
33855         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
33856         from test code.
33857
33858 2008-12-22  Eric Blake  <ebb9@byu.net>
33859
33860         Avoid gcc warnings on cygwin.
33861         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
33862         Avoid unused variable.
33863         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
33864         Likewise.
33865
33866 2008-12-22  Bruno Haible  <bruno@clisp.org>
33867
33868         Remove HAVE_MBRTOWC conditionals.
33869         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
33870         (mbscasecmp): Assume mbrtowc function.
33871         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
33872         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
33873         * lib/mbschr.c: Include mbuiter.h unconditionally.
33874         (mbschr): Assume mbrtowc function.
33875         * lib/mbscspn.c: Include mbuiter.h unconditionally.
33876         (mbscspn): Assume mbrtowc function.
33877         * lib/mbslen.c: Include mbuiter.h unconditionally.
33878         (mbslen): Assume mbrtowc function.
33879         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
33880         (mbsncasecmp): Assume mbrtowc function.
33881         * lib/mbsnlen.c: Include mbiter.h unconditionally.
33882         (mbsnlen): Assume mbrtowc function.
33883         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
33884         (mbspbrk): Assume mbrtowc function.
33885         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
33886         (mbspcasecmp): Assume mbrtowc function.
33887         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
33888         (mbsrchr): Assume mbrtowc function.
33889         * lib/mbssep.c: Include mbuiter.h unconditionally.
33890         (mbssep): Assume mbrtowc function.
33891         * lib/mbsspn.c: Include mbuiter.h unconditionally.
33892         (mbsspn): Assume mbrtowc function.
33893         * lib/mbsstr.c: Include mbuiter.h unconditionally.
33894         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
33895         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
33896         (mbstok_r): Assume mbrtowc function.
33897         * lib/propername.c: Include mbuiter.h unconditionally.
33898         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
33899         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
33900         (trim2): Assume mbrtowc function.
33901         * lib/mbswidth.c (mbsinit): Remove fallback definition.
33902         (mbsnwidth): Assume mbrtowc function.
33903         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
33904         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
33905         fallback definitions.
33906         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
33907
33908 2008-12-22  Bruno Haible  <bruno@clisp.org>
33909
33910         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
33911
33912 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
33913
33914         * modules/regex: Request emulations for the mb*/wc* functions we need.
33915         * m4/regex.m4: Don't look for those functions here.
33916         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
33917
33918 2008-12-22  Bruno Haible  <bruno@clisp.org>
33919
33920         * modules/fnmatch (Depends-on): Remove duplicated dependency.
33921
33922 2008-12-21  Bruno Haible  <bruno@clisp.org>
33923
33924         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
33925         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
33926         (Include): Remove conditionalization.
33927         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
33928         (Include): Remove conditionalization.
33929         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
33930         (Include): Remove conditionalization.
33931         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
33932         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33933         * NEWS: Mention the change.
33934         Reported by Alan Hourihane <alanh@fairlite.co.uk>
33935         via Sergey Poznyakoff <gray@gnu.org.ua>.
33936
33937 2008-12-21  Bruno Haible  <bruno@clisp.org>
33938
33939         * MODULES.html.sh (Extended multibyte and wide character utilities
33940         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
33941         wcrtomb, wcsrtombs.
33942         (Support for systems lacking POSIX:2008): Add accept, bind, close,
33943         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
33944         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
33945         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
33946
33947 2008-12-21  Bruno Haible  <bruno@clisp.org>
33948
33949         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
33950
33951 2008-12-21  Bruno Haible  <bruno@clisp.org>
33952
33953         * modules/wcsnrtombs-tests: New file.
33954         * tests/test-wcsnrtombs1.sh: New file.
33955         * tests/test-wcsnrtombs2.sh: New file.
33956         * tests/test-wcsnrtombs3.sh: New file.
33957         * tests/test-wcsnrtombs4.sh: New file.
33958         * tests/test-wcsnrtombs.c: New file.
33959
33960         New module 'wcsnrtombs'.
33961         * lib/wchar.in.h (wcsnrtombs): New declaration.
33962         * lib/wcsnrtombs.c: New file.
33963         * lib/wcsrtombs-state.c: New file.
33964         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
33965         (internal_state): Remove variable.
33966         * m4/wcsnrtombs.m4: New file.
33967         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
33968         compilation units.
33969         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
33970         HAVE_WCSNRTOMBS.
33971         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
33972         HAVE_WCSNRTOMBS.
33973         * modules/wcsnrtombs: New file.
33974         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
33975         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
33976
33977 2008-12-21  Bruno Haible  <bruno@clisp.org>
33978
33979         * modules/wcsrtombs-tests: New file.
33980         * tests/test-wcsrtombs1.sh: New file.
33981         * tests/test-wcsrtombs2.sh: New file.
33982         * tests/test-wcsrtombs3.sh: New file.
33983         * tests/test-wcsrtombs4.sh: New file.
33984         * tests/test-wcsrtombs.c: New file.
33985
33986         New module 'wcsrtombs'.
33987         * lib/wchar.in.h (wcsrtombs): New declaration.
33988         * lib/wcsrtombs.c: New file.
33989         * m4/wcsrtombs.m4: New file.
33990         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
33991         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33992         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
33993         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33994         * modules/wcsrtombs: New file.
33995         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
33996         bugs.
33997
33998 2008-12-21  Bruno Haible  <bruno@clisp.org>
33999
34000         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
34001         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
34002         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
34003         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
34004         if not correct.
34005         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
34006         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
34007         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34008         m4/locale-zh.m4, m4/codeset.m4.
34009         * doc/posix-functions/wcrtomb.texi: Document the bug.
34010
34011 2008-12-21  Bruno Haible  <bruno@clisp.org>
34012
34013         Work around a btowc() bug on IRIX 6.5.
34014         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
34015         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
34016         REPLACE_WTOBC if not.
34017         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
34018         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
34019         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
34020
34021 2008-12-21  Bruno Haible  <bruno@clisp.org>
34022
34023         * modules/wcrtomb-tests: New file.
34024         * tests/test-wcrtomb.sh: New file.
34025         * tests/test-wcrtomb.c: New file.
34026
34027         New module 'wcrtomb'.
34028         * lib/wchar.in.h (wcrtomb): New declaration.
34029         * lib/wcrtomb.c: New file.
34030         * m4/wcrtomb.m4: New file.
34031         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
34032         HAVE_WCRTOMB.
34033         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
34034         HAVE_WCRTOMB.
34035         * modules/wcrtomb: New file.
34036         * doc/posix-functions/wcrtomb.texi: Mention the new module.
34037
34038 2008-12-21  Bruno Haible  <bruno@clisp.org>
34039
34040         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
34041         * modules/mbsrtowcs (Files): Likewise.
34042         * modules/wctob (Files): Likewise.
34043         * modules/c-strcase-tests (Files): Likewise.
34044         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34045         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34046         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34047         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34048         * modules/vasnprintf-posix-tests (Files): Likewise.
34049
34050 2008-12-21  William Pursell  <bill.pursell@gmail.com>
34051
34052         gitlog-to-changelog: pass all command-line arguments to git-log
34053         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
34054         it is sometimes convenient to filter the commits in various ways.
34055         gitlog-to-changelog only allows --since to specify a start date,
34056         but git-log itself supports many other filtering mechanisms.
34057         At the moment, I want to filter by branch name.  Rather than
34058         adding a --branch option to gitlog-to-changelog, it seems more
34059         flexible to simply pass all options directly to git-log and let
34060         git do the work.  Notice that this effectively makes --since a
34061         redundant option for gitlog-to-changelog, but removing it would
34062         require current usage to change since calls would then require
34063         an additional '--'.
34064
34065 2008-12-21  Bruno Haible  <bruno@clisp.org>
34066
34067         * modules/mbsnrtowcs-tests: New file.
34068         * tests/test-mbsnrtowcs1.sh: New file.
34069         * tests/test-mbsnrtowcs2.sh: New file.
34070         * tests/test-mbsnrtowcs3.sh: New file.
34071         * tests/test-mbsnrtowcs4.sh: New file.
34072         * tests/test-mbsnrtowcs.c: New file.
34073
34074         New module 'mbsnrtowcs'.
34075         * lib/wchar.in.h (mbsnrtowcs): New declaration.
34076         * lib/mbsnrtowcs.c: New file.
34077         * lib/mbsrtowcs-state.c: New file.
34078         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
34079         (internal_state): Remove variable.
34080         * m4/mbsnrtowcs.m4: New file.
34081         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
34082         compilation units.
34083         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
34084         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34085         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
34086         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34087         * modules/mbsnrtowcs: New file.
34088         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
34089         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
34090         portability problem.
34091
34092 2008-12-21  Bruno Haible  <bruno@clisp.org>
34093
34094         Work around mbsrtowcs bug.
34095         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
34096         (gl_FUNC_MBSRTOWCS): Invoke it.
34097         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34098         m4/locale-zh.m4.
34099         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
34100
34101 2008-12-21  Bruno Haible  <bruno@clisp.org>
34102
34103         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
34104
34105 2008-12-21  Bruno Haible  <bruno@clisp.org>
34106
34107         Update doc for AIX.
34108         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
34109         16-bit wchar_t type.
34110         * doc/posix-functions/btowc.texi: Likewise.
34111         * doc/posix-functions/fgetwc.texi: Likewise.
34112         * doc/posix-functions/fgetws.texi: Likewise.
34113         * doc/posix-functions/fputwc.texi: Likewise.
34114         * doc/posix-functions/fputws.texi: Likewise.
34115         * doc/posix-functions/fwide.texi: Likewise.
34116         * doc/posix-functions/fwprintf.texi: Likewise.
34117         * doc/posix-functions/fwscanf.texi: Likewise.
34118         * doc/posix-functions/getwchar.texi: Likewise.
34119         * doc/posix-functions/getwc.texi: Likewise.
34120         * doc/posix-functions/iswalnum.texi: Likewise.
34121         * doc/posix-functions/iswalpha.texi: Likewise.
34122         * doc/posix-functions/iswblank.texi: Likewise.
34123         * doc/posix-functions/iswcntrl.texi: Likewise.
34124         * doc/posix-functions/iswctype.texi: Likewise.
34125         * doc/posix-functions/iswdigit.texi: Likewise.
34126         * doc/posix-functions/iswgraph.texi: Likewise.
34127         * doc/posix-functions/iswlower.texi: Likewise.
34128         * doc/posix-functions/iswprint.texi: Likewise.
34129         * doc/posix-functions/iswpunct.texi: Likewise.
34130         * doc/posix-functions/iswspace.texi: Likewise.
34131         * doc/posix-functions/iswupper.texi: Likewise.
34132         * doc/posix-functions/iswxdigit.texi: Likewise.
34133         * doc/posix-functions/mbrtowc.texi: Likewise.
34134         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34135         * doc/posix-functions/mbstowcs.texi: Likewise.
34136         * doc/posix-functions/mbtowc.texi: Likewise.
34137         * doc/posix-functions/putwchar.texi: Likewise.
34138         * doc/posix-functions/putwc.texi: Likewise.
34139         * doc/posix-functions/swprintf.texi: Likewise.
34140         * doc/posix-functions/tolower.texi: Likewise.
34141         * doc/posix-functions/toupper.texi: Likewise.
34142         * doc/posix-functions/towctrans.texi: Likewise.
34143         * doc/posix-functions/ungetwc.texi: Likewise.
34144         * doc/posix-functions/vswprintf.texi: Likewise.
34145         * doc/posix-functions/wcrtomb.texi: Likewise.
34146         * doc/posix-functions/wcscat.texi: Likewise.
34147         * doc/posix-functions/wcschr.texi: Likewise.
34148         * doc/posix-functions/wcscmp.texi: Likewise.
34149         * doc/posix-functions/wcscoll.texi: Likewise.
34150         * doc/posix-functions/wcscpy.texi: Likewise.
34151         * doc/posix-functions/wcscspn.texi: Likewise.
34152         * doc/posix-functions/wcsftime.texi: Likewise.
34153         * doc/posix-functions/wcslen.texi: Likewise.
34154         * doc/posix-functions/wcsncat.texi: Likewise.
34155         * doc/posix-functions/wcsncmp.texi: Likewise.
34156         * doc/posix-functions/wcsncpy.texi: Likewise.
34157         * doc/posix-functions/wcspbrk.texi: Likewise.
34158         * doc/posix-functions/wcsrchr.texi: Likewise.
34159         * doc/posix-functions/wcsrtombs.texi: Likewise.
34160         * doc/posix-functions/wcsspn.texi: Likewise.
34161         * doc/posix-functions/wcsstr.texi: Likewise.
34162         * doc/posix-functions/wcstod.texi: Likewise.
34163         * doc/posix-functions/wcstof.texi: Likewise.
34164         * doc/posix-functions/wcstoimax.texi: Likewise.
34165         * doc/posix-functions/wcstok.texi: Likewise.
34166         * doc/posix-functions/wcstold.texi: Likewise.
34167         * doc/posix-functions/wcstoll.texi: Likewise.
34168         * doc/posix-functions/wcstol.texi: Likewise.
34169         * doc/posix-functions/wcstombs.texi: Likewise.
34170         * doc/posix-functions/wcstoull.texi: Likewise.
34171         * doc/posix-functions/wcstoul.texi: Likewise.
34172         * doc/posix-functions/wcstoumax.texi: Likewise.
34173         * doc/posix-functions/wcswidth.texi: Likewise.
34174         * doc/posix-functions/wcsxfrm.texi: Likewise.
34175         * doc/posix-functions/wctob.texi: Likewise.
34176         * doc/posix-functions/wctomb.texi: Likewise.
34177         * doc/posix-functions/wctrans.texi: Likewise.
34178         * doc/posix-functions/wctype.texi: Likewise.
34179         * doc/posix-functions/wcwidth.texi: Likewise.
34180         * doc/posix-functions/wmemchr.texi: Likewise.
34181         * doc/posix-functions/wmemcmp.texi: Likewise.
34182         * doc/posix-functions/wmemcpy.texi: Likewise.
34183         * doc/posix-functions/wmemmove.texi: Likewise.
34184         * doc/posix-functions/wmemset.texi: Likewise.
34185         * doc/posix-functions/wprintf.texi: Likewise.
34186         * doc/posix-functions/wscanf.texi: Likewise.
34187
34188 2008-12-21  Bruno Haible  <bruno@clisp.org>
34189
34190         Update doc for HP-UX 11.11.
34191         * doc/posix-functions/btowc.texi: Clarify that the function is missing
34192         in HP-UX version 11.00, not in all versions of HP-UX 11.
34193         * doc/posix-functions/fwide.texi: Likewise.
34194         * doc/posix-functions/fwprintf.texi: Likewise.
34195         * doc/posix-functions/fwscanf.texi: Likewise.
34196         * doc/posix-functions/inet_ntop.texi: Likewise.
34197         * doc/posix-functions/inet_pton.texi: Likewise.
34198         * doc/posix-functions/mbrlen.texi: Likewise.
34199         * doc/posix-functions/mbrtowc.texi: Likewise.
34200         * doc/posix-functions/mbsinit.texi: Likewise.
34201         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34202         * doc/posix-functions/swprintf.texi: Likewise.
34203         * doc/posix-functions/swscanf.texi: Likewise.
34204         * doc/posix-functions/towctrans.texi: Likewise.
34205         * doc/posix-functions/vfwprintf.texi: Likewise.
34206         * doc/posix-functions/vswprintf.texi: Likewise.
34207         * doc/posix-functions/vwprintf.texi: Likewise.
34208         * doc/posix-functions/wcrtomb.texi: Likewise.
34209         * doc/posix-functions/wcsrtombs.texi: Likewise.
34210         * doc/posix-functions/wcsstr.texi: Likewise.
34211         * doc/posix-functions/wctob.texi: Likewise.
34212         * doc/posix-functions/wctrans.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         Work around a portability problem.
34224         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34225         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34226
34227 2008-12-20  Bruno Haible  <bruno@clisp.org>
34228
34229         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34230         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34231         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34232         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34233         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34234
34235         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34236         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34237         set.
34238         (GNULIB_defined_mbstate_t): New macro.
34239         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34240         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34241         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34242         reuses the system's mbrtowc function but works around the bugs.
34243         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34244         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34245         macros.
34246         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34247         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34248         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34249         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34250         REPLACE_MBSINIT if mbsinit needs to be overridden.
34251         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34252         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34253         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34254         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34255         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34256         m4/locale-zh.m4.
34257         (Depends): Add mbsinit.
34258         * modules/mbsinit (Depends): Add mbrtowc.
34259         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34260
34261 2008-12-20  Bruno Haible  <bruno@clisp.org>
34262
34263         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
34264         so that there are no conversion errors on AIX.
34265         * tests/test-mbsrtowcs.c (main): LIkewise.
34266
34267 2008-12-20  Bruno Haible  <bruno@clisp.org>
34268
34269         Work around wctob bug on Solaris <= 9.
34270         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
34271         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
34272         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
34273         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
34274         * modules/wctob (Files): Add m4/locale-fr.m4.
34275         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
34276
34277 2008-12-20  Bruno Haible  <bruno@clisp.org>
34278
34279         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
34280         /dev/null.
34281         * tests/test-select-in.sh: Likewise.
34282         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34283
34284 2008-12-20  Bruno Haible  <bruno@clisp.org>
34285
34286         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
34287         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
34288         Cygwin 1.5.x.
34289
34290 2008-12-20  Bruno Haible  <bruno@clisp.org>
34291
34292         Ensure mbstate_t is defined on HP-UX 11.11.
34293         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
34294         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
34295         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
34296         AC_USE_SYSTEM_EXTENSIONS.
34297         * modules/fnmatch (Depends-on): Add extensions.
34298         * modules/mbrlen (Depends-on): Likewise.
34299         * modules/mbrtowc (Depends-on): Likewise.
34300         * modules/mbsinit (Depends-on): Likewise.
34301         * modules/mbsrtowcs (Depends-on): Likewise.
34302         * modules/mbswidth (Depends-on): Likewise.
34303         * modules/quotearg (Depends-on): Likewise.
34304         * modules/strftime (Depends-on): Likewise.
34305
34306 2008-12-20  Bruno Haible  <bruno@clisp.org>
34307
34308         Ensure wctob is declared on IRIX 6.5.
34309         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
34310         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
34311         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
34312         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
34313         of HAVE_WCTOB.
34314         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34315         HAVE_WCTOB.
34316         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34317
34318 2008-12-19  Bruno Haible  <bruno@clisp.org>
34319
34320         * modules/mbsrtowcs-tests: New file.
34321         * tests/test-mbsrtowcs1.sh: New file.
34322         * tests/test-mbsrtowcs2.sh: New file.
34323         * tests/test-mbsrtowcs3.sh: New file.
34324         * tests/test-mbsrtowcs4.sh: New file.
34325         * tests/test-mbsrtowcs.c: New file.
34326
34327         New module 'mbsrtowcs'.
34328         * lib/wchar.in.h (mbsrtowcs): New declaration.
34329         * lib/mbsrtowcs.c: New file.
34330         * m4/mbsrtowcs.m4: New file.
34331         * modules/mbsrtowcs: New file.
34332         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34333         HAVE_MBSRTOWCS.
34334         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34335         HAVE_MBSRTOWCS.
34336         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34337
34338 2008-12-19  Bruno Haible  <bruno@clisp.org>
34339
34340         New module 'mbrlen'.
34341         * lib/wchar.in.h (mbrlen): New declaration.
34342         * lib/mbrlen.c: New file.
34343         * m4/mbrlen.m4: New file.
34344         * modules/mbrlen: New file.
34345         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34346         HAVE_MBRLEN.
34347         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34348         HAVE_MBRLEN.
34349         * doc/posix-functions/mbrlen.texi: Document the new module.
34350
34351 2008-12-19  Bruno Haible  <bruno@clisp.org>
34352
34353         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34354         * modules/mbrtowc (Depends-on): Add verify.
34355         Suggested by Paul Eggert.
34356
34357 2008-12-18  Bruno Haible  <bruno@clisp.org>
34358
34359         * modules/mbsinit-tests: New file.
34360         * tests/test-mbsinit.sh: New file.
34361         * tests/test-mbsinit.c: New file.
34362
34363 2008-12-18  Bruno Haible  <bruno@clisp.org>
34364
34365         * modules/mbrtowc-tests: New file.
34366         * tests/test-mbrtowc1.sh: New file.
34367         * tests/test-mbrtowc2.sh: New file.
34368         * tests/test-mbrtowc3.sh: New file.
34369         * tests/test-mbrtowc4.sh: New file.
34370         * tests/test-mbrtowc.c: New file.
34371
34372         New module 'mbrtowc'.
34373         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34374         mbsinit and mbrtowc.
34375         (mbrtowc): New declaration.
34376         * lib/mbrtowc.c: New file.
34377         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34378         * modules/mbrtowc: New file.
34379         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34380         HAVE_MBRTOWC.
34381         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34382         HAVE_MBRTOWC.
34383         * doc/posix-functions/mbrtowc.texi: Document the new module.
34384
34385 2008-12-18  Bruno Haible  <bruno@clisp.org>
34386
34387         New module 'wctob'.
34388         * lib/wchar.in.h (wctob): New declaration.
34389         * lib/wctob.c: New file.
34390         * m4/wctob.m4: New file.
34391         * modules/wctob: New file.
34392         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34393         HAVE_WCTOB.
34394         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34395         * doc/posix-functions/wctob.texi: Document the new module.
34396
34397 2008-12-18  Bruno Haible  <bruno@clisp.org>
34398
34399         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34400         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34401
34402 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34403
34404         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34405         G. Christensen" <tgc@jupiterrise.com>.
34406
34407         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34408         G. Christensen" <tgc@jupiterrise.com>.
34409
34410         * lib/flock.c: Need to include string.h.  Reported by "Tom
34411         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34412         <ebb9@byu.net>.
34413
34414 2008-12-18  Bruno Haible  <bruno@clisp.org>
34415
34416         * m4/locale-ja.m4: New file, from GNU gettext.
34417
34418 2008-12-17  Bruno Haible  <bruno@clisp.org>
34419
34420         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34421         Suggested by Eric Blake.
34422
34423 2008-12-17  Bruno Haible  <bruno@clisp.org>
34424
34425         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34426
34427 2008-12-17  Bruno Haible  <bruno@clisp.org>
34428
34429         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34430         * modules/mbsinit (Depends-on): Add verify.
34431         Suggested by Paul Eggert.
34432
34433 2008-12-17  Bruno Haible  <bruno@clisp.org>
34434
34435         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34436         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34437         gl_FUNC_MBRTOWC.
34438         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34439         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34440         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34441         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34442         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34443         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34444         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34445         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34446         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34447         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34448         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34449         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34450         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34451         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34452         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34453         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34454         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34455         * modules/trim (configure.ac): Likewise.
34456
34457 2008-12-17  Bruno Haible  <bruno@clisp.org>
34458
34459         * modules/btowc-tests: New file.
34460         * tests/test-btowc1.sh: New file.
34461         * tests/test-btowc2.sh: New file.
34462         * tests/test-btowc.c: New file.
34463
34464         New module 'btowc'.
34465         * lib/wchar.in.h (btowc): New declaration.
34466         * lib/btowc.c: New file.
34467         * m4/btowc.m4: New file.
34468         * modules/btowc: New file.
34469         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34470         HAVE_BTOWC.
34471         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34472         * doc/posix-functions/btowc.texi: Document the new module.
34473
34474 2008-12-17  Bruno Haible  <bruno@clisp.org>
34475
34476         New module 'mbsinit'.
34477         * lib/wchar.in.h (mbsinit): New declaration.
34478         * lib/mbsinit.c: New file.
34479         * m4/mbsinit.m4: New file.
34480         * modules/mbsinit: New file.
34481         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
34482         HAVE_MBSINIT.
34483         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
34484         HAVE_MBSINIT.
34485         * doc/posix-functions/mbsinit.texi: Document the new module.
34486
34487 2008-12-16  Bruno Haible  <bruno@clisp.org>
34488
34489         * lib/unistd.in.h: Add comment.
34490         * tests/test-environ.c: Don't include <stdlib.h>.
34491
34492 2008-12-16  Bruno Haible  <bruno@clisp.org>
34493
34494         * lib/parse-duration.h (parse_duration): Document return value
34495         convention.
34496         * lib/parse-duration.c: Include specification header first. Add
34497         comments.
34498         (_): Remove macro.
34499         (parse_year_month_day, parse_hour_minute_second): Move side effects
34500         outside of strchr call.
34501         (parse_non_iso8601): Move side effects outside of isspace call.
34502         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
34503         call.
34504
34505 2008-12-16  Bruno Haible  <bruno@clisp.org>
34506
34507         * tests/test-parse-duration.sh: Produce no output when the test
34508         succeeds.
34509
34510 2008-12-16  Bruno Haible  <bruno@clisp.org>
34511
34512         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
34513         expressions.
34514
34515 2008-12-15  Bruno Haible  <bruno@clisp.org>
34516
34517         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
34518         * doc/glibc-functions/flistxattr.texi: Likewise.
34519         * doc/glibc-functions/fopencookie.texi: Likewise.
34520         * doc/glibc-functions/fremovexattr.texi: Likewise.
34521         * doc/glibc-functions/fsetxattr.texi: Likewise.
34522         * doc/glibc-functions/getxattr.texi: Likewise.
34523         * doc/glibc-functions/lgetxattr.texi: Likewise.
34524         * doc/glibc-functions/listxattr.texi: Likewise.
34525         * doc/glibc-functions/llistxattr.texi: Likewise.
34526         * doc/glibc-functions/lremovexattr.texi: Likewise.
34527         * doc/glibc-functions/lsetxattr.texi: Likewise.
34528         * doc/glibc-functions/removexattr.texi: Likewise.
34529         * doc/glibc-functions/setxattr.texi: Likewise.
34530         * doc/posix-functions/open_memstream.texi: Likewise.
34531
34532 2008-12-15  Eric Blake  <ebb9@byu.net>
34533
34534         Update doc for cygwin 1.7.
34535         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
34536         functions.
34537         * doc/posix-functions/fchmodat.texi: Likewise.
34538         * doc/posix-functions/fchownat.texi: Likewise.
34539         * doc/posix-functions/fdopendir.texi: Likewise.
34540         * doc/posix-functions/fmemopen.texi: Likewise.
34541         * doc/posix-functions/freeaddrinfo.texi: Likewise.
34542         * doc/posix-functions/fstatat.texi: Likewise.
34543         * doc/posix-functions/futimens.texi: Likewise.
34544         * doc/posix-functions/gai_strerror.texi: Likewise.
34545         * doc/posix-functions/getaddrinfo.texi: Likewise.
34546         * doc/posix-functions/getnameinfo.texi: Likewise.
34547         * doc/posix-functions/if_freenameindex.texi: Likewise.
34548         * doc/posix-functions/if_indextoname.texi: Likewise.
34549         * doc/posix-functions/if_nameindex.texi: Likewise.
34550         * doc/posix-functions/if_nametoindex.texi: Likewise.
34551         * doc/posix-functions/insque.texi: Likewise.
34552         * doc/posix-functions/linkat.texi: Likewise.
34553         * doc/posix-functions/llrint.texi: Likewise.
34554         * doc/posix-functions/llrintf.texi: Likewise.
34555         * doc/posix-functions/llrintl.texi: Likewise.
34556         * doc/posix-functions/lockf.texi: Likewise.
34557         * doc/posix-functions/lrintl.texi: Likewise.
34558         * doc/posix-functions/mkdirat.texi: Likewise.
34559         * doc/posix-functions/mkfifoat.texi: Likewise.
34560         * doc/posix-functions/mknodat.texi: Likewise.
34561         * doc/posix-functions/mq_close.texi: Likewise.
34562         * doc/posix-functions/mq_getattr.texi: Likewise.
34563         * doc/posix-functions/mq_notify.texi: Likewise.
34564         * doc/posix-functions/mq_open.texi: Likewise.
34565         * doc/posix-functions/mq_receive.texi: Likewise.
34566         * doc/posix-functions/mq_send.texi: Likewise.
34567         * doc/posix-functions/mq_setattr.texi: Likewise.
34568         * doc/posix-functions/mq_timedreceive.texi: Likewise.
34569         * doc/posix-functions/mq_timedsend.texi: Likewise.
34570         * doc/posix-functions/mq_unlink.texi: Likewise.
34571         * doc/posix-functions/open_memstream.texi: Likewise.
34572         * doc/posix-functions/openat.texi: Likewise.
34573         * doc/posix-functions/posix_fadvise.texi: Likewise.
34574         * doc/posix-functions/posix_fallocate.texi: Likewise.
34575         * doc/posix-functions/posix_madvise.texi: Likewise.
34576         * doc/posix-functions/posix_memalign.texi: Likewise.
34577         * doc/posix-functions/posix_openpt.texi: Likewise.
34578         * doc/posix-functions/readlinkat.texi: Likewise.
34579         * doc/posix-functions/remque.texi: Likewise.
34580         * doc/posix-functions/renameat.texi: Likewise.
34581         * doc/posix-functions/rintl.texi: Likewise.
34582         * doc/posix-functions/sem_unlink.texi: Likewise.
34583         * doc/posix-functions/shm_open.texi: Likewise.
34584         * doc/posix-functions/shm_unlink.texi: Likewise.
34585         * doc/posix-functions/signgam.texi: Likewise.
34586         * doc/posix-functions/sigset.texi: Likewise.
34587         * doc/posix-functions/stpcpy.texi: Likewise.
34588         * doc/posix-functions/stpncpy.texi: Likewise.
34589         * doc/posix-functions/strerror.texi: Likewise.
34590         * doc/posix-functions/strtod.texi: Likewise.
34591         * doc/posix-functions/symlinkat.texi: Likewise.
34592         * doc/posix-functions/unlinkat.texi: Likewise.
34593         * doc/posix-functions/utimensat.texi: Likewise.
34594         * doc/glibc-functions/bindresvport.texi: Likewise.
34595         * doc/glibc-functions/dn_expand.texi: Likewise.
34596         * doc/glibc-functions/exp10.texi: Likewise.
34597         * doc/glibc-functions/exp10f.texi: Likewise.
34598         * doc/glibc-functions/fgetxattr.texi: Likewise.
34599         * doc/glibc-functions/flistxattr.texi: Likewise.
34600         * doc/glibc-functions/fopencookie.texi: Likewise.
34601         * doc/glibc-functions/freeifaddrs.texi: Likewise.
34602         * doc/glibc-functions/fremovexattr.texi: Likewise.
34603         * doc/glibc-functions/fsetxattr.texi: Likewise.
34604         * doc/glibc-functions/getifaddrs.texi: Likewise.
34605         * doc/glibc-functions/getxattr.texi: Likewise.
34606         * doc/glibc-functions/lgetxattr.texi: Likewise.
34607         * doc/glibc-functions/listxattr.texi: Likewise.
34608         * doc/glibc-functions/llistxattr.texi: Likewise.
34609         * doc/glibc-functions/lremovexattr.texi: Likewise.
34610         * doc/glibc-functions/lsetxattr.texi: Likewise.
34611         * doc/glibc-functions/pow10.texi: Likewise.
34612         * doc/glibc-functions/pow10f.texi: Likewise.
34613         * doc/glibc-functions/rcmd_af.texi: Likewise.
34614         * doc/glibc-functions/removexattr.texi: Likewise.
34615         * doc/glibc-functions/res_init.texi: Likewise.
34616         * doc/glibc-functions/res_mkquery.texi: Likewise.
34617         * doc/glibc-functions/res_query.texi: Likewise.
34618         * doc/glibc-functions/res_querydomain.texi: Likewise.
34619         * doc/glibc-functions/res_send.texi: Likewise.
34620         * doc/glibc-functions/rresvport_af.texi: Likewise.
34621         * doc/glibc-functions/setxattr.texi: Likewise.
34622         * doc/glibc-functions/strcasestr.texi: Likewise.
34623
34624 2008-12-15  Bruno Haible  <bruno@clisp.org>
34625
34626         Fix compilation error on OSF/1 4.0.
34627         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
34628         <sys/time.h>, simply delegate to the system header.
34629         Reported by Daniel Richard G. <oss@teragram.com>.
34630
34631 2008-12-15  Bruno Haible  <bruno@clisp.org>
34632
34633         * doc/posix-functions/openat.texi: Mention the 'openat' module.
34634         * doc/posix-functions/fchmodat.texi: Likewise.
34635         * doc/posix-functions/fchownat.texi: Likewise.
34636         * doc/posix-functions/fdopendir.texi: Likewise.
34637         * doc/posix-functions/fstatat.texi: Likewise.
34638         * doc/posix-functions/mkdirat.texi: Likewise.
34639         * doc/posix-functions/unlinkat.texi: Likewise.
34640
34641 2008-12-14  Bruno Haible  <bruno@clisp.org>
34642
34643         Update doc for POSIX:2008.
34644         * doc/posix-functions/faccessat.texi: New file.
34645         * doc/posix-functions/fchmodat.texi: New file.
34646         * doc/posix-functions/fchownat.texi: New file.
34647         * doc/posix-functions/fdopendir.texi: New file.
34648         * doc/posix-functions/fstatat.texi: New file.
34649         * doc/posix-functions/futimens.texi: New file.
34650         * doc/posix-functions/linkat.texi: New file.
34651         * doc/posix-functions/mkdirat.texi: New file.
34652         * doc/posix-functions/mkfifoat.texi: New file.
34653         * doc/posix-functions/mknodat.texi: New file.
34654         * doc/posix-functions/open_wmemstream.texi: New file.
34655         * doc/posix-functions/openat.texi: New file.
34656         * doc/posix-functions/psiginfo.texi: New file.
34657         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
34658         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
34659         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
34660         * doc/posix-functions/readlinkat.texi: New file.
34661         * doc/posix-functions/renameat.texi: New file.
34662         * doc/posix-functions/strerror_l.texi: New file.
34663         * doc/posix-functions/symlinkat.texi: New file.
34664         * doc/posix-functions/unlinkat.texi: New file.
34665         * doc/posix-functions/utimensat.texi: New file.
34666         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34667
34668 2008-12-14  Bruno Haible  <bruno@clisp.org>
34669
34670         Update doc for POSIX:2008.
34671         * doc/posix-functions/alphasort.texi: Renamed from
34672         doc/glibc-functions/alphasort.texi.
34673         * doc/posix-functions/dirfd.texi: Renamed from
34674         doc/glibc-functions/dirfd.texi.
34675         * doc/posix-functions/dprintf.texi: Renamed from
34676         doc/glibc-functions/dprintf.texi.
34677         * doc/posix-functions/duplocale.texi: Renamed from
34678         doc/glibc-functions/duplocale.texi.
34679         * doc/posix-functions/fexecve.texi: Renamed from
34680         doc/glibc-functions/fexecve.texi.
34681         * doc/posix-functions/fmemopen.texi: Renamed from
34682         doc/glibc-functions/fmemopen.texi.
34683         * doc/posix-functions/freelocale.texi: Renamed from
34684         doc/glibc-functions/freelocale.texi.
34685         * doc/posix-functions/getdate_err.texi: Renamed from
34686         doc/glibc-functions/getdate_err.texi.
34687         * doc/posix-functions/isalnum_l.texi: Renamed from
34688         doc/glibc-functions/isalnum_l.texi.
34689         * doc/posix-functions/isalpha_l.texi: Renamed from
34690         doc/glibc-functions/isalpha_l.texi.
34691         * doc/posix-functions/isblank_l.texi: Renamed from
34692         doc/glibc-functions/isblank_l.texi.
34693         * doc/posix-functions/iscntrl_l.texi: Renamed from
34694         doc/glibc-functions/iscntrl_l.texi.
34695         * doc/posix-functions/isdigit_l.texi: Renamed from
34696         doc/glibc-functions/isdigit_l.texi.
34697         * doc/posix-functions/isgraph_l.texi: Renamed from
34698         doc/glibc-functions/isgraph_l.texi.
34699         * doc/posix-functions/islower_l.texi: Renamed from
34700         doc/glibc-functions/islower_l.texi.
34701         * doc/posix-functions/isprint_l.texi: Renamed from
34702         doc/glibc-functions/isprint_l.texi.
34703         * doc/posix-functions/ispunct_l.texi: Renamed from
34704         doc/glibc-functions/ispunct_l.texi.
34705         * doc/posix-functions/isspace_l.texi: Renamed from
34706         doc/glibc-functions/isspace_l.texi.
34707         * doc/posix-functions/isupper_l.texi: Renamed from
34708         doc/glibc-functions/isupper_l.texi.
34709         * doc/posix-functions/iswalnum_l.texi: Renamed from
34710         doc/glibc-functions/iswalnum_l.texi.
34711         * doc/posix-functions/iswalpha_l.texi: Renamed from
34712         doc/glibc-functions/iswalpha_l.texi.
34713         * doc/posix-functions/iswblank_l.texi: Renamed from
34714         doc/glibc-functions/iswblank_l.texi.
34715         * doc/posix-functions/iswcntrl_l.texi: Renamed from
34716         doc/glibc-functions/iswcntrl_l.texi.
34717         * doc/posix-functions/iswctype_l.texi: Renamed from
34718         doc/glibc-functions/iswctype_l.texi.
34719         * doc/posix-functions/iswdigit_l.texi: Renamed from
34720         doc/glibc-functions/iswdigit_l.texi.
34721         * doc/posix-functions/iswgraph_l.texi: Renamed from
34722         doc/glibc-functions/iswgraph_l.texi.
34723         * doc/posix-functions/iswlower_l.texi: Renamed from
34724         doc/glibc-functions/iswlower_l.texi.
34725         * doc/posix-functions/iswprint_l.texi: Renamed from
34726         doc/glibc-functions/iswprint_l.texi.
34727         * doc/posix-functions/iswpunct_l.texi: Renamed from
34728         doc/glibc-functions/iswpunct_l.texi.
34729         * doc/posix-functions/iswspace_l.texi: Renamed from
34730         doc/glibc-functions/iswspace_l.texi.
34731         * doc/posix-functions/iswupper_l.texi: Renamed from
34732         doc/glibc-functions/iswupper_l.texi.
34733         * doc/posix-functions/iswxdigit_l.texi: Renamed from
34734         doc/glibc-functions/iswxdigit_l.texi.
34735         * doc/posix-functions/isxdigit_l.texi: Renamed from
34736         doc/glibc-functions/isxdigit_l.texi.
34737         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
34738         doc/glibc-functions/mbsnrtowcs.texi.
34739         * doc/posix-functions/mkdtemp.texi: Renamed from
34740         doc/glibc-functions/mkdtemp.texi.
34741         * doc/posix-functions/newlocale.texi: Renamed from
34742         doc/glibc-functions/newlocale.texi.
34743         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
34744         doc/glibc-functions/nl_langinfo_l.texi.
34745         * doc/posix-functions/open_memstream.texi: Renamed from
34746         doc/glibc-functions/open_memstream.texi.
34747         * doc/posix-functions/opterr.texi: Renamed from
34748         doc/glibc-functions/opterr.texi.
34749         * doc/posix-functions/optind.texi: Renamed from
34750         doc/glibc-functions/optind.texi.
34751         * doc/posix-functions/optopt.texi: Renamed from
34752         doc/glibc-functions/optopt.texi.
34753         * doc/posix-functions/psignal.texi: Renamed from
34754         doc/glibc-functions/psignal.texi.
34755         * doc/posix-functions/scandir.texi: Renamed from
34756         doc/glibc-functions/scandir.texi.
34757         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
34758         doc/glibc-functions/sched_get_priority_min.texi.
34759         * doc/posix-functions/signgam.texi: Renamed from
34760         doc/glibc-functions/signgam.texi.
34761         * doc/posix-functions/stpcpy.texi: Renamed from
34762         doc/glibc-functions/stpcpy.texi.
34763         * doc/posix-functions/stpncpy.texi: Renamed from
34764         doc/glibc-functions/stpncpy.texi.
34765         * doc/posix-functions/strcasecmp_l.texi: Renamed from
34766         doc/glibc-functions/strcasecmp_l.texi.
34767         * doc/posix-functions/strcoll_l.texi: Renamed from
34768         doc/glibc-functions/strcoll_l.texi.
34769         * doc/posix-functions/strfmon_l.texi: Renamed from
34770         doc/glibc-functions/strfmon_l.texi.
34771         * doc/posix-functions/strftime_l.texi: Renamed from
34772         doc/glibc-functions/strftime_l.texi.
34773         * doc/posix-functions/strncasecmp_l.texi: Renamed from
34774         doc/glibc-functions/strncasecmp_l.texi.
34775         * doc/posix-functions/strndup.texi: Renamed from
34776         doc/glibc-functions/strndup.texi.
34777         * doc/posix-functions/strnlen.texi: Renamed from
34778         doc/glibc-functions/strnlen.texi.
34779         * doc/posix-functions/strsignal.texi: Renamed from
34780         doc/glibc-functions/strsignal.texi.
34781         * doc/posix-functions/strxfrm_l.texi: Renamed from
34782         doc/glibc-functions/strxfrm_l.texi.
34783         * doc/posix-functions/timer_gettime.texi: Renamed from
34784         doc/glibc-functions/timer_gettime.texi.
34785         * doc/posix-functions/tolower_l.texi: Renamed from
34786         doc/glibc-functions/tolower_l.texi.
34787         * doc/posix-functions/toupper_l.texi: Renamed from
34788         doc/glibc-functions/toupper_l.texi.
34789         * doc/posix-functions/towctrans_l.texi: Renamed from
34790         doc/glibc-functions/towctrans_l.texi.
34791         * doc/posix-functions/towlower_l.texi: Renamed from
34792         doc/glibc-functions/towlower_l.texi.
34793         * doc/posix-functions/towupper_l.texi: Renamed from
34794         doc/glibc-functions/towupper_l.texi.
34795         * doc/posix-functions/uselocale.texi: Renamed from
34796         doc/glibc-functions/uselocale.texi.
34797         * doc/posix-functions/vdprintf.texi: Renamed from
34798         doc/glibc-functions/vdprintf.texi.
34799         * doc/posix-functions/wcpcpy.texi:
34800         Renamed from doc/glibc-functions/wcpcpy.texi.
34801         * doc/posix-functions/wcpncpy.texi: Renamed from
34802         doc/glibc-functions/wcpncpy.texi.
34803         * doc/posix-functions/wcscasecmp.texi: Renamed from
34804         doc/glibc-functions/wcscasecmp.texi.
34805         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
34806         doc/glibc-functions/wcscasecmp_l.texi.
34807         * doc/posix-functions/wcscoll_l.texi: Renamed from
34808         doc/glibc-functions/wcscoll_l.texi.
34809         * doc/posix-functions/wcsdup.texi: Renamed from
34810         doc/glibc-functions/wcsdup.texi.
34811         * doc/posix-functions/wcsncasecmp.texi: Renamed from
34812         doc/glibc-functions/wcsncasecmp.texi.
34813         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
34814         doc/glibc-functions/wcsncasecmp_l.texi.
34815         * doc/posix-functions/wcsnlen.texi: Renamed from
34816         doc/glibc-functions/wcsnlen.texi.
34817         * doc/posix-functions/wcsnrtombs.texi: Renamed from
34818         doc/glibc-functions/wcsnrtombs.texi.
34819         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
34820         doc/glibc-functions/wcsxfrm_l.texi.
34821         * doc/posix-functions/wctrans_l.texi: Renamed from
34822         doc/glibc-functions/wctrans_l.texi.
34823         * doc/posix-functions/wctype_l.texi: Renamed from
34824         doc/glibc-functions/wctype_l.texi.
34825         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34826         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
34827         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
34828         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
34829         these subsections.
34830         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
34831         Remove sections.
34832
34833 2008-12-14  Bruno Haible  <bruno@clisp.org>
34834
34835         Update doc for POSIX:2008.
34836         * doc/posix-functions/*.texi: Update URL of POSIX specification.
34837
34838 2008-12-14  Bruno Haible  <bruno@clisp.org>
34839
34840         Update doc for POSIX:2008.
34841         * doc/pastposix-functions/bcmp.texi: Renamed from
34842         doc/posix-functions/bcmp.texi.
34843         * doc/pastposix-functions/bcopy.texi: Renamed from
34844         doc/posix-functions/bcopy.texi.
34845         * doc/pastposix-functions/bsd_signal.texi: Renamed from
34846         doc/posix-functions/bsd_signal.texi.
34847         * doc/pastposix-functions/bzero.texi: Renamed from
34848         doc/posix-functions/bzero.texi.
34849         * doc/pastposix-functions/ecvt.texi: Renamed from
34850         doc/posix-functions/ecvt.texi.
34851         * doc/pastposix-functions/fcvt.texi: Renamed from
34852         doc/posix-functions/fcvt.texi.
34853         * doc/pastposix-functions/ftime.texi: Renamed from
34854         doc/posix-functions/ftime.texi.
34855         * doc/pastposix-functions/gcvt.texi: Renamed from
34856         doc/posix-functions/gcvt.texi.
34857         * doc/pastposix-functions/getcontext.texi: Renamed from
34858         doc/posix-functions/getcontext.texi.
34859         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
34860         doc/posix-functions/gethostbyaddr.texi.
34861         * doc/pastposix-functions/gethostbyname.texi: Renamed from
34862         doc/posix-functions/gethostbyname.texi.
34863         * doc/pastposix-functions/getwd.texi: Renamed from
34864         doc/posix-functions/getwd.texi.
34865         * doc/pastposix-functions/h_errno.texi: Renamed from
34866         doc/posix-functions/h_errno.texi.
34867         * doc/pastposix-functions/index.texi: Renamed from
34868         doc/posix-functions/index.texi.
34869         * doc/pastposix-functions/makecontext.texi: Renamed from
34870         doc/posix-functions/makecontext.texi.
34871         * doc/pastposix-functions/mktemp.texi: Renamed from
34872         doc/posix-functions/mktemp.texi.
34873         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
34874         doc/posix-functions/pthread_attr_getstackaddr.texi.
34875         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
34876         doc/posix-functions/pthread_attr_setstackaddr.texi.
34877         * doc/pastposix-functions/rindex.texi: Renamed from
34878         doc/posix-functions/rindex.texi.
34879         * doc/pastposix-functions/scalb.texi: Renamed from
34880         doc/posix-functions/scalb.texi.
34881         * doc/pastposix-functions/setcontext.texi: Renamed from
34882         doc/posix-functions/setcontext.texi.
34883         * doc/pastposix-functions/swapcontext.texi: Renamed from
34884         doc/posix-functions/swapcontext.texi.
34885         * doc/pastposix-functions/ualarm.texi: Renamed from
34886         doc/posix-functions/ualarm.texi.
34887         * doc/pastposix-functions/usleep.texi: Renamed from
34888         doc/posix-functions/usleep.texi.
34889         * doc/pastposix-functions/vfork.texi: Renamed from
34890         doc/posix-functions/vfork.texi.
34891         * doc/pastposix-functions/wcswcs.texi: Renamed from
34892         doc/posix-functions/wcswcs.texi.
34893         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
34894         (Function Substitutes): Update.
34895
34896 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34897
34898         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
34899         m4/strerror.m4.
34900
34901 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34902             Bruno Haible  <bruno@clisp.org>
34903
34904         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
34905
34906 2008-12-13  Bruno Haible  <bruno@clisp.org>
34907
34908         * modules/strtoull (Depends-on): Remove unistd.
34909
34910 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34911
34912         * modules/strtoull (Depends-on): Add stdlib.
34913
34914 2008-12-11  Simon Josefsson  <simon@josefsson.org>
34915
34916         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
34917
34918 2008-12-10  Jim Meyering  <meyering@redhat.com>
34919
34920         gl_ASSERT: don't say assertions are disabled when they're not
34921         * m4/assert.m4 (gl_ASSERT): Do not make configure report
34922         "checking whether to enable assertions... no", when they are in
34923         fact enabled.  This is solely a bug in the output of configure.
34924         In spite of saying "no", NDEBUG was not defined in that case.
34925         Also, as noted by Eric Blake, leave assertions enabled upon
34926         --enable-assert=INVALID.
34927
34928 2008-12-10  Bruno Haible  <bruno@clisp.org>
34929
34930         Change MODULES.html to refer to POSIX:2008 where possible.
34931         * MODULES.html.sh (POSIX2008_URL): New variable.
34932         (posix_headers): Remove sys/timeb, ucontext.
34933         (posix2001_headers): New variable.
34934         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
34935         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
34936         index, makecontext, mktemp, pthread_attr_getstackaddr,
34937         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
34938         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
34939         (posix2001_functions): New variable.
34940         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
34941         otherwise.
34942
34943 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34944
34945         add missing include to parse-duration.c
34946         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
34947         * modules/parse-duration (Depends-on): Add xalloc.
34948
34949         fix sed script reading maint.mk
34950         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
34951         (syntax-check-rules): Use it.
34952
34953 2008-12-09  Bruno Haible  <bruno@clisp.org>
34954
34955         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
34956         MacOS X 10.4/PowerPC.
34957         Reported by Simon Josefsson.
34958
34959 2008-12-08  Jim Meyering  <meyering@redhat.com>
34960
34961         work around mingw's lack of some S_IF definitions
34962         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
34963         Reported by Simon Josefsson.
34964
34965 2008-12-08  Bruno Haible  <bruno@clisp.org>
34966
34967         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
34968         applied to variables. Needed on MacOS X 10.4/PowerPC.
34969         Reported by Simon Josefsson.
34970
34971 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
34972         and Eric Blake  <ebb9@byu.net>
34973
34974         assert: honor --enable-assert
34975         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
34976         order to honor --enable-assert, rather than treating it as a
34977         synonym for --disable-assert.
34978
34979 2008-12-08  Jim Meyering  <meyering@redhat.com>
34980
34981         * lib/posixtm.c: Remove now-useless declaration of mktime.
34982
34983         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
34984
34985 2008-12-07  Bruno Haible  <bruno@clisp.org>
34986
34987         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
34988         test_once): Mark functions as static.
34989         * tests/test-tls.c (test_tls): Likewise.
34990
34991 2008-12-07  Bruno Haible  <bruno@clisp.org>
34992
34993         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
34994         iconv_register_autodetect.
34995
34996 2008-12-07  Jim Meyering  <meyering@redhat.com>
34997
34998         posixtm.c: avoid a warning
34999         * lib/posixtm.c (posixtime): Don't initialize tm0.
35000         It's no longer needed to placate gcc4's -Wuninitialized,
35001         and the attempt to placate would elicit a new warning.
35002
35003         unicodeio.c: mark unused parameters
35004         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35005         (fallback_failure_callback): Likewise.
35006
35007 2008-12-07  Bruno Haible  <bruno@clisp.org>
35008
35009         * gnulib-tool (func_create_testdir): When building the tests
35010         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
35011         Reported by Simon Josefsson.
35012
35013 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35014
35015         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
35016
35017 2008-12-06  Bruno Haible  <bruno@clisp.org>
35018
35019         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
35020         Suggested by Eric Blake.
35021
35022 2008-12-06  Bruno Haible  <bruno@clisp.org>
35023
35024         Fix a c-stack test failure on MacOS X.
35025         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
35026         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
35027         handler for SIGBUS as well.
35028         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
35029         install a signal handler for SIGBUS as well.
35030         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
35031
35032 2008-12-06  Bruno Haible  <bruno@clisp.org>
35033
35034         Advocacy documentation.
35035         * doc/gnulib-intro.texi (Benefits): New section.
35036         * doc/gnulib.texi: Update.
35037
35038 2008-12-06  Bruno Haible  <bruno@clisp.org>
35039
35040         Document the 'manywarnings' module.
35041         * doc/manywarnings.texi: New file.
35042         * doc/gnulib.texi: Include it.
35043
35044 2008-12-05  Eric Blake  <ebb9@byu.net>
35045
35046         tests: silence some gcc warnings
35047         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
35048         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
35049         type mismatches.
35050
35051 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35052             Bruno Haible  <bruno@clisp.org>
35053
35054         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
35055
35056 2008-11-29  Jim Meyering  <meyering@redhat.com>
35057
35058         unicodeio.c: mark unused parameters
35059         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35060         (fallback_failure_callback): Likewise.
35061
35062         fts: fix a thinko
35063         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
35064         (set_stat_type): Return S_IF*-valued "type" directly.
35065         Prompted by James Youngman's spotting a related bug.
35066         Confirmed by further testing through find.
35067
35068         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
35069         * lib/fts.c (D_TYPE): Define.
35070         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
35071         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
35072         (s_ifmt_shift_bits): New function.
35073         (set_stat_type): New function.
35074         (fts_build): When not calling fts_stat, call set_stat_type
35075         to propagate dirent.d_type info to fts_read caller.
35076         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
35077         fts_statp->st_mode type information may be valid.
35078
35079 2008-11-28  Simon Josefsson  <simon@josefsson.org>
35080
35081         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
35082         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
35083         <sds@gnu.org>.
35084
35085 2008-11-20  Bruno Haible  <bruno@clisp.org>
35086
35087         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
35088         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
35089         INCLUDE_NEXT.
35090         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
35091         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
35092         * modules/math (Makefile.am): Substitute
35093         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
35094         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35095
35096 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35097             Bruno Haible  <bruno@clisp.org>
35098
35099         * lib/stdint.in.h: Define all type macros so that their expansion is
35100         a single typedef'ed token. Fixes a compilation failure in Boost which
35101         does "using ::int8_t;".
35102
35103 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35104
35105         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
35106         gl_MANYWARN_ALL_GCC.
35107         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
35108         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
35109         * modules/manywarnings: New file.
35110         * MODULES.html.sh: Mention manywarnings module.
35111
35112 2008-11-18  Bruno Haible  <bruno@clisp.org>
35113
35114         * doc/gnulib-tool.texi (Unit tests): New section.
35115
35116 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35117
35118         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
35119         paths like 'lib/po/foo.po'.
35120
35121 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35122
35123         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
35124         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
35125
35126 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35127
35128         * m4/warnings.m4: Use CPPFLAGS to really check whether the
35129         parameter works.
35130
35131 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35132
35133         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
35134
35135 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35136
35137         * modules/parse-duration-tests: New file.
35138         * tests/test-parse-duration.sh: New file.
35139         * tests/test-parse-duration.c: New file.
35140
35141         New module 'parse-duration'.
35142         * lib/parse-duration.h: New file.
35143         * lib/parse-duration.c: New file.
35144         * modules/parse-duration: New file.
35145
35146 2008-11-17  Bruno Haible  <bruno@clisp.org>
35147
35148         * tests/test-select-out.sh: Comment out the first pipe test.
35149         Reported by Simon Josefsson.
35150
35151 2008-11-17  Bruno Haible  <bruno@clisp.org>
35152
35153         * modules/getaddrinfo (Depends-on): Add servent, hostent.
35154         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
35155         gl_HOSTENT.
35156
35157 2008-11-17  Bruno Haible  <bruno@clisp.org>
35158
35159         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35160         -lnetwork and -lnet. Needed for Haiku and BeOS.
35161
35162 2008-11-16  Bruno Haible  <bruno@clisp.org>
35163
35164         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
35165
35166 2008-11-16  Bruno Haible  <bruno@clisp.org>
35167
35168         Avoid test failure on Haiku.
35169         * tests/test-fsync.c: Include <errno.h>.
35170         (main): Don't require that fsync (0) fails.
35171
35172 2008-11-15  Bruno Haible  <bruno@clisp.org>
35173
35174         New module 'hostent'.
35175         * modules/hostent: New file.
35176         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
35177
35178 2008-11-15  Bruno Haible  <bruno@clisp.org>
35179
35180         New module 'servent'.
35181         * modules/servent: New file.
35182         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
35183
35184 2008-11-15  Bruno Haible  <bruno@clisp.org>
35185
35186         Avoid generating same test program with two different rules.
35187         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
35188         test-frexp to test-frexp-nolibm.
35189         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
35190         test-frexpl to test-frexpl-nolibm.
35191
35192 2008-11-15  Bruno Haible  <bruno@clisp.org>
35193
35194         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35195         $(FREXPL_LIBM).
35196
35197 2008-11-15  Bruno Haible  <bruno@clisp.org>
35198
35199         * lib/netdb.in.h: Activate the definitions also when the system's
35200         <netdb.h> has 'struct addrinfo'.
35201         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35202         EAI_OVERFLOW or AI_NUMERICSERV.
35203         * doc/posix-headers/netdb.texi: Document the problem.
35204
35205 2008-11-15  Bruno Haible  <bruno@clisp.org>
35206
35207         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35208
35209         Make the 'sched' module work on platforms where <sched.h> exists but
35210         is incomplete (such as Haiku).
35211         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35212         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35213         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35214         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35215         HAVE_STRUCT_SCHED_PARAM.
35216         * modules/sched (Depends-on): Add include_next.
35217         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35218         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35219         * doc/posix-headers/sched.texi: Document the issue.
35220
35221 2008-11-13  Jim Meyering  <meyering@redhat.com>
35222
35223         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35224         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35225         test would fail due to the difference in the Report bugs to ...
35226         line.  The expected address is empty, "<>", while the actual
35227         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35228
35229 2008-11-12  Bruno Haible  <bruno@clisp.org>
35230
35231         lstat: don't compile lstat.c on systems lacking lstat
35232         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35233         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35234         Reported by Daniel P. Berrange via Jim Meyering.
35235
35236 2008-11-12  Jim Meyering  <meyering@redhat.com>
35237
35238         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35239
35240 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35241
35242         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35243         instead.
35244
35245 2008-11-12  Bruno Haible  <bruno@clisp.org>
35246
35247         * lib/unicodeio.c: Include unistr.h.
35248         (utf8_wctomb): Remove function.
35249         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35250
35251 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35252
35253         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35254         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35255         <bruno@clisp.org>.
35256         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35257
35258 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35259
35260         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35261         * doc/gnulib.texi: Add section for warnings.
35262
35263 2008-11-11  Bruno Haible  <bruno@clisp.org>
35264
35265         * lib/sockets.h: Add a comment.
35266
35267 2008-11-11  Karl Berry  <karl@gnu.org>
35268
35269         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
35270
35271 2008-11-11  Eric Blake  <ebb9@byu.net>
35272
35273         fdl.texi: avoid git symlinks
35274         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
35275
35276 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35277
35278         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
35279
35280 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35281
35282         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
35283         (gl_WARN_ADD): Substitute $2 if literal.
35284
35285 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35286
35287         * m4/warning.m4: Remove.
35288
35289 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35290
35291         * m4/warnings.m4: Almost complete rewrite. :-)
35292
35293 2008-11-10  Simon Josefsson  <simon@josefsson.org>
35294
35295         * modules/warnings: New module.
35296         * m4/warnings.m4: New file.
35297         * MODULES.html.sh: Mention warnings module.
35298         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
35299         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35300
35301 2008-11-10  Eric Blake  <ebb9@byu.net>
35302
35303         fdl.texi: make a symlink to the latest version
35304         * doc/standards.texi: Revert today's earlier change.
35305         * doc/fdl-1.2.texi: Rename from old fdl.texi...
35306         * doc/fdl.texi: ...and replace this with a symlink to the newer
35307         fdl-1.3.texi.
35308
35309 2008-11-10  Bruno Haible  <bruno@clisp.org>
35310
35311         * tests/test-select-fd.c (main): Accept the result file name as fourth
35312         argument.
35313         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
35314         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35315
35316 2008-11-10  Bruno Haible  <bruno@clisp.org>
35317
35318         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
35319         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
35320         as autoconf-substituted macros.
35321         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35322         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35323         gl_NETDB_H_DEFAULTS. Set these variables.
35324         * modules/netdb (Makefile.am): Substitute these variables.
35325
35326 2008-11-10  Eric Blake  <ebb9@byu.net>
35327
35328         standards.texi: include correct file for FDL 1.3
35329         * doc/standards.texi (GNU Free Documentation License): Change
35330         include file to pull in FDL 1.3, not 1.2.
35331
35332         fdl.texi: revert accidental change to license
35333         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35334
35335 2008-11-10  Bruno Haible  <bruno@clisp.org>
35336
35337         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35338         cross-compiling guesses also when the native compile gives no result.
35339
35340 2008-11-10  Bruno Haible  <bruno@clisp.org>
35341
35342         * lib/spawni.c (__spawni): Force variable into the stack.
35343
35344 2008-11-10  Bruno Haible  <bruno@clisp.org>
35345
35346         Add support for Haiku.
35347         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35348         glibc and BeOS, but also on Haiku.
35349         * lib/fpurge.c (fpurge): Likewise.
35350         * lib/freadable.c (freadable): Likewise.
35351         * lib/freadahead.c (freadahead): Likewise.
35352         * lib/freading.c (freading): Likewise.
35353         * lib/freadptr.c (freadptr): Likewise.
35354         * lib/freadseek.c (freadptrinc): Likewise.
35355         * lib/fseeko.c (rpl_fseeko): Likewise.
35356         * lib/fseterr.c (fseterr): Likewise.
35357         * lib/fwritable.c (fwritable): Likewise.
35358         * lib/fwriting.c (fwriting): Likewise.
35359         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35360
35361 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35362
35363         * lib/config.charset: Treat Haiku like BeOS.
35364
35365 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35366
35367         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35368         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35369
35370 2008-11-08  Bruno Haible  <bruno@clisp.org>
35371
35372         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35373         AC_CACHE_CHECK.
35374
35375 2008-11-08  Bruno Haible  <bruno@clisp.org>
35376
35377         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35378
35379 2008-11-08  Bruno Haible  <bruno@clisp.org>
35380
35381         * tests/test-select-fd.c: New file.
35382         * tests/test-select-in.sh: New file.
35383         * tests/test-select-out.sh: New file.
35384         * tests/test-select-stdin.c: New file.
35385         * modules/select-tests (Files): Add the new files.
35386         (Depends-on): Add gettimeofday.
35387         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35388         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35389         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35390
35391 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35392             Bruno Haible  <bruno@clisp.org>
35393
35394         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35395
35396 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35397
35398         * build-aux/pmccabe2html: Added support for C++ source files.
35399
35400 2008-11-05  Ben Pfaff  <blp@gnu.org>
35401
35402         Fix lib/close.c build on Windows.
35403         * modules/close (Files): Add lib/w32sock.h.
35404
35405 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35406
35407         Accept Bison's NEWS format.
35408         * build-aux/announce-gen (print_news_deltas): Tweak
35409         $re_prefix.
35410
35411 2008-11-04  Bruno Haible  <bruno@clisp.org>
35412
35413         * modules/random_r (Maintainer): Add glibc.
35414
35415 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35416
35417         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35418         by karl@freefriends.org (Karl Berry).
35419         * doc/alloca.texi: Likewise.
35420         * doc/c-ctype.texi: Likewise.
35421         * doc/c-strcase.texi: Likewise.
35422         * doc/c-strcaseeq.texi: Likewise.
35423         * doc/c-strcasestr.texi: Likewise.
35424         * doc/c-strstr.texi: Likewise.
35425         * doc/c-strtod.texi: Likewise.
35426         * doc/c-strtold.texi: Likewise.
35427         * doc/ctime.texi: Likewise.
35428         * doc/error.texi: Likewise.
35429         * doc/fdl.texi: Likewise.
35430         * doc/gcd.texi: Likewise.
35431         * doc/getdate.texi: Likewise.
35432         * doc/gnulib-intro.texi: Likewise.
35433         * doc/gnulib-tool.texi: Likewise.
35434         * doc/gnulib.texi: Likewise.
35435         * doc/inet_ntoa.texi: Likewise.
35436         * doc/maintain.texi: Likewise.
35437         * doc/make-stds.texi: Likewise.
35438         * doc/quote.texi: Likewise.
35439         * doc/regexprops-generic.texi: Likewise.
35440         * doc/standards.texi: Likewise.
35441         * doc/verify.texi: Likewise.
35442         * doc/visibility.texi: Likewise.
35443         * doc/gnulib.texi (GNU Free Documentation License): Include
35444         fdl-1.3.texi instead of fdl.texi.
35445
35446 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35447
35448         * doc/fdl-1.3.texi: New file, from
35449         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35450         * modules/fdl-1.3: Add.
35451         * MODULES.html.sh: Add fdl-1.3.
35452
35453 2008-11-03  Bruno Haible  <bruno@clisp.org>
35454
35455         Make determination of absolute name of header file work with AIX xlc.
35456         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35457         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35458         preprocessing.
35459         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35460         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35461
35462 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35463
35464         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35465         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35466         <ludo@gnu.org>.
35467
35468 2008-11-02  Bruno Haible  <bruno@clisp.org>
35469
35470         Mark 'strpbrk' obsolete.
35471         * modules/strpbrk (Status, Notice): New sections.
35472         * modules/strtok_r (Depends-on): Add strpbrk.
35473
35474 2008-11-02  Bruno Haible  <bruno@clisp.org>
35475
35476         Mark 'strdup' obsolete.
35477         * modules/strdup (Status, Notice): New sections.
35478         * modules/findprog (Depends-on): Add strdup.
35479         * modules/getaddrinfo (Depends-on): Likewise.
35480         * modules/localename (Depends-on): Likewise.
35481         * modules/relocatable-lib (Depends-on): Likewise.
35482         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
35483         * modules/relocatable-prog (Depends-on): Likewise.
35484         * modules/trim (Depends-on): Likewise.
35485         * modules/unictype/gen-ctype (Depends-on): Likewise.
35486         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35487
35488 2008-11-02  Bruno Haible  <bruno@clisp.org>
35489
35490         Mark 'strcspn' obsolete.
35491         * modules/strcspn (Status, Notice): New sections.
35492
35493 2008-11-02  Bruno Haible  <bruno@clisp.org>
35494
35495         Mark 'rmdir' obsolete.
35496         * modules/rmdir (Status, Notice): New sections.
35497         * modules/clean-temp (Depends-on): Add rmdir.
35498         * modules/openat (Depends-on): Likewise.
35499
35500 2008-11-02  Bruno Haible  <bruno@clisp.org>
35501
35502         Mark 'raise' obsolete.
35503         * modules/raise (Status, Notice): New sections.
35504         (Include): Specify <signal.h>.
35505         * modules/stdio (Depends-on): Add raise.
35506         * modules/write (Depends-on): Likewise.
35507
35508 2008-11-02  Bruno Haible  <bruno@clisp.org>
35509
35510         Mark 'memset' obsolete.
35511         * modules/memset (Status, Notice): New sections.
35512
35513 2008-11-02  Bruno Haible  <bruno@clisp.org>
35514
35515         Mark 'memmove' obsolete.
35516         * modules/memmove (Status, Notice): New sections.
35517         * modules/argp (Depends-on): Add memmove.
35518         * modules/argz (Depends-on): Likewise.
35519         * modules/canonicalize (Depends-on): Likewise.
35520         * modules/canonicalize-lgpl (Depends-on): Likewise.
35521         * modules/fts (Depends-on): Likewise.
35522         * modules/getcwd (Depends-on): Likewise.
35523         * modules/human (Depends-on): Likewise.
35524         * modules/regex (Depends-on): Likewise.
35525         * modules/striconveh (Depends-on): Likewise.
35526         * modules/trim (Depends-on): Likewise.
35527         * modules/unistr/u8-move (Depends-on): Likewise.
35528         * modules/unistr/u16-move (Depends-on): Likewise.
35529         * modules/unistr/u32-move (Depends-on): Likewise.
35530
35531 2008-11-02  Bruno Haible  <bruno@clisp.org>
35532
35533         Mark 'memcpy' obsolete.
35534         * modules/memcpy (Status, Notice): New sections.
35535
35536 2008-11-02  Bruno Haible  <bruno@clisp.org>
35537
35538         Mark 'memcmp' obsolete.
35539         * modules/memcmp (Status, Notice): New sections.
35540         * modules/argmatch (Depends-on): Add memchr.
35541         * modules/backupfile (Depends-on): Likewise.
35542         * modules/c-strcasestr (Depends-on): Likewise.
35543         * modules/crypto/des (Depends-on): Likewise.
35544         * modules/csharpcomp (Depends-on): Likewise.
35545         * modules/fnmatch (Depends-on): Likewise.
35546         * modules/git-merge-changelog (Depends-on): Likewise.
35547         * modules/isnand (Depends-on): Likewise.
35548         * modules/isnand-nolibm (Depends-on): Likewise.
35549         * modules/isnanf (Depends-on): Likewise.
35550         * modules/isnanf-nolibm (Depends-on): Likewise.
35551         * modules/isnanl (Depends-on): Likewise.
35552         * modules/isnanl-nolibm (Depends-on): Likewise.
35553         * modules/mbchar (Depends-on): Likewise.
35554         * modules/memcoll (Depends-on): Likewise.
35555         * modules/quotearg (Depends-on): Likewise.
35556         * modules/regex (Depends-on): Likewise.
35557         * modules/relocatable-prog (Depends-on): Likewise.
35558         * modules/same (Depends-on): Likewise.
35559         * modules/signbit (Depends-on): Likewise.
35560         * modules/strcasestr-simple (Depends-on): Likewise.
35561         * modules/unictype/gen-ctype (Depends-on): Likewise.
35562         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35563         * modules/uniname/uniname (Depends-on): Likewise.
35564         * modules/unistr/u8-cmp (Depends-on): Likewise.
35565
35566 2008-11-02  Bruno Haible  <bruno@clisp.org>
35567
35568         Mark 'memchr' obsolete.
35569         * modules/memchr (Status, Notice): New sections.
35570         * modules/argp (Depends-on): Add memchr.
35571         * modules/base64 (Depends-on): Likewise.
35572         * modules/c-strcasestr (Depends-on): Likewise.
35573         * modules/chdir-long (Depends-on): Likewise.
35574         * modules/fnmatch (Depends-on): Likewise.
35575         * modules/getsubopt (Depends-on): Likewise.
35576         * modules/git-merge-changelog (Depends-on): Likewise.
35577         * modules/glob (Depends-on): Likewise.
35578         * modules/strcasestr-simple (Depends-on): Likewise.
35579         * modules/strnlen (Depends-on): Likewise.
35580
35581 2008-11-02  Bruno Haible  <bruno@clisp.org>
35582
35583         Mark 'atexit' obsolete.
35584         * modules/atexit (Status, Notice): New sections.
35585         * modules/chdir-long (Depends-on): Add atexit.
35586         * modules/wait-process (Depends-on): Likewise.
35587
35588 2008-11-02  Bruno Haible  <bruno@clisp.org>
35589
35590         * gnulib-tool: New option --with-obsolete.
35591         (func_usage): Document it.
35592         (func_modules_transitive_closure): Drop obsolete dependencies if
35593         incobsolete is not true.
35594         (func_import): Read and save the incobsolete variable to the cache.
35595
35596 2008-11-02  Bruno Haible  <bruno@clisp.org>
35597
35598         * modules/TEMPLATE-EXTENDED: New field 'Status'.
35599         * gnulib-tool: New option --extract-status.
35600         (func_usage): Document it.
35601         (sed_extract_prog): Recognize it.
35602         (func_get_status): New function.
35603
35604 2008-10-30  Simon Josefsson  <simon@josefsson.org>
35605
35606         * modules/sockets (License): Change from LGPL to LGPLv2+.
35607
35608 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35609
35610         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
35611
35612 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35613
35614         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35615         Mention times and sys_times.
35616         * modules/sys_times, modules/sys_times-tests: New modules.
35617         * modules/times, modules/times-tests: Likewise
35618         * m4/sys_times_h.m4: New file.
35619         * lib/sys_times.in.h: Likewise
35620         * lib/times.c: Likewise.
35621         * tests/test-sys_times.c: Likewise.
35622         * tests/test-times.c: Likewise.
35623         * doc/posix-headers/sys_times.texi: Update.
35624         * doc/posix-functions/times.texi: Update.
35625
35626 2008-10-28  Jim Meyering  <meyering@redhat.com>
35627
35628         * modules/tempname (Depends-on): Add lstat.
35629
35630         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
35631
35632 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35633
35634         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
35635         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
35636         using idiom used elsewhere in gnulib.
35637
35638 2008-10-27  Jim Meyering  <meyering@redhat.com>
35639
35640         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
35641
35642 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35643
35644         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
35645         TESTS_ENVIRONMENT, for shell scripts that needs to call built
35646         programs.
35647         * tests/test-argp-2.sh: Use $EXEEXT when needed.
35648
35649 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35650
35651         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
35652
35653 2008-10-27  Bruno Haible  <bruno@clisp.org>
35654
35655         * tests/test-lstat.c: Include <stdio.h>.
35656
35657 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35658
35659         * modules/lstat-tests: New module.
35660         * tests/test-lstat.c: New file.
35661
35662 2008-10-26  Jim Meyering  <meyering@redhat.com>
35663
35664         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
35665
35666 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35667             Bruno Haible  <bruno@clisp.org>
35668
35669         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
35670         * modules/configmake (Include): Add a note that the include must come
35671         after all system headers.
35672         * lib/javaversion.c: Include configmake.h after all other includes.
35673
35674 2008-10-26  Bruno Haible  <bruno@clisp.org>
35675
35676         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
35677         HAVE_STRUCT_RANDOM_DATA to 1.
35678         (gl_STDLIB_H): Simplify.
35679
35680 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35681
35682         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
35683         substitute HAVE_STRUCT_RANDOM_DATA.
35684         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
35685         random_data.
35686         * modules/stdlib (Makefile.am): Substitute
35687         HAVE_STRUCT_RANDOM_DATA.
35688
35689 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35690
35691         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
35692         * doc/gnulib-intro.texi (Copyright): Likewise.
35693
35694 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35695
35696         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
35697         findings.
35698
35699 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
35700             Bruno Haible  <bruno@clisp.org>
35701
35702         * lib/unistd.in.h: Include <winsock2.h>.
35703         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
35704         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
35705         Provide dummy declarations.
35706         (gethostname): Override.
35707         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
35708         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
35709         gl_PREREQ_SYS_H_WINSOCK2.
35710         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
35711         * doc/posix-functions/gethostname.texi: More details.
35712
35713 2008-10-25  Bruno Haible  <bruno@clisp.org>
35714
35715         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35716         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
35717         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
35718
35719         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
35720         here ...
35721         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
35722         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
35723         gl_UNISTD_H_DEFAULTS.
35724
35725 2008-10-25  Eric Blake  <ebb9@byu.net>
35726
35727         signbit: avoid spurious compiler failure
35728         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
35729         declarations inside function.
35730
35731 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35732             Bruno Haible  <bruno@clisp.org>
35733
35734         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
35735         * modules/random_r (Depends-on): Add stdint.
35736
35737 2008-10-24  Bruno Haible  <bruno@clisp.org>
35738
35739         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
35740         Eggert.
35741         * modules/strerror (License): Likewise.
35742
35743 2008-10-24  Jim Meyering  <meyering@redhat.com>
35744
35745         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
35746         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
35747
35748 2008-10-24  Eric Blake  <ebb9@byu.net>
35749
35750         getgroups: fix compilation when getgroups is available
35751         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
35752         but with <config.h> override of getgroups disabled.
35753
35754 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35755
35756         * doc/gnulib.texi (Header files): Add note about C++ problems.
35757         Explained by Bruno Haible <bruno@clisp.org>.
35758
35759 2008-10-23  Bruno Haible  <bruno@clisp.org>
35760
35761         Define a dummy SA_NODEFER macro on Interix.
35762         * lib/signal.in.h (SA_NODEFER): Define fallback.
35763         Reported by Aleksey Cheusov <cheusov@tut.by> via
35764         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
35765
35766 2008-10-23  Bruno Haible  <bruno@clisp.org>
35767
35768         * modules/freadahead (License): Change to LGPLv2+.
35769         Suggested by Simon Josefsson.
35770
35771 2008-10-23  Jim Meyering  <meyering@redhat.com>
35772
35773         random_r: new module
35774         * modules/random_r: New file.
35775         * m4/random_r.m4: New file.
35776         * lib/random_r.c: New file, from glibc.
35777         * modules/random_r-tests: New file.
35778         * tests/test-random_r.c: New file.
35779         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
35780          Declare.
35781         (RAND_MAX): Define.
35782         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
35783         * modules/stdlib: Substitute them, too.
35784         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
35785         * doc/glibc-functions/initstate_r.texi: Mention the new module.
35786         * doc/glibc-functions/random_r.texi: Likewise.
35787         * doc/glibc-functions/setstate_r.texi: Likewise.
35788         * doc/glibc-functions/srandom_r.texi: Likewise.
35789         * config/srclist.txt: Mention it.
35790
35791 2008-10-23  David Lutterkort  <lutter@redhat.com>
35792
35793         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
35794         link requirement
35795
35796 2008-10-23  Jim Meyering  <meyering@redhat.com>
35797
35798         selinux-h: mark parameters of stub functions as intentionally unused
35799         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
35800         * lib/se-context.in.h: Likewise.
35801
35802 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35803
35804         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
35805
35806 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35807
35808         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
35809
35810 2008-10-22  Eric Blake  <ebb9@byu.net>
35811
35812         glthread/thread: avoid compiler warning
35813         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
35814         Add unreachable abort to silence compiler.
35815
35816 2008-10-22  Eric Blake  <ebb9@byu.net>
35817
35818         netdb: also supply struct addrinfo for cygwin 1.5.x
35819         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
35820         older cygwin.
35821         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
35822         cygwin.
35823         * doc/posix-headers/netdb.texi (netdb.h): Document this.
35824
35825 2008-10-22  Bruno Haible  <bruno@clisp.org>
35826
35827         * users.txt: Update entry about pspp.
35828
35829 2008-10-21  Bruno Haible  <bruno@clisp.org>
35830
35831         Simplification.
35832         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
35833         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
35834
35835         Simplification.
35836         * lib/ioctl.c (ioctl): Don't undefine.
35837         * lib/socket.c (socket): Don't undefine.
35838
35839         Remove unused module indicator macros.
35840         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
35841         GNULIB_$1 as a C macro.
35842
35843         * doc/posix-functions/close.texi: Undo last change.
35844         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
35845         Windows platforms.
35846
35847 2008-10-21  Bruno Haible  <bruno@clisp.org>
35848
35849         Add gethostname() declaration to <unistd.h>.
35850         * lib/unistd.in.h (gethostname): New declaration.
35851         * lib/gethostname.c: Include <unistd.h>.
35852         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
35853         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
35854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
35855         and HAVE_GETHOSTNAME.
35856         * modules/gethostname (Depends-on): Add unistd.
35857         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35858         (Include): Specify <unistd.h>.
35859         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
35860         HAVE_GETHOSTNAME.
35861         * tests/test-gethostname.c: Include <unistd.h> first.
35862
35863 2008-10-21  Bruno Haible  <bruno@clisp.org>
35864
35865         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
35866         * modules/select-tests (Depends-on): Likewise.
35867         Reported by Simon Josefsson.
35868
35869 2008-10-21  Simon Josefsson  <simon@josefsson.org>
35870
35871         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
35872         * lib/accept.c: New file, based on winsock.c.
35873         * lib/bind.c: New file, based on winsock.c.
35874         * lib/connect.c: New file, based on winsock.c.
35875         * lib/getpeername.c: New file, based on winsock.c.
35876         * lib/getsockname.c: New file, based on winsock.c.
35877         * lib/getsockopt.c: New file, based on winsock.c.
35878         * lib/ioctl.c: New file, based on winsock.c.
35879         * lib/listen.c: New file, based on winsock.c.
35880         * lib/recv.c: New file, based on winsock.c.
35881         * lib/recvfrom.c: New file, based on winsock.c.
35882         * lib/send.c: New file, based on winsock.c.
35883         * lib/sendto.c: New file, based on winsock.c.
35884         * lib/setsockopt.c: New file, based on winsock.c.
35885         * lib/shutdown.c: New file, based on winsock.c.
35886         * lib/socket.c: New file, based on winsock.c.
35887         * lib/w32sock.h: New file, based on winsock.c.
35888         * lib/winsock.c: Remove file.
35889         * modules/accept: Likewise.
35890         * modules/bind: Likewise.
35891         * modules/connect: Likewise.
35892         * modules/getpeername: Likewise.
35893         * modules/getsockname: Likewise.
35894         * modules/getsockopt: Likewise.
35895         * modules/ioctl: Likewise.
35896         * modules/listen: Likewise.
35897         * modules/recv: Likewise.
35898         * modules/recvfrom: Likewise.
35899         * modules/send: Likewise.
35900         * modules/sendto: Likewise.
35901         * modules/setsockopt: Likewise.
35902         * modules/shutdown: Likewise.
35903         * modules/socket: Use socket.c instead of winsock.c.
35904         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
35905         * doc/posix-functions/accept.texi: Doc fix.
35906         * doc/posix-functions/bind.texi: Doc fix.
35907         * doc/posix-functions/close.texi: Doc fix.
35908         * doc/posix-functions/connect.texi: Doc fix.
35909         * doc/posix-functions/getpeername.texi: Doc fix.
35910         * doc/posix-functions/getsockname.texi: Doc fix.
35911         * doc/posix-functions/getsockopt.texi: Doc fix.
35912         * doc/posix-functions/ioctl.texi: Doc fix.
35913         * doc/posix-functions/listen.texi: Doc fix.
35914         * doc/posix-functions/recv.texi: Doc fix.
35915         * doc/posix-functions/recvfrom.texi: Doc fix.
35916         * doc/posix-functions/send.texi: Doc fix.
35917         * doc/posix-functions/sendto.texi: Doc fix.
35918         * doc/posix-functions/setsockopt.texi: Doc fix.
35919         * doc/posix-functions/shutdown.texi: Doc fix.
35920         * doc/posix-functions/socket.texi: Doc fix.
35921
35922 2008-10-20  Bruno Haible  <bruno@clisp.org>
35923
35924         Take into account the role of SIGABRT_COMPAT on Windows 2008.
35925         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
35926         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
35927         as an alias for SIGABRT.
35928         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
35929         (sigaction): Map it to SIGABRT.
35930         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
35931
35932 2008-10-20  Bruno Haible  <bruno@clisp.org>
35933
35934         * lib/fts.c: Don't include lstat.h.
35935         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
35936
35937         Move the lstat() declaration to <sys/stat.h>.
35938         * lib/lstat.h: Remove file.
35939         * lib/sys_stat.in.h: Add special invocation convention.
35940         (lstat): New declaration.
35941         * lib/lstat.c (orig_lstat): New function.
35942         (rpl_lstat): Use orig_lstat instead of lstat.
35943         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
35944         AC_C_INLINE. Set REPLACE_LSTAT.
35945         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
35946         and REPLACE_LSTAT.
35947         * modules/lstat (Files): Remove lib/lstat.h.
35948         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35949         (Include): Specify <sys/stat.h> instead of lstat.h.
35950         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
35951         REPLACE_LSTAT.
35952         * NEWS: Mention the change.
35953
35954 2008-10-20  Bruno Haible  <bruno@clisp.org>
35955
35956         * modules/posix_spawn-tests: New file.
35957         * tests/test-posix_spawn3.c: New file.
35958
35959 2008-10-20  Bruno Haible  <bruno@clisp.org>
35960
35961         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
35962         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35963         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
35964         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35965         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
35966
35967 2008-10-20  Bruno Haible  <bruno@clisp.org>
35968
35969         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
35970         of posix_spawn on AIX 5.3.
35971
35972 2008-10-20  Bruno Haible  <bruno@clisp.org>
35973
35974         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
35975
35976 2008-10-20  Bruno Haible  <bruno@clisp.org>
35977
35978         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
35979         of AC_LANG_PROGRAM.
35980
35981 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35982
35983         * lib/netdb.in.h: Don't define GNU specific constants until they
35984         are supported or needed.  Reported by Bruno Haible
35985         <bruno@clisp.org>.
35986
35987 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35988
35989         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
35990
35991 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35992
35993         * lib/getaddrinfo.h: Remove file.
35994         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
35995         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
35996         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
35997         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
35998         * modules/netdb: Substitute GNULIB_GETADDRINFO.
35999         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
36000         * tests/test-getaddrinfo.c: Likewise.
36001         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
36002         * NEWS: Mention change.
36003
36004 2008-10-19  Bruno Haible  <bruno@clisp.org>
36005
36006         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
36007
36008 2008-10-19  Bruno Haible  <bruno@clisp.org>
36009
36010         * lib/wait-process.c: Include simply <sys/wait.h>.
36011         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
36012         WIFSTOPPED): Remove fallback definitions.
36013         * modules/wait-process (Depends-on): Add sys_wait.
36014
36015         New module 'sys_wait'.
36016         * modules/sys_wait: New file.
36017         * lib/sys_wait.in.h: New file, partially copied from
36018         lib/wait-process.c.
36019         * m4/sys_wait_h.m4: New file.
36020         * doc/posix-headers/sys_wait.texi: Mention the new module.
36021
36022 2008-10-19  Bruno Haible  <bruno@clisp.org>
36023
36024         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
36025
36026 2008-10-19  Bruno Haible  <bruno@clisp.org>
36027
36028         Assume that waitpid() fills an 'int' status, not a 'union wait'.
36029         * lib/wait-process.c (WAIT_T): Remove type.
36030         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
36031         (wait_subprocess): Update.
36032
36033 2008-10-19  Bruno Haible  <bruno@clisp.org>
36034
36035         New module 'atoll'.
36036         * modules/atoll: New file.
36037         * lib/stdlib.in.h (atoll): New declaration.
36038         * lib/atoll.c: New file, from glibc with modifications.
36039         * m4/atoll.m4: New file.
36040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
36041         HAVE_ATOLL.
36042         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
36043         * doc/posix-functions/atoll.texi: Mention the new module.
36044
36045 2008-10-19  Bruno Haible  <bruno@clisp.org>
36046
36047         Add strtoull() declaration to <stdlib.h>.
36048         * lib/stdlib.in.h (strtoull): New declaration.
36049         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36050         Set HAVE_STRTOULL.
36051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
36052         HAVE_STRTOULL.
36053         * modules/strtoull (Depends-on): Add stdlib.
36054         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36055         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
36056         HAVE_STRTOULL.
36057
36058 2008-10-19  Bruno Haible  <bruno@clisp.org>
36059
36060         Add strtoll() declaration to <stdlib.h>.
36061         * lib/stdlib.in.h (strtoll): New declaration.
36062         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36063         Set HAVE_STRTOLL.
36064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
36065         HAVE_STRTOLL.
36066         * modules/strtoll (Depends-on): Add stdlib.
36067         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36068         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
36069
36070 2008-10-19  Bruno Haible  <bruno@clisp.org>
36071
36072         * modules/bcopy (Depends-on): Add strings.
36073         (Include): Specify <strings.h>.
36074
36075 2008-10-19  Bruno Haible  <bruno@clisp.org>
36076
36077         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
36078
36079 2008-10-19  Bruno Haible  <bruno@clisp.org>
36080
36081         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
36082         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
36083         mingw.
36084
36085 2008-10-19  Bruno Haible  <bruno@clisp.org>
36086
36087         * lib/atanl.c: Don't include isnanl.h.
36088         * lib/cosl.c: Likewise.
36089         * lib/ldexpl.c: Likewise.
36090         * lib/logl.c: Likewise.
36091         * lib/sinl.c: Likewise.
36092         * lib/sqrtl.c: Likewise.
36093         * lib/tanl.c: Likewise.
36094
36095         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
36096         * lib/isnanf.h: Remove file.
36097         * lib/isnand.h: Remove file.
36098         * lib/isnanl.h: Remove file.
36099         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
36100         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
36101         macros.
36102         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
36103         HAVE_ISNANF, don't define it as a C macro.
36104         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
36105         HAVE_ISNAND, don't define it as a C macro.
36106         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
36107         HAVE_ISNANL, don't define it as a C macro.
36108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
36109         HAVE_ISNAN[FDL].
36110         * modules/isnanf (Files): Remove lib/isnanf.h.
36111         (Depends-on): Add math.
36112         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36113         (Include): Specify <math.h> instead of isnanf.h.
36114         * modules/isnand (Files): Remove lib/isnand.h.
36115         (Depends-on): Add math.
36116         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36117         (Include): Specify <math.h> instead of isnand.h.
36118         * modules/isnanl (Files): Remove lib/isnanl.h.
36119         (Depends-on): Add math.
36120         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36121         (Include): Specify <math.h> instead of isnanl.h.
36122         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
36123         HAVE_ISNAN[FDL].
36124         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
36125         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
36126         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
36127         * NEWS: Mention the change.
36128
36129 2008-10-18  Bruno Haible  <bruno@clisp.org>
36130
36131         Add getusershell(), setusershell(), endusershell() declarations to
36132         <unistd.h>.
36133         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
36134         declarations.
36135         * lib/getusershell.c: Include unistd.h.
36136         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
36137         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36138         HAVE_GETUSERSHELL.
36139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
36140         and HAVE_GETUSERSHELL.
36141         * modules/getusershell (Depends-on): Add unistd, extensions.
36142         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36143         (Include): Specify <unistd.h>.
36144         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
36145         HAVE_GETUSERSHELL.
36146
36147 2008-10-18  Bruno Haible  <bruno@clisp.org>
36148
36149         Add a getloadavg() declaration to <stdlib.h>.
36150         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
36151         getloadavg declaration.
36152         (getloadavg): New declaration.
36153         * lib/getloadavg.c: Include <stdlib.h> first.
36154         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
36155         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
36156         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
36157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
36158         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36159         * modules/getloadavg (Depends-on): Add stdlib, extensions.
36160         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36161         (Include): Specify <stdlib.h>.
36162         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
36163         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36164
36165 2008-10-18  Bruno Haible  <bruno@clisp.org>
36166
36167         * lib/dirchownmod.c: Don't include lchmod.h.
36168
36169         Move the lchmod() declaration to <sys/stat.h>.
36170         * lib/lchmod.h: Remove file.
36171         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
36172         (lchmod): New declaration, moved here from lib/lchown.h.
36173         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
36174         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
36175         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
36176         and HAVE_LCHMOD.
36177         * modules/lchmod (Files): Remove lib/lchmod.h.
36178         (Depends-on): Add sys_stat, extensions.
36179         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36180         (Include): Specify <sys/stat.h> instead of lchmod.h.
36181         * modules/sys_stat (Depends-on): Add link-warning.
36182         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
36183         definition of GL_LINK_WARNING.
36184         * NEWS: Mention the change.
36185
36186 2008-10-18  Bruno Haible  <bruno@clisp.org>
36187
36188         * lib/fchdir.c: Don't include dirfd.h.
36189         * lib/fts.c: Likewise.
36190         * lib/getcwd.c: Likewise.
36191         * lib/glob.c: Likewise.
36192
36193         Move the dirfd() declaration to <dirent.h>.
36194         * lib/dirfd.h: Remove file.
36195         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36196         (dirfd): New declaration.
36197         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36198         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36199         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36200         HAVE_DECL_DIRFD.
36201         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36202         HAVE_DECL_DIRFD.
36203         * modules/dirfd (Files): Remove lib/dirfd.h.
36204         (Depends-on): Add dirent, extensions.
36205         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36206         (Include): Specify <dirent.h> instead of dirfd.h.
36207         * modules/dirent (Depends-on): Add link-warning.
36208         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36209         definition of GL_LINK_WARNING.
36210         * NEWS: Mention the change.
36211
36212 2008-10-18  Bruno Haible  <bruno@clisp.org>
36213
36214         Move the euidaccess() declaration to <unistd.h>.
36215         * lib/euidaccess.h: Remove file.
36216         * lib/unistd.in.h (euidaccess): New declaration.
36217         * lib/euidaccess.c: Don't include euidaccess.h.
36218         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36219         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36221         and HAVE_EUIDACCESS.
36222         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36223         (Depends-on): Add unistd.
36224         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36225         (Include): Specify <unistd.h> instead of euidaccess.h.
36226         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36227         HAVE_EUIDACCESS.
36228         * NEWS: Mention the change.
36229
36230 2008-10-18  Bruno Haible  <bruno@clisp.org>
36231
36232         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36233
36234         Move the getdomainname() declaration to <unistd.h>.
36235         * lib/getdomainname.h: Remove file.
36236         * lib/unistd.in.h (getdomainname): New declaration.
36237         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36238         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36239         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36240         HAVE_GETDOMAINNAME.
36241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36242         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36243         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36244         (Depends-on): Add unistd, extensions.
36245         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36246         (Includes): Specify <unistd.h> instead of getdomainname.h.
36247         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36248         HAVE_GETDOMAINNAME.
36249         * NEWS: Mention the change.
36250
36251 2008-10-18  Bruno Haible  <bruno@clisp.org>
36252
36253         * modules/dirent: New file.
36254         * m4/dirent_h.m4: New file.
36255         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36256         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36257         * modules/fchdir (Files): Remove lib/dirent.in.h.
36258         (Depends-on): Add dirent.
36259         (Makefile.am): Move rules to modules/dirent.
36260         * doc/posix-headers/dirent.texi: Mention the new module.
36261
36262 2008-10-18  Bruno Haible  <bruno@clisp.org>
36263
36264         Avoid -Wunused-parameter warnings in public gnulib header files.
36265         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
36266         macro.
36267         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
36268
36269 2008-10-18  Bruno Haible  <bruno@clisp.org>
36270
36271         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
36272         * doc/glibc-functions/error.texi: Mention the module 'error'.
36273         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
36274         * doc/glibc-functions/getdomainname.texi: Mention the module
36275         'getdomainname'.
36276         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
36277         * doc/glibc-functions/getpagesize.texi: Mention the module
36278         'getpagesize'.
36279         * doc/glibc-functions/getusershell.texi: Mention the module
36280         'getusershell'.
36281         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
36282         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
36283         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
36284         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
36285         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36286         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
36287         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
36288         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
36289         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
36290         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
36291         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
36292         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
36293         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
36294         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
36295
36296 2008-10-17  Bruno Haible  <bruno@clisp.org>
36297
36298         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
36299         HP-UX and IRIX, use -0.0L.
36300         * tests/test-ceill.c (minus_zero): Likewise.
36301         * tests/test-floorl.c (minus_zero): Likewise.
36302         * tests/test-frexpl.c (minus_zero): Likewise.
36303         * tests/test-isnan.c (minus_zerol): Likewise.
36304         * tests/test-isnanl.h (minus_zero): Likewise.
36305         * tests/test-ldexpl.c (minus_zero): Likewise.
36306         * tests/test-roundl.c (minus_zero): Likewise.
36307         * tests/test-signbit.c (minus_zerol): Likewise.
36308         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36309         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36310         * tests/test-truncl.c (minus_zero): Likewise.
36311         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36312         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36313         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
36314         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36315
36316 2008-10-17  Bruno Haible  <bruno@clisp.org>
36317
36318         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
36319         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
36320         that it gets activated only for gcc >= 3.0.
36321         * lib/dirent.in.h: Likewise.
36322         * lib/errno.in.h: Likewise.
36323         * lib/fcntl.in.h: Likewise.
36324         * lib/float.in.h: Likewise.
36325         * lib/iconv.in.h: Likewise.
36326         * lib/inttypes.in.h: Likewise.
36327         * lib/locale.in.h: Likewise.
36328         * lib/math.in.h: Likewise.
36329         * lib/netdb.in.h: Likewise.
36330         * lib/netinet_in.in.h: Likewise.
36331         * lib/search.in.h: Likewise.
36332         * lib/signal.in.h: Likewise.
36333         * lib/spawn.in.h: Likewise.
36334         * lib/stdarg.in.h: Likewise.
36335         * lib/stdint.in.h: Likewise.
36336         * lib/stdio.in.h: Likewise.
36337         * lib/stdlib.in.h: Likewise.
36338         * lib/string.in.h: Likewise.
36339         * lib/strings.in.h: Likewise.
36340         * lib/sys_file.in.h: Likewise.
36341         * lib/sys_ioctl.in.h: Likewise.
36342         * lib/sys_select.in.h: Likewise.
36343         * lib/sys_socket.in.h: Likewise.
36344         * lib/sys_stat.in.h: Likewise.
36345         * lib/sys_time.in.h: Likewise.
36346         * lib/sysexits.in.h: Likewise.
36347         * lib/time.in.h: Likewise.
36348         * lib/unistd.in.h: Likewise.
36349         * lib/wchar.in.h: Likewise.
36350         * lib/wctype.in.h: Likewise.
36351         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36352
36353 2008-10-17  Jim Meyering  <meyering@redhat.com>
36354
36355         ignore-value: don't depend on inline module
36356         * modules/ignore-value (Depends-on): Remove 'inline'.
36357         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36358         Suggestion from Bruno Haible.
36359
36360 2008-10-17  Bruno Haible  <bruno@clisp.org>
36361
36362         New implementation of condition variables for Win32.
36363         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36364         (gl_linked_waitqueue_t): New type.
36365         (gl_cond_t): Use it.
36366         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36367         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36368         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36369         (glthread_cond_init_func, glthread_cond_wait_func,
36370         glthread_cond_timedwait_func, glthread_cond_signal_func,
36371         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36372         Reimplemented on the basis of gl_linked_waitqueue_t.
36373         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36374         gl_waitqueue_t.
36375         (gl_rwlock_t): Update.
36376         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36377
36378 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36379
36380         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36381         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36382
36383 2008-10-17  Jim Meyering  <meyering@redhat.com>
36384
36385         ignore-value: new module
36386         * modules/ignore-value: New file.
36387         * lib/ignore-value.h: New file.
36388         * MODULES.html.sh (Compiler warning management): New section,
36389         just for this module.  More to come.
36390
36391 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36392
36393         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36394         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36395         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36396
36397 2008-10-16  Jim Meyering  <meyering@redhat.com>
36398
36399         openat-die.c: avoid 'no previous prototype' warning
36400         * lib/openat-die.c: Include "openat.h".
36401         Reported by Reuben Thomas <rrt@sc3d.org>.
36402
36403 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36404
36405         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36406         * lib/netdb.in.h: Fix typo.
36407         Reported by Bruno Haible  <bruno@clisp.org>
36408
36409         * lib/netdb.in.h: Include sys/socket.h for platforms without
36410         netdb.h, to get structures like hostent on MinGW.
36411         * modules/netdb (Depends-on): Add sys_socket.
36412
36413 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36414
36415         * modules/netdb, modules/netdb-tests: New file.
36416         * m4/netdb_h.m4: New file.
36417         * lib/netdb.in.h: Add, currently just an empty file pending
36418         definitions.
36419         * tests/test-netdb.c: New file.
36420         * doc/posix-headers/netdb.texi: Mention that we replace it if
36421         needed.
36422         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36423         netdb.
36424
36425 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36426
36427         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36428         with code.
36429
36430 2008-10-13  Bruno Haible  <bruno@clisp.org>
36431
36432         * lib/glthread/cond.c (glthread_cond_wait_func,
36433         glthread_cond_timedwait_func): Add a comment.
36434
36435 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36436
36437         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36438         * tests/test-select.c: Likewise,
36439
36440 2008-10-13  Bruno Haible  <bruno@clisp.org>
36441
36442         * lib/glthread/cond.c (glthread_cond_wait_func,
36443         glthread_cond_timedwait_func): Fix variable name.
36444         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36445
36446 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36447
36448         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36449         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36450         struct sockaddr.sa_len.
36451         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36452
36453 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36454
36455         * build-aux/pmccabe2html: Add css and css_url parameters.
36456
36457 2008-10-12  Bruno Haible  <bruno@clisp.org>
36458
36459         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36460         calling aclx_get.
36461         Reported by Rainer Tammer <tammer@tammer.net>.
36462
36463 2008-10-12  Bruno Haible  <bruno@clisp.org>
36464
36465         Use msvcrt aware primitives for creation/termination of Win32 threads.
36466         * lib/glthread/thread.c: Include <process.h>.
36467         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36468         (wrapper_func): Update signature.
36469         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36470
36471 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36472             Bruno Haible  <bruno@clisp.org>
36473
36474         Provide a Win32 implementation of the 'cond' module.
36475         * lib/glthread/cond.h [USE_WIN32]: New implementation.
36476         * lib/glthread/cond.c (glthread_cond_init_func,
36477         glthread_cond_wait_func, glthread_cond_timedwait_func,
36478         glthread_cond_signal_func, glthread_cond_broadcast_func,
36479         glthread_cond_destroy_func) [USE_WIN32]: New functions.
36480         * modules/cond (Dependencies): Add gettimeofday.
36481
36482 2008-10-11  Bruno Haible  <bruno@clisp.org>
36483
36484         Make sleep work on older versions of mingw.
36485         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
36486         only whether it exists.
36487         * doc/posix-functions/sleep.texi: Mention the problem with older
36488         versions of mingw.
36489
36490 2008-10-11  Bruno Haible  <bruno@clisp.org>
36491
36492         New module 'shutdown'.
36493         * modules/shutdown: New file.
36494         * lib/sys_socket.in.h (shutdown): New declaration.
36495         * lib/winsock.c (shutdown): New function.
36496         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36497         GNULIB_SHUTDOWN.
36498         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
36499         * doc/posix-functions/shutdown.texi: Document the new module.
36500
36501 2008-10-11  Jim Meyering  <meyering@redhat.com>
36502
36503         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
36504
36505 2008-10-11  Bruno Haible  <bruno@clisp.org>
36506
36507         New module 'fclose'.
36508         * modules/fclose: New file.
36509         * lib/stdio.in.h (fclose): New declaration.
36510         * lib/fclose.c: New file.
36511         * m4/fclose.m4: New file.
36512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
36513         REPLACE_FCLOSE.
36514         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
36515         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
36516         REPLACE_FCLOSE.
36517         * modules/close (Depends-on): fclose.
36518         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
36519
36520 2008-10-11  Bruno Haible  <bruno@clisp.org>
36521
36522         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
36523         set errno and don't call _close.
36524
36525 2008-10-10  Bruno Haible  <bruno@clisp.org>
36526
36527         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
36528         ACL, not afterwards. Fixes test failure on Cygwin.
36529
36530 2008-10-09  Ben Pfaff  <blp@gnu.org>
36531
36532         * build-aux/announce-gen: Fix gnulib version related part of usage
36533         message.  Die with a useful error message if no tarballs are
36534         found.
36535
36536 2008-10-10  Jim Meyering  <meyering@redhat.com>
36537
36538         bootstrap: use git's --depth=N option only if it's supported
36539         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
36540         recognize the --depth option.  Reported by Pádraig Brady.
36541
36542 2008-10-09  Bruno Haible  <bruno@clisp.org>
36543
36544         New module 'ioctl'.
36545         * modules/ioctl: New file.
36546         * lib/sys_socket.in.h (ioctl): Remove declaration.
36547         * lib/winsock.c: Include <sys/ioctl.h>.
36548         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
36549         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36550         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
36551         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
36552         * doc/posix-functions/ioctl.texi: Mention the new module.
36553
36554 2008-10-09  Bruno Haible  <bruno@clisp.org>
36555
36556         New module 'sys_ioctl'.
36557         * lib/sys_ioctl.in.h: New file.
36558         * m4/sys_ioctl_h.m4: New file.
36559         * modules/sys_ioctl: New file.
36560         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
36561
36562 2008-10-09  Bruno Haible  <bruno@clisp.org>
36563
36564         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
36565         * lib/winsock.c: Include <stdarg.h>.
36566         (rpl_ioctl): Change to second argument 'int' and then varargs.
36567
36568 2008-10-09  Bruno Haible  <bruno@clisp.org>
36569
36570         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
36571         when the sys_socket module is present and the system has <winsock2.h>.
36572
36573 2008-10-09  Bruno Haible  <bruno@clisp.org>
36574
36575         * doc/posix-functions/close.texi: Mention module 'close' instead of
36576         module 'sys_socket'.
36577
36578 2008-10-09  Bruno Haible  <bruno@clisp.org>
36579
36580         * doc/glibc-headers/sys_ioctl.texi: New file.
36581         * doc/gnulib.texi: Include it.
36582
36583 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36584             Bruno Haible  <bruno@clisp.org>
36585
36586         Combine the two replacements of 'close'.
36587         * lib/sys_socket.in.h (close): Define to a reminder to include
36588         <unistd.h>.
36589         (_gl_close_fd_maybe_socket): New declaration.
36590         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
36591         * lib/winsock.c (close): Remove undefinition.
36592         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
36593         needed for the gnulib module 'close'.
36594         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
36595         define to an error symbol or to a warning, if suitable.
36596         * lib/close.c: Include <sys/socket.h>.
36597         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
36598         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
36599         UNISTD_H_HAVE_WINSOCK2_H.
36600         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
36601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36602         UNISTD_H_HAVE_WINSOCK2_H.
36603         * modules/sys_socket (Files): Add m4/unistd_h.m4.
36604         (configure.ac): Set a module indicator.
36605         (Makefile.am): Substitute GNULIB_CLOSE.
36606         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
36607         * modules/poll-tests (Depends-on): Add close.
36608         * modules/select-tests (Depends-on): Likewise.
36609
36610 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36611             Bruno Haible  <bruno@clisp.org>
36612
36613         New module 'close'.
36614         * modules/close: New file.
36615         * lib/unistd.in.h (close): Move declaration out of the
36616         FCHDIR_REPLACEMENT scope.
36617         (_gl_unregister_fd): New declaration.
36618         * lib/close.c: New file.
36619         * lib/fchdir.c (rpl_close): Remove function.
36620         * m4/close.m4: New file.
36621         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36622         close.
36623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
36624         REPLACE_CLOSE.
36625         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
36626         REPLACE_CLOSE.
36627         * modules/fchdir (Depends-on): Add close.
36628
36629 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36630             Bruno Haible  <bruno@clisp.org>
36631
36632         * lib/fcntl.in.h (open): Simplify conditionals.
36633         (_gl_register_fd): New declaration.
36634         * lib/fchdir.c (rpl_open): Remove function.
36635         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
36636         also.
36637         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
36638         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36639         open.
36640
36641 2008-10-09  Jim Meyering  <meyering@redhat.com>
36642
36643         GNUmakefile: use the more name-space-friendly "_version"
36644         * top/GNUmakefile (_dummy): Update.
36645         (_version): Rename from "version".
36646
36647 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36648             Bruno Haible  <bruno@clisp.org>
36649
36650         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
36651         rpl_close.
36652         (_gl_register_fd): New function, extracted from rpl_open.
36653         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
36654         (rpl_open, rpl_opendir): Use _gl_register_fd.
36655
36656 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36657
36658         Fix organization of 'open' replacement.
36659         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
36660         (gl_FUNC_OPEN): Use it.
36661         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
36662
36663 2008-10-08  Bruno Haible  <bruno@clisp.org>
36664
36665         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
36666
36667 2008-10-08  Simon Josefsson  <simon@josefsson.org>
36668
36669         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
36670         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
36671         listen).
36672
36673 2008-10-08  Eric Blake  <ebb9@byu.net>
36674
36675         GNUmakefile: add 'make version' target
36676         * top/GNUmakefile (_curr-ver): Split version update rules...
36677         (version): ...into a target.
36678
36679 2008-10-07  Bruno Haible  <bruno@clisp.org>
36680
36681         Use a more portable replacement expression for -0.0L.
36682         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
36683         instead of -0.0L. Fix m4 quotation.
36684
36685         * tests/test-signbit.c: Include <float.h>.
36686         (minus_zero): New variable.
36687         (test_signbitl): Use minus_zero instead of -zero.
36688         * modules/signbit-tests (Depends-on): Add float.
36689
36690         * tests/test-ceill.c: Include <float.h>.
36691         (zero): Remove variable.
36692         (minus_zero): New variable.
36693         (main): Use minus_zero instead of -zero.
36694         * modules/ceill-tests (Depends-on): Add float.
36695
36696         * tests/test-floorl.c: Include <float.h>.
36697         (zero): Remove variable.
36698         (minus_zero): New variable.
36699         (main): Use minus_zero instead of -zero.
36700         * modules/floorl-tests (Depends-on): Add float.
36701
36702         * tests/test-roundl.c: Include <float.h>.
36703         (zero): Remove variable.
36704         (minus_zero): New variable.
36705         (main): Use minus_zero instead of -zero.
36706         * modules/roundl-tests (Depends-on): Add float.
36707
36708         * tests/test-truncl.c: Include <float.h>.
36709         (zero): Remove variable.
36710         (minus_zero): New variable.
36711         (main): Use minus_zero instead of -zero.
36712         * modules/truncl-tests (Depends-on): Add float.
36713
36714         * tests/test-frexpl.c (zero): Remove variable.
36715         (minus_zero): New variable.
36716         (main): Use minus_zero instead of -zero.
36717         * modules/frexpl-tests (Depends-on): Add float.
36718
36719         * tests/test-isnan.c (zerol): Remove variable.
36720         (minus_zerol): New variable.
36721         (test_long_double): Use minus_zerol instead of -zerol.
36722         * modules/isnan-tests (Depends-on): Add float.
36723
36724         * tests/test-isnanl.h (zero): Remove variable.
36725         (minus_zero): New variable.
36726         (main): Use minus_zero instead of -zero.
36727         * modules/isnanl-nolibm-tests (Depends-on): Add float.
36728         * modules/isnanl-tests (Depends-on): Add float.
36729
36730         * tests/test-ldexpl.c (zero): Remove variable.
36731         (minus_zero): New variable.
36732         (main): Use minus_zero instead of -zero.
36733         * modules/ldexpl-tests (Depends-on): Add float.
36734
36735         * tests/test-snprintf-posix.h (zerol): Remove variable.
36736         (minus_zerol): New variable.
36737         (test_function): Use minus_zerol instead of -zerol.
36738         * modules/snprintf-posix-tests (Depends-on): Add float.
36739         * modules/vsnprintf-posix-tests (Depends-on): Add float.
36740
36741         * tests/test-sprintf-posix.h (zerol): Remove variable.
36742         (minus_zerol): New variable.
36743         (test_function): Use minus_zerol instead of -zerol.
36744         * modules/sprintf-posix-tests (Depends-on): Add float.
36745         * modules/vsprintf-posix-tests (Depends-on): Add float.
36746
36747         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
36748         (minus_zerol): New variable.
36749         (test_function): Use minus_zerol instead of -zerol.
36750         * modules/vasnprintf-posix-tests (Depends-on): Add float.
36751
36752         * tests/test-vasprintf-posix.c (zerol): Remove variable.
36753         (minus_zerol): New variable.
36754         (test_function): Use minus_zerol instead of -zerol.
36755         * modules/vasprintf-posix-tests (Depends-on): Add float.
36756
36757 2008-10-07  Simon Josefsson  <simon@josefsson.org>
36758
36759         * MODULES.html.sh (Support for building documentation): Mention
36760         pmccabe2html.  Sort entries.
36761
36762         Add pmccabe2html module, from gnupdf.
36763         * build-aux/pmccabe.css: New file.
36764         * build-aux/pmccabe2html: New file.
36765         * m4/pmccabe2html.m4: New file.
36766         * modules/pmccabe2html: New file.
36767
36768 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
36769
36770         flock: new module
36771         * MODULES.html.sh: Add to list of modules.
36772         * lib/flock.c: flock implementation for Windows and Unix systems
36773         which have fcntl.
36774         * doc/glibc-functions/flock.texi: Update documentation.
36775         * lib/sys_file.in.h: <sys/file.h> header file.
36776         * m4/flock.m4: M4 macros.
36777         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
36778         * modules/flock: flock module.
36779         * modules/flock-tests: flock tests module.
36780         * modules/sys_file: sys/file.h module.
36781         * tests/test-flock.c: test suite for flock.
36782
36783 2008-10-06  Jim Meyering  <meyering@redhat.com>
36784
36785         bootstrap: check for LT_INIT more portably still ;-)
36786         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
36787         Spotted by Bruno Haible.
36788
36789 2008-10-06  Eric Blake  <ebb9@byu.net>
36790
36791         test-signbit: avoid tripping Irix cc bug on -0.0L
36792         * tests/test-signbit.c (minus_zerol): Delete, and replace with
36793         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
36794         entire testsuite consistent and avoids an Irix 6.2 bug.
36795
36796 2008-10-05  Bruno Haible  <bruno@clisp.org>
36797             Jim Meyering  <jim@meyering.net>
36798
36799         Add an option for ignoring EPIPE during close_stdout.
36800         * lib/closeout.h: Include <stdbool.h>.
36801         (close_stdout_set_ignore_EPIPE): New declaration.
36802         * lib/closeout.c: Include <stdbool.h>.
36803         (ignore_EPIPE): New variable.
36804         (close_stdout_set_ignore_EPIPE): New function.
36805         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
36806         * lib/close-stream.c (close_stream): Mention the possible EPIPE
36807         failure.
36808         * modules/closeout (Depends-on): Add stdbool.
36809
36810 2008-10-05  Bruno Haible  <bruno@clisp.org>
36811
36812         * modules/accept: New file.
36813         * modules/bind: New file.
36814         * modules/connect: New file.
36815         * modules/getpeername: New file.
36816         * modules/getsockname: New file.
36817         * modules/getsockopt: New file.
36818         * modules/listen: New file.
36819         * modules/recv: New file.
36820         * modules/recvfrom: New file.
36821         * modules/send: New file.
36822         * modules/sendto: New file.
36823         * modules/setsockopt: New file.
36824         * modules/socket: New file.
36825         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
36826         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36827         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
36828         the particular module is requested. Add a link warning when the
36829         particular module is not requested.
36830         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
36831         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
36832         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
36833         the particular module is requested.
36834         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
36835         gl_SYS_SOCKET_H_DEFAULTS): New macros.
36836         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
36837         * modules/sys_socket (Depends-on): Add link-warning.
36838         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
36839         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
36840         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
36841         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
36842         GL_LINK_WARNING.
36843         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
36844         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
36845         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
36846         * doc/posix-functions/getpeername.texi: Mention the new module
36847         'getpeername'.
36848         * doc/posix-functions/getsockname.texi: Mention the new module
36849         'getsockname'.
36850         * doc/posix-functions/getsockopt.texi: Mention the new module
36851         'getsockopt'.
36852         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
36853         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
36854         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
36855         * doc/posix-functions/send.texi: Mention the new module 'send'.
36856         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
36857         * doc/posix-functions/setsockopt.texi: Mention the new module
36858         'setsockopt'.
36859         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
36860         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
36861         listen, connect, accept.
36862         * modules/select-tests (Depends-on): Likewise.
36863
36864 2008-10-05  Bruno Haible  <bruno@clisp.org>
36865
36866         * lib/winsock.c (strerror): Remove unused #undef.
36867         (rpl_close): Remove unused local variable.
36868
36869         * modules/sys_socket (Depends-on); Add errno.
36870
36871 2008-10-05  Bruno Haible  <bruno@clisp.org>
36872
36873         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
36874         (select): Add a link warning when the 'select' module is not used.
36875         * modules/sys_select (Depends-on): Add link-warning.
36876         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
36877         Suggested by Paolo Bonzini.
36878
36879 2008-10-05  Jim Meyering  <meyering@redhat.com>
36880
36881         bootstrap: check for LT_INIT more portably
36882         * build-aux/bootstrap: Avoid using grep -E, since it's not
36883         portable enough.  Suggestion from Bruno Haible.
36884
36885 2008-10-05  Bruno Haible  <bruno@clisp.org>
36886
36887         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
36888         as being fixed by gnulib.
36889
36890 2008-10-05  Bruno Haible  <bruno@clisp.org>
36891
36892         * modules/select-tests: New file, mostly copied from
36893         modules/sys_select-tests.
36894         * tests/test-select.c: New file, mostly copied from
36895         tests/test-sys_select.c.
36896         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
36897         * modules/sys_select-tests (Depends-on): Remove all dependencies.
36898         (Makefile.am): Remove test_sys_select_LDADD.
36899
36900         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
36901         to an undefined symbol, for an error message.
36902         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
36903         (gl_SYS_SELECT_H_DEFAULTS): New macro.
36904         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
36905         winsock-select.c here.
36906         * modules/sys_select (Files): Remove lib/winsock-select.c.
36907         (Depends-on): Remove alloca.
36908         (Makefile.am): Substitute GNULIB_SELECT.
36909         * modules/select: New file.
36910         * doc/posix-functions/select.texi: Update.
36911
36912 2008-10-05  Bruno Haible  <bruno@clisp.org>
36913
36914         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
36915         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
36916         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
36917         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
36918         getdtablesize.
36919         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
36920         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
36921
36922 2008-10-05  Bruno Haible  <bruno@clisp.org>
36923
36924         * modules/getdtablesize-tests: New file.
36925         * tests/test-getdtablesize.c: New file.
36926
36927         New module 'getdtablesize'.
36928         * lib/unistd.in.h (getdtablesize): New declaration.
36929         * lib/getdtablesize.c: New file.
36930         * m4/getdtablesize.m4: New file.
36931         * modules/getdtablesize: New file.
36932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36933         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
36934         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
36935         HAVE_GETDTABLESIZE.
36936         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
36937
36938 2008-10-05  Bruno Haible  <bruno@clisp.org>
36939
36940         * modules/sched (Makefile.am): Fix typo.
36941         Reported by Simon Josefsson.
36942
36943 2008-10-05  Jim Meyering  <meyering@redhat.com>
36944
36945         bootstrap: check for LT_INIT, too
36946         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
36947         are deprecated.  Suggestion from Ralf Wildenhues.
36948
36949 2008-10-05  Bruno Haible  <bruno@clisp.org>
36950
36951         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
36952         overriding them by ours.
36953         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
36954
36955 2008-10-05  Jim Meyering  <meyering@redhat.com>
36956
36957         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
36958         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
36959         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
36960
36961 2008-10-04  Bruno Haible  <bruno@clisp.org>
36962
36963         * modules/dup2 (License): Change to LGPLv2+.
36964         * modules/sleep (License): Likewise.
36965         * modules/perror (License): Likewise.
36966         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
36967         Blake.
36968         * modules/signal (License): Likewise.
36969         * modules/sigprocmask (License): Likewise.
36970         * modules/raise (License): Change to LGPLv2+, with approval by Jim
36971         Meyering.
36972
36973 2008-10-04  Bruno Haible  <bruno@clisp.org>
36974
36975         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
36976         Reported by Rainer Tammer <tammer@tammer.net>.
36977
36978 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
36979             Bruno Haible  <bruno@clisp.org>
36980
36981         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
36982         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
36983         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
36984
36985 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
36986
36987         filevercmp: new module
36988         * lib/filevercmp.h: New function filevercmp comparing version strings.
36989         * lib/filevercmp.c: Implementation of filevercmp function.
36990         * modules/filevercmp: Module metadata.
36991         * tests/test-filevercmp.c: Unit test for new module.
36992         * modules/filevercmp-tests: Unit test metadata.
36993         * MODULES.html.sh: Add filevercmp module.
36994
36995 2008-10-03  Bruno Haible  <bruno@clisp.org>
36996
36997         * lib/c-ctype.h: Add comment.
36998         Reported by Jim Meyering.
36999
37000 2008-10-02  Bruno Haible  <bruno@clisp.org>
37001
37002         * modules/posix_spawn-internal (Depends-on): Add 'open'.
37003
37004 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37005
37006         * build-aux/bootstrap: Allow renaming bootstrap, and change the
37007         name of bootstrap.conf accordingly.
37008
37009 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37010
37011         * build-aux/bootstrap: Install git-merge-changelog configuration
37012         items into .gitconfig if needed.
37013
37014 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37015
37016         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
37017         git repository, and initialize/update it accordingly.
37018
37019 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
37020
37021         * modules/fsync-tests: New file.
37022         * tests/test-fsync.c: New file.
37023
37024         New module 'fsync'.
37025         * lib/fsync.c: New file.
37026         * m4/fsync.m4: New file.
37027         * modules/fsync: New file.
37028         * lib/unistd.in.h (fsync): New declaration.
37029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
37030         GNULIB_FSYNC and HAVE_FSYNC.
37031         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
37032         * MODULES.html.sh (posix_functions): Add fsync.
37033         * doc/posix-functions/fsync.texi: Mention the new module.
37034
37035 2008-10-02  Jim Meyering  <meyering@redhat.com>
37036
37037         fts.c: sync with similar code from coreutils' remove.c
37038         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
37039         Guard also with "#if defined __linux__", since for now at least,
37040         this code is Linux-kernel-specific.
37041
37042 2008-10-02  Jim Meyering  <meyering@redhat.com>
37043
37044         fts: bug fixes
37045         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
37046         Include <sys/vfs.h>, not <sys/statfs.h>.
37047
37048         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
37049         Include <sys/vfs.h>, not <sys/statfs.h>.
37050
37051 2008-10-01  Bruno Haible  <bruno@clisp.org>
37052
37053         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
37054         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
37055         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
37056         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
37057         * doc/posix-functions/posix_spawnp.texi: Likewise.
37058         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
37059         whether posix_spawn actually works.
37060         * m4/pipe.m4 (gl_PIPE): Likewise.
37061         * modules/execute (Files): Add m4/posix_spawn.m4.
37062         * modules/pipe (Files): Add m4/posix_spawn.m4.
37063         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
37064
37065 2008-10-01  Jim Meyering  <meyering@redhat.com>
37066
37067         remove trailing spaces
37068         * NEWS: Likewise.
37069         * lib/poll.c (poll): Likewise.
37070         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
37071         * lib/winsock.c (rpl_close): Likewise.
37072         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
37073         * modules/yield: Likewise.
37074         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
37075         * tests/test-sys_select.c (connect_to_socket): Likewise.
37076
37077         fts.c: adjust a new interface to be more generally useful
37078         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
37079         (fts_build): Adjust caller.
37080
37081 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37082
37083         * modules/cond-tests: New file.
37084         * tests/test-cond.c: New file.
37085
37086 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37087             Bruno Haible  <bruno@clisp.org>
37088
37089         * modules/cond (Dependencies): Add errno, time.
37090         * lib/glthread/cond.h: Include <time.h>.
37091         (gl_cond_define, gl_cond_define_initialized): Use the same definition
37092         across platforms.
37093
37094 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37095             Bruno Haible  <bruno@clisp.org>
37096
37097         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
37098
37099 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37100             Bruno Haible  <bruno@clisp.org>
37101
37102         * modules/tls-tests (Depends-on): Add thread, yield.
37103         (configure.ac): Remove all checks.
37104         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
37105         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37106         gl_thread_self): Remove definitions. Include glthread/thread.h and
37107         glthread/yield.h instead.
37108         (test_tls): Pass an additional NULL argument to gl_thread_join.
37109
37110 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37111             Bruno Haible  <bruno@clisp.org>
37112
37113         * modules/lock-tests (Depends-on): Add thread, yield.
37114         (configure.ac): Remove all checks.
37115         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
37116         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37117         gl_thread_self): Remove definitions. Include glthread/thread.h and
37118         glthread/yield.h instead.
37119         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
37120         additional NULL argument to gl_thread_join.
37121
37122 2008-09-30  Bruno Haible  <bruno@clisp.org>
37123
37124         Fix the Win32 implementation of the 'thread' module.
37125         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
37126         pointer type.
37127         (gl_thread_self): Invoke gl_thread_self_func.
37128         (gl_thread_self_func): New declaration.
37129         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
37130         (do_init_self_key, init_self_key): New functions.
37131         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
37132         Remove some fields.
37133         (running_threads, running_lock): Remove variables.
37134         (get_current_thread_handle): New function.
37135         (gl_thread_self_func, wrapper_func, glthread_create_func,
37136         glthread_join_func, gl_thread_exit_func): Largely rewritten and
37137         simplified.
37138
37139 2008-09-30  Bruno Haible  <bruno@clisp.org>
37140
37141         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
37142         files.
37143
37144 2008-09-30  Jim Meyering  <meyering@redhat.com>
37145
37146         fts.m4: correct the test for statfs.f_type
37147         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
37148         when checking for statfs.f_type.
37149
37150 2008-09-15  Simon Josefsson  <simon@josefsson.org>
37151
37152         tests: avoid some compiler warnings
37153         * tests/test-memchr.c (main): Pass NULL indirectly.
37154         * tests/test-getdate.c (main): Remove unused variable 'ret'.
37155
37156 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
37157
37158         getdate.y: disallow countable dayshifts like "4 yesterday ago"
37159         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
37160         exactly specified dayshifts.
37161         (dayshift): New rule.
37162         (rel): Add dayshift.
37163         (relative_time_table) [tomorrow, yesterday, today, now]:
37164         Use tDAY_SHIFT in place of tDAY_UNIT.
37165         * tests/test-getdate.c: Add tests for now-disallowed countable
37166         dayshifts, e.g., "4 yesterday ago".
37167
37168 2008-09-29  Bruno Haible  <bruno@clisp.org>
37169
37170         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
37171         * tests/test-posix_spawn1.in.sh: Renamed from
37172         tests/test-posix_spawn.in.sh.
37173         * tests/test-posix_spawn2.c: New file.
37174         * tests/test-posix_spawn2.in.sh: New file.
37175         * modules/posix_spawnp-tests (Files): Update.
37176         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
37177
37178 2008-09-29  Bruno Haible  <bruno@clisp.org>
37179
37180         Propagate effects of putenv/setenv/unsetenv to child processes.
37181         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
37182         * lib/pipe.c (create_pipe): Likewise.
37183
37184 2008-09-29  Bruno Haible  <bruno@clisp.org>
37185
37186         Enable use of shell scripts as executables in mingw.
37187         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
37188         run the program as a shell script.
37189         * lib/pipe.c (create_pipe): Likewise.
37190         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
37191         resulting array.
37192
37193 2008-09-29  Eric Blake  <ebb9@byu.net>
37194
37195         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37196
37197 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37198
37199         * doc/posix-functions/accept.texi: Update mingw problems.
37200         * doc/posix-functions/bind.texi: Update mingw problems.
37201         * doc/posix-functions/close.texi: Update mingw problems.
37202         * doc/posix-functions/connect.texi: Update mingw problems.
37203         * doc/posix-functions/getpeername.texi: Update mingw problems.
37204         * doc/posix-functions/getsockname.texi: Update mingw problems.
37205         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37206         * doc/posix-functions/ioctl.texi: Update mingw problems.
37207         * doc/posix-functions/listen.texi: Update mingw problems.
37208         * doc/posix-functions/recv.texi: Update mingw problems.
37209         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37210         * doc/posix-functions/select.texi: Update mingw problems.
37211         * doc/posix-functions/send.texi: Update mingw problems.
37212         * doc/posix-functions/sendto.texi: Update mingw problems.
37213         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37214         * doc/posix-functions/socket.texi: Update mingw problems.
37215
37216 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37217             Bruno Haible  <bruno@clisp.org>
37218
37219         * lib/sys_select.in.h: Include sys/time.h.
37220         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37221         * modules/sys_select: Depend on sys_time.
37222         * tests/test-sys_select.c: Test that sys/select.h defines struct
37223         timeval fully.
37224
37225 2008-09-29  Bruno Haible  <bruno@clisp.org>
37226
37227         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37228         * lib/sys_select.in.h: Likewise.
37229
37230 2008-09-29  Bruno Haible  <bruno@clisp.org>
37231
37232         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37233
37234 2008-09-29  Bruno Haible  <bruno@clisp.org>
37235
37236         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37237         Set LIBSOCKET instead of augmenting LIBS.
37238         * modules/sockets (Link): New section.
37239         * modules/sockets-tests (test_sockets_LDADD): New variable.
37240         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37241         * modules/poll-tests (test_poll_LDADD): New variable.
37242         * NEWS: Document the change.
37243
37244 2008-09-29  Bruno Haible  <bruno@clisp.org>
37245
37246         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37247         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37248         ARPA_INET_H directly.
37249         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37250
37251 2008-09-28  Bruno Haible  <bruno@clisp.org>
37252
37253         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37254         from gl_HEADER_SYS_SOCKET.
37255         (gl_HEADER_SYS_SOCKET): Invoke it.
37256         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37257
37258 2008-09-28  Bruno Haible  <bruno@clisp.org>
37259
37260         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37261         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37262         Needed on OSF/1 4.0.
37263
37264 2008-09-28  Bruno Haible  <bruno@clisp.org>
37265
37266         Override open more carefully.
37267         * lib/open.c (orig_open): New function.
37268         (rpl_open): Use orig_open instead of open.
37269         * lib/fcntl.in.h: Add special invocation convention.
37270         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
37271         (gl_FUNC_OPEN): Invoke it.
37272
37273         Override freopen more carefully.
37274         * lib/freopen.c (orig_freopen): New function.
37275         (rpl_freopen): Use orig_freopen instead of freopen.
37276         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
37277         (gl_FUNC_FREOPEN): Invoke it.
37278
37279         Override fopen more carefully.
37280         * lib/fopen.c (orig_fopen): New function.
37281         (rpl_fopen): Use orig_fopen instead of fopen.
37282         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
37283         (gl_FUNC_FOPEN): Invoke it.
37284         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
37285
37286 2008-09-28  Bruno Haible  <bruno@clisp.org>
37287
37288         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
37289         SIGPIPE.
37290
37291 2008-09-28  Bruno Haible  <bruno@clisp.org>
37292
37293         * tests/test-sigaction.c (handler, main): Disable the check whether
37294         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
37295         glibc systems with LinuxThreads.
37296
37297 2008-09-28  Bruno Haible  <bruno@clisp.org>
37298
37299         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
37300
37301         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
37302         with AIX xlc.
37303         * lib/fcntl.in.h (open): Likewise.
37304         Reported by Rainer Tammer <tammer@tammer.net>.
37305
37306 2008-09-28  Bruno Haible  <bruno@clisp.org>
37307
37308         * modules/posix_spawnp-tests: New file.
37309         * tests/test-posix_spawn.c: New file.
37310         * tests/test-posix_spawn.in.sh: New file.
37311
37312         New module 'posix_spawnp'.
37313         * modules/posix_spawnp: New file.
37314         * lib/spawnp.c: New file, from GNU libc with modifications.
37315         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37316
37317         New module 'posix_spawn'.
37318         * modules/posix_spawn: New file.
37319         * lib/spawn.c: New file, from GNU libc with modifications.
37320         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37321
37322         New module 'posix_spawnattr_destroy'.
37323         * modules/posix_spawnattr_destroy: New file.
37324         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37325         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37326         module.
37327
37328         New module 'posix_spawnattr_setsigmask'.
37329         * modules/posix_spawnattr_setsigmask: New file.
37330         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37331         modifications.
37332         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37333         new module.
37334
37335         New module 'posix_spawnattr_getsigmask'.
37336         * modules/posix_spawnattr_getsigmask: New file.
37337         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37338         modifications.
37339         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37340         new module.
37341
37342         New module 'posix_spawnattr_setsigdefault'.
37343         * modules/posix_spawnattr_setsigdefault: New file.
37344         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37345         modifications.
37346         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37347         new module.
37348
37349         New module 'posix_spawnattr_getsigdefault'.
37350         * modules/posix_spawnattr_getsigdefault: New file.
37351         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37352         modifications.
37353         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37354         new module.
37355
37356         New module 'posix_spawnattr_setschedpolicy'.
37357         * modules/posix_spawnattr_setschedpolicy: New file.
37358         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37359         modifications.
37360         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37361         new module.
37362
37363         New module 'posix_spawnattr_getschedpolicy'.
37364         * modules/posix_spawnattr_getschedpolicy: New file.
37365         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37366         modifications.
37367         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37368         new module.
37369
37370         New module 'posix_spawnattr_setschedparam'.
37371         * modules/posix_spawnattr_setschedparam: New file.
37372         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37373         modifications.
37374         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37375         new module.
37376
37377         New module 'posix_spawnattr_getschedparam'.
37378         * modules/posix_spawnattr_getschedparam: New file.
37379         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37380         modifications.
37381         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37382         new module.
37383
37384         New module 'posix_spawnattr_setpgroup'.
37385         * modules/posix_spawnattr_setpgroup: New file.
37386         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37387         modifications.
37388         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37389         module.
37390
37391         New module 'posix_spawnattr_getpgroup'.
37392         * modules/posix_spawnattr_getpgroup: New file.
37393         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37394         modifications.
37395         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37396         module.
37397
37398         New module 'posix_spawnattr_setflags'.
37399         * modules/posix_spawnattr_setflags: New file.
37400         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37401         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37402         module.
37403
37404         New module 'posix_spawnattr_getflags'.
37405         * modules/posix_spawnattr_getflags: New file.
37406         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37407         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37408         module.
37409
37410         New module 'posix_spawnattr_init'.
37411         * modules/posix_spawnattr_init: New file.
37412         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37413         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37414         module.
37415
37416         New module 'posix_spawn_file_actions_destroy'.
37417         * modules/posix_spawn_file_actions_destroy: New file.
37418         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37419         modifications.
37420         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37421         the new module.
37422
37423         New module 'posix_spawn_file_actions_addopen'.
37424         * modules/posix_spawn_file_actions_addopen: New file.
37425         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37426         modifications.
37427         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37428         the new module.
37429
37430         New module 'posix_spawn_file_actions_adddup2'.
37431         * modules/posix_spawn_file_actions_adddup2: New file.
37432         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37433         modifications.
37434         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37435         the new module.
37436
37437         New module 'posix_spawn_file_actions_addclose'.
37438         * modules/posix_spawn_file_actions_addclose: New file.
37439         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37440         modifications.
37441         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37442         the new module.
37443
37444         New module 'posix_spawn_file_actions_init'.
37445         * modules/posix_spawn_file_actions_init: New file.
37446         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37447         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37448         new module.
37449
37450         New module 'posix_spawn-internal'.
37451         * modules/posix_spawn-internal: New file.
37452         * lib/spawn_int.h: New file, from GNU libc with modifications.
37453         * lib/spawni.c: New file, from GNU libc with modifications.
37454         * m4/posix_spawn.m4: New file.
37455
37456         New module 'spawn'.
37457         * modules/spawn: New file.
37458         * lib/spawn.in.h: New file, from GNU libc with modifications.
37459         * m4/spawn_h.m4: New file.
37460         * doc/posix-headers/spawn.texi: Mention the new module.
37461
37462 2008-09-28  Bruno Haible  <bruno@clisp.org>
37463
37464         * modules/sched-tests: New file.
37465         * tests/test-sched.c: New file.
37466
37467         New module 'sched'.
37468         * modules/sched: New file.
37469         * lib/sched.in.h: New file.
37470         * m4/sched_h.m4: New file.
37471         * doc/posix-headers/sched.texi: Mention the new module.
37472
37473 2008-09-27  Eric Blake  <ebb9@byu.net>
37474
37475         Fix previous patch, and tweak references to $0.
37476         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
37477         (func_version, func_gnulib_dir): Don't call this program
37478         gnulib-tool.
37479         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
37480         with using $0 in function.
37481         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
37482         (func_fatal_error): Reuse the name the user invoked us with.
37483
37484 2008-09-27  Bruno Haible  <bruno@clisp.org>
37485
37486         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
37487         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
37488         (gl_ICONV_H): Not here.
37489         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37490         instead of assigning ICONV_H directly.
37491
37492         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
37493         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
37494         WCHAR_H directly.
37495
37496 2008-09-27  Bruno Haible  <bruno@clisp.org>
37497
37498         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
37499         * modules/arpa_inet (Depends-on): Add link-warning.
37500         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37501         * modules/unistd (Makefile.am): Likewise.
37502
37503 2008-09-26  Bruno Haible  <bruno@clisp.org>
37504
37505         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
37506         variables.
37507         (func_version): Essentially copied from gnulib-tool.
37508         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
37509         func_readlink): Copied from gnulib-tool.
37510
37511 2008-09-26  Bruno Haible  <bruno@clisp.org>
37512
37513         * gnulib-tool (func_version): Change directory to $gnulib_dir before
37514         invoking git-version-gen.
37515
37516 2008-09-26  Bruno Haible  <bruno@clisp.org>
37517
37518         * posix-modules: Update to directory names changed on 2008-01-19.
37519         Remove commas in output before splitting into words. No more need to
37520         avoid 'ftruncate' since 2007-02-19.
37521
37522 2008-09-26  Bruno Haible  <bruno@clisp.org>
37523
37524         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
37525
37526 2008-09-26  Bruno Haible  <bruno@clisp.org>
37527
37528         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
37529         * modules/fwriteerror (Depends-on): Add errno.
37530
37531 2008-09-26  Bruno Haible  <bruno@clisp.org>
37532
37533         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
37534         * tests/test-vc-list-files-cvs.sh: Likewise.
37535
37536 2008-09-26  Bruno Haible  <bruno@clisp.org>
37537
37538         * doc/posix-headers/sys_resource.texi: Reorder items.
37539
37540 2008-09-26  Jim Meyering  <meyering@redhat.com>
37541
37542         fts: tweak inode comparison function
37543         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
37544         inode numbers, as documented.
37545
37546         fts: sort dirent entries on inode number before traversing
37547         This avoids a quadratic, seek-related performance penalty when
37548         operating on a directory containing many entries (measurable at 10k;
37549         3.5 hours at 2 million entries with a cold cache) on certain types
37550         of file systems, including ext3 and ext4, but not tmpfs.
37551         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
37552         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
37553         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
37554         (fs_handles_readdir_ordered_dirents_efficiently): New function.
37555         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
37556         (fts_build): Set the stat.st_ino member from D_INO.
37557         If it is likely to be useful, sort dirent entries on inode number.
37558
37559         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
37560         and the struct statfs.f_type member.
37561         * modules/fts (Depends-on): Add d-ino.
37562
37563 2008-09-26  Bruno Haible  <bruno@clisp.org>
37564
37565         * modules/sigpipe-die (Depends-on): Add sigpipe.
37566
37567         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
37568         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
37569         and GNULIB_STDIO_H_SIGPIPE are set.
37570         * lib/stdio-write.c: New file.
37571         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
37572         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37573         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37574         REPLACE_STDIO_WRITE_FUNCS.
37575         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
37576         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37577         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37578         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37579         * modules/stdio (Files): Add lib/stdio-write.c.
37580         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
37581         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37582         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37583         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37584         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
37585         REPLACE_FPRINTF_POSIX.
37586         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
37587         REPLACE_PRINTF_POSIX.
37588         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
37589         REPLACE_VFPRINTF_POSIX.
37590         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
37591         REPLACE_VPRINTF_POSIX.
37592         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
37593         SIGPIPE issue.
37594         * doc/posix-functions/fputc.texi: Likewise.
37595         * doc/posix-functions/fputs.texi: Likewise.
37596         * doc/posix-functions/fwrite.texi: Likewise.
37597         * doc/posix-functions/printf.texi: Likewise.
37598         * doc/posix-functions/putc.texi: Likewise.
37599         * doc/posix-functions/putchar.texi: Likewise.
37600         * doc/posix-functions/puts.texi: Likewise.
37601         * doc/posix-functions/vfprintf.texi: Likewise.
37602         * doc/posix-functions/vprintf.texi: Likewise.
37603
37604         * modules/safe-write (Depends-on): Add write.
37605
37606         * modules/sigpipe-tests: New file.
37607         * tests/test-sigpipe.c: New file.
37608         * tests/test-sigpipe.sh: New file.
37609
37610         * modules/write: New file.
37611         * lib/unistd.in.h: Include <sys/types.h>.
37612         (write): New declaration.
37613         * lib/write.c: New file.
37614         * m4/write.m4: New file.
37615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37616         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
37617         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
37618         GNULIB_WRITE, REPLACE_WRITE.
37619         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
37620         and the SIGPIPE issue.
37621
37622         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
37623         (raise): New declaration.
37624         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
37625         (ext_signal): New function.
37626         (rpl_raise): New function.
37627         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
37628         GNULIB_SIGNAL_H_SIGPIPE.
37629         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
37630         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
37631
37632         * modules/sigpipe: New file.
37633         * m4/sigpipe.m4: New file.
37634
37635 2008-09-25  Derek Price  <derek@ximbiot.com>
37636             Bruno Haible  <bruno@clisp.org>
37637
37638         * gnulib-tool (func_import): Report all license incompatibilities, not
37639         just the first one.
37640
37641 2008-09-25  Bruno Haible  <bruno@clisp.org>
37642
37643         * gnulib-tool (func_import): When computing the edits, consider not
37644         only the Makefile.ams that exist but also those that will be generated.
37645
37646 2008-09-25  Simon Josefsson  <simon@josefsson.org>
37647
37648         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
37649         fixes gnulib-tool --test warning about duplicate dependency.
37650
37651 2008-09-25  Bruno Haible  <bruno@clisp.org>
37652
37653         * gnulib-tool: Don't ask the user to perform edits in the generated
37654         Makefile.ams.
37655         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
37656         apply to the Makefile.am being generated.
37657         (func_emit_tests_Makefile_am): Execute edits that apply to the
37658         Makefile.am being generated.
37659         (func_import): Setup list of Makefile.am edits before emitting the
37660         Makefile.ams, not at the end.
37661         (func_create_testdir): Update.
37662         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37663
37664 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37665
37666         * gnulib-tool (func_import): Store the --tests-base option in the
37667         comment in gnulib-cache.m4.
37668
37669 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
37670
37671         * NEWS: Document increased portability that sys_select now provides.
37672
37673         * lib/sys_select.in.h: Install select wrapper.
37674         * lib/sys_socket.in.h: Use more descriptive name when there is no
37675         select wrapper.
37676         * lib/winsock-select.c: New.
37677         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
37678         Require gl_HEADER_SYS_SOCKET.
37679         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
37680         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
37681         * tests/test-sys_select.c: Add functional tests.
37682
37683 2008-09-24  Eric Blake  <ebb9@byu.net>
37684
37685         open, fopen: close fd leak in last patch
37686         * lib/open.c (rpl_open): Close fd before returning error.
37687         * lib/fopen.c (rpl_fopen): Close fd before returning error.
37688         * doc/posix-functions/open.texi (open): Document that Irix also
37689         has the bug.
37690         * doc/posix-functions/fopen.texi (fopen): Likewise.
37691         Reported by Paolo Bonzini.
37692
37693 2008-09-24  Bruno Haible  <bruno@clisp.org>
37694
37695         Ensure that a filename ending in a slash cannot be used to access a
37696         non-directory.
37697         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
37698         to check whether it's really a directory.
37699         * lib/fopen.c: Include fcntl.h, unistd.h.
37700         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
37701         and fdopen().
37702         * modules/fopen (Depends-on): Add unistd.
37703         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
37704         * tests/test-fopen.c (main): Likewise.
37705         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
37706         * doc/posix-functions/fopen.texi: Likewise.
37707         Reported by Eric Blake.
37708
37709 2008-09-23  Eric Blake  <ebb9@byu.net>
37710
37711         c-stack: avoid compiler optimizations when provoking overflow
37712         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
37713         recursion harder to optimize, to ensure a stack overflow occurs.
37714         * tests/test-c-stack.c (recurse): Likewise.
37715         Borrowed from libsigsegv.
37716
37717         c-stack: work around Irix sigaltstack bug
37718         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
37719         whether sigaltstack uses wrong end of stack_t (copied in part from
37720         libsigsegv).
37721         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
37722         Irix bug, without requiring an over-allocation.
37723         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
37724         bug.
37725
37726         fopen: document mingw bug on directories
37727         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
37728         not allowing a stream visiting a directory, even though reading
37729         from such a stream is not portable.
37730
37731 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37732
37733         * lib/poll.c: Rewrite.
37734         * modules/poll: Depend on alloca.
37735
37736 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37737
37738         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
37739         instead define prototypes for a full set of wrappers.  Ensure
37740         that Cygwin does not use the compatibility code, which is only
37741         for MinGW.
37742         * lib/winsock.c: New.
37743         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
37744         * modules/sys_socket: Add lib/winsock.c.
37745
37746         * modules/poll-tests: Add errno and perror.
37747         * tests/test-poll.c: Use ioctl, not ioctlsocket.
37748
37749 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37750
37751         * tests/test-poll.c: Downgrade minimum needed Winsock version.
37752
37753 2008-09-23  Bruno Haible  <bruno@clisp.org>
37754
37755         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
37756         * doc/glibc-functions/*: Likewise.
37757
37758 2008-09-23  Simon Josefsson  <simon@josefsson.org>
37759
37760         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
37761         success.
37762
37763 2008-09-22  Eric Blake  <ebb9@byu.net>
37764             Bruno Haible  <bruno@clisp.org>
37765
37766         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
37767         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
37768         supply %A but mishandle pseudo-NaN.
37769         Reported by Simon Josefsson.
37770
37771 2008-09-21  Bruno Haible  <bruno@clisp.org>
37772
37773         * tests/test-lock.c (main): Tweak skip message.
37774         * tests/test-tls.c (main): Likewise.
37775
37776 2008-09-21  Bruno Haible  <bruno@clisp.org>
37777
37778         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
37779         whether 'struct sigaction' has sa_sigaction here...
37780         (gl_PREREQ_SIG_HANDLER_H): ... not here.
37781         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
37782
37783 2008-09-21  Bruno Haible  <bruno@clisp.org>
37784
37785         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
37786         section.
37787         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
37788         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
37789         the new section.
37790         (Support for obsolete systems lacking POSIX:2001): New section.
37791         (String handling <string.h>): Move strdup to the new section.
37792         Suggested by Simon Josefsson and Paolo Bonzini.
37793
37794 2008-09-21  Bruno Haible  <bruno@clisp.org>
37795
37796         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
37797         exponents in %e and %g results on 'long double'. Needed for mingw's
37798         improved *printf functions.
37799         * tests/test-vasprintf-posix.c (test_function): Likewise.
37800         * tests/test-snprintf-posix.h (test_function): Likewise.
37801         * tests/test-sprintf-posix.h (test_function): Likewise.
37802         Reported by Eric Blake.
37803
37804 2008-09-21  Bruno Haible  <bruno@clisp.org>
37805
37806         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
37807         * tests/test-sprintf-posix.h (test_function): Likewise.
37808
37809 2008-09-21  Bruno Haible  <bruno@clisp.org>
37810
37811         * modules/getpass (Depends-on): Add strdup-posix.
37812
37813         New module 'strdup-posix'.
37814         * modules/strdup-posix: New file.
37815         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
37816         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
37817         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37818         REPLACE_STRDUP.
37819         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
37820         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
37821         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37822         strdup-posix.
37823
37824         * modules/strdup (Depends-on): Remove malloc-posix.
37825
37826 2008-09-20  Bruno Haible  <bruno@clisp.org>
37827
37828         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
37829         Wildenhues.
37830
37831 2008-09-20  Bruno Haible  <bruno@clisp.org>
37832
37833         Ensure that wint_t gets defined on IRIX 5.3.
37834         * lib/wchar.in.h (wint_t): Define if not defined by the system.
37835         * lib/wctype.in.h (wint_t): Likewise.
37836         (__wctype_wint_t): Remove type.
37837         (isw*): Use wint_t instead of __wctype_wint_t.
37838         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
37839         * modules/wchar (Files): Add m4/wint_t.m4.
37840         (Makefile.am): Substitute HAVE_WINT_T.
37841         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
37842         * tests/test-wctype.c: Check that wint_t is defined.
37843         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
37844         * doc/posix-headers/wctype.texi: Likewise.
37845         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37846
37847 2008-09-18  Bruno Haible  <bruno@clisp.org>
37848
37849         * gnulib-tool (func_exit): Update comment.
37850
37851 2008-09-18  Simon Josefsson  <simon@josefsson.org>
37852
37853         * modules/getaddrinfo (Depends-on): Remove strdup, this module
37854         assumes strdup exists and does not depend on strdup to return
37855         ENOMEM on out of memory conditions.
37856
37857 2008-09-18  Bruno Haible  <bruno@clisp.org>
37858
37859         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
37860         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
37861         digits for the exponent.
37862
37863 2008-09-18  Jim Meyering  <meyering@redhat.com>
37864             Bruno Haible  <bruno@clisp.org>
37865
37866         * lib/vasnprintf.c (decimal_point_char): Define also if
37867         NEED_PRINTF_INFINITE_LONG_DOUBLE.
37868
37869 2008-09-16  Bruno Haible  <bruno@clisp.org>
37870         and Eric Blake  <ebb9@byu.net>
37871
37872         vasnprintf: support Irix 5.3
37873         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
37874         that mishandle long double infinity.
37875         Reported by Tom G. Christensen.
37876
37877 2008-09-16  Bruno Haible  <bruno@clisp.org>
37878
37879         * doc/glibc-functions/scandir.texi: Mention the function is missing on
37880         Solaris 9.
37881         * doc/glibc-functions/alphasort.texi: Likewise.
37882         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
37883
37884 2008-09-16  Jim Meyering  <meyering@redhat.com>
37885
37886         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
37887         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
37888         a umask modification leak out of a subshell.  Otherwise, the
37889         opensolaris /bin/sh would be accepted and thus cause unwarranted
37890         failures in the coreutils test suite.
37891
37892 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
37893
37894         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
37895         to succeed.
37896
37897 2008-09-16  Jim Meyering  <meyering@redhat.com>
37898
37899         avoid spurious test failure when library is built without ACL support
37900         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
37901         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
37902         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
37903         * tests/test-copy-acl.sh: Likewise.
37904
37905 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37906
37907         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
37908         based on character occurrence counts.
37909
37910 2008-09-15  Eric Blake  <ebb9@byu.net>
37911
37912         tests: avoid some compiler warnings
37913         * tests/test-memchr.c (main): Pass NULL indirectly.
37914         * tests/test-closein.c (main): Avoid unused variable.
37915
37916 2008-09-15  Bruno Haible  <bruno@clisp.org>
37917
37918         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
37919         are missing on OpenBSD 4.0 individually.
37920         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37921
37922 2008-09-15  Bruno Haible  <bruno@clisp.org>
37923
37924         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
37925         * doc/posix-functions/strerror.texi: Mention also Cygwin.
37926         * doc/posix-functions/perror.texi: Likewise.
37927         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
37928         is missing.
37929         Reported by Eric Blake.
37930
37931         * lib/errno.in.h: Use replacement values >= 2000.
37932         Reported by Eric Blake.
37933
37934 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37935
37936         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
37937         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
37938         limit.
37939         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
37940         compareseq was aborted.
37941
37942 2008-09-14  Bruno Haible  <bruno@clisp.org>
37943
37944         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
37945         yvec_edit_count.
37946         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
37947         (fstrcmp_bounded): Simplify result computation accordingly.
37948
37949 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37950
37951         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
37952         (fstrcmp): Define in terms of fstrcmp_bounded.
37953         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
37954         lower_bound argument.
37955         Return quickly if the result is certainly < lower_bound.
37956         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
37957
37958 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37959
37960         * lib/diffseq.h (EARLY_ABORT): New macro.
37961         (compareseq): Change return type to bool. Return true when EARLY_ABORT
37962         evaluates to true.
37963
37964 2008-09-14  Bruno Haible  <bruno@clisp.org>
37965
37966         * modules/perror-tests: New file.
37967         * tests/test-perror.sh: New file.
37968         * tests/test-perror.c: New file.
37969
37970         New module 'perror'.
37971         * lib/stdio.in.h (perror): New declaration.
37972         * lib/perror.c: New file.
37973         * m4/perror.m4: New file.
37974         * modules/perror: New file.
37975         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
37976         * doc/posix-functions/perror.texi: Mention the perror module.
37977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
37978         REPLACE_PERROR.
37979         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
37980         REPLACE_PERROR.
37981
37982 2008-09-14  Bruno Haible  <bruno@clisp.org>
37983
37984         * modules/stdio (Makefile.am): Reorder to match the order in
37985         lib/stdio.in.h.
37986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37987
37988 2008-09-13  Bruno Haible  <bruno@clisp.org>
37989
37990         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
37991
37992 2008-09-13  Bruno Haible  <bruno@clisp.org>
37993
37994         Extend strerror to cover the added errno values.
37995         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
37996         (rpl_strerror): Provide error messages for the added errno values and
37997         for the WSA* values.
37998         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
37999         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
38000         strerror.
38001         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
38002         * modules/strerror (Depends-on): Add errno.
38003         * doc/posix-functions/strerror.texi: Document the change.
38004         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
38005         and EOVERFLOW.
38006
38007 2008-09-13  Bruno Haible  <bruno@clisp.org>
38008
38009         * modules/EOVERFLOW: Remove file.
38010         * m4/eoverflow.m4: Remove file.
38011         * modules/EOVERFLOW-tests: Remove file.
38012         * tests/test-EOVERFLOW.c: Remove file.
38013         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
38014         * modules/ftell (Depends-on): Likewise.
38015         * modules/getdelim (Depends-on): Likewise.
38016         * modules/getugroups (Depends-on): Likewise.
38017         * modules/poll (Depends-on): Likewise.
38018         * modules/snprintf (Depends-on): Likewise.
38019         * modules/sprintf-posix (Depends-on): Likewise.
38020         * modules/vasnprintf (Depends-on): Likewise.
38021         * modules/vasprintf (Depends-on): Likewise.
38022         * modules/vfprintf-posix (Depends-on): Likewise.
38023         * modules/vsnprintf (Depends-on): Likewise.
38024         * modules/vsprintf-posix (Depends-on): Likewise.
38025         * modules/xvasprintf (Depends-on): Likewise.
38026         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38027         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
38028         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
38029         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
38030         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38031         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
38032         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
38033         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
38034         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38035         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
38036         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
38037         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
38038         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38039         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
38040         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
38041         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
38042         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38043         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
38044         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
38045         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
38046         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38047         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
38048         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
38049         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
38050         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
38051         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38052         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
38053         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
38054         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
38055         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
38056         * MODULES.html.sh: Remove EOVERFLOW.
38057         * NEWS: Mention the change.
38058
38059 2008-09-13  Bruno Haible  <bruno@clisp.org>
38060
38061         * modules/errno-tests: New file.
38062         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
38063
38064         * lib/errno.in.h: New file.
38065         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
38066         * modules/errno: New file.
38067         * doc/posix-headers/errno.texi: Update documentation.
38068         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
38069
38070 2008-09-13  Bruno Haible  <bruno@clisp.org>
38071
38072         * tests/test-poll.c: Use #if for native Windows, rather than testing
38073         __MSVCRT__.
38074
38075 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38076             Bruno Haible  <bruno@clisp.org>
38077
38078         * lib/glob.c: Don't include <pwd.h> on native Windows.
38079         (WINDOWS32): New macro.
38080         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
38081
38082 2008-09-13  Bruno Haible  <bruno@clisp.org>
38083
38084         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
38085         (ETIMEDOUT): Remove macro.
38086         (glthread_cond_timedwait_multithreaded): New declaration.
38087         (glthread_cond_timedwait): Use it.
38088         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
38089         (glthread_cond_timedwait_multithreaded): New function.
38090
38091 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38092
38093         * modules/poll-tests: Do not check for io.h.
38094         * tests/test-poll.c: Check for __MSVCRT__ instead.
38095
38096 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38097
38098         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
38099         * modules/poll-tests: Add inet_pton, stdbool, sockets.
38100         * tests/test-poll.c: Use them.  Use _pipe on Windows.
38101
38102 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38103
38104         * modules/poll-tests: New.
38105         * tests/test-poll.c: New.
38106
38107 2008-09-12  Eric Blake  <ebb9@byu.net>
38108
38109         frexp: test for NetBSD failure on -0.0
38110         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
38111         not all, bugs from NetBSD 3.0 have been fixed.
38112         * doc/posix-functions/frexp.texi (frexp): Document bug.
38113         Reported by Thomas Klausner.
38114
38115         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
38116         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
38117         literal -0.0.
38118         Reported by Jonathan C. Patschke <jp@centtech.com>.
38119
38120 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38121
38122         * lib/glthread/cond.h: Use dummy implementation also if
38123         USE_WIN32_THREADS.
38124
38125 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38126
38127         * modules/fnmatch-posix (License): Change to LGPLv2+.
38128         * modules/fnmatch-gnu (License): Likewise.
38129
38130 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38131
38132         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
38133
38134 2008-09-11  Jim Meyering  <meyering@redhat.com>
38135
38136         * users.txt: Add gtk-vnc.
38137
38138 2008-09-08  Simon Josefsson  <simon@josefsson.org>
38139
38140         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
38141         rotate amounts.
38142
38143         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
38144         required for 16-bit and 8-bit rotates.
38145         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
38146         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
38147         UINT8_MAX instead of hard-coded constants.
38148         Suggested by Paul Eggert.
38149
38150 2008-09-07  Bruno Haible  <bruno@clisp.org>
38151
38152         * tests/test-striconveh.c (main): Check behaviour when converting from
38153         UTF-7.
38154
38155         Make striconveh work better with stateful encodings.
38156         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
38157         that iconv does not increment the inptr when returning -1/EINVAL.
38158
38159 2008-09-07  Bruno Haible  <bruno@clisp.org>
38160
38161         * build-aux/config.rpath: Update according to libtool-2.2.6.
38162         * build-aux/config.libpath: Likewise.
38163
38164 2008-09-06  Bruno Haible  <bruno@clisp.org>
38165
38166         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
38167         * lib/freadptr.c (freadptr): Likewise.
38168         * lib/freadseek.c (freadptrinc): Likewise.
38169         Reported by Simon Josefsson.
38170
38171 2008-09-06  Bruno Haible  <bruno@clisp.org>
38172
38173         * modules/freadptr (License): Change to LGPLv2+.
38174         * modules/freadseek (License): Likewise.
38175         Suggested by Eric Blake.
38176
38177         * modules/memchr2 (License): Change to LGPLv2+.
38178         Approved by Eric Blake.
38179
38180 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38181             Bruno Haible  <bruno@clisp.org>
38182
38183         Make gnulib-tool work with native 'sed' on AIX.
38184         * gnulib-tool (sed_noop): New variable.
38185         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
38186         func_add_or_update, func_create_testdir): Use it to initialize sed
38187         script variables.
38188         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38189
38190 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
38191             Bruno Haible  <bruno@clisp.org>
38192
38193         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38194         also works after #include directives.
38195
38196 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38197
38198         getdate.y: reject an out-of-range timezone value
38199         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38200         the range [-24...+24].  When specified with only one or two digits,
38201         * tests/test-getdate.c: Tests for the fix.
38202         * doc/getdate.texi: Document this change.
38203
38204 2008-09-03  Bruno Haible  <bruno@clisp.org>
38205
38206         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38207
38208 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38209
38210         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38211         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38212         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38213         Blake <ebb9@byu.net>.
38214
38215         * tests/test-bitrotate.c: Add more test vectors.
38216
38217 2008-09-02  Eric Blake  <ebb9@byu.net>
38218
38219         vasnprintf-posix: handle large precision via %.*d
38220         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38221         when handling it ourselves.
38222         * tests/test-vasnprintf-posix.c (test_function): Add test.
38223         * tests/test-snprintf-posix.h (test_function): Likewise.
38224         * tests/test-sprintf-posix.h (test_function): Likewise.
38225         * tests/test-vasprintf-posix.c (test_function): Likewise.
38226         Reported by Alain Guibert.
38227
38228 2008-09-01  Eric Blake  <ebb9@byu.net>
38229
38230         c-stack: make configure-time check more robust
38231         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38232         successful sigaction call.
38233         Reported by Tom G. Christensen.
38234
38235 2008-09-01  Bruno Haible  <bruno@clisp.org>
38236
38237         New module 'findprog-lgpl'.
38238         * modules/findprog-lgpl: New file.
38239         * lib/findprog-lgpl.c: New file.
38240         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38241         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38242         to decide whether to use strdup or xstrdup, concatenated_filename or
38243         xconcatenated_filename.
38244
38245 2008-09-01  Bruno Haible  <bruno@clisp.org>
38246
38247         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38248         'xconcat-filename' (GPL).
38249         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38250         (License): Change to LGPLv2+.
38251         * modules/xconcat-filename: New file.
38252         * lib/concat-filename.h (concatenated_filename): Change specification.
38253         (xconcatenated_filename): New declaration.
38254         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38255         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38256         memory situations.
38257         * lib/xconcat-filename.c: New file.
38258         * NEWS: Mention the change.
38259         * lib/findprog.c: Include concat-filename.h, not filename.h.
38260         (find_in_path): Use xconcatenated_filename instead of
38261         concatenated_filename.
38262         * lib/javacomp.c: Include concat-filename.h, not filename.h.
38263         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38264         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38265         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38266         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
38267         instead of concatenated_filename.
38268         * lib/javaexec.c: Include concat-filename.h, not filename.h.
38269         (execute_java_class): Use xconcatenated_filename instead of
38270         concatenated_filename.
38271         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
38272         * modules/javacomp (Depends-on): Likewise.
38273         * modules/javaexec (Depends-on): Likewise.
38274
38275 2008-09-01  Bruno Haible  <bruno@clisp.org>
38276
38277         Split module 'filename' into 'filename' and 'concat-filename'.
38278         * modules/filename: Keep only lib/filename.h.
38279         (License): Change to LGPLv2+.
38280         * modules/concat-filename: New file, extracted from modules/filename.
38281         * lib/filename.h (concatenated_filename): Remove declaration.
38282         * lib/concat-filename.h: New file, extracted from lib/filename.h.
38283         * lib/concat-filename.c: Include concat-filename.h.
38284         * NEWS: Mention the change.
38285
38286 2008-09-01  Simon Josefsson  <simon@josefsson.org>
38287
38288         * lib/bitrotate.h (rotl8, rotr8): Add.
38289
38290         * modules/bitrotate (configure.ac): Need
38291         AC_REQUIRE([AC_C_INLINE]).
38292         (Description): Mention stdint.h.  Reported by Bruno Haible
38293         <bruno@clisp.org>.
38294
38295         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
38296         Paolo Bonzini <bonzini@gnu.org>.
38297
38298 2008-08-31  Bruno Haible  <bruno@clisp.org>
38299
38300         Assume Solaris specific bi-arch conventions on Solaris systems.
38301         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
38302         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
38303         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
38304         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
38305         like acl_libdirstem.
38306         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
38307         acl_libdirstem.
38308         * NEWS: Mention the change.
38309         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
38310
38311 2008-08-31  Jim Meyering  <meyering@redhat.com>
38312
38313         * lib/strftime.h: Add comments describing the two added arguments.
38314
38315         remove duplicate #include directives
38316         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38317         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
38318
38319 2008-08-31  Bruno Haible  <bruno@clisp.org>
38320
38321         New module 'sigpipe-die'.
38322         * modules/sigpipe-die: New file.
38323         * lib/sigpipe-die.h: New file.
38324         * lib/sigpipe-die.c: New file.
38325         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38326
38327 2008-08-31  Bruno Haible  <bruno@clisp.org>
38328
38329         Don't override previously installed signal handlers.
38330         * lib/fatal-signal.c (saved_sigactions): New variable.
38331         (uninstall_handlers): Reset the signal to the saved handler, not
38332         to SIG_DFL (except when ignored).
38333         (install_handlers): Save the previous handlers.
38334
38335 2008-08-30  Bruno Haible  <bruno@clisp.org>
38336
38337         * gnulib-tool (func_reset_sigpipe): New function.
38338         (func_get_automake_snippet, func_modules_transitive_closure,
38339         func_import): Invoke it before a join command that reads from stdin,
38340         to avoid "echo: write error: Broken pipe" error messages on stderr.
38341         Reported by Sam Steingold <sds@gnu.org>.
38342
38343 2008-08-30  Bruno Haible  <bruno@clisp.org>
38344
38345         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38346         Code copied from m4/open.m4.
38347         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38348         access and the filename ends in a slash. Code copied from lib/open.c.
38349         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38350         * tests/test-fopen.c (main): Check against bug with trailing slash.
38351
38352 2008-08-29  Bruno Haible  <bruno@clisp.org>
38353
38354         Avoid some "gcc -pedantic" warnings.
38355         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38356         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38357         * lib/dirent.in.h: Likewise.
38358         * lib/fcntl.in.h: Likewise.
38359         * lib/float.in.h: Likewise.
38360         * lib/iconv.in.h: Likewise.
38361         * lib/inttypes.in.h: Likewise.
38362         * lib/locale.in.h: Likewise.
38363         * lib/math.in.h: Likewise.
38364         * lib/netinet_in.in.h: Likewise.
38365         * lib/search.in.h: Likewise.
38366         * lib/signal.in.h: Likewise.
38367         * lib/stdarg.in.h: Likewise.
38368         * lib/stdint.in.h: Likewise.
38369         * lib/stdio.in.h: Likewise.
38370         * lib/stdlib.in.h: Likewise.
38371         * lib/string.in.h: Likewise.
38372         * lib/strings.in.h: Likewise.
38373         * lib/sys_select.in.h: Likewise.
38374         * lib/sys_socket.in.h: Likewise.
38375         * lib/sys_stat.in.h: Likewise.
38376         * lib/sys_time.in.h: Likewise.
38377         * lib/sysexits.in.h: Likewise.
38378         * lib/time.in.h: Likewise.
38379         * lib/unistd.in.h: Likewise.
38380         * lib/wchar.in.h: Likewise.
38381         * lib/wctype.in.h: Likewise.
38382         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38383         * modules/fchdir (Makefile.am): Likewise.
38384         * modules/fcntl (Makefile.am): Likewise.
38385         * modules/float (Makefile.am): Likewise.
38386         * modules/iconv_open (Makefile.am): Likewise.
38387         * modules/inttypes (Makefile.am): Likewise.
38388         * modules/locale (Makefile.am): Likewise.
38389         * modules/math (Makefile.am): Likewise.
38390         * modules/netinet_in (Makefile.am): Likewise.
38391         * modules/search (Makefile.am): Likewise.
38392         * modules/signal (Makefile.am): Likewise.
38393         * modules/stdarg (Makefile.am): Likewise.
38394         * modules/stdint (Makefile.am): Likewise.
38395         * modules/stdio (Makefile.am): Likewise.
38396         * modules/stdlib (Makefile.am): Likewise.
38397         * modules/string (Makefile.am): Likewise.
38398         * modules/strings (Makefile.am): Likewise.
38399         * modules/sys_select (Makefile.am): Likewise.
38400         * modules/sys_socket (Makefile.am): Likewise.
38401         * modules/sys_stat (Makefile.am): Likewise.
38402         * modules/sys_time (Makefile.am): Likewise.
38403         * modules/sysexits (Makefile.am): Likewise.
38404         * modules/time (Makefile.am): Likewise.
38405         * modules/unistd (Makefile.am): Likewise.
38406         * modules/wchar (Makefile.am): Likewise.
38407         * modules/wctype (Makefile.am): Likewise.
38408         Reported by Reuben Thomas <rrt@sc3d.org>.
38409
38410 2008-08-29  Bruno Haible  <bruno@clisp.org>
38411
38412         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38413         any more.
38414
38415 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38416
38417         * MODULES.html.sh (Misc): Add bitrotate.
38418
38419         * modules/bitrotate: New file.
38420
38421         * lib/bitrotate.h: New file.
38422
38423         * modules/bitrotate-tests: New file.
38424
38425         * tests/test-bitrotate.c: New file.
38426
38427         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38428         on the bitrotate module.
38429
38430         * lib/arctwo.c: Use new bitrotate module.
38431
38432 2008-08-29  Jim Meyering  <meyering@redhat.com>
38433
38434         bootstrap: merge changes from coreutils
38435         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38436         of copied files.  Remove a kludge, now that this is fixed.
38437         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38438         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38439         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38440
38441 2008-08-29  Bruno Haible  <bruno@clisp.org>
38442
38443         * MODULES.html.sh: Remove --cvs-urls option.
38444
38445 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38446
38447         maint.mk: adjust to file name change
38448         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38449
38450 2008-08-28  Jim Meyering  <meyering@redhat.com>
38451
38452         * modules/getndelim2 (License): Relicense to LGPLv2+.
38453         Approved by Richard Stallman for the version of 1995, and by
38454         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38455
38456 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38457
38458         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38459         dummy if one is not available.  Do not touch them if
38460         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38461         (getc_maybe_unlocked): New.
38462         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38463
38464 2008-08-26  Eric Blake  <ebb9@byu.net>
38465
38466         doc/INSTALL: resync from autoconf
38467         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38468         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38469         moving...
38470         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38471         * INSTALL: Regenerate.
38472         * INSTALL.ISO: New file.
38473         * INSTALL.UTF-8: Likewise.
38474
38475 2008-08-26  Jim Meyering  <meyering@redhat.com>
38476
38477         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
38478         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
38479         these definitions conditional, so that they may be overridden, too.
38480
38481 2008-08-26  Bruno Haible  <bruno@clisp.org>
38482
38483         Generate INSTALL file variants with prettier quotes.
38484         * doc/Makefile (INSTALL_PRELUDE): New macro.
38485         (INSTALL): Use it.
38486         (INSTALL.ISO, INSTALL.UTF-8): New rules.
38487
38488 2008-08-26  Bruno Haible  <bruno@clisp.org>
38489
38490         Run makeinfo in an English locale.
38491         * doc/Makefile (MAKEINFO): New variable.
38492
38493 2008-08-26  Bruno Haible  <bruno@clisp.org>
38494
38495         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
38496         Suggested by Eric Blake.
38497
38498 2008-08-25  Bruno Haible  <bruno@clisp.org>
38499
38500         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
38501
38502 2008-08-25  Eric Blake  <ebb9@byu.net>
38503
38504         c-stack: test that stack overflow can be caught
38505         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
38506         that platform allows handling stack overflow; at least OS/2 EMX
38507         has sigaltstack, but crashes before transferring control to
38508         handler on stack overflow.
38509         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
38510         check for HAVE_STACK_OVERFLOW_HANDLING.
38511         Reported by Elbert Pol.
38512
38513 2008-08-25  Bruno Haible  <bruno@clisp.org>
38514
38515         * doc/posix-functions/strftime.texi: Fix description of strftime
38516         module.
38517
38518 2008-08-24  Bruno Haible  <bruno@clisp.org>
38519
38520         * tests/uniwidth/test-uc_width2.c: New file.
38521         * tests/uniwidth/test-uc_width2.sh: New file.
38522         * modules/uniwidth/width-tests (Files): Add the new files.
38523         (TESTS): Add uniwidth/test-uc_width2.sh.
38524         (TESTS_ENVIRONMENT): New variable.
38525         (check_PROGRAMS): Add test-uc_width2.
38526         (test_uc_width2_SOURCES): New variable.
38527
38528         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
38529         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
38530         not 0x00AB.
38531         Reported by Alexander V. Lukyanov <lav@netis.ru>.
38532
38533 2008-08-22  Eric Blake  <ebb9@byu.net>
38534
38535         test-lock, test-tls: mention why a test is skipped
38536         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
38537         skipped.
38538         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
38539
38540         count-one-bits: relax license
38541         * modules/count-one-bits (License): Relicense to LGPLv2+.
38542         Suggested by Ludovic Courtès, approved by Ben Pfaff.
38543
38544 2008-08-22  Andreas Schwab  <schwab@suse.de>
38545
38546         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38547         Remove spurious space in assignment.
38548
38549 2008-08-21  Simon Josefsson  <simon@josefsson.org>
38550
38551         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
38552         Paul Eggert <eggert@CS.UCLA.EDU>.
38553
38554 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
38555
38556         * modules/gettext: Add m4/threadlib.m4.
38557
38558 2008-08-19  Eric Blake  <ebb9@byu.net>
38559
38560         test-c-stack: fix compilation failure on FreeBSD 5.0
38561         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
38562         headers before <sys/resource.h>.
38563         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
38564         the bug.
38565         Reported by Nelson H. F. Beebe.
38566
38567         strverscmp: migrate from "strverscmp.h" to <string.h>
38568         * modules/string (Makefile.am): Add new hooks.
38569         * modules/strverscmp (Files): Remove strverscmp.h.
38570         (Depends-on): Add string.
38571         (configure.ac): Add indicator.
38572         (Include): Mention new header.
38573         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
38574         defaults.
38575         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
38576         results.
38577         * lib/strverscmp.h: Delete.
38578         * lib/string.in.h (strverscmp): Provide declaration, when needed.
38579         * tests/test-strverscmp.c (includes): Adjust client.
38580         * lib/check-version.c (includes): Likewise.
38581         * NEWS: Document the change.
38582
38583         strverscmp: add unit test
38584         * modules/strverscmp-tests: New file.
38585         * tests/test-strverscmp.c: Likewise.
38586
38587 2008-08-19  Simon Josefsson  <simon@josefsson.org>
38588
38589         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
38590         regarding Windows crypto stuff, from Mono.
38591
38592 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
38593
38594         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
38595         if present, for intel RND.  Return error on failures.
38596
38597 2008-08-18  Ben Pfaff  <blp@gnu.org>
38598
38599         gitlog-to-changelog: give better diagnostic for failed pipe-open
38600         * build-aux/gitlog-to-changelog: Improve error message: suggest
38601         that the version of Git may be too old.
38602
38603 2008-08-18  Simon Josefsson  <simon@josefsson.org>
38604
38605         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
38606         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
38607
38608 2008-08-18  Bruno Haible  <bruno@clisp.org>
38609
38610         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
38611         pthread_in_use().
38612
38613 2008-08-18  Bruno Haible  <bruno@clisp.org>
38614
38615         * lib/glthread/threadlib.c: Include <pthread.h>.
38616
38617 2008-08-18  Bruno Haible  <bruno@clisp.org>
38618
38619         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
38620         glthread_recursive_lock_* macros.
38621         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
38622         Fix syntax error.
38623
38624 2008-08-18  Bruno Haible  <bruno@clisp.org>
38625
38626         * lib/glthread/thread.c: Avoid forcing a context switch right after
38627         thread creation.
38628
38629 2008-08-17  Bruno Haible  <bruno@clisp.org>
38630
38631         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
38632         * lib/glthread/thread.h: Provide Win32 specific implementation.
38633         * modules/thread (Files): Add lib/glthread/thread.c.
38634         (Depends-on): Add lock.
38635         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
38636
38637 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38638
38639         New module 'yield'.
38640         * modules/yield: New file.
38641         * lib/glthread/yield.h: New file.
38642         * m4/yield.m4: New file.
38643         * MODULES.html.sh (Multithreading): Add yield.
38644
38645 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38646
38647         New module 'thread'.
38648         * modules/thread: New file.
38649         * lib/glthread/thread.h: New file.
38650         * m4/thread.m4: New file.
38651         * MODULES.html.sh (Multithreading): Add thread.
38652
38653 2008-08-17  Bruno Haible  <bruno@clisp.org>
38654
38655         * lib/glthread/lock.h: Include <stdlib.h> always.
38656         * lib/glthread/tls.h: Likewise.
38657         * lib/glthread/cond.h: Likewise.
38658
38659 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38660
38661         New module 'cond'.
38662         * modules/cond: New file.
38663         * lib/glthread/cond.h: New file.
38664         * lib/glthread/cond.c: New file.
38665         * m4/cond.m4: New file.
38666         * MODULES.html.sh (Multithreading): Add cond.
38667
38668 2008-08-16  Eric Blake  <ebb9@byu.net>
38669
38670         c-stack: fix regression on Irix 5.3 from 2008-06-21
38671         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
38672         sa_sigaction...
38673         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
38674         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
38675         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
38676         * modules/signal (Makefile.am): Use the value.
38677         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
38678         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
38679         * doc/posix-headers/signal.texi (signal.h): Document this
38680         portability issue.
38681         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
38682         Reported by Tom G. Christensen.
38683
38684 2008-08-17  Bruno Haible  <bruno@clisp.org>
38685
38686         New module 'threadlib'.
38687         * modules/threadlib: New file.
38688         * lib/glthread/threadlib.c: New file, extracted from
38689         lib/glthread/lock.c.
38690         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
38691         functions.
38692         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
38693         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
38694         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
38695         macros.
38696         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
38697         (gl_DISABLE_THREADS): Remove macro.
38698         * modules/lock (Files): Remove build-aux/config.rpath.
38699         (Depends-on): Remove havelib. Add threadlib.
38700         (configure.ac-early): Remove section.
38701         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
38702         * modules/tls (Depends-on): Remove lock. Add threadlib.
38703         (Link): New section, copied from threadlib.
38704         * MODULES.html.sh (Multithreading): Add threadlib.
38705
38706 2008-08-14  Bruno Haible  <bruno@clisp.org>
38707
38708         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
38709         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
38710         glthread_rwlock_unlock, glthread_rwlock_destroy,
38711         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
38712         glthread_recursive_lock_destroy): Define as macros always.
38713         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
38714         glthread_lock_lock.
38715         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
38716         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
38717         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
38718         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
38719         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
38720         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
38721         (glthread_recursive_lock_lock_func): Renamed from
38722         glthread_recursive_lock_lock.
38723         (glthread_recursive_lock_unlock_func): Renamed from
38724         glthread_recursive_lock_unlock.
38725         (glthread_recursive_lock_destroy_func): Renamed from
38726         glthread_recursive_lock_destroy.
38727
38728 2008-08-14  Bruno Haible  <bruno@clisp.org>
38729
38730         * lib/glthread/lock.h: Renamed from lib/lock.h.
38731         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
38732         * lib/glthread/tls.h: Renamed from lib/tls.h.
38733         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
38734         * lib/fstrcmp.c: Update includes.
38735         * lib/strsignal.c: Update includes.
38736         * modules/lock (Files, Makefile.am): Update.
38737         (Include): Change to "glthread/lock.h".
38738         * modules/tls (Files, Makefile.am): Update.
38739         (Include): Change to "glthread/tls.h".
38740         * tests/test-lock.c: Update includes.
38741         * tests/test-tls.c: Update includes.
38742         * NEWS: Mention the renamed header files.
38743
38744 2008-08-11  Jim Meyering  <meyering@redhat.com>
38745
38746         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
38747
38748 2008-08-11  Eric Blake  <ebb9@byu.net>
38749
38750         test-c-stack: avoid C99-ism
38751         * tests/test-c-stack.c (main): Fix whitespace, move declaration
38752         before statement.
38753         Reported by Alain Guibert.
38754
38755 2008-08-10  Jim Meyering  <meyering@redhat.com>
38756
38757         ensure that return value of uinttostr et al are not ignored
38758         * lib/inttostr.h (__GNUC_PREREQ): Define.
38759         (__attribute_warn_unused_result__): Define.
38760         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
38761
38762 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
38763
38764         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
38765         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
38766
38767 2008-08-07  Jim Meyering  <meyering@redhat.com>
38768
38769         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
38770
38771         * modules/mkstemp (License): Relicense under LGPLv2+.
38772         * modules/tempname (License): Likewise.
38773
38774 2008-08-06  Bruno Haible  <bruno@clisp.org>
38775
38776         * lib/poll.c (poll): Further micro-optimization.
38777
38778 2008-08-06  Jim Meyering  <meyering@redhat.com>
38779
38780         inet_pton.c: use locale-independent tolower
38781         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
38782         (inet_pton6): Use c_tolower rather than tolower.
38783         * modules/inet_pton (Depends-on): Add c-ctype.
38784
38785 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
38786
38787         * lib/poll.c (poll): Avoid division when timeout is 0, cache
38788         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
38789
38790 2008-08-06  Jim Meyering  <meyering@redhat.com>
38791
38792         * modules/inet_pton (License): Relicense under LGPLv2+.
38793
38794 2008-08-03  Bruno Haible  <bruno@clisp.org>
38795
38796         Additional non-aborting API for lock and tls.
38797         * lib/lock.h: Include <errno.h>.
38798         (glthread_lock_init): New macro/function.
38799         (gl_lock_init): Define as wrapper around glthread_lock_init.
38800         (glthread_lock_lock): New macro/function.
38801         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
38802         (glthread_lock_unlock): New macro/function.
38803         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
38804         (glthread_lock_destroy): New macro/function.
38805         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
38806         (glthread_rwlock_init): New macro/function.
38807         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
38808         (glthread_rwlock_rdlock): New macro/function.
38809         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
38810         (glthread_rwlock_wrlock): New macro/function.
38811         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
38812         (glthread_rwlock_unlock): New macro/function.
38813         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
38814         (glthread_rwlock_destroy): New macro/function.
38815         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
38816         (glthread_recursive_lock_init): New macro/function.
38817         (gl_recursive_lock_init): Define as wrapper around
38818         glthread_recursive_lock_init.
38819         (glthread_recursive_lock_lock): New macro/function.
38820         (gl_recursive_lock_lock): Define as wrapper around
38821         glthread_recursive_lock_lock.
38822         (glthread_recursive_lock_unlock): New macro/function.
38823         (gl_recursive_lock_unlock): Define as wrapper around
38824         glthread_recursive_lock_unlock.
38825         (glthread_recursive_lock_destroy): New macro/function.
38826         (gl_recursive_lock_destroy): Define as wrapper around
38827         glthread_recursive_lock_destroy.
38828         (glthread_once): New macro/function.
38829         (gl_once): Define as wrapper around glthread_once.
38830         Update function declarations.
38831         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
38832         glthread_rwlock_init. Return error code.
38833         (glthread_rwlock_rdlock_multithreaded): Renamed from
38834         glthread_rwlock_rdlock. Return error code.
38835         (glthread_rwlock_wrlock_multithreaded): Renamed from
38836         glthread_rwlock_wrlock. Return error code.
38837         (glthread_rwlock_unlock_multithreaded): Renamed from
38838         glthread_rwlock_unlock. Return error code.
38839         (glthread_rwlock_destroy_multithreaded): Renamed from
38840         glthread_rwlock_destroy. Return error code.
38841         (glthread_recursive_lock_init_multithreaded): Renamed from
38842         glthread_recursive_lock_init. Return error code.
38843         (glthread_recursive_lock_lock_multithreaded): Renamed from
38844         glthread_recursive_lock_lock. Return error code.
38845         (glthread_recursive_lock_unlock_multithreaded): Renamed from
38846         glthread_recursive_lock_unlock. Return error code.
38847         (glthread_recursive_lock_destroy_multithreaded): Renamed from
38848         glthread_recursive_lock_destroy. Return error code.
38849         (glthread_once_call): Make static.
38850         (glthread_once_multithreaded): Renamed from glthread_once.
38851         * lib/tls.h: Include <errno.h>.
38852         (glthread_tls_key_init): New macro/function.
38853         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
38854         (glthread_tls_set): New macro/function.
38855         (gl_tls_set): Define as wrapper around glthread_tls_set.
38856         (glthread_tls_key_destroy): New macro/function.
38857         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
38858         Update function declarations.
38859         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
38860         glthread_tls_get.
38861         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38862
38863 2008-08-04  Eric Blake  <ebb9@byu.net>
38864
38865         gnumakefile: use space, not TAB, outside of targets
38866         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
38867
38868 2008-08-02  Jim Meyering  <meyering@redhat.com>
38869
38870         getdate.y: avoid locale-dependent date parsing failure
38871         In Turkish locales, getdate would fail to recognize keywords
38872         containing a lowercase "i".  The solution is not to rely on
38873         locale-sensitive case-conversion.
38874         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
38875         (lookup_word): Use c_toupper in place of toupper.
38876         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
38877         Reported by Vefa Bicakci <bicave@superonline.com> in
38878         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
38879         * modules/getdate (Depends-on): Add c-ctype.
38880
38881 2008-08-02  Bruno Haible  <bruno@clisp.org>
38882
38883         * gnulib-tool (func_import): When updating or creating a .gitignore
38884         file, prepend each added line with a slash, and ignore leading slashes
38885         from the existing lines.
38886         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38887
38888 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38889
38890         Portability fix for GNU make 3.79.1.
38891         * top/GNUmakefile: Avoid 'else COND', which older GNU make
38892         versions do not understand.
38893
38894 2008-08-01  Bruno Haible  <bruno@clisp.org>
38895
38896         Work around bug of HP-UX 10.20 cc with -0.0 literal.
38897         * tests/test-isnanf.h (zero): New variable.
38898         (main): Avoid literal -0.0f.
38899         * tests/test-isnand.h (zero): New variable.
38900         (main): Avoid literal -0.0.
38901         * tests/test-isnanl.h (zero): New variable.
38902         (main): Avoid literal -0.0L.
38903         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
38904         (test_float, test_double, test_long_double): Avoid literals -0.0f,
38905         -0.0, -0.0L.
38906         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
38907         (test_signbitd): Avoid literal -0.0.
38908         (test_signbitl): Avoid literal -0.0L.
38909         * tests/test-ceilf1.c (zero): New variable.
38910         (main): Avoid literal -0.0f.
38911         * tests/test-ceill.c (zero): New variable.
38912         (main): Avoid literal -0.0L.
38913         * tests/test-floorf1.c (zero): New variable.
38914         (main): Avoid literal -0.0f.
38915         * tests/test-floorl.c (zero): New variable.
38916         (main): Avoid literal -0.0L.
38917         * tests/test-roundf1.c (zero): New variable.
38918         (main): Avoid literal -0.0f.
38919         * tests/test-round1.c (zero): New variable.
38920         (main): Avoid literal -0.0.
38921         * tests/test-roundl.c (zero): New variable.
38922         (main): Avoid literal -0.0L.
38923         * tests/test-truncf1.c (zero): New variable.
38924         (main): Avoid literal -0.0f.
38925         * tests/test-trunc1.c (zero): New variable.
38926         (main): Avoid literal -0.0.
38927         * tests/test-truncl.c (zero): New variable.
38928         (main): Avoid literal -0.0L.
38929         * tests/test-frexp.c (zero): New variable.
38930         (main): Avoid literal -0.0.
38931         * tests/test-frexpl.c (zero): New variable.
38932         (main): Avoid literal -0.0L.
38933         * tests/test-ldexpl.c (zero): New variable.
38934         (main): Avoid literal -0.0L.
38935         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38936         (zerod, zerol): New variables.
38937         (test_function): Avoid literals -0.0, -0.0L.
38938         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38939         (zerod, zerol): New variables.
38940         (test_function): Avoid literals -0.0, -0.0L.
38941         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38942         (zerod, zerol): New variables.
38943         (test_function): Avoid literals -0.0, -0.0L.
38944         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38945         (zerod, zerol): New variables.
38946         (test_function): Avoid literals -0.0, -0.0L.
38947         * tests/test-strtod.c (zero): New variable.
38948         (main): Avoid literal -0.0.
38949         Reported by Jonathan C. Patschke <jp@centtech.com>.
38950
38951 2008-07-31  Jim Meyering  <meyering@redhat.com>
38952
38953         sha256.h: correct definition of SHA224_DIGEST_SIZE
38954         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
38955         Reported by Paulie Pena IV <paulie4@gmail.com>.
38956         Define as 224 / 8, rather than as a literal.
38957         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
38958         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
38959         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
38960
38961 2008-07-31  Bruno Haible  <bruno@clisp.org>
38962
38963         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
38964         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
38965         Reported by Jonathan Patschke <jp@centtech.com>.
38966
38967 2008-07-31  Bruno Haible  <bruno@clisp.org>
38968
38969         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
38970         Reported by Paolo Bonzini <bonzini@gnu.org>.
38971
38972 2008-07-30  Eric Blake  <ebb9@byu.net>
38973
38974         test-strtod: allow compilation without -lm
38975         * tests/test-strtod.c (main): Avoid link dependence on fabs.
38976         Reported by Dennis Clarke <blastwave@gmail.com>.
38977
38978 2008-07-28  Jim Meyering  <meyering@redhat.com>
38979
38980         bootstrap: work also when there are no .po files in po/
38981         * build-aux/bootstrap (update_po_files): Complete the change
38982         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
38983
38984 2008-07-27  Jim Meyering  <meyering@redhat.com>
38985
38986         * users.txt: Add zile.
38987
38988 2008-07-26  Ben Pfaff  <blp@gnu.org>
38989
38990         Add missing dependencies on new m4/exponent[fdl].m4 files.
38991         * modules/isnanf-nolibm: Add m4/exponentf.m4.
38992         * modules/isnand-nolibm: Add m4/exponentd.m4.
38993         * modules/isnanl-nolibm: Add m4/exponentl.m4.
38994         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
38995         m4/isnan[fdl].m4, because the macros actually used moved.
38996         Reported by Jim Meyering.
38997
38998 2008-07-14  Ben Pfaff  <blp@gnu.org>
38999
39000         Add isinf module.
39001         * lib/isinf.c: New file.
39002         * lib/math.in.h: Define isinf macro if we have decided to replace
39003         it.
39004         * m4/isinf.m4: New file.
39005         * m4/math_h.m4: Initialize and substitute variables for isinf
39006         module.
39007         * modules/isinf: New file.
39008         * modules/isinf-tests: New file.
39009         * modules/math: Add substitutions for new module.
39010         * tests/test-isinf.c: New file.
39011         * doc/posix-functions/isinf.texi: Mention new module.
39012         * MODULES.html.sh: Mention new module.
39013
39014 2008-07-14  Ben Pfaff  <blp@gnu.org>
39015
39016         Factor out some macros for use by additional modules.
39017         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
39018         exponentf.m4.
39019         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
39020         exponentd.m4.
39021         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
39022         file exponentl.m4.
39023         * m4/exponentf.m4: New file.
39024         * m4/exponentd.m4: New file.
39025         * m4/exponentl.m4: New file.
39026         * modules/isnanf: Use new file m4/exponentf.m4.
39027         * modules/isnand: Use new file m4/exponentd.m4.
39028         * modules/isnanl: Use new file m4/exponentl.m4.
39029
39030 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
39031
39032         mktime.c: normalize tp->tm_isdst value to -1/0/1.
39033         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
39034         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
39035         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
39036
39037         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
39038         readlink on platforms without PATH_MAX.
39039
39040 2008-07-21  Eric Blake  <ebb9@byu.net>
39041
39042         Warn, not fail, on stale version.
39043         * top/GNUmakefile (_curr-ver): Tone down previous patch.
39044
39045         Don't allow installation with stale devel version number.
39046         * top/GNUmakefile (_is-install-target): New macro.
39047         (_curr-ver): Forbid installation with stale version number.
39048
39049 2008-07-20  Bruno Haible  <bruno@clisp.org>
39050
39051         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
39052         TESTS_ENVIRONMENT.
39053         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
39054
39055 2008-07-20  Bruno Haible  <bruno@clisp.org>
39056
39057         * lib/c-stack.h (c_stack_action): Add documentation.
39058         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
39059
39060 2008-07-20  Bruno Haible  <bruno@clisp.org>
39061
39062         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
39063         * modules/readlink (License): Likewise.
39064
39065 2008-07-17  Eric Blake  <ebb9@byu.net>
39066
39067         * modules/c-stack (Link): Fix typo.
39068
39069         Make c-stack use libsigsegv, when available.
39070         * modules/c-stack (Depends-on): Add libsigsegv.
39071         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
39072         needed.
39073         * lib/c-stack.c (SIGSTKSZ): Define fallback.
39074         (segv_handler, overflow_handler, c_stack_action)
39075         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
39076         implementation when libsigsegv is available, but only when using
39077         the library is necessary.
39078         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
39079         comment, explaining why XSI check fails on Linux.
39080         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
39081         * tests/test-c-stack2.sh: Tweak skip message.
39082         * NEWS: Document new link-time requirements.
39083
39084 2008-07-16  Eric Blake  <ebb9@byu.net>
39085
39086         c-stack: Expose false positives when not using libsigsegv.
39087         * modules/c-stack-tests (Files): Expand test.
39088         * tests/test-c-stack.c (main): Add means to conditionally trigger
39089         non-overflow SIGSEGV.
39090         * tests/test-c-stack2.sh: New file.
39091
39092 2008-07-14  Bruno Haible  <bruno@clisp.org>
39093
39094         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
39095         Reported by Eric Blake.
39096
39097 2008-07-14  Sam Steingold  <sds@gnu.org>
39098             Bruno Haible  <bruno@clisp.org>
39099
39100         New module libsigsegv.
39101         * modules/libsigsegv: New file.
39102         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
39103         modifications.
39104         * MODULES.html.sh (Signal handling): New section.
39105
39106 2008-07-14  Bruno Haible  <bruno@clisp.org>
39107
39108         * modules/unictype/ctype-* (Description): Add the word "function".
39109         Improves the resulting doc in MODULES.html.
39110
39111 2008-07-12  Ben Pfaff  <blp@gnu.org>
39112
39113         Add longlong module.
39114         * modules/longlong: New file.
39115
39116 2008-07-12  Bruno Haible  <bruno@clisp.org>
39117
39118         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
39119         to empty.
39120
39121 2008-07-10  Ben Pfaff  <blp@gnu.org>
39122
39123         Add isnan module.
39124         * doc/posix-functions/isnan.texi: Mention new module.
39125         * lib/math.in.h: Define isnan macro if we have decided to replace
39126         it.
39127         * m4/isnan.m4: New file.
39128         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
39129         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
39130         also.
39131         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
39132         redundancy.
39133         * m4/math_h.m4: Initialize and substitute variables for isnan
39134         module.
39135         * modules/isnan: New file.
39136         * modules/isnan-tests: New file.
39137         * modules/math: Add substitutions for new module.
39138         * tests/test-isnan.c: New file.
39139         * MODULES.html.sh: Mention new module.
39140
39141 2008-07-10  Ben Pfaff  <blp@gnu.org>
39142
39143         Add isnanf module.
39144         * lib/isnanf.m4: New file.
39145         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
39146         (gl_HAVE_ISNANF_IN_LIBM): New macro.
39147         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
39148         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
39149         * modules/isnanf: New file.
39150         * modules/isnanf-tests: New file.
39151         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
39152         files.
39153         * tests/test-isnanf-nolibm.c: factored most of its contents into
39154         new file tests/test-isnanf.h.
39155         * tests/test-isnanf.h: New file.
39156         * tests/test-isnanf.c: New file.
39157         * MODULES.html.sh: Mention new module.
39158         * doc/glibc-functions/isnanf.texi: Mention new module.
39159
39160 2008-07-10  Ben Pfaff  <blp@gnu.org>
39161
39162         Add isnand module.
39163         * lib/isnand.h: New file.
39164         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
39165         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
39166         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
39167         functionality also.
39168         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
39169         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
39170         (gl_HAVE_ISNAND_IN_LIBM): New macro.
39171         * modules/isnand: New file.
39172         * modules/isnand-tests: New file.
39173         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
39174         files.
39175         * tests/test-isnand-nolibm.c: factored most of its contents into
39176         new file tests/test-isnand.h.
39177         * tests/test-isnand.h: New file.
39178         * tests/test-isnand.c: New file.
39179         * MODULES.html.sh: Mention new module.
39180
39181 2008-07-10  Ben Pfaff  <blp@gnu.org>
39182
39183         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
39184         * lib/isnand.h: Rename lib/isnand-nolibm.h.
39185         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
39186         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
39187         * modules/isnanf-nolibm: Update references to renamed files.
39188         * modules/isnand-nolibm: Likewise.
39189         * modules/isnanf-nolibm-tests: Likewise.
39190         * modules/isnand-nolibm-tests: Likewise.
39191         * lib/frexp.c: Likewise.
39192         * lib/isfinite.c: Likewise.
39193         * lib/signbitd.c: Likewise.
39194         * lib/signbitf.c: Likewise.
39195         * lib/vasnprintf.c: Likewise.
39196         * tests/test-ceilf1.c: Likewise.
39197         * tests/test-ceilf2.c: Likewise.
39198         * tests/test-floorf1.c: Likewise.
39199         * tests/test-floorf2.c: Likewise.
39200         * tests/test-frexp.c: Likewise.
39201         * tests/test-round1.c: Likewise.
39202         * tests/test-round2.c: Likewise.
39203         * tests/test-roundf1.c: Likewise.
39204         * tests/test-strtod.c: Likewise.
39205         * tests/test-trunc1.c: Likewise.
39206         * tests/test-trunc2.c: Likewise.
39207         * tests/test-truncf1.c: Likewise.
39208         * tests/test-truncf2.c: Likewise.
39209         * NEWS: Mention the renamed header files.
39210
39211 2008-07-11  Jim Meyering  <meyering@redhat.com>
39212
39213         vc-list-files: make the last-resort awk code more portable
39214         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39215         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39216         does not support it.
39217
39218 2008-07-10  Eric Blake  <ebb9@byu.net>
39219
39220         Work with tar's bootstrap.
39221         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39222         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39223         an m4 comment.
39224
39225 2008-07-09  Jim Meyering  <meyering@redhat.com>
39226
39227         posix-shell.m4: fix typo that made this test malfunction
39228         * m4/posix-shell.m4: Remove capitalization in variable name.
39229
39230 2008-07-08  Bruno Haible  <bruno@clisp.org>
39231
39232         * m4/onceonly.m4: Update comments.
39233         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39234
39235 2008-07-04  Jim Meyering  <meyering@redhat.com>
39236
39237         * users.txt: Add vc-dwim.
39238         (bison, coreutils): Use the gitweb URL.
39239
39240 2008-07-03  Jim Meyering  <meyering@redhat.com>
39241
39242         * users.txt: Add libffcall.  From Sam Steingold.
39243
39244 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39245
39246         getdate.y: do not ignore TZ with relative day, month or year offset
39247         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39248         relative-date-handling, since otherwise, the latter would clobber the
39249         sole output (an updated Start value) of the tz-handling block.
39250         * tests/test-getdate.c: Tests for the fix
39251
39252 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39253
39254         Recognize 'foo_LIBRARIES += libgnu.a'.
39255         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39256         makefile snippet has already specified an installation location,
39257         also using '+='.
39258
39259 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39260
39261         getdate.y: factor out common actions
39262         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
39263         Use them in place of open-coded actions.
39264
39265 2008-07-01  Simon Josefsson  <simon@josefsson.org>
39266
39267         Add self-test for getdate module.
39268         * modules/getdate-tests: New file.
39269         * tests/test-getdate.c: New file.
39270
39271 2008-06-29  Bruno Haible  <bruno@clisp.org>
39272
39273         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
39274         .gitignore.
39275         Reported by Sylvain Beucler <beuc@beuc.net>.
39276
39277 2008-06-29  Bruno Haible  <bruno@clisp.org>
39278
39279         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
39280         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
39281
39282 2008-06-29  Bruno Haible  <bruno@clisp.org>
39283
39284         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
39285         EXTRA_DIST.
39286         Reported by Sylvain Beucler <beuc@beuc.net>.
39287
39288 2008-06-26  Jim Meyering  <meyering@redhat.com>
39289
39290         make several modules depend on the "open" module
39291         This provides slightly increased consistency when opening-for-write
39292         the name of a non-directory spelled with a trailing slash.
39293         * modules/chdir-safer: Likewise.
39294         * modules/chown: Likewise.
39295         * modules/clean-temp: Likewise.
39296         * modules/copy-file: Likewise.
39297         * modules/fchdir: Likewise.
39298         * modules/fcntl-safer: Likewise.
39299         * modules/pipe: Likewise.
39300         * modules/utime: Likewise.
39301         Prompted by Eric Blake and Bruno Haible.
39302
39303 2008-06-24  Andreas Schwab  <schwab@suse.de>
39304
39305         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
39306         literals can be used as initializers for global variables.
39307
39308 2008-06-23  Eric Blake  <ebb9@byu.net>
39309
39310         Make gnulib-cache.m4 easier to diff.
39311         * gnulib-tool (func_import): Allow newlines when reading cached
39312         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
39313
39314 2008-06-23  Bruno Haible  <bruno@clisp.org>
39315
39316         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39317         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
39318         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
39319         m4/signalblocking.m4.
39320         (gl_PREREQ_SIGACTION): Don't invoke it.
39321         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39322         gl_PREREQ_SIG_HANDLER_H.
39323         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39324         Don't check for sigaction here.
39325
39326 2008-06-23  Bruno Haible  <bruno@clisp.org>
39327
39328         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39329         (install_handlers): Don't set the SA_RESETHAND flag.
39330
39331 2008-06-23  Bruno Haible  <bruno@clisp.org>
39332
39333         * m4/sigaction.m4: Comment fixes.
39334         * lib/signal.in.h: Likewise.
39335
39336 2008-06-23  Eric Blake  <ebb9@byu.net>
39337
39338         Fix typo.
39339         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39340
39341         Avoid SA_ namespace.
39342         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39343         Reported by Ralf Wildenhues.
39344
39345         Avoid test failure due to SA_RESTORER.
39346         * tests/test-sigaction.c (SA_MASK): New macro.
39347         (main): Avoid failing due to extension flags being set.
39348         Reported by Jim Meyering.
39349
39350         Revert use of sig-handler.h in sigprocmask.c.
39351         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39352         it requires the existence of struct sigaction.
39353         * lib/sigprocmask.c (handler_t): Restore typedef.
39354         (rpl_signal, old_handlers): Use local type.
39355
39356 2008-06-22  Bruno Haible  <bruno@clisp.org>
39357
39358         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39359         conditionally.
39360         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39361
39362 2008-06-22  Bruno Haible  <bruno@clisp.org>
39363
39364         * doc/posix-functions/siginterrupt.texi: Move note.
39365
39366         * lib/signal.in.h (SA_RESTART): New macro.
39367         * lib/sigaction.c: Update comment.
39368
39369         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39370
39371         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39372         (gl_PREREQ_SIGPROCMASK): Invoke it.
39373         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39374
39375         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39376
39377         * lib/sigprocmask.c: Update a comment.
39378
39379 2008-06-21  Eric Blake  <ebb9@byu.net>
39380
39381         Use sigaction module rather than signal().
39382         * modules/c-stack (Depends-on): Add sigaction.
39383         * modules/fatal-signal (Depends-on): Likewise.
39384         * modules/nanosleep (Depends-on): Likewise.
39385         * modules/sigprocmask (Files): Add sig-handler.h.
39386         * modules/sigaction (Files): Likewise.
39387         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39388         Eggert.
39389         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39390         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39391         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39392         (init_fatal_signals): Likewise.
39393         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39394         (siginterrupt): Delete fallback.
39395         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39396         instead.
39397         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39398         siginterrupt.
39399
39400         New module sigaction, for mingw.
39401         * modules/sigaction: New module...
39402         * modules/sigaction-tests: ...and its test.
39403         * m4/sigaction.m4: New file.
39404         * lib/sigaction.c: Likewise.
39405         * tests/test-sigaction.c: Likewise.
39406         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39407         * modules/signal (Makefile.am): Likewise.
39408         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39409         needed.
39410         * doc/posix-headers/signal.texi (signal.h): Mention provided
39411         types.
39412         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39413         that sigaction is preferable.
39414         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39415         module.
39416         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39417         sigaction.
39418
39419         Improve robustness of sigprocmask by overriding signal.
39420         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39421         is in use.
39422         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39423         (SIGKILL, SIGSTOP): Provide fallbacks.
39424         (rpl_signal): Implement.
39425         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39426         signal can be called inside handlers.
39427
39428         Fix nanosleep module on mingw.
39429         * modules/nanosleep (Depends-on): Add sys_select.
39430         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39431
39432         Fix licensing of sigprocmask.
39433         * modules/raise (License): Relicense as LGPL.
39434
39435 2008-06-21  Bruno Haible  <bruno@clisp.org>
39436
39437         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39438         result if it contains question marks.
39439         Reported by Michael Geng <linux@michaelgeng.de>.
39440
39441 2008-06-19  Bruno Haible  <bruno@clisp.org>
39442
39443         Fix CVS-ism.
39444         * doc/gnulib.texi: Include updated-stamp.texi.
39445         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39446         (updated-stamp.texi): New rule.
39447         (gnulib.info): Depend on it.
39448         * doc/.gitignore: Add updated-stamp.texi.
39449         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39450
39451 2008-06-19  Bruno Haible  <bruno@clisp.org>
39452
39453         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39454         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39455
39456 2008-06-19  Eric Blake  <ebb9@byu.net>
39457
39458         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39459         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39460         Reported by Stepan Kasal.
39461
39462 2008-06-18  Bruno Haible  <bruno@clisp.org>
39463
39464         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39465         Reported by Eric Blake.
39466
39467 2008-06-18  Eric Blake  <ebb9@byu.net>
39468
39469         Work around cygwin 1.5.25 strsignal bug.
39470         * tests/test-strsignal.c: Allow for const char *.
39471         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39472
39473 2008-06-18  Simon Josefsson  <simon@josefsson.org>
39474
39475         * users.txt: Update URL to article and add author/date
39476         information.
39477
39478 2008-06-17  Bruno Haible  <bruno@clisp.org>
39479
39480         New macro gl_DISABLE_THREADS.
39481         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
39482         if the user did not pass --enable-threads or --disable-threads option.
39483         (gl_DISABLE_THREADS): New macro.
39484         Reported by Eric Blake <ebb9@byu.net>.
39485
39486 2008-06-17  Bruno Haible  <bruno@clisp.org>
39487
39488         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39489         when the macro ignores it.
39490         Based on a patch by Eric Blake <ebb9@byu.net>.
39491
39492 2008-06-17  Bruno Haible  <bruno@clisp.org>
39493
39494         * modules/tls (License): Change to LGPLv2+.
39495         Reported by Eric Blake.
39496
39497 2008-06-17  Eric Blake  <ebb9@byu.net>
39498
39499         Simplify c-stack prerequisites.
39500         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
39501         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
39502         no longer requires <ucontext.h> to exist.  Optimize setrlimit
39503         check.
39504         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
39505         <sys/resource.h>.
39506
39507         Move c-stack test into testsuite.
39508         * modules/c-stack-tests: New file.
39509         * lib/c-stack.c [DEBUG]: Move test program...
39510         * tests/test-c-stack.c: ...into this new file.  Skip rather than
39511         fail test if sigaltstack is lacking.
39512         * tests/test-c-stack.sh: New driver file.
39513
39514 2008-06-16  Eric Blake  <ebb9@byu.net>
39515
39516         Use raise module consistently.
39517         * modules/fatal-signal (Depends-on): Add raise.
39518         * modules/sigprocmask (Depends-on): Likewise.
39519         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
39520         * lib/sigprocmask.c (sigprocmask): Likewise.
39521         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39522         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
39523
39524         Fix compliance bug in sigpending.
39525         * lib/sigprocmask.c (sigpending): Return pending array via
39526         parameter, not return value.
39527
39528 2008-06-14  Eric Blake  <ebb9@byu.net>
39529
39530         Improve obstack-printf test code.
39531         * tests/test-obstack-printf.c (test_function): Fix comment, and
39532         simplify usage of obstack_* in macros.  Add a test for coverage.
39533         Reported by Bruno Haible.
39534
39535 2008-06-14  Bruno Haible  <bruno@clisp.org>
39536
39537         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
39538         array size as a constant, not as a const variable.
39539         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
39540         AC_USE_SYSTEM_EXTENSIONS.
39541         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39542         Test whether the obstack_printf function actually exists.
39543         * modules/obstack-printf (Depends-on): Add extensions.
39544         (Include): Remove obstack.h.
39545         * modules/obstack-printf-posix (Depends-on): Add extensions.
39546         (Include): Remove obstack.h.
39547
39548 2008-06-13  Eric Blake  <ebb9@byu.net>
39549
39550         Add obstack-printf and obstack-printf-posix modules.
39551         * modules/obstack-printf: New file.
39552         * modules/obstack-printf-posix: Likewise.
39553         * MODULES.html.sh (Misc): Mention them.
39554         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39555         Likewise.
39556         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39557         Likewise.
39558         * modules/stdio (Makefile.am): Accomodate new modules.
39559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39560         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
39561         Declare.
39562         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
39563         functions.
39564         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
39565         (gl_REPLACE_OBSTACK_PRINTF): New macros
39566         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
39567         * tests/test-obstack-printf.c: New file.
39568         * modules/obstack-printf-tests: Likewise.
39569         * modules/obstack-printf-posix-tests: Likewise.
39570
39571 2008-06-11  Bruno Haible  <bruno@clisp.org>
39572
39573         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
39574         * lib/open.c: Include errno.h.
39575         (open): Fail when attempting to write to a file that has a trailing
39576         slash.
39577         * tests/test-open.c (main): Test against trailing slash bug.
39578         * doc/posix-functions/open.texi: Mention the trailing slash bug.
39579
39580 2008-06-10  Bruno Haible  <bruno@clisp.org>
39581
39582         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
39583         for $? to work inside the trap command, with various /bin/sh-s.
39584         * tests/test-vc-list-files-cvs.sh: Likewise.
39585
39586 2008-06-10  Bruno Haible  <bruno@clisp.org>
39587
39588         * lib/acl-internal.h: Don't include gettext.h here.
39589         * lib/set-mode-acl.c: Include gettext.h here.
39590         * lib/copy-acl.c: Likewise.
39591
39592 2008-06-10  Bruno Haible  <bruno@clisp.org>
39593
39594         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
39595         * lib/wait-process.c (wait_subprocess): Likewise.
39596         * lib/execute.h (execute): Add termsigp argument.
39597         * lib/execute.c (execute): Likewise.
39598         * lib/csharpcomp.c (compile_csharp_using_pnet,
39599         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
39600         * lib/csharpexec.c (execute_csharp_using_pnet,
39601         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
39602         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
39603         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
39604         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
39605         is_jikes_present): Update.
39606         * lib/javaexec.c (execute_java_class): Update.
39607         * lib/javaversion.c (execute_and_read_line): Update.
39608         * NEWS: Document the changes.
39609         Reported by Eric Blake.
39610
39611 2008-06-10  Eric Blake  <ebb9@byu.net>
39612
39613         Add missing include.
39614         * tests/test-strstr.c (includes): Add <signal.h>.
39615         * tests/test-strcasestr.c (includes): Likewise.
39616         * tests/test-memmem.c (includes): Likewise.
39617
39618 2008-06-10  Bruno Haible  <bruno@clisp.org>
39619
39620         * lib/wait-process.c (wait_subprocess): Add an assertion.
39621
39622 2008-06-10  Bruno Haible  <bruno@clisp.org>
39623
39624         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
39625
39626 2008-06-10  Bruno Haible  <bruno@clisp.org>
39627
39628         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
39629         using alarm().
39630         * tests/test-strcasestr.c (main): Likewise.
39631         * tests/test-strstr.c (main): Likewise.
39632
39633 2008-06-09  Bruno Haible  <bruno@clisp.org>
39634
39635         Work around the Solaris 10 ACE ACLs ABI change.
39636         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
39637         declare if ACL_NO_TRIVIAL is present.
39638         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
39639         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
39640         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
39641         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
39642         define if ACL_NO_TRIVIAL is present.
39643         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
39644         and use the current ABI.
39645         (file_has_acl): Use same #if condition as elsewhere.
39646         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
39647         in use, and use the current ABI.
39648         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
39649         Reported by Jim Meyering.
39650
39651 2008-06-09  Eric Blake  <ebb9@byu.net>
39652
39653         Work around environments that (stupidly) ignore SIGALRM.
39654         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
39655         before using alarm().
39656         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39657         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39658         Reported by Ian Beckwith <ianb@erislabs.net>.
39659
39660         Produce autobuild blurb earlier in log.
39661         * modules/autobuild (configure.ac-early): Move AB_INIT here.
39662
39663 2008-06-09  Jim Meyering  <meyering@redhat.com>
39664         and OndÅ™ej Vašík  <ovasik@redhat.com>
39665
39666         utimens.c: correct kernel bug work-around
39667         OndÅ™ej Vašík found that the invalid return value of 280 indicates
39668         failure, not success, and the kernel bug we're trying to work
39669         around affects not just the utimensat call, but also the fallback
39670         futimens call.
39671         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
39672         not success.
39673         [HAVE_FUTIMENS]: Use the same work-around, here.
39674
39675 2008-06-09  Jim Meyering  <meyering@redhat.com>
39676
39677         add more guards around definition of ACE_-related code
39678         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
39679         ALLOW and ACE_OWNER are also defined.
39680
39681 2008-06-08  Bruno Haible  <bruno@clisp.org>
39682
39683         * lib/acl-internal.h: Add me as co-author.
39684         * lib/file-has-acl.c: Likewise.
39685         * lib/set-mode-acl.c: Likewise.
39686         * lib/copy-acl.c: Likewise.
39687
39688 2008-06-08  Bruno Haible  <bruno@clisp.org>
39689
39690         Add support for AIX ACLs.
39691         * lib/acl-internal.h (acl_nontrivial): New declaration.
39692         * lib/file-has-acl.c (acl_nontrivial): New function.
39693         (file_has_acl): Add implementation using AIX 4 ACL API.
39694         * lib/set-mode-acl.c (qset_acl): Likewise.
39695         * lib/copy-acl.c (qcopy_acl): Likewise.
39696
39697 2008-06-08  Bruno Haible  <bruno@clisp.org>
39698
39699         Add support for HP-UX ACLs.
39700         * lib/acl-internal.h (acl_nontrivial): New declaration.
39701         * lib/file-has-acl.c (acl_nontrivial): New function.
39702         (file_has_acl): Add implementation using HP-UX 11 ACL API.
39703         * lib/set-mode-acl.c (qset_acl): Likewise.
39704         * lib/copy-acl.c (qcopy_acl): Likewise.
39705
39706 2008-06-08  Bruno Haible  <bruno@clisp.org>
39707
39708         Add support for Cygwin ACLs.
39709         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
39710         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
39711         the chmod_or_fchmod call.
39712         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
39713
39714 2008-06-08  Bruno Haible  <bruno@clisp.org>
39715
39716         Fix bug with setuid modes in Solaris 10+ code.
39717         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
39718         succeeded, when the mode contains some special bits.
39719
39720 2008-06-08  Bruno Haible  <bruno@clisp.org>
39721
39722         Add support for Solaris 7..10 ACLs.
39723         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
39724         declarations.
39725         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
39726         functions.
39727         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
39728         * lib/set-mode-acl.c (qset_acl): Likewise.
39729         * lib/copy-acl.c (qcopy_acl): Likewise.
39730
39731 2008-06-08  Bruno Haible  <bruno@clisp.org>
39732
39733         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
39734         declaration.
39735         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
39736         (acl_access_nontrivial): Remove MacOS X case.
39737         (file_has_acl): Use acl_extended_nontrivial.
39738         * lib/copy-acl.c (qcopy_acl): Likewise.
39739
39740 2008-06-08  Bruno Haible  <bruno@clisp.org>
39741
39742         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
39743
39744 2008-06-08  Jim Meyering  <meyering@redhat.com>
39745
39746         * modules/acl (Maintainer): Add Bruno Haible.
39747
39748 2008-06-07  Bruno Haible  <bruno@clisp.org>
39749
39750         Improve support for Tru64 ACLs.
39751         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
39752         ACL on OSF/1.
39753
39754 2008-06-07  Bruno Haible  <bruno@clisp.org>
39755
39756         Add support for MacOS X ACLs.
39757         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
39758         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
39759         * lib/set-mode-acl.c (qset_acl): Likewise.
39760         * lib/copy-acl.c (qcopy_acl): Likewise.
39761
39762 2008-06-07  Bruno Haible  <bruno@clisp.org>
39763
39764         Fix memory leak introduced on 2008-05-22.
39765         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
39766         use.
39767
39768 2008-06-07  Bruno Haible  <bruno@clisp.org>
39769
39770         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
39771         to construct an empty ACL.
39772
39773 2008-06-07  Bruno Haible  <bruno@clisp.org>
39774
39775         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
39776         precisely.
39777         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
39778
39779 2008-06-07  Bruno Haible  <bruno@clisp.org>
39780
39781         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
39782         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
39783
39784 2008-06-07  Bruno Haible  <bruno@clisp.org>
39785
39786         * doc/posix-functions/_setjmp.texi: Explain the use of this function
39787         regardless of POSIX.
39788         * doc/posix-functions/_longjmp.texi: Likewise.
39789         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
39790         SystemV platform in this case.
39791
39792 2008-06-06  Eric Blake  <ebb9@byu.net>
39793
39794         Document abort() bugs.
39795         * doc/posix-functions/abort.texi (abort): Mention anomalies.
39796
39797         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
39798         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
39799         sigsetjmp.
39800         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
39801         siglongjmp, but only as a macro.
39802         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
39803         is obsolete.
39804         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
39805
39806         Tweak documentation to cover cygwin argz bugs.
39807         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
39808         argz bug fix; no code change needed since no cygwin releases
39809         occurred between the last fix and the bug being tested.
39810         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
39811         module and recently fixed cygwin bugs.
39812         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
39813         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
39814         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
39815         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
39816         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
39817         Likewise.
39818         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
39819         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
39820         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
39821         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
39822         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
39823         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
39824         Likewise.
39825
39826         Avoid gcc warning on cygwin.
39827         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
39828         !ACL_NO_TRIVIAL]: Avoid unused variable.
39829
39830 2008-06-05  Eric Blake  <ebb9@byu.net>
39831
39832         Be tolerant of UNKNOWN version in gnulib-tool test dir.
39833         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
39834         git-version-gen fails to come up with a version.
39835         Reported by Simon Josefsson.
39836
39837 2008-06-05  Jim Meyering  <meyering@redhat.com>
39838             Paul Eggert  <eggert@cs.ucla.edu>
39839
39840         utimens.c: work around a probable Linux kernel bug
39841         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
39842         appears to be a kernel bug that causes utimensat to return 280
39843         instead of 0, indicating success.
39844
39845 2008-06-04  Bruno Haible  <bruno@clisp.org>
39846
39847         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
39848         2008-06-01 commit.
39849
39850 2008-06-04  Bruno Haible  <bruno@clisp.org>
39851
39852         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
39853         * lib/file-has-acl.c (acl_access_nontrivial): New function.
39854         (file_has_acl): Use it. Save errno afterwards.
39855         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
39856
39857 2008-06-03  Bruno Haible  <bruno@clisp.org>
39858
39859         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
39860         draft code. Simplify #ifs.
39861         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
39862         Put Solaris code after POSIX-draft code. Fix comments regarding
39863         Solaris 10, HP-UX. Mention Cygwin.
39864         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
39865
39866 2008-06-03  Eric Blake  <ebb9@byu.net>
39867
39868         Provide fallback for older kernels.
39869         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
39870         Provide runtime fallback if kernel lacks support.
39871         Reported by Mike Frysinger.
39872
39873 2008-06-02  Bruno Haible  <bruno@clisp.org>
39874
39875         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
39876         it exists.
39877
39878 2008-06-02  Bruno Haible  <bruno@clisp.org>
39879
39880         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
39881         * lib/copy-acl.c (qcopy_acl): Update comment.
39882
39883 2008-06-02  Bruno Haible  <bruno@clisp.org>
39884
39885         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
39886         like ACL APIs.
39887
39888 2008-06-02  Bruno Haible  <bruno@clisp.org>
39889
39890         * tests/test-file-has-acl.sh: Use different code for Cygwin.
39891         * tests/test-set-mode-acl.sh: Likewise.
39892         * tests/test-copy-acl.sh: Likewise.
39893         * tests/test-copy-file.sh: Likewise.
39894
39895 2008-06-02  Bruno Haible  <bruno@clisp.org>
39896
39897         * tests/test-file-has-acl.sh: Remove unused code.
39898
39899 2008-06-01  Bruno Haible  <bruno@clisp.org>
39900
39901         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
39902         (copy_acl): Just a wrapper around qcopy_acl that emits the error
39903         messages.
39904         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
39905
39906 2008-06-01  Bruno Haible  <bruno@clisp.org>
39907
39908         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
39909         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
39910         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
39911         APIs.
39912         * modules/acl-tests (configure.ac): Remove tests now contained in
39913         m4/acl.m4.
39914
39915 2008-06-02  Jim Meyering  <meyering@redhat.com>
39916
39917         announce-gen: use a better key-server host name
39918         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
39919         it may be more consistently reliable.  Suggested by Werner Koch
39920         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
39921
39922 2008-06-01  Bruno Haible  <bruno@clisp.org>
39923
39924         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
39925         Reported by Voroskoi Andras <voroskoi@gmail.com>.
39926
39927 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
39928
39929         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
39930
39931 2008-06-01  Bruno Haible  <bruno@clisp.org>
39932
39933         New ACL tests.
39934         * tests/test-file-has-acl.sh: New file.
39935         * tests/test-file-has-acl.c: New file.
39936         * tests/test-set-mode-acl.sh: New file.
39937         * tests/test-set-mode-acl.c: New file.
39938         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
39939         * tests/test-copy-acl.c: New file.
39940         * modules/acl-tests: New file, based on modules/copy-file-tests.
39941         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
39942         (Depends-on): Add acl-tests.
39943         (configure.ac): Remove checks.
39944         (Makefile.am): Don't create test-sameacls program here any more.
39945
39946 2008-06-01  Bruno Haible  <bruno@clisp.org>
39947
39948         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
39949         * tests/test-sameacls.c: Include progname.h.
39950         (main): Invoke set_program_name. Portability fixes for MacOS X,
39951         Solaris, HP-UX.
39952
39953 2008-06-01  Bruno Haible  <bruno@clisp.org>
39954
39955         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
39956         function.
39957         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
39958
39959 2008-06-01  Bruno Haible  <bruno@clisp.org>
39960
39961         * modules/rpmatch (Depends-on): Add strdup.
39962
39963 2008-06-01  Bruno Haible  <bruno@clisp.org>
39964
39965         * lib/pipe.c: Include unistd-safer.h.
39966         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
39967         * modules/pipe (Depends-on): Add unistd-safer.
39968
39969 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39970
39971         * modules/autobuild (configure.ac): Call AB_INIT.
39972
39973 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39974
39975         * tests/test-getaddrinfo.c: Don't print debug messages by default.
39976         Suggested by Bruno Haible <bruno@clisp.org>.
39977
39978 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39979
39980         * tests/test-base64.c: Cast size_t to unsigned long when invoking
39981         printf.  Use %lu instead of %d.  Reported by Bruno Haible
39982         <bruno@clisp.org>.
39983
39984 2008-05-29  Eric Blake  <ebb9@byu.net>
39985
39986         Prefer new POSIX 200x interfaces over futimesat.
39987         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
39988         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
39989         when available.
39990         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
39991
39992 2008-05-28  Bruno Haible  <bruno@clisp.org>
39993
39994         * modules/stpcpy (License): Change to LGPLv2+.
39995         Requested by David Lutterkort <dlutter@redhat.com>.
39996
39997 2008-05-27  Bruno Haible  <bruno@clisp.org>
39998
39999         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
40000         current mingw.
40001         Reported by Jose E. Marchesi <jemarch@gnu.org>.
40002
40003 2008-05-27  Bruno Haible  <bruno@clisp.org>
40004
40005         * modules/iconv_open (Link): New section, from module 'iconv'.
40006         * modules/striconv (Link): Likewise.
40007         * modules/striconveh (Link): Likewise.
40008         * modules/xstriconv (Link): Likewise.
40009         * modules/unicodeio (Link): Likewise.
40010         * modules/propername (Link): Likewise.
40011         Reported by Jim Meyering.
40012
40013 2008-05-26  Jim Meyering  <meyering@redhat.com>
40014
40015         sha256: do not artificially restrict buffer length to be < 2^32
40016         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
40017         uint32_t to size_t.
40018         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
40019         to match.
40020
40021         avoid unaligned access errors, e.g., on sparc
40022         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
40023         direct access through a possibly-unaligned uint64* pointer.
40024         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
40025         direct access through a possibly-unaligned uint32* pointer.
40026         Prompted by this patch from Tom "spot" Callaway:
40027         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
40028
40029         sha512.c: fix typo in comment
40030         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
40031
40032 2008-05-25  Bruno Haible  <bruno@clisp.org>
40033
40034         * lib/set-mode-acl.c: Renamed from lib/acl.c.
40035         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
40036         (Makefile.am): Update lib_SOURCES.
40037
40038 2008-05-25  Bruno Haible  <bruno@clisp.org>
40039
40040         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
40041
40042 2008-05-25  Jim Meyering  <meyering@redhat.com>
40043
40044         useless-if-before-free: freed expr may have white-space differences
40045         * build-aux/useless-if-before-free: Recognize cases in which the
40046         freed expression differs from the tested one in embedded white
40047         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
40048         $1 was used, so we can't make any regexp shy.  Improved tests now
40049         detect this.
40050
40051         useless-if-before-free: accept white space in the expression.
40052         * build-aux/useless-if-before-free: For now, any white space
40053         in the expression must be identical in the free argument.
40054
40055         useless-if-before-free: efficiency tweak
40056         * build-aux/useless-if-before-free: Make the expression-matching
40057         regexp "shy".
40058         Make the *outer* regexp shy, not the expr-matching one.
40059
40060         update code-in-comment to accept cast of free arg
40061         * build-aux/useless-if-before-free: Update regexp.
40062
40063 2008-05-25  Bruno Haible  <bruno@clisp.org>
40064
40065         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
40066         * modules/copy-file-tests (Files, Makefile.am): Update.
40067         * tests/test-copy-file.c (func_test_copy): Update.
40068
40069 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
40070
40071         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
40072
40073 2008-05-23  Bruno Haible  <bruno@clisp.org>
40074
40075         Improve support for ACLs on OSF/1.
40076         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
40077         Remove fallback for unknown flavors of ACLs.
40078
40079 2008-05-22  Bruno Haible  <bruno@clisp.org>
40080
40081         Add support for ACLs on OSF/1.
40082         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
40083         replacements.
40084         (acl_free_text): New macro fallback.
40085         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
40086         acl_free.
40087         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
40088         acl_free_text function. Require AC_C_INLINE.
40089
40090 2008-05-22  Bruno Haible  <bruno@clisp.org>
40091
40092         Make copy_acl work on MacOS X 10.5.
40093         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
40094         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
40095         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
40096         If MODE_INSIDE_ACL, don't assume that every system has the same text
40097         representation for ACLs as FreeBSD.
40098         * lib/copy-acl.c (copy_acl): Add support for platforms with
40099         !MODE_INSIDE_ACL.
40100         * lib/file-has-acl.c (file_has_acl): Likewise.
40101         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
40102         FreeBSD, MacOS X, or IRIX, respectively.
40103
40104 2008-05-22  Bruno Haible  <bruno@clisp.org>
40105
40106         * lib/acl.h: Don't include <sys/acl.h>.
40107         (GETACLCNT): Move fallback to lib/acl-internal.h.
40108         * lib/acl-internal.h: Include <sys/acl.h> here.
40109         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
40110
40111 2008-05-22  Bruno Haible  <bruno@clisp.org>
40112
40113         Split off copy_acl function to separate file.
40114         * lib/copy-acl.c: New file, extracted from lib/acl.c.
40115         * lib/acl.c (copy_acl): Moved function to separate file.
40116         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
40117         * modules/acl (Files): Add lib/copy-acl.c.
40118         (Makefiles.am): Augment lib_SOURCES.
40119
40120 2008-05-22  Bruno Haible  <bruno@clisp.org>
40121
40122         * modules/copy-file-tests: New file.
40123         * tests/test-copy-file.sh: New file.
40124         * tests/test-copy-file.c: New file.
40125         * tests/test-copy-file-sameacls.c: New file.
40126
40127 2008-05-22  Eric Blake  <ebb9@byu.net>
40128
40129         Avoid gcc warning.
40130         * tests/test-memcmp.c (main): Pass NULL indirectly.
40131
40132 2008-05-21  Bruno Haible  <bruno@clisp.org>
40133
40134         Add reference doc about ACLs.
40135         * doc/acl-resources.txt: New file.
40136         * doc/acl-cygwin.txt: New file.
40137
40138 2008-05-21  Bruno Haible  <bruno@clisp.org>
40139
40140         Avoid one more warning from gcc.
40141         * lib/vasnprintf.c (IF_LINT): Update comments.
40142         (VASNPRINTF): Use it also for the 'prefix' array initializer.
40143
40144 2008-05-21  Jim Meyering  <meyering@redhat.com>
40145
40146         avoid a warning from gcc
40147         * lib/vasnprintf.c (IF_LINT): Define.
40148         (scale10_round_decimal_long_double):
40149         Use it to avoid a "may be used uninitialized" warning.
40150         (scale10_round_decimal_double): Likewise.
40151
40152 2008-05-21  Simon Josefsson  <simon@josefsson.org>
40153
40154         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
40155         declared.
40156
40157 2008-05-20  Bruno Haible  <bruno@clisp.org>
40158
40159         * tests/test-memcmp.c (main): Test also the sign of the result. Test
40160         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
40161
40162 2008-05-20  Simon Josefsson  <simon@josefsson.org>
40163
40164         * modules/memcmp-tests: New file.
40165         * tests/test-memcmp.c: New file.
40166
40167 2008-05-19  Bruno Haible  <bruno@clisp.org>
40168
40169         * modules/propername (Notice, configure.ac): Put quoted "..." into
40170         --keyword option.
40171         * lib/propername.h: Update comments accordingly.
40172         Reported by Eric Blake.
40173
40174 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
40175
40176         * modules/getpass-gnu (Depends-on): Add fseeko.
40177
40178 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40179
40180         * modules/base64-tests: New file.
40181
40182 2008-05-19  Bo Borgerson <gigabo@gmail.com>
40183
40184         * lib/base64.c (base64_decode_ctx): If a decode context structure
40185         was passed in use it to ignore newlines.  If a context structure
40186         was _not_ passed in, continue to treat newlines as garbage (this
40187         is the historical behavior).  Formerly base64_decode.
40188         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40189         takes a decode context structure.
40190         * lib/base64.h (base64_decode): Macro for four-argument calls.
40191         (base64_decode_alloc): Likewise.
40192         * lib/base64.c (base64_decode_ctx): If a decode context structure
40193         was passed in use it to ignore newlines.  If a context structure
40194         was _not_ passed in, continue to treat newlines as garbage (this
40195         is the historical behavior).  Formerly base64_decode.
40196         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40197         takes a decode context structure.
40198         * lib/base64.h (base64_decode): Macro for four-argument calls.
40199         (base64_decode_alloc): Likewise.
40200
40201 2008-05-19  Jim Meyering  <meyering@redhat.com>
40202
40203         avoid a warning from gcc
40204         * lib/trim.c (IF_LINT): Define.
40205         (trim2): Use it to avoid a "may be used uninitialized" warning.
40206
40207         Fix doc typo.
40208         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40209
40210 2008-05-19  Bruno Haible  <bruno@clisp.org>
40211
40212         * doc/glibc-functions/getpass.texi: Document limits of other
40213         implementations.
40214
40215 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40216             Bruno Haible <bruno@clisp.org>
40217
40218         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40219
40220 2008-05-18  Bruno Haible  <bruno@clisp.org>
40221
40222         * modules/propername: New file, from GNU gettext.
40223         * lib/propername.h: New file, from GNU gettext.
40224         * lib/propername.c: New file, from GNU gettext.
40225         * MODULES.html.sh (Internationalization functions): Add propername.
40226
40227 2008-05-16  Jim Meyering  <meyering@redhat.com>
40228             Bruno Haible  <bruno@clisp.org>
40229
40230         Avoid some warnings from "gcc -Wshadow".
40231         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40232
40233 2008-05-15  Eric Blake  <ebb9@byu.net>
40234
40235         Extend previous patch to cygwin 1.7.0.
40236         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40237         fast implementation in cygwin >= 1.7.0.
40238         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40239         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40240
40241 2008-05-15  Bruno Haible  <bruno@clisp.org>
40242
40243         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40244         implementation in glibc >= 2.9.
40245         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40246         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40247
40248 2008-05-15  Bruno Haible  <bruno@clisp.org>
40249
40250         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40251         (Unicode string functions): Add unilbrk/*.
40252         Reported by Karl Berry.
40253
40254 2008-05-15  Eric Blake  <ebb9@byu.net>
40255
40256         Fix violation of <stdbool.h> replacement in regex.
40257         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40258         * lib/regexec.c (re_search_internal): Likewise.
40259         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40260
40261 2008-05-15  Jim Meyering  <meyering@redhat.com>
40262
40263         avoid distracting test output when git or cvs is not found
40264         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
40265         * tests/test-vc-list-files-git.sh: Likewise.
40266
40267 2008-05-15  Eric Blake  <ebb9@byu.net>
40268
40269         Glibc finally accepted the memmem speedup code, bugzilla #5514.
40270         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
40271         glibc version.
40272         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40273         * doc/posix-functions/strstr.texi (strstr): Likewise.
40274         * lib/str-two-way.h (MAX): Sychronize with glibc.
40275
40276 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
40277
40278         * lib/regcomp.c (optimize_utf8): Add a note on why we test
40279         opr.ctx_type.
40280         (calc_first): Initialize constraint field.
40281         (duplicate_node_closure): Use it instead of special casing ANCHORS.
40282         Fix grammar.
40283         (duplicate_node): Merge constraint field for all node types.
40284         (calc_eclosure_iter): Look at constraint field for all node types.
40285         * lib/regex_internal.c (create_cd_newstate): Don't look at
40286         opr.ctx_type.
40287
40288 2008-05-14  Bruno Haible  <bruno@clisp.org>
40289
40290         Help GCC to do better code generation.
40291         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
40292         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40293         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
40294         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
40295         Declare with attribute 'malloc' if supported.
40296
40297 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
40298
40299         use "echo STR|wc -c" rather than unportable "expr length STR"
40300         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
40301         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
40302
40303 2008-05-14  Jim Meyering  <meyering@redhat.com>
40304
40305         use dd ibs=$n count=1 ... rather than less-portable head -c$n
40306         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
40307         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
40308         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
40309         via Collin Lasse.
40310
40311 2008-05-14  Eric Blake  <ebb9@byu.net>
40312
40313         Avoid quadratic growth in gl_LIBSOURCES.
40314         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40315         Suggested by Bruno Haible.
40316
40317         Test xmemdup0.
40318         * modules/xmemdup0-tests: New file.
40319         * tests/test-xmemdup0.c: Likewise.
40320
40321 2008-05-13  Eric Blake  <ebb9@byu.net>
40322
40323         Split xmemdup0 into its own module.
40324         * modules/xmemdup0: New file.
40325         * lib/xmemdup0.h: Likewise.
40326         * lib/xmemdup0.c: Likewise.
40327         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40328         * lib/xalloc.h (xmemdup0): Remove.
40329         * lib/xmalloc.c (xmemdup0): Likewise.
40330
40331 2008-05-13  Eric Blake  <ebb9@byu.net>
40332             Bruno Haible  <bruno@clisp.org>
40333
40334         Reduce number of forks required during autoconf.
40335         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40336         and gl_LIBSOURCES_DIR.
40337         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40338         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40339         m4_syscmd per file.
40340         <m4_foreach_w>: Move...
40341         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40342
40343 2008-05-13  Eric Blake  <ebb9@byu.net>
40344
40345         * gnulib-tool: Fix various comment typos.
40346
40347 2008-05-12  Bruno Haible  <bruno@clisp.org>
40348
40349         Tailor the linebreaking algorithm.
40350         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40351
40352 2008-05-12  Bruno Haible  <bruno@clisp.org>
40353
40354         Update to Unicode 5.0.0.
40355         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40356         LBP_JV, LBP_JT. Redistribute values.
40357         (unilbrk_table): Change size.
40358         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40359         Unicode TR#14 rev. 22.
40360         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40361         LBP_JV, LBP_JT. Redistribute values.
40362         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40363         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40364         Update.
40365         * lib/unilbrk/lbrkprop1.h: Regenerated.
40366         * lib/unilbrk/lbrkprop2.h: Regenerated.
40367         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40368         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40369         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40370         Likewise.
40371         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40372         Likewise.
40373         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40374         result.
40375         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40376         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40377         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40378         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40379         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40380         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40381
40382 2008-05-11  Bruno Haible  <bruno@clisp.org>
40383
40384         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40385
40386 2008-05-11  Bruno Haible  <bruno@clisp.org>
40387
40388         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40389         * modules/unilbrk/gen-lbrk: New file.
40390
40391 2008-05-11  Bruno Haible  <bruno@clisp.org>
40392
40393         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40394         * m4/sha512.m4 (gl_SHA512): Likewise.
40395
40396 2008-05-11  Jim Meyering  <meyering@redhat.com>
40397
40398         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40399         * modules/crypto/sha256: New file.
40400         * modules/crypto/sha512: Likewise.
40401         * lib/sha256.c: Likewise.
40402         * lib/sha256.h: Likewise.
40403         * lib/sha512.c: Likewise.
40404         * lib/sha512.h: Likewise.
40405         * lib/u64.h: Likewise.
40406         * m4/sha256.m4: Likewise.
40407         * m4/sha512.m4: Likewise.
40408         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40409
40410 2008-05-10  Bruno Haible  <bruno@clisp.org>
40411
40412         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40413         (Input/Output <stdio.h>): Add xprintf.
40414         (Signal handling <signal.h>): Add strsignal.
40415         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40416         (Core language properties): Add func.
40417         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40418         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40419         strings.
40420         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40421         (Input/output): New section.
40422         (File system functions): Add openat-die, stat-macros.
40423         (Networking functions): Add sockets.
40424         (Unicode string functions): Add unictype/*.
40425         (Support for building libraries and executables): Add gperf.
40426         (Support for building documentation): Add agpl-3.0.
40427         (Misc): Add nocrash.
40428
40429 2008-05-10  Bruno Haible  <bruno@clisp.org>
40430
40431         * modules/unictype/gen-ctype: New file.
40432
40433 2008-05-10  Jim Meyering  <meyering@redhat.com>
40434
40435         Make chdir-safer.c more efficient on a system with no symlinks.
40436         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40437         also if ELOOP is zero.  Suggested by Bruno Haible.
40438
40439         Make chdir-safer.c slightly safer.
40440         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40441         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40442
40443         Avoid compile failure on systems without ELOOP (like mingw).
40444         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40445         Reported by Bruno Haible.
40446
40447 2008-05-10  Bruno Haible  <bruno@clisp.org>
40448
40449         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40450         (is_utf8_encoding): Use a case-insensitive comparison.
40451         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40452         streq.
40453
40454 2008-05-10  Bruno Haible  <bruno@clisp.org>
40455
40456         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40457         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40458         * lib/unilbrk/ulc-common.h (iconv_string_length,
40459         iconv_string_keeping_offsets): Remove declarations.
40460         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40461         Don't include <iconv.h>, streq.h, xsize.h.
40462         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40463         conversion.
40464         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40465         <iconv.h>, streq.h, xsize.h.
40466         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40467         conversion.
40468         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40469         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40470         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40471         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40472
40473 2008-05-10  Bruno Haible  <bruno@clisp.org>
40474
40475         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
40476         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
40477
40478         * modules/unilbrk/u32-width-linebreaks-tests: New file.
40479         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
40480
40481         * modules/unilbrk/u16-width-linebreaks-tests: New file.
40482         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
40483
40484         * modules/unilbrk/u8-width-linebreaks-tests: New file.
40485         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
40486
40487         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
40488         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
40489
40490         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
40491         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
40492
40493         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
40494         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
40495
40496         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
40497         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
40498
40499 2008-05-10  Bruno Haible  <bruno@clisp.org>
40500
40501         Split up 'linebreak' module.
40502         * lib/unilbrk.h: New file, based on lib/linebreak.h.
40503         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
40504         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
40505         modifications.
40506         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
40507         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
40508         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
40509         lib/linebreak.c.
40510         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
40511         lib/linebreak.c.
40512         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
40513         lib/linebreak.c.
40514         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
40515         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
40516         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
40517         lib/linebreak.c.
40518         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
40519         lib/linebreak.c.
40520         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
40521         lib/linebreak.c.
40522         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
40523         lib/linebreak.c.
40524         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
40525         lib/linebreak.c.
40526         * modules/unilbrk/base: New file.
40527         * modules/unilbrk/tables: New file.
40528         * modules/unilbrk/u8-possible-linebreaks: New file.
40529         * modules/unilbrk/u16-possible-linebreaks: New file.
40530         * modules/unilbrk/u32-possible-linebreaks: New file.
40531         * modules/unilbrk/ulc-common: New file.
40532         * modules/unilbrk/ulc-possible-linebreaks: New file.
40533         * modules/unilbrk/u8-width-linebreaks: New file.
40534         * modules/unilbrk/u16-width-linebreaks: New file.
40535         * modules/unilbrk/u32-width-linebreaks: New file.
40536         * modules/unilbrk/ulc-width-linebreaks: New file.
40537         * lib/linebreak.h: Remove file.
40538         * lib/linebreak.c: Remove file.
40539         * m4/linebreak.m4: Remove file.
40540         * modules/linebreak: Remove file.
40541         * NEWS: Mention the changes.
40542
40543 2008-05-09  Eric Blake  <ebb9@byu.net>
40544
40545         Add xmemdup0.
40546         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
40547         implementation.
40548         * lib/xmalloc.c (xmemdup0): New C implementation.
40549
40550 2008-05-08  Bruno Haible  <bruno@clisp.org>
40551
40552         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
40553
40554 2008-05-07  Eric Blake  <ebb9@byu.net>
40555
40556         Support cross-compilation of <wctype.h>.
40557         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
40558         AC_CACHE_CHECK.
40559
40560 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
40561
40562         * build-aux/vc-list-files: Add support for bzr.
40563
40564 2008-05-03  Jim Meyering  <meyering@redhat.com>
40565
40566         avoid failed assertion with tight malloc
40567         * tests/test-getndelim2.c: Correct an off-by-one assertion.
40568
40569 2008-05-03  Simon Josefsson  <simon@josefsson.org>
40570
40571         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
40572         are needed from arpa/inet.h.
40573         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
40574         Reported by Bruno Haible.
40575
40576 2008-05-02  Jim Meyering  <meyering@redhat.com>
40577
40578         avoid compilation error on FreeBSD 6
40579         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
40580
40581 2008-05-01  Jim Meyering  <meyering@redhat.com>
40582
40583         useless-if-before-free: correct --help's exit status description
40584         * build-aux/useless-if-before-free (usage): Like grep, exit 0
40585         for one or more matches, etc.  Reported by Bruno Haible.
40586
40587         vc-list-files: make the stand-alone gnulib test work
40588         * modules/vc-list-files-tests (configure.ac):
40589         Define and AC_SUBST abs_aux_dir.
40590         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
40591         $(abs_top_srcdir) to each script and having each of them
40592         duplicate the work of setting PATH, set PATH here, using
40593         the new variable, abs_aux_dir instead.
40594         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
40595         * tests/test-vc-list-files-git.sh: Likewise.
40596         Reported by Bruno Haible.
40597
40598 2008-05-01  Bruno Haible  <bruno@clisp.org>
40599
40600         * lib/getndelim2.c (getndelim2): Fix newsize computation during
40601         reallocation. Rename 'done' to 'found_delimiter'.
40602
40603 2008-05-01  Jim Meyering  <meyering@redhat.com>
40604
40605         vc-list-files: accommodate /bin/sh like the one from Solaris 10
40606         * build-aux/vc-list-files: Use `...`, not $(...).
40607
40608 2008-04-30  Jim Meyering  <meyering@redhat.com>
40609
40610         add tests for vc-list-files
40611         * modules/vc-list-files-tests: New module.
40612         * tests/test-vc-list-files-cvs.sh: New file.
40613         * tests/test-vc-list-files-git.sh: New file.
40614
40615         avoid a warning from gcc
40616         * lib/getndelim2.c (IF_LINT): Define.
40617         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
40618
40619         vc-list-files: work properly with build-aux/cvsu, too
40620         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
40621         to all cvs-based clauses.
40622
40623         vc-list-files: work properly in the CVS+awk case, too
40624         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
40625
40626         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
40627         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
40628         take more than one file argument, so .  Add quotes, just in case $dir
40629         ever contains a shell meta-character.  Prompted by Soren Hansen in
40630         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
40631
40632 2008-04-29  Eric Blake  <ebb9@byu.net>
40633
40634         Optimize getndelim2 to use block operations when possible.
40635         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
40636         freadseek, and memchr2.
40637         * lib/getndelim2.c (getndelim2): Use them for block reads.
40638
40639 2008-04-29  Bruno Haible  <bruno@clisp.org>
40640
40641         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
40642         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40643         * modules/inet_ntop (Depends-on): Add extensions.
40644         * modules/inet_pton (Depends-on): Likewise.
40645         Reported by Simon Josefsson.
40646
40647 2008-04-29  Jim Meyering  <meyering@redhat.com>
40648
40649         When the is more than one match in a block, match all of them.
40650         * build-aux/useless-if-before-free: Iterate through each block
40651         until there are no more matches.
40652
40653         Fix broken useless-if-before-free script.
40654         * build-aux/useless-if-before-free: Fix typo: missing "?" after
40655         the expression to match cast of argument to free-like function.
40656
40657 2008-04-29  Eric Blake  <ebb9@byu.net>
40658
40659         Use new header.
40660         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
40661
40662 2008-04-29  Jim Meyering  <meyering@redhat.com>
40663
40664         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
40665         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
40666         by gnulib to exist and to declare e.g., inet_ntop.
40667         Don't include "inet_ntop.h", now removed.
40668
40669         * m4/arpa_inet_h.m4: Remove trailing blanks.
40670
40671 2008-04-29  Eric Blake  <ebb9@byu.net>
40672
40673         Silence valgrind on safe reads beyond potential array bounds.
40674         * lib/rawmemchr.valgrind: New file.
40675         * lib/strchrnul.valgrind: Likewise.
40676         * modules/rawmemchr (Files): Distribute new file.
40677         * modules/strchrnul (Files): Likewise.
40678         Suggested by Bruno Haible.
40679
40680 2008-04-29  Bruno Haible  <bruno@clisp.org>
40681
40682         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
40683         (inet_ntop, inet_pton): Change portability warning's wording.
40684         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
40685         Invoke gl_CHECK_NEXT_HEADERS.
40686         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
40687         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
40688         set ARPA_INET_H.
40689         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40690         * modules/arpa_inet (Description): No longer only for systems that
40691         lack it.
40692         (Depends-on): Add include_next.
40693         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
40694         HAVE_ARPA_INET_H.
40695
40696 2008-04-29  Jim Meyering  <meyering@redhat.com>
40697
40698         * modules/mkdir (License): Re-license as LGPLv2+.
40699
40700 2008-04-29  Bruno Haible  <bruno@clisp.org>
40701
40702         * modules/rawmemchr (Maintainer): Set to Eric.
40703         * modules/strchrnul (Maintainer): Likewise.
40704
40705 2008-04-29  Simon Josefsson  <simon@josefsson.org>
40706
40707         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
40708         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
40709
40710         * modules/arpa_inet (arpa/inet.h): Use them.
40711
40712 2008-04-28  Eric Blake  <ebb9@byu.net>
40713
40714         Test getndelim2.
40715         * modules/getndelim2-tests: New file.
40716         * tests/test-getndelim2.c: Likewise.
40717         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
40718         stream.
40719         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
40720
40721         * MODULES.html.sh: Document new module.
40722
40723 2008-04-20  Bruno Haible  <bruno@clisp.org>
40724
40725         * lib/c-stack.c (die): Use raise.
40726         * modules/c-stack (Depends-on): Add raise.
40727
40728 2008-04-28  Bruno Haible  <bruno@clisp.org>
40729
40730         Expect rpmatch to be declared.
40731         * lib/yesno.c (rpmatch): Remove declaration.
40732
40733         Declare rpmatch.
40734         * lib/stdlib.in.h (rpmatch): New declaration.
40735         * lib/rpmatch.c: Include <stdlib.h> first.
40736         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
40737         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
40738         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
40739         HAVE_RPMATCH.
40740         * modules/rpmatch (Depends-on): Add stdlib, extensions.
40741         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40742         (Include): Set to <stdlib.h>.
40743         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
40744         HAVE_RPMATCH.
40745         * NEWS: Document the change.
40746
40747 2008-04-28  Bruno Haible  <bruno@clisp.org>
40748
40749         Change rpmatch to use nl_langinfo when appropriate.
40750         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
40751         (N_): New macro.
40752         (localized_pattern): New function/macro.
40753         (try): Remove match, nomatch arguments. Copy the pattern into safe
40754         memory before caching it.
40755         (rpmatch): Use localized_pattern. Add translator comments.
40756         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
40757         Suggested by Eric Blake.
40758         * modules/rpmatch (Depends-on): Add stdbool.
40759
40760 2008-04-28  Eric Blake  <ebb9@byu.net>
40761
40762         Add rawmemchr module, matching glibc.
40763         * modules/string (Makefile.am): New indicator.
40764         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
40765         * lib/string.in.h (rawmemchr): Declare when appropriate.
40766         * modules/rawmemchr: New file.
40767         * m4/rawmemchr.m4: Likewise.
40768         * lib/rawmemchr.c: Likewise.
40769         * modules/rawmemchr-tests: Likewise.
40770         * tests/test-rawmemchr.c: Likewise.
40771         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
40772         module.
40773         * modules/strchrnul (Depends-on): Add rawmemchr.
40774         * lib/strchrnul.c (strchrnul): Optimize a corner case.
40775
40776         Whitespace cleanup.
40777         * tests/test-strchrnul.c: Reindent.
40778         * lib/strchrnul.c: Likewise.
40779
40780         Optimize and test strchrnul.
40781         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
40782         * modules/strchrnul-tests: New file.
40783         * tests/test-strchrnul.c: Likewise.
40784
40785         Remove intprops dependency.
40786         * modules/memchr (Depends-on): Remove intprops.
40787         * modules/memrchr (Depends-on): Likewise.
40788         * modules/memchr2 (Depends-on): Likewise.
40789         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
40790         * lib/memrchr.c (__memrchr): Likewise.
40791         * lib/memrchr2.c (memchr2): Likewise.
40792         Reported by Simon Josefsson.
40793
40794 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40795
40796         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
40797         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40798
40799 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40800
40801         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
40802
40803         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
40804
40805         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
40806
40807         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
40808         declarations.
40809         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
40810
40811         * m4/inet_pton.m4: Don't check for header files.
40812
40813         * m4/inet_ntop.m4: Don't check for header files.
40814
40815 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40816
40817         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
40818         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
40819         trigger for cygwin).
40820         Reported by Bruno Haible  <bruno@clisp.org>.
40821
40822 2008-04-28  Bruno Haible  <bruno@clisp.org>
40823
40824         * doc/posix-functions/strdup.texi: Mention mingw problem.
40825
40826 2008-04-27  Bruno Haible  <bruno@clisp.org>
40827
40828         * modules/stat-time-tests (Depends-on): Add sleep.
40829         * tests/test-stat-time.c (force_unlink): New function.
40830         (cleanup): Use it.
40831         (test_mtime): Remove the ctime related tests.
40832         (test_ctime): New function, containing the ctime related tests.
40833         (main): Call test_ctime, except on native Windows platforms.
40834
40835 2008-04-27  Bruno Haible  <bruno@clisp.org>
40836
40837         * lib/rpmatch.c (rpmatch): Add some comments.
40838         Reported by James Youngman <jay@gnu.org>.
40839
40840 2008-04-27  Bruno Haible  <bruno@clisp.org>
40841
40842         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
40843         quiet NaNs.
40844
40845 2008-04-27  Bruno Haible  <bruno@clisp.org>
40846
40847         Make test-yesno.sh work on mingw.
40848         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
40849         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
40850         (main): Set stdin to binary mode.
40851         * modules/yesno-tests (Depends-on): Add binary-io.
40852
40853 2008-04-27  Bruno Haible  <bruno@clisp.org>
40854
40855         Fix 'isfinite' on x86, x86_64, ia64 platforms.
40856         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
40857         argument that lie outside the IEEE 854 domain.
40858         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
40859         (gl_ISFINITE): Use it.
40860         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
40861
40862 2008-04-27  Bruno Haible  <bruno@clisp.org>
40863
40864         Allow local renaming in config.h.
40865         * lib/memrchr.c (memrchr): Don't undefine outside libc.
40866
40867 2008-04-27  Bruno Haible  <bruno@clisp.org>
40868
40869         * lib/memchr.c (__memchr): Change type of 'i'.
40870         * lib/memchr2.c (memchr2): Likewise.
40871
40872 2008-04-26  Eric Blake  <ebb9@byu.net>
40873         and Bruno Haible  <bruno@clisp.org>
40874
40875         Optimize and test memrchr.
40876         * modules/memrchr (Depends-on): Add intprops.
40877         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
40878         * modules/memrchr-tests: New file.
40879         * tests/test-memrchr.c: New file.
40880
40881 2008-04-26  Bruno Haible  <bruno@clisp.org>
40882
40883         Add tentative support for DragonFly BSD.
40884         * lib/stdio-impl.h: Add macros for DragonFly BSD.
40885         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
40886         fp.
40887         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40888         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
40889         * lib/fpurge.c (fpurge): Likewise.
40890         * lib/freadable.c (freaadable): Likewise.
40891         * lib/freadahead.c (freadahead): Likewise.
40892         * lib/freading.c (freading): Likewise.
40893         * lib/freadptr.c (freadptr): Likewise.
40894         * lib/freadseek.c (freadptrinc): Likewise.
40895         * lib/fseeko.c (fseeko): Likewise.
40896         * lib/fseterr.c (fseterr): Likewise.
40897         * lib/fwritable.c (fwritable): Likewise.
40898         * lib/fwriting.c (fwriting): Likewise.
40899
40900 2008-04-26  Bruno Haible  <bruno@clisp.org>
40901
40902         * lib/stdio-impl.h: New file.
40903         * lib/fbufmode.c: Include stdio-impl.h.
40904         (fbufmode): Use fp_, remove redundant #defines.
40905         * lib/fflush.c: Include stdio-impl.h.
40906         (clear_ungetc_buffer): Remove redundant #defines.
40907         * lib/fpurge.c: Include stdio-impl.h.
40908         (fpurge): Remove redundant #defines.
40909         * lib/freadable.c: Include stdio-impl.h.
40910         (freadable): Remove redundant #defines.
40911         * lib/freadahead.c: Include stdio-impl.h.
40912         (freadahead): Remove redundant #defines.
40913         * lib/freading.c: Include stdio-impl.h.
40914         (freading): Remove redundant #defines.
40915         * lib/freadptr.c: Include stdio-impl.h.
40916         (freadptr): Remove redundant #defines.
40917         * lib/freadseek.c: Include stdio-impl.h.
40918         (freadptrinc): Remove redundant #defines.
40919         * lib/fseeko.c: Include stdio-impl.h.
40920         (rpl_fseeko): Remove redundant #defines.
40921         * lib/fseterr.c: Include stdio-impl.h.
40922         (fseterr): Remove redundant #defines.
40923         * lib/fwritable.c: Include stdio-impl.h.
40924         (fwritable: Remove redundant #defines.
40925         * lib/fwriting.c: Include stdio-impl.h.
40926         (fwriting): Remove redundant #defines.
40927         * modules/fbufmode (Files): Add lib/stdio-impl.h.
40928         * modules/fflush (Files): Likewise.
40929         * modules/fpurge (Files): Likewise.
40930         * modules/freadable (Files): Likewise.
40931         * modules/freadahead (Files): Likewise.
40932         * modules/freading (Files): Likewise.
40933         * modules/freadptr (Files): Likewise.
40934         * modules/freadseek (Files): Likewise.
40935         * modules/fseeko (Files): Likewise.
40936         * modules/fseterr (Files): Likewise.
40937         * modules/fwritable (Files): Likewise.
40938         * modules/fwriting (Files): Likewise.
40939
40940 2008-04-26  Bruno Haible  <bruno@clisp.org>
40941
40942         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40943         restore_seek_optimization, update_fpos_cache): New functions, extracted
40944         from rpl_fflush.
40945         (rpl_fflush): Use them.
40946         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
40947         (gl_REPLACE_FFLUSH): Use it.
40948
40949 2008-04-26  Bruno Haible  <bruno@clisp.org>
40950
40951         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
40952         on Solaris.
40953         * tests/test-xstrtoimax.sh: Likewise.
40954         * tests/test-xstrtoumax.sh: Likewise.
40955         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40956
40957 2008-04-26  Bruno Haible  <bruno@clisp.org>
40958
40959         * modules/memchr-tests: New file.
40960         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
40961
40962 2008-04-26  Eric Blake  <ebb9@byu.net>
40963             Bruno Haible  <bruno@clisp.org>
40964
40965         * lib/memchr.c: Include intprops.h.
40966         (__memchr): Optimize parallel detection of matching bytes. Rename local
40967         variables. Add explanatory comments.
40968
40969 2008-04-26  Bruno Haible  <bruno@clisp.org>
40970
40971         Fix module 'memchr', broken since 2000-10-28.
40972         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
40973
40974 2008-04-26  Bruno Haible  <bruno@clisp.org>
40975
40976         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
40977         comments.
40978
40979 2008-04-25  Eric Blake  <ebb9@byu.net>
40980
40981         Use native fstatat on cygwin 1.7.0.
40982         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
40983         first.
40984
40985 2008-04-23  Eric Blake  <ebb9@byu.net>
40986
40987         Improve memchr2 performance.
40988         * lib/memchr2.c (memchr2): Further optimize parallel detection of
40989         NUL bytes.
40990         * modules/memchr2 (Depends-on): Use intprops.h.
40991
40992 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40993
40994         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
40995         an inline function instead of a CPP macro.  Patch by Ben Pfaff
40996         <blp@cs.stanford.edu>.
40997
40998 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40999
41000         * lib/arpa_inet.in.h: New file.
41001
41002         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
41003         (Makefile.am): Sed in substitute header file.
41004
41005         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
41006         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
41007
41008         * modules/inet_ntop (configure.ac): Use
41009         gl_ARPA_INET_MODULE_INDICATOR.
41010
41011         * modules/inet_pton (configure.ac): Use
41012         gl_ARPA_INET_MODULE_INDICATOR.
41013
41014 2008-04-22  Jim Meyering  <meyering@redhat.com>
41015
41016         * modules/verify (License): Re-license as LGPLv2+.
41017
41018 2008-04-22  Simon Josefsson  <simon@josefsson.org>
41019
41020         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
41021         parameter to void* as per POSIX standard (MinGW uses char*).
41022
41023 2008-04-21  Bruno Haible  <bruno@clisp.org>
41024
41025         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41026         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41027         Define to replacements if REPLACE_ISWCNTRL is 1.
41028         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
41029         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
41030         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
41031         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
41032         what it fixes.
41033         * doc/posix-functions/iswalpha.texi: Likewise.
41034         * doc/posix-functions/iswblank.texi: Likewise.
41035         * doc/posix-functions/iswcntrl.texi: Likewise.
41036         * doc/posix-functions/iswdigit.texi: Likewise.
41037         * doc/posix-functions/iswgraph.texi: Likewise.
41038         * doc/posix-functions/iswlower.texi: Likewise.
41039         * doc/posix-functions/iswprint.texi: Likewise.
41040         * doc/posix-functions/iswpunct.texi: Likewise.
41041         * doc/posix-functions/iswspace.texi: Likewise.
41042         * doc/posix-functions/iswupper.texi: Likewise.
41043         * doc/posix-functions/iswxdigit.texi: Likewise.
41044         Reported by Alain Guibert.
41045
41046 2008-04-21  Bruno Haible  <bruno@clisp.org>
41047
41048         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
41049         Patch by Alain Guibert.
41050
41051 2008-04-21  Bruno Haible  <bruno@clisp.org>
41052
41053         Fix test failures on mingw.
41054         * tests/test-xstrtol.c (print_no_progname): New function.
41055         (main): Install it in error_print_progname hook.
41056         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
41057         * tests/test-xstrtoimax.sh: Likewise.
41058         * tests/test-xstrtoumax.sh: Likewise.
41059
41060 2008-04-21  Bruno Haible  <bruno@clisp.org>
41061
41062         Fix test failure on mingw.
41063         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
41064
41065 2008-04-21  Bruno Haible  <bruno@clisp.org>
41066
41067         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
41068         Actually assign a value.
41069
41070 2008-04-20  Bruno Haible  <bruno@clisp.org>
41071
41072         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
41073         take 2.
41074         * lib/canonicalize.c (canonicalize_file_name): Elide if the
41075         'canonicalize-lgpl' module is also used.
41076         * lib/canonicalize-lgpl.c: Undo last change.
41077         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
41078
41079 2008-04-20  Bruno Haible  <bruno@clisp.org>
41080
41081         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
41082         config.h. Provide _mkdir based fallback for mingw.
41083         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
41084         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
41085         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
41086         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
41087         rather than defining mkdir in config.h.
41088         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
41089         (gl_SYS_STAT_H_DEFAULTS): New macro.
41090         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
41091         HAVE_IO_H any more.
41092         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
41093         HAVE_DECL_MKDIR and HAVE_IO_H.
41094
41095 2008-04-20  Bruno Haible  <bruno@clisp.org>
41096
41097         * lib/isapipe.c: Port to native Windows platforms.
41098
41099 2008-04-20  Bruno Haible  <bruno@clisp.org>
41100
41101         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
41102
41103 2008-04-21  Eric Blake  <ebb9@byu.net>
41104
41105         Work around preprocessors that don't handle UINTMAX_MAX.
41106         * lib/memchr2.c (memchr2): Avoid embedded #if.
41107         Reported by Alain Guibert, fix suggested by Bruno Haible.
41108
41109 2008-04-21  Simon Josefsson  <simon@josefsson.org>
41110
41111         * doc/posix-functions/strftime.texi (strftime): Explain better
41112         Windows incompatibility.  Suggested by Micah Cowan
41113         <micah@cowan.name>.
41114
41115 2008-04-20  Bruno Haible  <bruno@clisp.org>
41116
41117         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
41118         unistr/u8-mblen.
41119
41120 2008-04-20  Bruno Haible  <bruno@clisp.org>
41121
41122         Fix test failure on platforms with non-GNU iconv.
41123         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
41124         (U_TO_U8): Use it, rather than u16_to_u8.
41125         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
41126         units at the end of the input string.
41127         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
41128
41129 2008-04-20  Bruno Haible  <bruno@clisp.org>
41130
41131         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
41132         when the resulting length is 0.
41133         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
41134
41135 2008-04-20  Bruno Haible  <bruno@clisp.org>
41136
41137         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
41138         works.
41139         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
41140
41141 2008-04-20  Bruno Haible  <bruno@clisp.org>
41142
41143         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
41144         * modules/tsearch-tests (configure.ac): Test for initstate function.
41145
41146 2008-04-20  Bruno Haible  <bruno@clisp.org>
41147
41148         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
41149         for nlink_t if missing.
41150         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
41151
41152 2008-04-19  Bruno Haible  <bruno@clisp.org>
41153
41154         Work around snprintf bug on Linux libc5.
41155         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
41156         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41157         gl_SNPRINTF_SIZE1.
41158         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41159         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
41160         that test failed.
41161         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41162         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
41163         * modules/snprintf (Files): Add m4/printf.m4.
41164         * modules/vsnprintf (Files): Likewise.
41165         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
41166         * doc/posix-functions/vsnprintf.texi: Likewise.
41167
41168 2008-04-19  Bruno Haible  <bruno@clisp.org>
41169
41170         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
41171         from 0.0058 to less than 10^-7.
41172
41173 2008-04-19  Bruno Haible  <bruno@clisp.org>
41174
41175         Fix rounding when a precision is given.
41176         * lib/vasnprintf.c (is_borderline): New function.
41177         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
41178         9...9x.
41179         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
41180         %e, %g.
41181         * tests/test-vasprintf-posix.c (test_function): Likewise.
41182         * tests/test-snprintf-posix.h (test_function): Likewise.
41183         * tests/test-sprintf-posix.h (test_function): Likewise.
41184         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
41185         * tests/test-printf-posix.h (test_function): Likewise.
41186         * tests/test-printf-posix.output: Update.
41187         Reported by John Darrington <john@darrington.wattle.id.au> via
41188         Ben Pfaff <blp@cs.stanford.edu>.
41189
41190 2008-04-18  Simon Josefsson  <simon@josefsson.org>
41191
41192         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41193         Suggested by Bruno Haible <bruno@clisp.org>.
41194
41195 2008-04-17  Bruno Haible  <bruno@clisp.org>
41196
41197         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41198         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41199         implementation.
41200         Patch by Bruce Merry <bmerry@gmail.com>.
41201
41202 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41203
41204         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41205         doesn't work under Windows.
41206
41207 2008-04-16  Bruno Haible  <bruno@clisp.org>
41208
41209         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41210         New macros.
41211         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41212         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41213         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41214         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41215         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41216         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41217         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41218         macros.
41219         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41220         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41221         Northern Sotho, Uighur.
41222
41223 2008-04-16  Bruno Haible  <bruno@clisp.org>
41224
41225         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41226         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41227         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41228         Reported by Daniel Bergström <daniel@octocode.com>.
41229
41230 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41231             Bruno Haible  <bruno@clisp.org>
41232
41233         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41234         function.
41235         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41236         New functions, mostly extracted from gl_locale_name_default.
41237         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41238
41239 2008-04-16  Eric Blake  <ebb9@byu.net>
41240
41241         Adjust strtod detection to catch glibc 2.7 bug.
41242         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41243         Reported by John Gatewood Ham.
41244
41245 2008-04-16  Bruno Haible  <bruno@clisp.org>
41246
41247         Add tentative support for Linux libc5.
41248         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41249         * lib/fpurge.c (fpurge): Likewise.
41250         * lib/freadable.c (freadable): Likewise.
41251         * lib/freadahead.c (freadahead): Likewise.
41252         * lib/freading.c (freading): Likewise.
41253         * lib/freadptr.c (freadptr): Likewise.
41254         * lib/freadseek.c (freadptrinc): Likewise.
41255         * lib/fseeko.c (rpl_fseeko): Likewise.
41256         * lib/fseterr.c (fseterr): Likewise.
41257         * lib/fwritable.c (fwritable): Likewise.
41258         * lib/fwriting.c (fwriting): Likewise.
41259         Reported by Alain Guibert <alguibert+bts@free.fr>.
41260
41261 2008-04-15  Bruno Haible  <bruno@clisp.org>
41262
41263         * modules/mathl (configure.ac): Define module indicator.
41264
41265 2008-04-15  Bruno Haible  <bruno@clisp.org>
41266
41267         * lib/logl.c (logl): Remove unused variables.
41268
41269 2008-04-15  Bruno Haible  <bruno@clisp.org>
41270
41271         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
41272         fails.
41273
41274 2008-04-15  Bruno Haible  <bruno@clisp.org>
41275
41276         * lib/trim.c (trim2): Fix argument of isspace() macro.
41277
41278 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
41279
41280         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
41281         to 0.
41282         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
41283
41284 2008-04-14  Bruno Haible  <bruno@clisp.org>
41285
41286         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
41287         AC_LANG_PROGRAM argument.
41288         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
41289         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
41290         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41291         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41292         * m4/math_h.m4 (gl_MATH_H): Likewise.
41293         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41294         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41295         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41296         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
41297         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41298         * m4/regex.m4 (gl_REGEX): Likewise.
41299         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
41300         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
41301         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41302         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
41303         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41304         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41305         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41306         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41307
41308 2008-04-14  Jim Meyering  <meyering@redhat.com>
41309
41310         test-strtod: fix typos: s/abs/fabs/
41311         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
41312
41313 2008-04-13  Bruno Haible  <bruno@clisp.org>
41314
41315         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41316         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41317         module is also used and while not building the reloc-wrapper.
41318
41319 2008-04-13  Bruno Haible  <bruno@clisp.org>
41320
41321         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41322
41323 2008-04-13  Bruno Haible  <bruno@clisp.org>
41324
41325         Fix AIX compilation failure introduced on 2008-04-02.
41326         * tests/test-frexp.c (exp): Undefine before redefining.
41327         * tests/test-frexpl.c (exp): Likewise.
41328
41329 2008-04-13  Bruno Haible  <bruno@clisp.org>
41330
41331         Work around a HP-UX stdio bug.
41332         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41333         * tests/test-ftello.c (main): Likewise.
41334         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41335         * doc/posix-functions/ftello.texi: Likewise.
41336
41337 2008-04-13  Bruno Haible  <bruno@clisp.org>
41338
41339         Make test-signbit pass on HP-UX/hppa.
41340         * tests/test-signbit.c (minus_zerol): New variable.
41341         (test_signbitl): Use it.
41342
41343 2008-04-13  Bruno Haible  <bruno@clisp.org>
41344
41345         Make truncl work on OSF/1 4.0.
41346         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41347         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41348         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41350         HAVE_DECL_TRUNCL.
41351         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41352         HAVE_DECL_TRUNCL.
41353         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41354
41355 2008-04-13  Bruno Haible  <bruno@clisp.org>
41356
41357         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41358
41359 2008-04-13  Bruno Haible  <bruno@clisp.org>
41360
41361         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41362         expression, so as to avoid HP-UX 11 cc compiler bug.
41363
41364 2008-04-13  Bruno Haible  <bruno@clisp.org>
41365
41366         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41367
41368 2008-04-13  Bruno Haible  <bruno@clisp.org>
41369
41370         * lib/git-merge-changelog.c: Remove empty declaration outside of
41371         functions.
41372
41373 2008-04-13  Bruno Haible  <bruno@clisp.org>
41374
41375         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41376
41377 2008-04-13  Bruno Haible  <bruno@clisp.org>
41378
41379         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41380         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41381         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41382         also if it exists but lacks definitions of the SHUT_* macros.
41383         * modules/sys_socket (Description): Update.
41384         Reported by Elbert Pol <e.pol@chello.nl>.
41385
41386 2008-04-13  Bruno Haible  <bruno@clisp.org>
41387
41388         * lib/localcharset.c (OS2): Don't redefine if already defined.
41389         Reported by Elbert Pol <e.pol@chello.nl>.
41390
41391 2008-04-13  Bruno Haible  <bruno@clisp.org>
41392
41393         * lib/binary-io.h [__EMX__]: Include <io.h>.
41394         Reported by Elbert Pol <e.pol@chello.nl>.
41395
41396 2008-04-12  Bruno Haible  <bruno@clisp.org>
41397
41398         * lib/fpucw.h: Enable the definitions also for x86_64.
41399         Needed for NetBSD/x86_64.
41400         Reported by Thomas Klausner <tk@giga.or.at>.
41401
41402 2008-04-12  Bruno Haible  <bruno@clisp.org>
41403
41404         * tests/test-strtod.c: Include isnand.h.
41405         (main): Use isnand instead of isnan.
41406         Reported by Jim Meyering.
41407
41408 2008-04-12  Bruno Haible  <bruno@clisp.org>
41409
41410         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41411         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41412
41413 2008-04-12  Jim Meyering  <meyering@redhat.com>
41414
41415         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41416
41417 2008-04-12  Bruno Haible  <bruno@clisp.org>
41418
41419         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41420         Reported by Elbert Pol <e.pol@chello.nl>.
41421
41422 2008-04-12  Eric Blake  <ebb9@byu.net>
41423
41424         Work around Solaris 10 math.h bug.
41425         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41426         (gl_MATH_H_DEFAULTS): Set up default.
41427         * modules/math (Makefile.am): Replace new indicators.
41428         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41429         * tests/test-math.c (main): Test this.
41430         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41431         * doc/posix-headers/math.texi (math.h): Mention bug.
41432         Reported by Nelson H. F. Beebe and Jim Meyering.
41433
41434 2008-04-11  Bruno Haible  <bruno@clisp.org>
41435
41436         Adapt to future versions of Apple GCC.
41437         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41438         Reported by Peter O'Gorman <peter@pogma.com>.
41439
41440 2008-04-11  Bruno Haible  <bruno@clisp.org>
41441
41442         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41443
41444 2008-04-11  Bruno Haible  <bruno@clisp.org>
41445
41446         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41447
41448         * modules/getaddrinfo-tests (Makefile.am): Define
41449         test_getaddrinfo_LDADD.
41450
41451 2008-04-11  Bruno Haible  <bruno@clisp.org>
41452
41453         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41454         (init): Fix syntax error.
41455         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41456         is declared.
41457
41458 2008-04-11  Bruno Haible  <bruno@clisp.org>
41459
41460         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41461         * modules/glob (Depends-on): Add stdbool.
41462
41463 2008-04-11  Bruno Haible  <bruno@clisp.org>
41464
41465         * lib/trim.c: Include <string.h>.
41466
41467 2008-04-11  Eric Blake  <ebb9@byu.net>
41468
41469         Avoid compile failure on OS/2.
41470         * lib/regex_internal.h (internal_function): Disable optimization
41471         on OS/2 (__EMX__), where it caused compiler error.
41472         Reported by Elbert Pol.
41473
41474 2008-04-11  Bruno Haible  <bruno@clisp.org>
41475
41476         Flush the standard error stream before aborting. Needed on mingw.
41477         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
41478         * tests/test-array_list.c (ASSERT): Likewise.
41479         * tests/test-array_oset.c (ASSERT): Likewise.
41480         * tests/test-avltree_list.c (ASSERT): Likewise.
41481         * tests/test-avltree_oset.c (ASSERT): Likewise.
41482         * tests/test-avltreehash_list.c (ASSERT): Likewise.
41483         * tests/test-binary-io.c (ASSERT): Likewise.
41484         * tests/test-byteswap.c (ASSERT): Likewise.
41485         * tests/test-c-ctype.c (ASSERT): Likewise.
41486         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
41487         * tests/test-c-strcasestr.c (ASSERT): Likewise.
41488         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
41489         * tests/test-c-strstr.c (ASSERT): Likewise.
41490         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
41491         * tests/test-canonicalize.c (ASSERT): Likewise.
41492         * tests/test-carray_list.c (ASSERT): Likewise.
41493         * tests/test-ceilf1.c (ASSERT): Likewise.
41494         * tests/test-ceilf2.c (ASSERT): Likewise.
41495         * tests/test-ceill.c (ASSERT): Likewise.
41496         * tests/test-count-one-bits.c (ASSERT): Likewise.
41497         * tests/test-fbufmode.c (ASSERT): Likewise.
41498         * tests/test-fflush2.c (ASSERT): Likewise.
41499         * tests/test-floorf1.c (ASSERT): Likewise.
41500         * tests/test-floorf2.c (ASSERT): Likewise.
41501         * tests/test-floorl.c (ASSERT): Likewise.
41502         * tests/test-fopen.c (ASSERT): Likewise.
41503         * tests/test-fpending.c (ASSERT): Likewise.
41504         * tests/test-fprintf-posix.c (ASSERT): Likewise.
41505         * tests/test-fpurge.c (ASSERT): Likewise.
41506         * tests/test-freadable.c (ASSERT): Likewise.
41507         * tests/test-freadahead.c (ASSERT): Likewise.
41508         * tests/test-freading.c (ASSERT): Likewise.
41509         * tests/test-freadptr.c (ASSERT): Likewise.
41510         * tests/test-freadptr2.c (ASSERT): Likewise.
41511         * tests/test-freadseek.c (ASSERT): Likewise.
41512         * tests/test-freopen.c (ASSERT): Likewise.
41513         * tests/test-frexp.c (ASSERT): Likewise.
41514         * tests/test-frexpl.c (ASSERT): Likewise.
41515         * tests/test-fseek.c (ASSERT): Likewise.
41516         * tests/test-fseeko.c (ASSERT): Likewise.
41517         * tests/test-fstrcmp.c (ASSERT): Likewise.
41518         * tests/test-ftell.c (ASSERT): Likewise.
41519         * tests/test-ftello.c (ASSERT): Likewise.
41520         * tests/test-func.c (ASSERT): Likewise.
41521         * tests/test-fwritable.c (ASSERT): Likewise.
41522         * tests/test-fwriting.c (ASSERT): Likewise.
41523         * tests/test-getdelim.c (ASSERT): Likewise.
41524         * tests/test-getline.c (ASSERT): Likewise.
41525         * tests/test-i-ring.c (ASSERT): Likewise.
41526         * tests/test-iconv-utf.c (ASSERT): Likewise.
41527         * tests/test-iconv.c (ASSERT): Likewise.
41528         * tests/test-isfinite.c (ASSERT): Likewise.
41529         * tests/test-isnand.c (ASSERT): Likewise.
41530         * tests/test-isnanf.c (ASSERT): Likewise.
41531         * tests/test-isnanl.h (ASSERT): Likewise.
41532         * tests/test-ldexpl.c (ASSERT): Likewise.
41533         * tests/test-linked_list.c (ASSERT): Likewise.
41534         * tests/test-linkedhash_list.c (ASSERT): Likewise.
41535         * tests/test-localename.c (ASSERT): Likewise.
41536         * tests/test-lseek.c (ASSERT): Likewise.
41537         * tests/test-mbscasecmp.c (ASSERT): Likewise.
41538         * tests/test-mbscasestr1.c (ASSERT): Likewise.
41539         * tests/test-mbscasestr2.c (ASSERT): Likewise.
41540         * tests/test-mbscasestr3.c (ASSERT): Likewise.
41541         * tests/test-mbscasestr4.c (ASSERT): Likewise.
41542         * tests/test-mbschr.c (ASSERT): Likewise.
41543         * tests/test-mbscspn.c (ASSERT): Likewise.
41544         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
41545         * tests/test-mbspbrk.c (ASSERT): Likewise.
41546         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
41547         * tests/test-mbsrchr.c (ASSERT): Likewise.
41548         * tests/test-mbsspn.c (ASSERT): Likewise.
41549         * tests/test-mbsstr1.c (ASSERT): Likewise.
41550         * tests/test-mbsstr2.c (ASSERT): Likewise.
41551         * tests/test-mbsstr3.c (ASSERT): Likewise.
41552         * tests/test-memchr2.c (ASSERT): Likewise.
41553         * tests/test-memmem.c (ASSERT): Likewise.
41554         * tests/test-open.c (ASSERT): Likewise.
41555         * tests/test-printf-frexp.c (ASSERT): Likewise.
41556         * tests/test-printf-frexpl.c (ASSERT): Likewise.
41557         * tests/test-printf-posix.c (ASSERT): Likewise.
41558         * tests/test-quotearg.c (ASSERT): Likewise.
41559         * tests/test-rbtree_list.c (ASSERT): Likewise.
41560         * tests/test-rbtree_oset.c (ASSERT): Likewise.
41561         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
41562         * tests/test-round1.c (ASSERT): Likewise.
41563         * tests/test-roundf1.c (ASSERT): Likewise.
41564         * tests/test-roundl.c (ASSERT): Likewise.
41565         * tests/test-signbit.c (ASSERT): Likewise.
41566         * tests/test-sleep.c (ASSERT): Likewise.
41567         * tests/test-snprintf-posix.c (ASSERT): Likewise.
41568         * tests/test-snprintf.c (ASSERT): Likewise.
41569         * tests/test-sprintf-posix.c (ASSERT): Likewise.
41570         * tests/test-stat-time.c (ASSERT): Likewise.
41571         * tests/test-strcasestr.c (ASSERT): Likewise.
41572         * tests/test-strerror.c (ASSERT): Likewise.
41573         * tests/test-striconv.c (ASSERT): Likewise.
41574         * tests/test-striconveh.c (ASSERT): Likewise.
41575         * tests/test-striconveha.c (ASSERT): Likewise.
41576         * tests/test-strsignal.c (ASSERT): Likewise.
41577         * tests/test-strstr.c (ASSERT): Likewise.
41578         * tests/test-strtod.c (ASSERT): Likewise.
41579         * tests/test-trunc1.c (ASSERT): Likewise.
41580         * tests/test-trunc2.c (ASSERT): Likewise.
41581         * tests/test-truncf1.c (ASSERT): Likewise.
41582         * tests/test-truncf2.c (ASSERT): Likewise.
41583         * tests/test-truncl.c (ASSERT): Likewise.
41584         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
41585         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
41586         * tests/test-vasnprintf.c (ASSERT): Likewise.
41587         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
41588         * tests/test-vasprintf.c (ASSERT): Likewise.
41589         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
41590         * tests/test-vprintf-posix.c (ASSERT): Likewise.
41591         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
41592         * tests/test-vsnprintf.c (ASSERT): Likewise.
41593         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
41594         * tests/test-wcwidth.c (ASSERT): Likewise.
41595         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
41596         * tests/test-xprintf-posix.c (ASSERT): Likewise.
41597         * tests/test-xvasprintf.c (ASSERT): Likewise.
41598         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
41599         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
41600         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
41601         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
41602         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
41603         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
41604         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
41605         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
41606         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
41607         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
41608         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
41609         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
41610         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
41611         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
41612         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
41613         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
41614         * tests/unictype/test-block_list.c (ASSERT): Likewise.
41615         * tests/unictype/test-block_of.c (ASSERT): Likewise.
41616         * tests/unictype/test-block_test.c (ASSERT): Likewise.
41617         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
41618         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
41619         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
41620         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
41621         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
41622         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
41623         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
41624         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
41625         * tests/unictype/test-combining.c (ASSERT): Likewise.
41626         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
41627         * tests/unictype/test-digit.c (ASSERT): Likewise.
41628         * tests/unictype/test-mirror.c (ASSERT): Likewise.
41629         * tests/unictype/test-numeric.c (ASSERT): Likewise.
41630         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
41631         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
41632         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
41633         * tests/unictype/test-scripts.c (ASSERT): Likewise.
41634         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
41635         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
41636         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
41637         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
41638         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
41639         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
41640         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
41641         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
41642         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
41643         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
41644         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
41645         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
41646         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
41647         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
41648         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
41649         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
41650         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
41651         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
41652         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
41653         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
41654         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
41655         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
41656         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
41657         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
41658         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
41659         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
41660         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
41661         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
41662         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
41663         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
41664         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
41665         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
41666         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
41667         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
41668         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
41669         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
41670         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
41671         Reported by Eric Blake.
41672
41673 2008-04-11  Bruno Haible  <bruno@clisp.org>
41674
41675         * lib/wchar.in.h: Tweak comment.
41676
41677 2008-04-11  Bruno Haible  <bruno@clisp.org>
41678
41679         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
41680         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
41681         gl_COMMON.
41682         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
41683
41684 2008-04-11  Bruno Haible  <bruno@clisp.org>
41685
41686         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
41687
41688 2008-04-11  Simon Josefsson  <simon@josefsson.org>
41689
41690         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
41691         of attempting to use non-existing /dev/*random.  Based on patch
41692         from Adam Strzelecki <ono@java.pl> in
41693         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
41694
41695 2008-04-08  Bruno Haible  <bruno@clisp.org>
41696
41697         Add tentative support for emx+gcc.
41698         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
41699         * lib/fpurge.c (fpurge): Likewise.
41700         * lib/freadable.c (freadable): Likewise.
41701         * lib/freadahead.c (freadahead): Likewise.
41702         * lib/freading.c (freading): Likewise.
41703         * lib/freadptr.c (freadptr): Likewise.
41704         * lib/freadseek.c (freadptrinc): Likewise.
41705         * lib/fseeko.c (rpl_fseeko): Likewise.
41706         * lib/fseterr.c (fseterr): Likewise.
41707         * lib/fwritable.c (fwritable): Likewise.
41708         * lib/fwriting.c (fwriting): Likewise.
41709         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
41710
41711 2008-04-09  Eric Blake  <ebb9@byu.net>
41712
41713         Avoid some autoconf warnings.
41714         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
41715         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
41716         * m4/afs.m4 (gl_AFS): Likewise.
41717         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
41718         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
41719         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41720         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
41721         (gl_INTEGER_TYPE_SUFFIX): Likewise.
41722         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
41723         (AC_CHECK_DECLS_ONCE): Likewise.
41724         Rename file...
41725         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
41726         gnulib-tool requires autoconf 2.59 or better.
41727         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
41728
41729 2008-04-08  Eric Blake  <ebb9@byu.net>
41730
41731         Use 'git describe --match' if present (added in git 1.5.5).
41732         * build-aux/git-version-gen: Limit result to tags that match 'v*'
41733         if possible.
41734
41735 2008-04-08  Bruno Haible  <bruno@clisp.org>
41736
41737         Add tentative support for OpenServer.
41738         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
41739         _ptr, _cnt.
41740         * lib/fpurge.c (fpurge): Likewise.
41741         * lib/freadable.c (freadable): Likewise.
41742         * lib/freadahead.c (freadahead): Likewise.
41743         * lib/freading.c (freading): Likewise.
41744         * lib/freadptr.c (freadptr): Likewise.
41745         * lib/freadseek.c (freadptrinc): Likewise.
41746         * lib/fseeko.c (rpl_fseeko): Likewise.
41747         * lib/fseterr.c (fseterr): Likewise.
41748         * lib/fwritable.c (fwritable): Likewise.
41749         * lib/fwriting.c (fwriting): Likewise.
41750         Reported by Roger Cornelius <rac@tenzing.org> and
41751         Brian K. White <brian@aljex.com>.
41752
41753 2008-04-06  Jim Meyering  <meyering@redhat.com>
41754
41755         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
41756
41757 2008-04-06  Bruno Haible  <bruno@clisp.org>
41758
41759         Avoid possible error with non-ASCII bytes in UTF-8 locales.
41760         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
41761         * tests/test-printf-posix.sh: Likewise.
41762         * tests/test-vfprintf-posix.sh: Likewise.
41763         * tests/test-vprintf-posix.sh: Likewise.
41764         * tests/test-xprintf-posix.sh: Likewise.
41765
41766 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41767
41768         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
41769         hide error from 'ls', needed on OS/2.
41770         Report by Elbert Pol <elbert.pol@gmail.com>.
41771
41772 2008-04-04  Eric Blake  <ebb9@byu.net>
41773
41774         Make test-fseeko.c failures meaningful.
41775         * tests/test-fseeko.c: Print line number on failure.
41776         * tests/test-fseek.c: Likewise.
41777         Reported by Nelson H. F. Beebe.
41778
41779         Improve strtod bug detection check.
41780         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
41781         required for Solaris 10.
41782         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
41783
41784 2008-04-04  Bruno Haible  <bruno@clisp.org>
41785
41786         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
41787         by m4/setenv.m4.
41788
41789 2008-04-03  Eric Blake  <ebb9@byu.net>
41790
41791         Ensure sane .version contents.
41792         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
41793         version string.
41794         * build-aux/git-version-gen: Improve documentation.
41795
41796         Make GNU make output nicer.
41797         * top/GNUmakefile [!_have-Makefile]: Add dependency on
41798         MAKECMDGOALS to enforce message for all command line targets.  Set
41799         srcdir for use in maint.mk.
41800
41801         Another maintainer tweak.
41802         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
41803         a target that regenerates version.
41804
41805 2008-04-03  Jim Meyering  <meyering@redhat.com>
41806
41807         vc-list-files: don't cause coreutils "make po-check" failure
41808         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
41809
41810 2008-04-03  Eric Blake  <ebb9@byu.net>
41811
41812         Allow VPATH usage of vc-list-files.
41813         * build-aux/vc-list-files (scriptversion): Add timestamp.
41814         (options): Add --help, --version, -C.
41815         (CVS): Support installed cvsu.
41816
41817 2008-04-02  Bruno Haible  <bruno@clisp.org>
41818
41819         Avoid some "statement with no effect" warnings from gcc.
41820         * tests/test-wctype.c (main): Explicitly ignore unused values.
41821         Reported by Jim Meyering.
41822
41823 2008-04-02  Jim Meyering  <meyering@redhat.com>
41824
41825         Avoid some warnings from "gcc -Wshadow".
41826         * tests/test-frexp.c (exp): Define to a different identifier.
41827         * tests/test-frexpl.c (exp): Likewise.
41828
41829 2008-04-03  Jim Meyering  <meyering@redhat.com>
41830
41831         bootstrap: remove dangling *.[ch] symlinks from lib
41832         * build-aux/bootstrap [dangling symlink removal]: Move find's
41833         -depth option to precede all others, to avoid a warning.
41834         Remove *.[ch] files too, and from "$source_base" (usually lib/).
41835
41836 2008-04-02  Bruno Haible  <bruno@clisp.org>
41837
41838         Avoid some warnings from "gcc -Wshadow".
41839         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
41840         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
41841         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
41842         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
41843         Reported by Jim Meyering.
41844
41845 2008-04-01  Bruno Haible  <bruno@clisp.org>
41846
41847         Fix test to work on IRIX 6.5 with cc.
41848         * tests/test-math.c (numeric_equal): New function.
41849         (main): Use it.
41850
41851 2008-04-01  Bruno Haible  <bruno@clisp.org>
41852
41853         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
41854
41855 2008-04-01  Bruno Haible  <bruno@clisp.org>
41856
41857         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
41858         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41859         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
41860         (Depends-on): Remove math.
41861
41862         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
41863         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41864         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
41865         (Depends-on): Remove math.
41866
41867         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
41868         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41869         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
41870         (Depends-on): Remove math.
41871         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
41872         (Depends-on): Remove math.
41873
41874         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
41875         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41876         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
41877         (Depends-on): Remove math.
41878         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
41879         (Depends-on): Remove math.
41880
41881         * tests/test-round1.c: Include nan.h.
41882         (main): Use NaNd instead of NAN.
41883         * modules/round-tests (Files): Add tests/nan.h.
41884
41885         * tests/test-trunc1.c: Include nan.h.
41886         (main): Use NaNd instead of NAN.
41887         * modules/trunc-tests (Files): Add tests/nan.h.
41888
41889         * tests/test-roundf1.c: Include nan.h.
41890         (main): Use NaNf instead of NAN.
41891         * modules/roundf-tests (Files): Add tests/nan.h.
41892
41893         * tests/test-truncf1.c: Include nan.h.
41894         (main): Use NaNf instead of NAN.
41895         * modules/truncf-tests (Files): Add tests/nan.h.
41896
41897         * tests/test-ceilf1.c: Include nan.h.
41898         (main): Use NaNf instead of NAN.
41899         * modules/ceilf-tests (Files): Add tests/nan.h.
41900
41901         * tests/test-floorf1.c: Include nan.h.
41902         (main): Use NaNf instead of NAN.
41903         * modules/floorf-tests (Files): Add tests/nan.h.
41904
41905         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
41906         (main): Use NaNf instead of NAN.
41907         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
41908
41909         * tests/test-isnand.c: Include nan.h instead of <math.h>.
41910         (main): Use NaNd instead of NAN.
41911         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
41912
41913         * tests/test-frexp.c: Include nan.h.
41914         (main): Use NaNd instead of NAN.
41915         * modules/frexp-tests (Files): Add tests/nan.h.
41916
41917         * lib/isnan.c: Don't include <math.h>.
41918         (FUNC): Don't use NAN macro.
41919         * modules/isnand-nolibm (Depends-on): Remove math.
41920         * modules/isnanf-nolibm (Depends-on): Remove math.
41921         * modules/isnanl (Depends-on): Remove math.
41922         * modules/isnanl-nolibm (Depends-on): Remove math.
41923
41924         * tests/nan.h: New file.
41925
41926 2008-04-01  Eric Blake  <ebb9@byu.net>
41927
41928         Fix typos.
41929         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
41930         values to be the right type.
41931
41932         For now, cater to gnulib strtod inaccuracies.
41933         * tests/test-strtod.c (main): Allow 1-ulp error on expected
41934         fractional results.  While not as nice from a QoI perspective, it
41935         is a quicker patch than correctly implementing decimal to binary
41936         rounding.
41937
41938 2008-03-31  Eric Blake  <ebb9@byu.net>
41939
41940         Guarantee a definition of NAN.
41941         * lib/math.in.h (NAN): Define if missing.
41942         * tests/test-math.c (main): Test it.
41943         * doc/posix-headers/math.texi (math.h): Document this.
41944         * lib/isnan.c (rpl_isnand): Use it.
41945         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
41946         * tests/test-floorf1.c (NaN): Likewise.
41947         * tests/test-frexp.c (NaN): Likewise.
41948         * tests/test-isnand.c (NaN): Likewise.
41949         * tests/test-isnanf.c (NaN): Likewise.
41950         * tests/test-round1.c (NaN): Likewise.
41951         * tests/test-roundf1.c (NaN): Likewise.
41952         * tests/test-snprintf-posix.h (NaN): Likewise.
41953         * tests/test-sprintf-posix.h (NaN): Likewise.
41954         * tests/test-trunc1.c (NaN): Likewise.
41955         * tests/test-truncf1.c (NaN): Likewise.
41956         * tests/test-vasnprintf-posix.c (NaN): Likewise.
41957         * tests/test-vasprintf-posix.c (NaN): Likewise.
41958         * modules/isnand-nolibm (Depends-on): Add math.
41959         * modules/isnanf-nolibm (Depends-on): Likewise.
41960         * modules/isnanl (Depends-on): Likewise.
41961         * modules/isnanl-nolibm (Depends-on): Likewise.
41962         * modules/snprintf-posix-tests (Depends-on): Likewise.
41963         * modules/sprintf-posix-tests (Depends-on): Likewise.
41964         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
41965         * modules/vsprintf-posix-tests (Depends-on): Likewise.
41966         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
41967         * modules/vasprintf-posix-tests (Depends-on): Likewise.
41968
41969 2008-03-31  Bruno Haible  <bruno@clisp.org>
41970
41971         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
41972         * doc/posix-functions/strtod.texi: Likewise.
41973
41974 2008-03-31  Bruno Haible  <bruno@clisp.org>
41975
41976         * tests/test-strtod.c (main): Don't use C99 syntax.
41977
41978 2008-03-31  Bruno Haible  <bruno@clisp.org>
41979
41980         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
41981         Reported by Eric Blake.
41982
41983 2008-03-31  Jim Meyering  <meyering@redhat.com>
41984
41985         Don't compare actual signbit return values.
41986         * tests/test-strtod.c (main): Rather, compare only their
41987         zero/non-zero nature.
41988
41989 2008-03-31  Eric Blake  <ebb9@byu.net>
41990
41991         More strtod documentation.
41992         * doc/posix-functions/strtod.texi (strtod): Interpret more test
41993         failures as distinct bugs.
41994
41995 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41996
41997         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
41998         Problem reported by Erik Benada in
41999         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
42000
42001 2008-03-30  Bruno Haible  <bruno@clisp.org>
42002
42003         * tests/test-strtod.c: Add comments about which assertion fails on which
42004         platform.
42005         * doc/posix-functions/strtod.texi: Add info about many more platforms.
42006
42007 2008-03-30  Eric Blake  <ebb9@byu.net>
42008
42009         Test signbit behavior on zeros.
42010         * tests/test-signbit.c (test_signbitf): Add tests for zero.
42011         (test_signbitd, test_signbitl): Likewise.
42012
42013         More strtod touchups.
42014         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
42015         sign of negative underflow, for now.  Use .5, not .1.
42016         * doc/posix-functions/strtod.texi (strtod): Mention these
42017         limitations.
42018         Reported by Jim Meyering.
42019
42020 2008-03-30  Bruno Haible  <bruno@clisp.org>
42021
42022         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
42023         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
42024
42025 2008-03-30  Bruno Haible  <bruno@clisp.org>
42026
42027         Avoid failure when attempting to return empty iconv results on some
42028         platforms.
42029         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
42030         allocation, don't report ENOMEM when the resulting string is empty.
42031
42032 2008-03-30  Bruno Haible  <bruno@clisp.org>
42033
42034         Fix buffer overrun.
42035         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
42036         Don't consider the width for tmp_length. Check count against tmp_length
42037         before doing the padding. Ensure enough allocation during padding.
42038
42039 2008-03-30  Eric Blake  <ebb9@byu.net>
42040
42041         strtod touchups.
42042         * lib/strtod.c (strtod): Avoid compiler warnings.
42043         Reported by Jim Meyering.
42044
42045 2008-03-30  Bruno Haible  <bruno@clisp.org>
42046
42047         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
42048         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
42049         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
42050         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
42051         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
42052         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
42053         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
42054         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
42055
42056         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
42057         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
42058         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
42059         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
42060         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
42061         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
42062         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
42063         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
42064
42065         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
42066         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
42067         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
42068         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
42069         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
42070         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
42071         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
42072         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
42073
42074         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
42075         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
42076
42077         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
42078         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
42079
42080         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
42081         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
42082
42083         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
42084         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
42085         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
42086
42087         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
42088         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
42089         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
42090
42091         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
42092         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
42093         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
42094
42095         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
42096         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
42097         * modules/vasprintf (Depends-on): Add EOVERFLOW.
42098
42099         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
42100         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
42101         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
42102         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
42103         (Depends-on): Add EOVERFLOW.
42104         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
42105         (Depends-on): Add EOVERFLOW.
42106         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42107         (Depends-on): Add EOVERFLOW.
42108         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42109         (Depends-on): Add EOVERFLOW.
42110         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42111         (Depends-on): Add EOVERFLOW.
42112         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42113         (Depends-on): Add EOVERFLOW.
42114         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42115         (Depends-on): Add EOVERFLOW.
42116         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42117         (Depends-on): Add EOVERFLOW.
42118
42119         * lib/sprintf.c (EOVERFLOW): Remove fallback.
42120         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
42121         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
42122
42123         * lib/snprintf.c (EOVERFLOW): Remove fallback.
42124         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
42125         * modules/snprintf (Depends-on): Add EOVERFLOW.
42126
42127         * lib/poll.c (EOVERFLOW): Remove fallback.
42128         * modules/poll (Depends-on): Add EOVERFLOW.
42129
42130         * lib/getugroups.c (EOVERFLOW): Remove fallback.
42131         * modules/getugroups (Depends-on): Add EOVERFLOW.
42132
42133         * lib/getdelim.c (EOVERFLOW): Remove fallback.
42134         * modules/getdelim (Depends-on): Add EOVERFLOW.
42135
42136         * lib/ftell.c (EOVERFLOW): Remove fallback.
42137         * modules/ftell (Depends-on): Add EOVERFLOW.
42138
42139         * lib/fprintf.c (EOVERFLOW): Remove fallback.
42140         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
42141         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
42142
42143         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
42144
42145         * modules/EOVERFLOW-tests: New file.
42146         * tests/test-EOVERFLOW.c: New file.
42147
42148         * modules/EOVERFLOW: New file.
42149         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
42150
42151 2008-03-30  Bruno Haible  <bruno@clisp.org>
42152
42153         Fix bug introduced on 2007-06-10.
42154         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
42155         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
42156
42157 2008-03-30  Bruno Haible  <bruno@clisp.org>
42158
42159         Improve freadseek's efficiency after ungetc.
42160         * lib/freadseek.c: Include freadahead.h.
42161         (freadptrinc): New function, extracted from freadseek.
42162         (freadseek): Use it in a loop. Use freadahead to determine the number
42163         of loop iterations.
42164         * modules/freadseek (Depends-on): Add freadahead.
42165         (configure.ac): Require AC_C_INLINE.
42166
42167 2008-03-30  Bruno Haible  <bruno@clisp.org>
42168
42169         * lib/freadseek.c (freadseek): Don't ignore the return value of
42170         freadptr.
42171
42172 2008-03-29  Eric Blake  <ebb9@byu.net>
42173
42174         Add hex float support.
42175         * modules/strtod (Depends-on): Add c-ctype.
42176         (Link): Mention POW_LIB.
42177         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
42178         whitespace between 'e' and exponent.
42179         * tests/test-strtod.c (main): Enable hex float tests.
42180         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
42181         now provides.
42182
42183         Document various strtod bugs, with some fixes.
42184         * doc/posix-functions/strtod.texi (strtod): Document bugs with
42185         "-0x", "inf", "nan", and hex constants.
42186         * doc/posix-functions/atof.texi (atof): Likewise.
42187         * modules/stdlib (Makefile.am): Support strtod.
42188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42189         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
42190         detect additional strtod bugs.
42191         * lib/stdlib.in.h (rpl_strtod): Add declarations.
42192         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42193         bool where appropriate.  Parse 'inf' and 'nan'.
42194         * tests/test-strtod.c: New file.
42195         * modules/strtod (Depends-on): Add stdbool, stdlib.
42196         (configure.ac): Turn on module indicator.
42197         * modules/strtod-tests: New module.
42198
42199 2008-03-29  Eric Blake  <ebb9@byu.net>
42200
42201         Fix ftell on mingw.
42202         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42203         * modules/ftell-tests (Depends-on): Add binary-io.
42204         * modules/ftello-tests (Depends-on): Likewise.
42205         * tests/test-ftell.c (main): Enhance test to cover behavior after
42206         ungetc.  Enforce binary mode.
42207         * tests/test-ftello.c (main): Likewise.
42208
42209         Pass test-freadseek on cygwin.
42210         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42211         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42212         ungetc buffer.
42213
42214         * tests/test-fflush2.c (main): Fix typo.
42215
42216 2008-03-29  Bruno Haible  <bruno@clisp.org>
42217
42218         * tests/test-fflush2.c (main): Temporarily disable the contents of
42219         this test.
42220         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42221         Reported by Eric Blake.
42222
42223 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42224
42225         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42226         (GC_SHA224_DIGEST_SIZE): Add.
42227
42228         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42229         (gc_hash_digest_length): Likewise.
42230         (gc_hash_buffer): Likewise.
42231
42232 2008-03-25  Bruno Haible  <bruno@clisp.org>
42233
42234         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42235         detail which gettext release to use.
42236         Reported by Simon Josefsson.
42237
42238 2008-03-26  Jim Meyering  <meyering@redhat.com>
42239
42240         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42241         * modules/gnumakefile (clean-GNUmakefile): Also, use
42242         test ... && ... || : syntax rather than if-then ... fi.
42243
42244         gnumakefile: Don't double-quote-expand $(VPATH) value.
42245         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42246
42247 2008-03-24  Eric Blake  <ebb9@byu.net>
42248
42249         Alter GNUmakefile to install into top directory.
42250         * modules/maintainer-makefile: Split, and add dependency...
42251         * modules/gnumakefile: to this new module.
42252         * build-aux/GNUmakefile: Move...
42253         * top/GNUmakefile: ...here.
42254         * build-aux/maint.mk: Move...
42255         * top/maint.mk: ...here.
42256         * MODULES.html.sh (Support for maintaining...): Document new
42257         module.
42258
42259 2008-03-23  Bruno Haible  <bruno@clisp.org>
42260
42261         * gnulib-tool: New options --vc-files, --no-vc-files.
42262         (func_usage): Document them.
42263         (vc_files): New variable.
42264         (func_import): Consider vc_files.
42265         (func_create_testdir): Set vc_files to empty.
42266         Suggested by Jim Meyering and Karl Berry.
42267
42268 2008-03-23  Bruno Haible  <bruno@clisp.org>
42269
42270         Fix regex compilation error on HP-UX 11.
42271         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
42272         * modules/regex (Files): Add m4/mbstate_t.m4.
42273         Reported by Ton Voon <ton.voon@altinity.com>.
42274
42275 2008-03-23  Bruno Haible  <bruno@clisp.org>
42276
42277         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
42278
42279 2008-03-23  Eric Blake  <ebb9@byu.net>
42280             Bruno Haible  <bruno@clisp.org>
42281
42282         Install files from top/ in the destination directory.
42283         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42284         augmentation also for the files from top/.
42285         (func_import, func_create_testdir): Rewrite file names:
42286         top/filename -> filename.
42287
42288 2008-03-23  Bruno Haible  <bruno@clisp.org>
42289
42290         Tweak "gnulib --version" output.
42291         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
42292
42293 2008-03-23  Bruno Haible  <bruno@clisp.org>
42294
42295         Tweak "gnulib --version" output.
42296         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
42297         rather than contents of ChangeLog, when possible.
42298
42299 2008-03-21  Eric Blake  <ebb9@byu.net>
42300
42301         More --version tweaks.
42302         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
42303         date of last ChangeLog entry.
42304
42305 2008-03-21  Jim Meyering  <meyering@redhat.com>
42306
42307         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
42308
42309 2008-03-20  Eric Blake  <ebb9@byu.net>
42310
42311         VPATH fix.
42312         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
42313
42314 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42315
42316         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42317         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
42318
42319 2008-03-20  Eric Blake  <ebb9@byu.net>
42320
42321         Sync GNUmakefile with coreutils.
42322         * build-aux/GNUmakefile (have-Makefile): Rename...
42323         (_have-Makefile): ...to this, for namespace consideration.
42324         (GNUmakefile.cfg): Include, if present.
42325         (_autoreconf): Define a default.
42326         (_is-dist-target): New rule for rebuilds to pick up intra-release
42327         version.
42328         (maint-cfg.mk): Rename...
42329         (cfg.mk): ...to this.
42330
42331 2008-03-18  Jim Meyering  <meyering@redhat.com>
42332
42333         New script and module: mktempd
42334         * MODULES.html.sh (maint+release support): Add mktempd.
42335         * build-aux/mktempd: New file.
42336         * modules/mktempd: New file.
42337
42338 2008-03-15  Jim Meyering  <meyering@redhat.com>
42339
42340         Undo last change.
42341         * lib/sha1.c, lib/md5.c: 63 != ~63.
42342         Reported by Andreas Schwab.
42343
42344         sha1.c, md5.c: Hoist a redundant expression.
42345         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42346         "ctx->buflen" only once, before calling *_process_block.
42347         * lib/md5.c (md5_process_bytes): Likewise.
42348
42349 2008-03-14  Eric Blake  <ebb9@byu.net>
42350
42351         Bump copyright year in files generated by gnulib-tool.
42352         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42353         gnulib-tool, rather than hard-coding it.
42354
42355         Fix 'gnulib-tool --version' output to work with git.
42356         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42357         (startup): ...here.
42358         (func_version): Use it to invoke git-version-gen, rather than
42359         relying on CVS keyword expansion.  Modernize wording.
42360         (cvsdatestamp, last_checkin_date, version): Kill unused
42361         variables.
42362
42363 2008-03-12  Jim Meyering  <meyering@redhat.com>
42364
42365         Recognize optional cast of the argument to free.
42366         * build-aux/useless-if-before-free: Update regexps.
42367
42368         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42369
42370 2008-03-11  Bruno Haible  <bruno@clisp.org>
42371
42372         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42373         by a single package.
42374         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42375         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42376         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42377         Reported by Sam Steingold <sds@gnu.org>.
42378
42379 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42380
42381         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42382         repositories.
42383
42384 2008-03-11  Bruno Haible  <bruno@clisp.org>
42385
42386         Avoid conflicts between local macro definitions.
42387         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42388         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42389
42390 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42391             Bruno Haible  <bruno@clisp.org>
42392
42393         Make va_copy work with some version of xlc on AIX 5.1.
42394         * lib/stdarg.in.h: New file.
42395         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42396         On AIX, use a <stdarg.h> file substitute.
42397         * modules/stdarg (Files): Add lib/stdarg.in.h.
42398         (Depends-on): Add include_next.
42399         (Makefile.am): Build a stdarg.h substitute if requested.
42400         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42401
42402 2008-03-10  Bruno Haible  <bruno@clisp.org>
42403
42404         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42405         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42406         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42407
42408 2008-03-10  Bruno Haible  <bruno@clisp.org>
42409
42410         * modules/stdlib (Depends-on): Add include_next, remove
42411         absolute-header.
42412
42413 2008-03-09  Bruno Haible  <bruno@clisp.org>
42414
42415         * lib/freadahead.h (freadahead): Document more precisely.
42416         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42417         the sum of both buffer sizes.
42418         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42419         * NEWS: Document the change.
42420
42421 2008-03-09  Bruno Haible  <bruno@clisp.org>
42422
42423         Extend freadptr to return also the buffer size.
42424         * lib/freadptr.h (freadptr): Add sizep argument.
42425         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42426         (freadptr): Add sizep argument. Determine buffer size like freadahead
42427         does.
42428         * tests/test-freadptr.c: Don't include freadahead.h.
42429         (main): Adapt for new calling convention of freadptr.
42430         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42431         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42432         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42433         tests/test-freadptr2.sh.
42434         (Depends): Remove freadahead.
42435         (TESTS): Add test-freadptr2.sh.
42436         (check_PROGRAMS): Add test-freadptr2.
42437
42438 2008-03-09  Bruno Haible  <bruno@clisp.org>
42439
42440         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42441         Report and solution by Simon Josefsson.
42442
42443 2008-03-06  Bruno Haible  <bruno@clisp.org>
42444
42445         Make fflush after ungetc work on BSD platforms.
42446         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42447         * tests/test-fflush2.c: New file.
42448         * tests/test-fflush2.sh: New file.
42449         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42450         tests/test-fflush2.c.
42451         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42452         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42453
42454 2008-03-06  Eric Blake  <ebb9@byu.net>
42455
42456         Likewise for ftello.
42457         * modules/ftello (Dependencies): Add extensions.
42458         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42459
42460 2008-03-06  Bruno Haible  <bruno@clisp.org>
42461
42462         * modules/fseeko (Dependencies): Add extensions.
42463         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42464         Needed on glibc systems.
42465
42466 2008-03-06  Bruno Haible  <bruno@clisp.org>
42467
42468         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42469         email address.
42470         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42471
42472 2008-03-06  Bruno Haible  <bruno@clisp.org>
42473
42474         * users.txt: Add libgnupdf.
42475
42476 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42477
42478         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
42479         (Header File Substitutes, Function Substitutes,
42480         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
42481         (Build robot for gnulib): Fix typo.
42482
42483 2008-03-06  Bruno Haible  <bruno@clisp.org>
42484
42485         * doc/gnulib-tool.texi (VCS Issues): Small updates.
42486         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42487
42488 2008-03-06  Bruno Haible  <bruno@clisp.org>
42489
42490         * doc/func.texi: New file, extracted from doc/gnulib.texi.
42491         * doc/gnulib.texi: Include it.
42492
42493 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42494
42495         * modules/func (License): Change license to unlimited; there was
42496         no LGPL parts in the module anyway.
42497
42498 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42499
42500         * modules/__func__: Renamed to modules/func.
42501         * modules/__func__-tests: Renamed to modules/func-tests.
42502         * tests/test-__func__.c: Renamed to tests/test-func.c.
42503         * m4/__func__.m4: Renamed to m4/func.m4.
42504         * doc/gnulib.texi (__func__): Section renamed to func.
42505         Suggested by Eric Blake <ebb9@byu.net>.
42506
42507 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42508
42509         * doc/gnulib.texi (__func__): Use C99 terminology when talking
42510         about __func__.  Make example self-contained.  Suggested by Eric
42511         Blake <ebb9@byu.net>.
42512
42513         * tests/test-__func__.c (main): Avoid extraneous () around __func.
42514         Suggested by Eric Blake <ebb9@byu.net>.
42515
42516 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42517
42518         * modules/__func__: New file.
42519         * modules/__func__-tests: New file.
42520         * tests/test-__func__.c: New file.
42521         * m4/__func__.m4: New file.
42522         * doc/gnulib.texi (__func__): Document __func__ module.
42523
42524 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42525
42526         * modules/byteswap (License): Re-license as LGPLv2+.
42527
42528 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42529
42530         * doc/Makefile: Add pdf target.
42531
42532 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42533
42534         * modules/inline (License): Use 'unlimited', since there are only
42535         *.m4 files in this module.
42536
42537 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42538             Bruno Haible  <bruno@clisp.org>
42539
42540         Add support for HP C 7.1 on OpenVMS 8.3.
42541         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
42542
42543 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42544
42545         Update VMS specifics.
42546         * lib/getopt.c [VMS]: Remove include of unixlib.h.
42547
42548 2008-03-02  Jim Meyering  <meyering@redhat.com>
42549
42550         Remove the last dependency on the "free" module.
42551         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
42552         Reported by Bob Proulx.
42553
42554         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
42555
42556         Remove useless "if" tests before free.  Deprecate "free" module.
42557         * doc/posix-functions/free.texi: Mention that this
42558         module is no longer useful.
42559         * modules/free (Notice): Say this module is obsolete.
42560         * modules/readutmp (Depends-on): Remove free.
42561         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
42562         * lib/putenv.c (putenv): Likewise.
42563         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
42564         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
42565         * tests/test-c-strcasestr.c (main): Likewise.
42566         * tests/test-c-strstr.c (main): Likewise.
42567         * tests/test-mbscasestr1.c (main): Likewise.
42568         * tests/test-mbscasestr2.c (main): Likewise.
42569         * tests/test-mbsstr1.c (main): Likewise.
42570         * tests/test-mbsstr2.c (main): Likewise.
42571         * tests/test-memmem.c (main): Likewise.
42572         * tests/test-strcasestr.c (main): Likewise.
42573         * tests/test-striconv.c (main): Likewise.
42574         * tests/test-striconveh.c (main): Likewise.
42575         * tests/test-striconveha.c (main): Likewise.
42576         * tests/test-strstr.c (main): Likewise.
42577
42578         * build-aux/git-version-gen: Adjust a comment and the Usage string.
42579
42580         bootstrap: sync from coreutils again
42581         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
42582
42583 2008-03-01  Jim Meyering  <meyering@redhat.com>
42584
42585         bootstrap: sync from coreutils
42586         * build-aux/bootstrap (update_po_files): Copy a .po file into place
42587         also when the target doesn't exist.
42588
42589 2008-03-01  Eric Blake  <ebb9@byu.net>
42590
42591         Fix bugs in last patch.
42592         * lib/memchr2.c (memchr2): Fix typo.
42593         * tests/test-memchr2.c: Test previous bug, and don't use GNU
42594         extension.
42595         Reported by Bruce Korb.
42596
42597         New module 'memchr2'.
42598         * modules/memchr2: New file.
42599         * modules/memchr2-tests: Likewise.
42600         * lib/memchr2.h: Likewise.
42601         * lib/memchr2.c: Likewise, based on memchr.c.
42602         * tests/test-memchr2.c: New test.
42603         * MODULES.html.sh (String handling): Add memchr2.
42604
42605 2008-02-29  Bruno Haible  <bruno@clisp.org>
42606
42607         * modules/freadseek-tests: New file.
42608         * tests/test-freadseek.sh: New file.
42609         * tests/test-freadseek.c: New file.
42610
42611         New module 'freadseek'.
42612         * modules/freadseek: New file.
42613         * lib/freadseek.h: New file.
42614         * lib/freadseek.c: New file.
42615         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
42616
42617 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42618
42619         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
42620         wydawca.
42621
42622         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
42623         program_invocation_name and program_invocation_short_name are
42624         present.
42625
42626 2008-02-28  Bruno Haible  <bruno@clisp.org>
42627
42628         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
42629         * tests/test-freadptr.sh: Also test non-seekable stdin.
42630
42631 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
42632
42633         * build-aux/bootstrap (source_base, m4_base)
42634         (doc_base, tests_base): New variables.
42635         (gnulib_tool_options): Do not hardcode base directories, use
42636         the above variables instead.
42637
42638 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
42639
42640         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
42641
42642 2008-02-28  Bruno Haible  <bruno@clisp.org>
42643
42644         * modules/freadptr-tests: New file.
42645         * tests/test-freadptr.sh: New file.
42646         * tests/test-freadptr.c: New file.
42647
42648         New module 'freadptr'.
42649         * modules/freadptr: New file.
42650         * lib/freadptr.h: New file.
42651         * lib/freadptr.c: New file.
42652         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
42653
42654 2008-02-26  Karl Berry  <karl@freefriends.org>
42655
42656         Sync from Libtool:
42657         * libltdl/argz.c (argz_add, argz_count): New functions.
42658         * libltdl/argz.in.h: Declare them.
42659         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
42660
42661 2008-02-22  Bruno Haible  <bruno@clisp.org>
42662
42663         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
42664         is a pointer type.  Needed for HP-UX 10.
42665         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
42666         * doc/posix-functions/gmtime_r.texi: Likewise.
42667         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42668
42669 2008-02-24  Bruno Haible  <bruno@clisp.org>
42670
42671         * modules/environ-tests: New file.
42672         * tests/test-environ.c: New file.
42673
42674         New module 'environ'.
42675         * modules/environ: New file.
42676         * lib/unistd.in.h (environ): New declaration.
42677         * m4/environ.m4: New file.
42678         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
42679         after use.
42680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
42681         HAVE_DECL_ENVIRON.
42682         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
42683         HAVE_DECL_ENVIRON.
42684         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
42685         wrong claim that 'environ' is missing on some systems.
42686         * modules/execute (Depends-on): Add environ.
42687         * lib/execute.c (environ): Remove fallback declaration.
42688         * modules/pipe (Depends-on): Add environ.
42689         * lib/pipe.c (environ): Remove fallback declaration.
42690         * modules/setenv (Depends-on): Add environ.
42691         * lib/setenv.c (environ): Remove fallback declaration.
42692         * modules/unsetenv (Depends-on): Add environ.
42693         * lib/unsetenv.c (environ): Remove fallback declaration.
42694         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
42695         m4/environ.m4.
42696         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
42697         (gl_PREREQ_UNSETENV): Likewise.
42698
42699 2008-02-24  Bruno Haible  <bruno@clisp.org>
42700
42701         * doc/posix-functions/environ.texi: Document the MacOS X problem.
42702
42703 2008-02-20  Bob Proulx  <bob@proulx.com>
42704
42705         Enable use of older two part flavor 'git describe'.
42706         * build-aux/git-version-gen: If using the older two part flavor of
42707         git version then recreate the third part now present in the
42708         newer three part flavor of git describe.
42709
42710 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
42711
42712         * lib/fts.c (fts_build): Typo correction to comment.
42713
42714 2008-02-17  Bruno Haible  <bruno@clisp.org>
42715
42716         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
42717         generating no-op conflicts.
42718
42719 2008-02-17  Bruno Haible  <bruno@clisp.org>
42720
42721         Speed up by 10%.
42722         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
42723         result_entries, rather than an index-based loop.
42724
42725 2008-02-17  Bruno Haible  <bruno@clisp.org>
42726
42727         Speed up by 25%.
42728         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
42729         'hashcode_cached'.
42730         (entry_create): New function.
42731         (entry_hashcode): Use the cached hashcode if possible.
42732         (read_changelog_file, try_split_merged_entry): Use entry_create.
42733
42734 2008-02-17  Bruno Haible  <bruno@clisp.org>
42735
42736         Speed up from O(n^2) to O(n) for long ChangeLog files.
42737         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
42738         (read_changelog_file): Change implementation of entries_reversed list
42739         to rbtreehash.
42740         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
42741
42742 2008-02-17  Bruno Haible  <bruno@clisp.org>
42743
42744         New option --split-merged-entry.
42745         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
42746         (find_paragraph_end, try_split_merged_entry): New functions.
42747         (long_options): Add option --split-merged-entry.
42748         (usage): Document option --split-merged-entry.
42749         (main): Implement option --split-merged-entry.
42750         Reported by Eric Blake.
42751
42752 2008-02-17  Bruno Haible  <bruno@clisp.org>
42753
42754         * lib/git-merge-changelog.c: Include c-strstr.h.
42755         (main): Support the "git pull --rebase" situation.
42756         * modules/git-merge-changelog (Depends-on): Add c-strstr.
42757         Reported by Eric Blake.
42758
42759 2008-02-16  Eric Blake  <ebb9@byu.net>
42760
42761         Avoid doubling \ in common case of "c-maybe" quoting style.
42762         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
42763         eliding outer quotes.
42764         * lib/quotearg.h: Document this.
42765         * tests/test-quotearg.c (result_strings, inputs, results_g)
42766         (flag_results, locale_results): Test it by adding a new string to
42767         each test group.
42768         (compare_strings): Test new string.
42769
42770 2008-02-13  Eric Blake  <ebb9@byu.net>
42771
42772         Avoid trigraph quoting in default output.
42773         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
42774         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
42775         unless explicitly requested.
42776         * tests/test-quotearg.c (flag_results, main): Add additional tests.
42777
42778 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
42779
42780         Don't rely on signed integer overflowing to negative value.
42781         * lib/getugroups.c (getugroups): Include <limits.h>.
42782         Instead, compare against INT_MAX, and increment only if the test passes.
42783
42784 2008-02-13  Jim Meyering  <meyering@redhat.com>
42785         and Eric Blake  <ebb9@byu.net>
42786
42787         Avoid shadowing warning and compile errors on Linux.
42788         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
42789         forwarding macros on Linux.
42790         (dcgettext): Define a stub, for Linux.
42791         (results_g, main): Avoid warnings.
42792
42793 2008-02-12  Eric Blake  <ebb9@byu.net>
42794
42795         Silence warning in last patch.
42796         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
42797
42798         Quotearg part 4: add tests, fix c-maybe colon quoting.
42799         * lib/quotearg.h: Improve documentation.
42800         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
42801         escapes when adding outer quotes.  When quoting trigraphs, use
42802         valid C notation.  When quoting NUL, omit extra characters if next
42803         character is not digit.  Alter prototype.
42804         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
42805         callers.
42806         * modules/quotearg-tests: New module.
42807         * tests/test-quotearg.c: New test.
42808
42809 2008-02-07  Eric Blake  <ebb9@byu.net>
42810
42811         Quotearg part 3: add flag to control outer quote elision.
42812         * lib/quotearg.h (c_maybe_quoting_style): New style.
42813         (enum quoting_flags): Better documentation of flags.
42814         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
42815         c-maybe style.
42816         (quotearg_buffer_restyled): Handle new flag to elide outer
42817         quotes.
42818
42819         Quotearg part 2: add flag that can control NUL elision.
42820         * lib/quotearg.h (set_quoting_flags): New prototype.
42821         * lib/quotearg.c (struct quoting_options): Add flag field.
42822         (set_quoting_flags): New function.
42823         (quotearg_buffer_restyled): Add flags parameter.
42824         (quotearg_alloc_mem): Set the flag if length cannot be returned.
42825         (quotearg_n_options): Set the flag, since length cannot be
42826         returned.
42827         (quoting_options_from_style): Default flags correctly.
42828
42829         Quotearg part 1: more wrappers, restore quotearg_char state.
42830         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
42831         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
42832         (quotearg_colon_mem): New wrappers.
42833         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
42834         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
42835         functions.
42836         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
42837         (quotearg_colon_mem): New functions.
42838
42839 2008-02-11  Bruno Haible  <bruno@clisp.org>
42840
42841         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
42842         library in the current directory: it does not work with parallel make.
42843         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42844
42845 2008-02-11  Bruno Haible  <bruno@clisp.org>
42846
42847         * .gitattributes: New file.
42848
42849 2008-02-11  Jim Meyering  <meyering@redhat.com>
42850
42851         useless-if-before-free: Fix reversed exit values.
42852         * build-aux/useless-if-before-free: Use correct values
42853         for EXIT_MATCH and EXIT_NO_MATCH.
42854
42855         * build-aux/useless-if-before-free: Close stdout carefully.
42856
42857 2008-02-10  Bruno Haible  <bruno@clisp.org>
42858
42859         New module 'git-merge-changelog'.
42860         * modules/git-merge-changelog: New file.
42861         * lib/git-merge-changelog.c: New file.
42862
42863 2008-02-10  Jim Meyering  <meyering@redhat.com>
42864
42865         useless-if-before-free: New option: --list (-l).
42866
42867         useless-if-before-free: Don't exit immediately upon open failure.
42868         * build-aux/useless-if-before-free: Exit 2 for errors.
42869         Upon failure to open a file, don't exit immediately.
42870         Rather, just warn and continue with any remaining files.
42871
42872 2008-02-10  Bruno Haible  <bruno@clisp.org>
42873
42874         New abstract list operation 'node_set_value'.
42875         * lib/gl_list.h (gl_list_node_set_value): New function.
42876         (struct gl_list_implementation): New field node_set_value.
42877         * lib/gl_list.c (gl_list_node_set_value): New function.
42878         * lib/gl_array_list.c (gl_array_node_set_value): New function.
42879         (gl_array_list_implementation): Update.
42880         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
42881         (gl_carray_list_implementation): Update.
42882         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
42883         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42884         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42885         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
42886         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42887         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42888         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42889         Update.
42890         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42891         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
42892         (gl_sublist_list_implementation): Update.
42893
42894 2008-02-10  Bruno Haible  <bruno@clisp.org>
42895
42896         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
42897         Needed when ELEMENT is #defined to 'some_type *'.
42898
42899 2008-02-10  Jim Meyering  <meyering@redhat.com>
42900
42901         New script and module: useless-if-before-free
42902         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
42903         * build-aux/useless-if-before-free: New file.
42904         * modules/useless-if-before-free: New file.
42905
42906         * build-aux/gitlog-to-changelog: Use committer date, not author date.
42907
42908         xstrtol_error: Fix typo.
42909         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
42910         s/exit_failure/exit_status/.
42911
42912 2008-02-09  Jim Meyering  <meyering@redhat.com>
42913
42914         New script and module: gitlog-to-changelog
42915         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
42916         * modules/gitlog-to-changelog: New file.
42917         * build-aux/gitlog-to-changelog: New file.
42918
42919 2008-02-08  Jim Meyering  <meyering@redhat.com>
42920
42921         Avoid two "parameter unused" warnings.
42922         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
42923         Mark "st" as used.
42924
42925         Use "git COMMAND", not "git-COMMAND".
42926         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
42927         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
42928         * build-aux/git-version-gen: Use "git status", not "git-status".
42929
42930 2008-02-07  Bruno Haible  <bruno@clisp.org>
42931
42932         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
42933         Avoids a crash on Windows Vista.
42934         Reported by Adam Strzelecki <ono@java.pl> via
42935         Simon Josefsson <simon@josefsson.org>.
42936
42937 2008-02-06  Bruno Haible  <bruno@clisp.org>
42938
42939         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
42940         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
42941         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
42942         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
42943         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42944         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42945         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
42946         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
42947         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42948         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42949         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42950         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42951         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42952         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42953         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42954         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
42955         left-adjust flag.
42956         * tests/test-snprintf-posix.h (test_function): Likewise.
42957         * tests/test-sprintf-posix.h (test_function): Likewise.
42958         * tests/test-vasprintf-posix.c (test_function): Likewise.
42959         * doc/posix-functions/fprintf.texi: Update.
42960         * doc/posix-functions/printf.texi: Update.
42961         * doc/posix-functions/snprintf.texi: Update.
42962         * doc/posix-functions/sprintf.texi: Update.
42963         * doc/posix-functions/vfprintf.texi: Update.
42964         * doc/posix-functions/vprintf.texi: Update.
42965         * doc/posix-functions/vsnprintf.texi: Update.
42966         * doc/posix-functions/vsprintf.texi: Update.
42967         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42968
42969 2008-02-06  Bruno Haible  <bruno@clisp.org>
42970
42971         Fix bug introduced on 2008-01-26.
42972         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
42973
42974 2008-02-06  Bruno Haible  <bruno@clisp.org>
42975
42976         Fix bug introduced on 2007-06-10.
42977         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
42978         !NEED_PRINTF_FLAG_ZERO.
42979
42980 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
42981
42982         getloadavg: use libperfstat on AIX5
42983         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
42984
42985 2008-02-03  Bruno Haible  <bruno@clisp.org>
42986
42987         * lib/diffseq.h: Add comments about required #includes.
42988         Reported by Michael Biggs <gnulib@doubleplum.net>.
42989
42990 2008-02-01  Bruno Haible  <bruno@clisp.org>
42991
42992         * users.txt: Add gnuit.
42993
42994 2008-01-31  Bruno Haible  <bruno@clisp.org>
42995
42996         * lib/md4.c (set_uint32): Mark as inline.
42997         * lib/md5.c (set_uint32): Likewise.
42998         * lib/sha1.c (set_uint32): Likewise.
42999         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
43000         * m4/md5.m4 (gl_MD5): Likewise.
43001         * m4/sha1.m4 (gl_SHA1): Likewise.
43002
43003 2008-01-31  Jim Meyering  <meyering@redhat.com>
43004
43005         Use "sizeof VAR", rather than a literal "4".
43006         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
43007         * lib/md4.c (md4_read_ctx): Likewise.
43008         * lib/sha1.c (sha1_read_ctx): Likewise.
43009
43010 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43011
43012         * tests/test-sha1.c: New file, based on test-md5.c.
43013
43014         * modules/crypto/sha1-tests: New file.
43015
43016 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43017
43018         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
43019
43020 2008-01-31  Jim Meyering  <meyering@redhat.com>
43021
43022         Prefer "sizeof v" over the equivalent "4".
43023         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
43024         * lib/md5.c (set_uint32): Likewise.
43025         * lib/sha1.c (set_uint32): Likewise.
43026
43027 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43028
43029         * lib/sha1.c (set_uint32): Mark function as static.
43030
43031 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43032
43033         md2: clarify comments to say that alignment is not required.
43034         * lib/md2.h: Remove warning about alignment in comment.
43035         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
43036         never been required.
43037
43038 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43039
43040         md4: adapt alignment constraint fix from sha1.
43041         * lib/md4.c (set_uint32): New function, from sha1.c
43042         (md4_read_ctx): Use it.
43043         (md4_finish_ctx): Doc fix.
43044         * lib/md4.h: Doc fix.
43045
43046 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43047
43048         md5: adapt alignment constraint fix from sha1.
43049         * lib/md5.c (set_uint32): New function, from sha1.c
43050         (md5_read_ctx): Use it.
43051         (md5_finish_ctx): Doc fix.
43052         * lib/md5.h: Doc fix.
43053
43054 2008-01-30  Peter Palfrader  <weasel@debian.org>
43055
43056         sha1: remove the result buffer alignment constraint
43057         * lib/sha1.c (set_uint32): New function.
43058         (sha1_read_ctx): Rewrite to remove the result buffer alignment
43059         constraint.
43060         (sha1_finish_ctx): Remove comment warning about alignment constraint.
43061         * lib/sha1.h: Likewise.
43062
43063 2008-01-30  Andreas Schwab  <schwab@suse.de>
43064             Bruno Haible  <bruno@clisp.org>
43065
43066         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
43067         correct definition of LDBL_MIN_EXP.
43068
43069 2008-01-30  Karl Berry  <karl@gnu.org>
43070
43071         * config/srclist-update: try to preserve x bit on updates.
43072         * config/srclistvars.sh: update for karl.
43073
43074 2008-01-29  Jim Meyering  <meyering@redhat.com>
43075
43076         vasnprintf.c: Avoid warning about unused label
43077         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
43078         "overflow" label definition and associated code with the
43079         same cpp condition that guards the sole use of that label.
43080
43081 2008-01-26  Bruno Haible  <bruno@clisp.org>
43082
43083         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
43084         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
43085         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
43086         * lib/isnanl-nolibm.h (isnanl): Likewise.
43087         Reported by Paul Eggert <eggert@cs.ucla.edu>.
43088
43089 2008-01-26  Bruno Haible  <bruno@clisp.org>
43090
43091         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
43092         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
43093
43094 2008-01-26  Bruno Haible  <bruno@clisp.org>
43095
43096         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
43097         GCC >= 4.0 built-in.
43098         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
43099
43100 2008-01-26  Bruno Haible  <bruno@clisp.org>
43101
43102         Rename isnan, applicable to 'double' only, to isnand.
43103         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
43104         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
43105         (configure.ac): Update.
43106         (Include): Replace "isnan.h" with "isnand.h".
43107         * m4/isnand.m4: Renamed from m4/isnan.m4.
43108         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
43109         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
43110         instead of isnan.c.
43111         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
43112         instead of HAVE_ISNAN_IN_LIBC.
43113         (isnand): Renamed from isnan.
43114         * lib/isnand.c: New file.
43115         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
43116         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
43117         (Makefile.am): Update.
43118         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
43119         Include isnand.h instead of isnan.h.
43120         (main): Test isnand instead of isnan.
43121         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
43122         isnan-nolibm.
43123         * modules/frexp (Depends-on): Likewise.
43124         * modules/frexp-tests (Depends-on): Likewise.
43125         * modules/frexp-nolibm (Depends-on): Likewise.
43126         * modules/frexp-nolibm-tests (Depends-on): Likewise.
43127         * modules/isfinite (Depends-on): Likewise.
43128         * modules/round-tests (Depends-on): Likewise.
43129         * modules/signbit (Depends-on): Likewise.
43130         * modules/signbit-tests (Depends-on): Likewise.
43131         * modules/snprintf-posix (Depends-on): Likewise.
43132         * modules/sprintf-posix (Depends-on): Likewise.
43133         * modules/trunc-tests (Depends-on): Likewise.
43134         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43135         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43136         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43137         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43138         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43139         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43140         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43141         * modules/vasnprintf-posix (Depends-on): Likewise.
43142         * modules/vasprintf-posix (Depends-on): Likewise.
43143         * modules/vfprintf-posix (Depends-on): Likewise.
43144         * modules/vsnprintf-posix (Depends-on): Likewise.
43145         * modules/vsprintf-posix (Depends-on): Likewise.
43146         * lib/frexp.c: Include isnand.h instead of isnan.h.
43147         (ISNAN): Set to isnand instead of isnan.
43148         * lib/isfinite.c: Include isnand.h instead of isnan.h.
43149         (gl_isfinited): Use isnand instead of isnan.
43150         * lib/signbitd.c: Include isnand.h instead of isnan.h.
43151         (gl_signbitd): Use isnand instead of isnan.
43152         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
43153         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
43154         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
43155         (main): Use isnand instead of isnan.
43156         * tests/test-round1.c: Include isnand.h.
43157         (main): Use isnand instead of isnan.
43158         * tests/test-round2.c: Include isnand.h instead of isnan.h.
43159         (ISNAN): Set to isnand instead of isnan.
43160         * tests/test-trunc1.c: Include isnand.h.
43161         (main): Use isnand instead of isnan.
43162         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
43163         (equal): Use isnand instead of isnan.
43164         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
43165         isnand-nolibm.
43166         * NEWS: Mention the change.
43167
43168 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43169             Bruno Haible  <bruno@clisp.org>
43170
43171         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
43172         the GCC builtins for signbits are present and set
43173         REPLACE_SIGNBIT_USING_GCC if so.
43174         * lib/math.in.h (signbit): Define using GCC builtins if
43175         REPLACE_SIGNBIT_USING_GCC is set.
43176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
43177         REPLACE_SIGNBIT_USING_GCC.
43178         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
43179
43180 2008-01-25  Jim Meyering  <meyering@redhat.com>
43181
43182         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
43183         * lib/poll.c: Include <config.h>, not "config.h".
43184         * tests/test-getaddrinfo.c: Likewise.
43185
43186 2008-01-25  Simon Josefsson  <simon@josefsson.org>
43187
43188         * modules/sockets-tests: New file.
43189
43190 2008-01-24  Simon Josefsson  <simon@josefsson.org>
43191
43192         * modules/sockets: New module, can be used to call WSA_Startup and
43193         WSA_Cleanup when needed.
43194
43195         * lib/sockets.h, lib/sockets.c: New files.
43196
43197         * m4/sockets.m4: New file.
43198
43199         * tests/test-sockets.c: New file.
43200
43201 2008-01-19  Bruno Haible  <bruno@clisp.org>
43202
43203         * doc/posix-headers: Renamed from doc/headers.
43204         * doc/posix-functions: Renamed from doc/functions.
43205         * doc/gnulib.texi: Update.
43206
43207 2008-01-19  Bruno Haible  <bruno@clisp.org>
43208
43209         * doc/glibc-functions/strcasestr.texi: Include contents of
43210         doc/functions/strcasestr.texi, fixing the list of platforms.
43211         * doc/functions/strcasestr.texi: Remove file.
43212
43213 2008-01-19  Bruno Haible  <bruno@clisp.org>
43214
43215         * doc/glibc-functions/memmem.texi: Include contents of
43216         doc/functions/memmem.texi.
43217         * doc/functions/memmem.texi: Remove file.
43218
43219 2008-01-18  Bruno Haible  <bruno@clisp.org>
43220
43221         * doc/glibc-functions/*.texi: New files.
43222         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43223         to use the new files.
43224
43225 2008-01-17  Bruno Haible  <bruno@clisp.org>
43226
43227         * tests/test-gethostname.c (main): Fix printf statement.
43228
43229 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43230
43231         * modules/gethostname-tests: New file.
43232
43233         * tests/test-gethostname.c: New file.
43234
43235 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43236
43237         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43238         used by the UNAME case.  Reported by Bruno Haible
43239         <bruno@clisp.org>.
43240
43241 2008-01-17  Eric Blake  <ebb9@byu.net>
43242
43243         Convert c-strcasestr to be more efficient.
43244         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43245         (Depends-on): Add c-strcase, remove malloca, strnlen.
43246         * tests/test-c-strcasestr.c (main): Enhance test.
43247         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43248
43249 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43250
43251         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43252         Use it in creating po/Makevars.
43253
43254 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43255
43256         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43257         Applications that requires it should initialize libgcrypt
43258         manually.
43259
43260 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43261
43262         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
43263
43264 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
43265
43266         Fix problem with getdate on mingw32 reported by Simon Josefsson
43267         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
43268         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
43269         tzname", when deciding whether to declare tzname.
43270         * lib/strftime.c (tzname): Likewise.
43271
43272 2008-01-15  Bruno Haible  <bruno@clisp.org>
43273
43274         Work around a MacOS X 10.5 bug in frexpl().
43275         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
43276         * doc/functions/frexpl.texi: Document the bug.
43277         Reported by Elias Pipping <pipping@gentoo.org>.
43278
43279 2008-01-14  Eric Blake  <ebb9@byu.net>
43280
43281         Touch up previous patch.
43282         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
43283         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
43284
43285         Convert strcasestr module to use Two-Way algorithm.
43286         * modules/strcasestr-simple: New module, based on the old
43287         strcasestr, but with Two-Way rather than KMP.
43288         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
43289         * lib/string.in.h (rpl_strcasestr): Declare.
43290         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
43291         performance.
43292         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
43293         * modules/string (Makefile.am): Support strcasestr.
43294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43295         * modules/strcasestr-tests (Depends-on): Check for alarm.
43296         * tests/test-strcasestr.c: Augment test.
43297         * lib/str-two-way.h: Clean up stray macro.
43298         * NEWS: Document new module.
43299         * MODULES.html.sh (string handling): Likewise.
43300         * doc/functions/strcasestr.texi: New file.
43301         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
43302         here, since it is not a POSIX function.
43303
43304 2008-01-14  Colin Watson  <cjwatson@debian.org>
43305             Bruno Haible  <bruno@clisp.org>
43306
43307         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
43308         works fine; if not, set REPLACE_STRSIGNAL.
43309         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
43310         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43311         REPLACE_STRSIGNAL.
43312         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
43313         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
43314         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43315
43316 2008-01-14  Bruno Haible  <bruno@clisp.org>
43317
43318         * modules/strsignal (Include): Change to <string.h>.
43319
43320 2008-01-14  Colin Watson  <cjwatson@debian.org>
43321
43322         * modules/argp (Notice): Add a notice recommending to change
43323         XGETTEXT_OPTIONS.
43324         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43325
43326 2008-01-13  Colin Watson  <cjwatson@debian.org>
43327
43328         * modules/strsignal-tests: New file.
43329         * tests/test-strsignal.c: New file.
43330
43331         * lib/strsignal.c: New file, from glibc with modifications.
43332         * lib/siglist.h: New file, from glibc with modifications.
43333         * lib/string.in.h (strsignal): New declaration.
43334         * m4/strsignal.m4: New file.
43335         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43336         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43337         * modules/strsignal: New file.
43338         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43339         HAVE_DECL_STRSIGNAL.
43340
43341 2008-01-13  Bruno Haible  <bruno@clisp.org>
43342
43343         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43344         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43345         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43346         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43347
43348 2008-01-13  Bruno Haible  <bruno@clisp.org>
43349
43350         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43351         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43352         * lib/argp.h (__attribute__): Likewise.
43353         * lib/c-stack.c (__attribute__): Likewise.
43354         * lib/error.h (__attribute__): Likewise.
43355         * lib/fts.c (__attribute__): Likewise.
43356         * lib/openat.h (__attribute__): Likewise.
43357         * lib/stdio.in.h (__attribute__): Likewise.
43358         * lib/string.in.h (__attribute__): Likewise.
43359         * lib/utimens.c (__attribute__): Likewise.
43360         * lib/vasnprintf.h (__attribute__): Likewise.
43361         * lib/xalloc.h (__attribute__): Likewise.
43362         * lib/xprintf.h (__attribute__): Likewise.
43363         * lib/xstrtol.h (__attribute__): Likewise.
43364         * lib/xvasprintf.h (__attribute__): Likewise.
43365
43366 2008-01-12  Bruno Haible  <bruno@clisp.org>
43367
43368         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43369         * doc/glibc-headers/a.out.texi: New file.
43370         * doc/glibc-headers/aliases.texi: New file.
43371         * doc/glibc-headers/alloca.texi: New file.
43372         * doc/glibc-headers/ar.texi: New file.
43373         * doc/glibc-headers/argp.texi: New file.
43374         * doc/glibc-headers/argz.texi: New file.
43375         * doc/glibc-headers/byteswap.texi: New file.
43376         * doc/glibc-headers/crypt.texi: New file.
43377         * doc/glibc-headers/endian.texi: New file.
43378         * doc/glibc-headers/envz.texi: New file.
43379         * doc/glibc-headers/err.texi: New file.
43380         * doc/glibc-headers/error.texi: New file.
43381         * doc/glibc-headers/execinfo.texi: New file.
43382         * doc/glibc-headers/fpu_control.texi: New file.
43383         * doc/glibc-headers/fstab.texi: New file.
43384         * doc/glibc-headers/fts.texi: New file.
43385         * doc/glibc-headers/getopt.texi: New file.
43386         * doc/glibc-headers/ieee754.texi: New file.
43387         * doc/glibc-headers/ifaddrs.texi: New file.
43388         * doc/glibc-headers/libintl.texi: New file.
43389         * doc/glibc-headers/mcheck.texi: New file.
43390         * doc/glibc-headers/mntent.texi: New file.
43391         * doc/glibc-headers/obstack.texi: New file.
43392         * doc/glibc-headers/paths.texi: New file.
43393         * doc/glibc-headers/printf.texi: New file.
43394         * doc/glibc-headers/pty.texi: New file.
43395         * doc/glibc-headers/resolv.texi: New file.
43396         * doc/glibc-headers/shadow.texi: New file.
43397         * doc/glibc-headers/sysexits.texi: New file.
43398         * doc/glibc-headers/ttyent.texi: New file.
43399
43400 2008-01-12  Jim Meyering  <meyering@redhat.com>
43401
43402         announce-gen: emit Gnulib's git-based version string.
43403         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43404         New option --gnulib-version=V, where V is expected to be
43405         the output of running git describe in the gnulib directory.
43406         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43407         not useful, and plan to stop publishing an xdelta file with each
43408         coreutils release.
43409
43410         * build-aux/announce-gen: Also check for lzma-compressed files.
43411
43412 2008-01-11  Bruno Haible  <bruno@clisp.org>
43413
43414         * tests/test-memmem.c (main): Increase maximum allowed time.
43415         * tests/test-strstr.c (main): Likewise.
43416
43417 2008-01-11  Bruno Haible  <bruno@clisp.org>
43418
43419         * doc/functions/memmem.texi: Add more precisions about platforms.
43420         * doc/functions/strstr.texi: Likewise.
43421
43422 2008-01-10  Eric Blake  <ebb9@byu.net>
43423
43424         * m4/strstr.m4: Delete cruft from copy-n-paste.
43425         Reported by Bruno Haible.
43426
43427 2008-01-10  Bruno Haible  <bruno@clisp.org>
43428
43429         Make c-strstr rely on strstr.
43430         * lib/c-strstr.c: Don't include str-kmp.h.
43431         (c_strstr): Define in terms of strstr.
43432         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43433         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43434
43435 2008-01-10  Bruno Haible  <bruno@clisp.org>
43436
43437         * doc/gnulib.texi (String Functions in C Locale): New section.
43438         * doc/c-ctype.texi: New file.
43439         * doc/c-strcase.texi: New file.
43440         * doc/c-strcaseeq.texi: New file.
43441         * doc/c-strcasestr.texi: New file.
43442         * doc/c-strstr.texi: New file.
43443         * doc/c-strtod.texi: New file.
43444         * doc/c-strtold.texi: New file.
43445
43446 2008-01-10  Eric Blake  <ebb9@byu.net>
43447
43448         * lib/relocatable.h: Fix a comment.
43449
43450 2008-01-10  Eric Blake  <ebb9@byu.net>
43451
43452         Share two-way algorithm.
43453         * lib/str-two-way.h: New file, merged from...
43454         * lib/memmem.c: ...here...
43455         * lib/strstr.c: ...and here.
43456         * modules/memmem (Files): Use it.
43457         * modules/strstr (Files): Likewise.
43458
43459         Avoid quadratic strstr implementations.
43460         * lib/strstr.c: New file.
43461         * m4/strstr.m4: Likewise.
43462         * modules/strstr: Likewise.
43463         * modules/strstr-tests: Likewise.
43464         * tests/test-strstr.c: Likewise.
43465         * lib/string.in.h (rpl_strstr): Declare.
43466         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43468         * modules/string (Makefile.am): Likewise.
43469         * MODULES.html.sh (string handling): Mention new module.
43470         * doc/functions/strstr.texi (strstr): Document the bug.
43471
43472 2008-01-10  Bruno Haible  <bruno@clisp.org>
43473
43474         * lib/relocatable.h (relocate): State whether result is freshly
43475         allocated or not.
43476         * lib/relocatable.c (relocate): Return a freshly allocated string
43477         instead of a pointer to a privately held string.
43478         Reported by Sylvain Beucler <beuc@gnu.org>.
43479
43480 2008-01-10  Colin Watson  <cjwatson@debian.org>
43481
43482         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
43483         s/S_ISNLK/S_ISLNK/.
43484
43485 2008-01-09  Bruno Haible  <bruno@clisp.org>
43486
43487         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
43488         and other files.
43489         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
43490         if it's only a guess.
43491         * modules/memmem: Simplify by depending on memmem-simple.
43492
43493 2008-01-09  Bruno Haible  <bruno@clisp.org>
43494
43495         Work around OpenBSD 4.0 tdelete() bug.
43496         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
43497         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
43498         macros and don't redefine the enum values.
43499         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
43500         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
43501         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
43502
43503 2008-01-09  Bruno Haible  <bruno@clisp.org>
43504
43505         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
43506         (main): Don't perform the tests if setlocale did not install a UTF-8
43507         locale. Needed on OpenBSD 4.0.
43508         * modules/wcwidth-tests (Depends-on): Add localcharset.
43509
43510 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
43511
43512         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
43513         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
43514         * NEWS: announce this.
43515         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
43516
43517 2008-01-09  Simon Josefsson  <simon@josefsson.org>
43518         and Eric Blake  <ebb9@byu.net>
43519
43520         Add memmem-simple module.
43521         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
43522         (gl_FUNC_MEMMEM): Separate performance from presence checks.
43523         * modules/memmem-simple: New file.
43524         * modules/memmem (Description): Tweak.
43525         * MODULES.html.sh (string handling): Mention new module.
43526         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
43527         addressed by memmem-simple.
43528         * NEWS: Document the difference.
43529
43530 2008-01-09  Eric Blake  <ebb9@byu.net>
43531
43532         Give gcc some memmem optimization hints.
43533         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
43534         (strcasestr): Declare as pure.
43535         * modules/memmem (Maintainer): Claim my implementation.
43536
43537 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43538
43539         Support AIX 6.1 and higher.
43540         * build-aux/config.libpath: Likewise.
43541         * build-aux/config.rpath: Likewise.
43542
43543 2008-01-08  Jim Meyering  <meyering@redhat.com>
43544             Bruno Haible  <bruno@clisp.org>
43545
43546         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
43547         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
43548         Reported by Peter Fales in
43549         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
43550
43551 2008-01-08  Bruno Haible  <bruno@clisp.org>
43552
43553         * modules/unictype/category-of (Depends-on): Add
43554         unictype/category-none.
43555         * modules/unictype/category-and-tests (Depends-on): Add
43556         unictype/category-{L,N,Lu,Nd}.
43557         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
43558         * modules/unictype/category-or-tests (Depends-on): Add
43559         unictype/category-{L,N}.
43560         * modules/unictype/category-name-tests (Depends-on): Add
43561         unictype/category-{Z,Nl}.
43562         Reported by Simon Josefsson.
43563
43564 2008-01-08  Bruno Haible  <bruno@clisp.org>
43565
43566         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
43567         convention better.
43568         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
43569         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
43570         Reported by Peter Miller <millerp@canb.auug.org.au>.
43571
43572 2008-01-08  Eric Blake  <ebb9@byu.net>
43573
43574         Rewrite memmem to guarantee linear complexity without malloc.
43575         * lib/memmem.c (memmem): Use Two-Way rather than
43576         Knuth-Morris-Pratt, to allow O(1) space usage.
43577         (critical_factorization, two_way_short_needle)
43578         (two_way_long_needle): New functions.
43579         (knuth_morris_pratt): Delete.
43580         * modules/memmem (Depends-on): No longer need malloca or stdbool.
43581         Add stdint.
43582         * tests/test-memmem.c (main): Add tests for periodic needle and
43583         sublinear performance.
43584         * doc/functions/memmem.texi (memmem): Document other deficiencies
43585         in cygwin and older glibc.
43586
43587 2008-01-08  Bruno Haible  <bruno@clisp.org>
43588
43589         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
43590         augmentation.
43591
43592 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
43593
43594         Add a configure time option: --disable-acl.
43595         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
43596         AC_ARG_ENABLE(acl).
43597
43598 2008-01-06  Simon Josefsson  <simon@josefsson.org>
43599
43600         * tests/test-localename.c: Don't include obsolete "setenv.h".
43601
43602         * modules/localename-tests (Depends-on): Need unsetenv.
43603
43604 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43605
43606         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
43607
43608 2008-01-06  Colin Watson  <cjwatson@debian.org>
43609
43610         * users.txt: Add man-db.
43611
43612 2008-01-07  Bruno Haible  <bruno@clisp.org>
43613
43614         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
43615         previous section name.
43616
43617 2008-01-07  Bruno Haible  <bruno@clisp.org>
43618
43619         * lib/progname.c (set_program_name): Don't strip off a leading
43620         "lt-" prefix outside a .libs directory.
43621         Suggested by Paul Eggert.
43622
43623 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
43624             Bruno Haible  <bruno@clisp.org>
43625
43626         Improve memory cleanup in 'relocatable' module.
43627         * lib/relocatable.h (compute_curr_prefix): Change return type to
43628         'char *'.
43629         * lib/relocatable.c (compute_curr_prefix): Change return type to
43630         'char *'. Free curr_installdir after use.
43631         (relocate): Free curr_prefix_better after use.
43632         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
43633
43634 2008-01-01  Bruno Haible  <bruno@clisp.org>
43635
43636         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
43637         failure on older glibc systems.
43638         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43639
43640 2008-01-05  Eric Blake  <ebb9@byu.net>
43641
43642         Avoid quadratic system memmem.
43643         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
43644         Reported by Ralf Wildenhues.
43645
43646         Fix memmem test for mingw.
43647         * modules/memmem-tests (configure.ac): Check for alarm.
43648         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
43649         it.
43650         * doc/functions/memmem.texi: New file.
43651         * doc/gnulib.texi (Function Substitutes): Add memmem.
43652         Reported by Bruno Haible.
43653
43654 2008-01-04  Bruno Haible  <bruno@clisp.org>
43655
43656         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
43657         Require gl_HEADER_STRINGS_H_DEFAULTS, not
43658         gl_HEADER_STRING_H_DEFAULTS.
43659
43660 2008-01-04  Eric Blake  <ebb9@byu.net>
43661
43662         Shorten duration of memmem test.
43663         * tests/test-memmem.c (main): Use alarm to declare failure if test
43664         is taking too long.
43665         Reported by Ralf Wildenhues.
43666
43667 2007-12-21  Simon Josefsson  <simon@josefsson.org>
43668
43669         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
43670         string, needed by strerror.
43671
43672 2008-01-03  Colin Watson  <cjwatson@debian.org>
43673             Bruno Haible  <bruno@clisp.org>
43674
43675         * doc/gnulib-tool.texi (Localization): New section.
43676
43677 2008-01-02  Bruno Haible  <bruno@clisp.org>
43678
43679         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
43680         variables to 'unsigned char *' type.
43681         Reported by Paul Eggert.
43682
43683 2008-01-02  Jim Meyering  <jim@meyering.net>
43684
43685         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
43686
43687 2007-12-31  Jim Meyering  <jim@meyering.net>
43688
43689         Avoid use of private FTS type name.
43690         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
43691
43692 2007-12-30  Karl Berry  <karl@gnu.org>
43693
43694         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
43695         work around defect in Texinfo and/or the standalone Info browser.
43696
43697 2007-12-30  Bruno Haible  <bruno@clisp.org>
43698
43699         Unify 5 copies of the KMP code.
43700         * lib/str-kmp.h: New file.
43701         * lib/c-strcasestr.c: Include str-kmp.h.
43702         (knuth_morris_pratt): Remove function.
43703         (c_strcasestr): Update.
43704         * lib/c-strstr.c: Include str-kmp.h.
43705         (knuth_morris_pratt): Remove function.
43706         (c_strcasestr): Update.
43707         * lib/mbscasestr.c: Include str-kmp.h.
43708         (knuth_morris_pratt_unibyte): Remove function.
43709         * lib/mbsstr.c: Include str-kmp.h.
43710         (knuth_morris_pratt_unibyte): Remove function.
43711         * lib/strcasestr.c: Include str-kmp.h.
43712         (knuth_morris_pratt): Remove function.
43713         (strcasestr): Update.
43714         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
43715         * modules/c-strstr (Files): Likewise.
43716         * modules/mbscasestr (Files): Likewise.
43717         * modules/mbsstr (Files): Likewise.
43718         * modules/strcasestr (Files): Likewise.
43719         Suggested by Paul Eggert.
43720
43721 2007-12-30  Bruno Haible  <bruno@clisp.org>
43722
43723         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
43724         defined.
43725
43726 2007-12-30  Bruno Haible  <bruno@clisp.org>
43727
43728         * lib/xmalloca.h: Include xalloc.h.
43729         (xnmalloca): New macro.
43730
43731 2007-12-30  Bruno Haible  <bruno@clisp.org>
43732
43733         * lib/malloca.h (nmalloca): New macro.
43734         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
43735         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
43736         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
43737         knuth_morris_pratt_multibyte): Likewise.
43738         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
43739         knuth_morris_pratt_multibyte): Likewise.
43740         * lib/memmem.c (knuth_morris_pratt): Likewise.
43741         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
43742
43743 2007-12-25  Bruno Haible  <bruno@clisp.org>
43744
43745         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
43746         * lib/glob.c: Don't include openat.h.
43747         (link_exists2_p): Add back the code that deals with the
43748         !GLOB_ALTDIRFUNC case.
43749         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
43750         let it do the filename concatenation.
43751         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
43752         * modules/glob (Depends-on): Remove openat.
43753
43754 2007-12-31  Bruno Haible  <bruno@clisp.org>
43755
43756         * modules/dirfd (License): Change to LGPLv2+.
43757         Approved by Jim Meyering.
43758
43759 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43760
43761         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
43762         when multiplying M by sizeof (size_t).
43763
43764 2007-12-10  Martin Lambers  <marlam@marlam.de>
43765
43766         Override getpagesize on mingw.
43767         * lib/getpagesize.c: New file.
43768         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
43769         * modules/getpagesize (Files): Add lib/getpagesize.c.
43770         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
43771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43772         REPLACE_GETPAGESIZE.
43773         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
43774
43775 2007-12-25  Bruno Haible  <bruno@clisp.org>
43776
43777         * modules/localcharset (Notice): New field.
43778         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
43779         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
43780
43781 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43782             Bruno Haible  <bruno@clisp.org>
43783
43784         Avoid using the syntax symbol() in formatted documentation.
43785         * MODULES.html.sh (func_module): When replacing symbol() with a
43786         hyperlink, remove the parentheses. Show an error if some remain.
43787         Recognize and render the '...' syntax.
43788         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
43789         Rework. Add paragraph about GCC's inlining.
43790         * doc/alloca.texi: Likewise.
43791         * doc/error.texi: Remove parentheses from symbol reference.
43792         * doc/gnulib-intro.texi: Likewise.
43793         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
43794         * modules/fnmatch (Description): Reword to say "the ... function".
43795         * modules/full-read (Description): Likewise.
43796         * modules/full-write (Description): Likewise.
43797         * modules/safe-read (Description): Likewise.
43798         * modules/safe-write (Description): Likewise.
43799         * modules/strchrnul (Description): Likewise.
43800         * modules/trim (Description): Likewise.
43801         * modules/error (Description): Remove parentheses from symbol
43802         references.
43803         * modules/verror (Description): Likewise.
43804         Reported by Karl Berry.
43805
43806 2007-12-25  Bruno Haible  <bruno@clisp.org>
43807
43808         Fixup after 2007-10-16 commit.
43809         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
43810
43811 2007-12-24  Bruno Haible  <bruno@clisp.org>
43812
43813         Make --enable-relocatable work with DESTDIR.
43814         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
43815         to compute installdir from destprog.
43816         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
43817         also set the RELOC_DESTDIR variable.
43818         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43819
43820 2007-12-24  Bruno Haible  <bruno@clisp.org>
43821
43822         Fix link error due to xalloc_die().
43823         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
43824         of xreadlink.
43825         * lib/relocwrapper.c: Update comments.
43826         * build-aux/install-reloc: Remove xreadlink.c from file list.
43827         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
43828         xreadlink.c.
43829         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43830
43831 2007-12-24  Bruno Haible  <bruno@clisp.org>
43832
43833         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
43834         * lib/setenv.h: Remove file.
43835         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
43836         lib/setenv.h.
43837         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
43838         (Depends-on): Add stdlib.
43839         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
43840         gl_FUNC_UNSETENV.
43841         (Include): Replace setenv.h with <stdlib.h>.
43842         * modules/unsetenv: New file.
43843         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
43844         * lib/unsetenv.c: Include <stdlib.h> first.
43845         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
43846         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
43847         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
43848         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
43849         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
43850         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
43852         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43853         * doc/functions/unsetenv.texi: Update.
43854         * modules/xsetenv (Depends-on): Add unsetenv.
43855         * modules/getdate (Depends-on): Likewise.
43856         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
43857         * lib/xsetenv.c: Don't include setenv.h.
43858         * lib/getdate.y: Likewise.
43859         * lib/relocwrapper.c: Likewise.
43860         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
43861         (Depends-on): Add stdlib.
43862         * NEWS: Mention the changes.
43863         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43864
43865 2007-12-23  Bruno Haible  <bruno@clisp.org>
43866
43867         * lib/memmem.c (memmem): Use lowercase variable names. Tab
43868         indentation.
43869
43870 2007-12-23  Bruno Haible  <bruno@clisp.org>
43871
43872         * lib/c-strcasestr.c: Add more comments.
43873         * lib/c-strstr.c: Likewise.
43874         * lib/mbscasestr.c: Likewise.
43875         * lib/mbsstr.c: Likewise.
43876         * lib/strcasestr.c: Likewise.
43877         * lib/memmem.c: Likewise.
43878
43879 2007-12-23  Bruno Haible  <bruno@clisp.org>
43880
43881         * tests/test-memmem.c: Include <string.h> first.
43882
43883 2007-12-22  Bruno Haible  <bruno@clisp.org>
43884
43885         * gnulib-tool (func_create_testdir): Change $auxdir while generating
43886         the contents of $testsbase.
43887         Reported by Ralf Wildenhues.
43888
43889 2007-12-22  Bruno Haible  <bruno@clisp.org>
43890
43891         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
43892         two variables local_ldadd_before, local_ldadd_last.
43893
43894 2007-12-20  Eric Blake  <ebb9@byu.net>
43895
43896         Work around circular library issue when cross-compiling.
43897         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
43898         that progname.o does not need to pull in rpl_memcmp.
43899
43900 2007-12-19  Eric Blake  <ebb9@byu.net>
43901
43902         Fix memmem to avoid O(n^2) worst-case complexity.
43903         * lib/memmem.c (knuth_morris_pratt): New function.
43904         (memmem): Use it if first few naive iterations fail.
43905         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
43906         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
43907         * modules/memchr (License): Likewise.
43908         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
43909         malloca.
43910         * tests/test-memmem.c: Rewrite, borrowing ideas from
43911         test-mbsstr1.c; the old version wouldn't even compile!
43912         * modules/memmem-tests: New file.
43913         * lib/string.in.h (rpl_memmem): Add declaration.
43914         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
43915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
43916         REPLACE_MEMMEM.
43917
43918 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43919
43920         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
43921         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
43922         before any system include files, and undef after them all.  This
43923         should fix a problem on VMS reported by John E. Malmberg in
43924         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
43925
43926 2007-12-17  Eric Blake  <ebb9@byu.net>
43927
43928         Revert addition of verify, for BSD/OS.
43929         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
43930         can't handle large files, for the sake of obsolete platforms.
43931         * modules/fseeko (Depends-on): Remove verify.
43932         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
43933         * doc/functions/ftello.texi (ftello): Likewise.
43934         * doc/functions/fgetpos.texi (fgetpos): Likewise.
43935         Reported by Larry Jones.
43936
43937 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
43938
43939         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
43940         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
43941
43942 2007-12-17  Jim Meyering  <meyering@redhat.com>
43943
43944         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
43945         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
43946         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
43947         * modules/getcwd (Depends-on): Add openat.
43948         Reported by Petr Salinger.
43949
43950 2007-12-17  Bruno Haible  <bruno@clisp.org>
43951
43952         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
43953         avoid a segmentation fault of the configure test on x86_64 systems.
43954
43955 2007-12-15  Jim Meyering  <meyering@redhat.com>
43956
43957         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
43958
43959 2007-12-13  Eric Blake  <ebb9@byu.net>
43960
43961         Another fseek test.
43962         * tests/test-fseek.c (main): Also test ungetc handling.
43963         * tests/test-fseeko.c (main): Likewise.
43964         * modules/fseeko (Depends-on): Add verify.
43965         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
43966         large.
43967         Reported by Larry Jones.
43968
43969         Fix fseeko on mingw.
43970         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
43971         seek.
43972
43973         Beef up fseek tests.
43974         * tests/test-fseek.c (main): Also test eof handling.
43975         * tests/test-fseeko.c (main): Likewise.
43976         Reported by Larry Jones.
43977
43978 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
43979
43980         Fix fseeko on BSD-based platforms.
43981         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
43982         successful seek.
43983
43984 2007-12-12  Eric Blake  <ebb9@byu.net>
43985
43986         Allow circular dependency of separate libtests.a
43987         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
43988         when use_libtests.
43989
43990 2007-12-11  Eric Blake  <ebb9@byu.net>
43991
43992         Fix bug with -0.0L in previous patch.
43993         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
43994         * tests/test-isnan.c (main): Also test on zeroes.
43995         * tests/test-isnanf.c (main): Likewise.
43996         * tests/test-isnanl.h (main): Likewise.
43997
43998         Detect pseudo-denormals on x86 even when cross-compiling.
43999         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
44000         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
44001         invalid bit patterns that happen to satisfy ==.
44002
44003         Avoid link failures with separate libtests.a.
44004         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
44005         last, to satisfy circular dependencies.
44006
44007 2007-12-11  Eric Blake  <ebb9@byu.net>
44008         and Bruno Haible  <bruno@clisp.org>
44009
44010         Fix OpenBSD 4.0 <float.h> handling of long double.
44011         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
44012         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
44013         * doc/headers/float.texi (float.h): Document OpenBSD bug.
44014
44015 2007-12-11  Jim Meyering  <meyering@redhat.com>
44016
44017         * users.txt: Add libvirt.
44018
44019         Support versions of autoconf prior to 2.59c.
44020         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
44021         if it is not already defined.
44022
44023 2007-12-09  Bruno Haible  <bruno@clisp.org>
44024
44025         Let 'gnulib-tool --import' collect sources needed for the tests in
44026         tests/ rather than in lib/.
44027         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
44028         argument. If true, add rules to generate libtests.a, and put libtests.a
44029         into $(LDADD). Consider source files in subdirectories and set
44030         uses_subdirs.
44031         (func_emit_initmacro_start, func_emit_initmacro_end,
44032         func_emit_initmacro_done): Pass all arguments explicitly.
44033         (func_import): Determine two module lists main_modules,
44034         testsrelated_modules. Determine use_libtests. Determine two variables
44035         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
44036         instead of just sed_transform_lib_file. Determine two variables
44037         main_files and testsrelated_files. Compute 'files' as the union of
44038         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
44039         func_add_or_update. In the generated gnulib-comp.m4, collect the
44040         object files for tests/ in different variables than those for lib/.
44041         Substitute LIBTESTS_LIBDEPS.
44042         (func_create_testdir): Combine the uses_subdirs results from
44043         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
44044
44045 2007-12-09  Bruno Haible  <bruno@clisp.org>
44046
44047         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
44048         the build-aux directory.
44049
44050 2007-12-09  Bruno Haible  <bruno@clisp.org>
44051
44052         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
44053         introduced on 2006-09-09.
44054
44055 2007-12-07  Jim Meyering  <meyering@redhat.com>
44056
44057         Let these macros work also with autoconf-2.59.
44058         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
44059         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
44060         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44061
44062 2007-12-06  Jim Meyering  <meyering@redhat.com>
44063
44064         Avoid a configure-time syntax error in gl_FUNC_ACL.
44065         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
44066         function in each branch, before testing the cache variable.
44067
44068 2007-12-04  Eric Blake  <ebb9@byu.net>
44069
44070         Make scripts executable.
44071         * build-aux/config.guess: Add execute permissions.
44072         * build-aux/config.sub: Likewise.
44073         * build-aux/gendocs.sh: Likewise.
44074
44075         Fix frexp on mingw.
44076         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
44077         cross-compiling.
44078         * doc/functions/frexp.texi (frexp): Document the bug.
44079
44080         Make cygwin fseeko check more reliable.
44081         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
44082         version numbers, rather than unrelated feature check.
44083         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
44084         * doc/functions/ftello.texi (ftello): Likewise.
44085         Reported by Bruno Haible.
44086
44087         * m4/strerror.m4: Bump version number.
44088
44089 2007-12-03  Bruno Haible  <bruno@clisp.org>
44090
44091         * doc/functions/mprotect.texi: Mention the mingw problem.
44092
44093 2007-12-03  Eric Blake  <ebb9@byu.net>
44094
44095         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
44096         REPLACE_STRERROR is initialized before this macro.
44097
44098 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44099
44100         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
44101         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
44102         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
44103         put -lsec in even for programs other than 'ls'.  This fixes a problem
44104         for gettext reported by Bruno Haible in
44105         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
44106         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
44107         Add support for Solaris 10.  This isn't efficient, but should get the
44108         job done for now.
44109
44110 2007-12-03  James Youngman  <jay@gnu.org>
44111
44112         * doc/regexprops-generic.texi: change "an close-group" to "a
44113         close-group" and "illegal" to "not allowed".
44114
44115 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44116
44117         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
44118         pr_byname.h. Needed for the rare case when the maintainer has done
44119         "make maintainer-clean" in the source directory and then attempts a
44120         build outside the source directory.
44121         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
44122         scripts_byname.h.
44123
44124 2007-12-02  Martin Lambers <marlam@marlam.de>
44125             Bruno Haible  <bruno@clisp.org>
44126
44127         * lib/getpagesize.h: Remove file.
44128         * lib/unistd.in.h: Include declaration of getpagesize here.
44129         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
44130         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
44131         HAVE_SYS_PARAM_H.
44132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
44133         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44134         * modules/getpagesize (Files): Remove lib/getpagesize.h.
44135         (Depends-on): Add unistd.
44136         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44137         (Include): Use <unistd.h> instead of getpagesize.h.
44138         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
44139         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44140         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
44141         gl_GETPAGESIZE invocation, already handled by module dependency.
44142         * lib/pagealign_alloc.c: Don't include getpagesize.h.
44143
44144 2007-12-02  Bruno Haible  <bruno@clisp.org>
44145
44146         * modules/strings-tests: New file.
44147         * tests/test-strings.c: New file.
44148
44149         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
44150         * lib/strings.in.h: New file.
44151         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
44152         * m4/strings_h.m4: New file.
44153         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
44154         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
44155         * modules/strings: New file.
44156         * modules/string (Makefile.am): Update.
44157         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
44158         Reported by Karl Berry.
44159
44160 2007-12-01  Eric Blake  <ebb9@byu.net>
44161
44162         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
44163         accomodate fix in cygwin 1.5.25.
44164
44165 2007-12-01  Jim Meyering  <meyering@redhat.com>
44166
44167         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
44168         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
44169         that would inhibit utf8-optimization of a regexp containing line-
44170         or buffer-anchors, e.g., `^', `$'.
44171
44172 2007-11-30  Bruno Haible  <bruno@clisp.org>
44173
44174         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
44175         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
44176         glthread_recursive_lock_init.
44177         * lib/lock.c (glthread_recursive_lock_init)
44178         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
44179         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44180
44181 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
44182
44183         New function qset_acl, like set_acl but with syscall semantics.
44184         * lib/acl.h (qset_acl): New decl.
44185         * lib/acl.c (qset_acl): New function.
44186         (set_acl): Use new function.  Use more-consistent diagnostics.
44187
44188 2007-11-28  Jim Meyering  <meyering@redhat.com>
44189
44190         * modules/physmem (License): Change from GPL to LGPLv2+.
44191
44192 2007-11-26  Bruno Haible  <bruno@clisp.org>
44193
44194         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44195         'long double' type has excess precision.
44196         Reported by Jim Meyering in
44197         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44198
44199 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44200
44201         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44202         Sync from <http://gnu.org/licenses>.
44203         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44204         with license text from same location.
44205         * doc/maintain.texi, doc/standards.texi:  Sync from
44206         <http://savannah.gnu.org/projects/gnustandards>.
44207
44208 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44209         and Jim Meyering  <meyering@redhat.com>
44210
44211         Adjust getdate' grammar to accept a slightly more regular language.
44212         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44213         Before, the former was rejected.
44214         * lib/getdate.y (digits_to_date_time): New function, factored
44215         out of ...
44216         (number): ...here.  Just call digits_to_date_time.
44217         (hybrid): New non-terminal to handle an <unsigned number,
44218         signed relative offset> sequence consistently.
44219
44220 2007-11-18  Jim Meyering  <meyering@redhat.com>
44221
44222         Pull my changes from coreutils:
44223         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44224         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44225         use of $gnulib_tool_option_extras, so that it's separated from the
44226         preceding argument.
44227
44228         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44229         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44230         parent destination directories before copying a file into place.
44231
44232 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44233
44234         bootstrap: work also with 4-argument variant of AC_INIT
44235         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44236
44237 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44238
44239         Port test-getaddrinfo to Solaris.
44240         Problem reported by Bruno Haible in
44241         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44242         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44243         explanation of setting 'hints'.
44244         Don't reject an implementation merely because it returns EAI_SERVICE.
44245         (EAI_SERVICE): Define to 0 if not defined.
44246
44247 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44248
44249         The license of gnu-make and posix-shell is now "GPLed build tool".
44250         * modules/gnu-make (License): Likewise.
44251         * modules/posix-shell (License): Likewise.
44252
44253         New module posix-shell, for determining a POSIX shell
44254         or perhaps something that is close enough to a POSIX shell.
44255         * m4/posix-shell.m4: New file.
44256         * modules/posix-shell: New file.
44257
44258         * MODULES.html.sh: Mention new module.
44259
44260         New module gnu-make, for determining whether we're using GNU Make.
44261         * m4/gnu-make.m4: New file.
44262         * modules/gnu-make: New file.
44263         * MODULES.html.sh: Mention new module.
44264
44265 2007-11-14  Jim Meyering  <meyering@redhat.com>
44266
44267         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
44268         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
44269         use this macro to create a function _definition_.
44270         Remove useless "#undef ARGMATCH_DIE".
44271
44272 2007-11-14  Bruno Haible  <bruno@clisp.org>
44273
44274         * lib/config.charset: Update for OpenBSD 4.1.
44275         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
44276
44277 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
44278
44279         Document 64-bit #if problems in stdint.texi.
44280         * doc/headers/stdint.texi (stdint.h): Mention problems with
44281         64-bit-#if, and how to work around them.
44282
44283         Don't insist on 'long long int' support in the preprocessor.  It
44284         breaks too many things.  For example, PRIdMAX still uses a 'long
44285         long int' format with the latest Sun compiler, even though
44286         HAVE_LONG_LONG_INT isn't defined due to that compiler's
44287         preprocessor problem.  This causes the latest coreutils to dump
44288         core on Solaris 10 sparc with the Sun C compiler.
44289         Instead, fix the 2007-10-16 problem in a different way, by evaluating
44290         the troublesome expressions at configure-time, not at #if-time.
44291         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
44292         preprocessor.
44293         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
44294         compile-time C checks, done at 'configure'-time.
44295         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
44296         * modules/inttypes (Makefile): Substitute the new symbols that
44297         gl_INTTYPES_H now generates.
44298         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
44299
44300 2007-11-12  Bruno Haible  <bruno@clisp.org>
44301
44302         Tests for Unicode character classification functions.
44303
44304         * modules/unictype/bidicategory-byname-tests: New file.
44305         * modules/unictype/bidicategory-name-tests: New file.
44306         * modules/unictype/bidicategory-of-tests: New file.
44307         * modules/unictype/bidicategory-test-tests: New file.
44308         * modules/unictype/block-list-tests: New file.
44309         * modules/unictype/block-of-tests: New file.
44310         * modules/unictype/block-test-tests: New file.
44311         * modules/unictype/category-C-tests: New file.
44312         * modules/unictype/category-Cc-tests: New file.
44313         * modules/unictype/category-Cf-tests: New file.
44314         * modules/unictype/category-Cn-tests: New file.
44315         * modules/unictype/category-Co-tests: New file.
44316         * modules/unictype/category-Cs-tests: New file.
44317         * modules/unictype/category-L-tests: New file.
44318         * modules/unictype/category-Ll-tests: New file.
44319         * modules/unictype/category-Lm-tests: New file.
44320         * modules/unictype/category-Lo-tests: New file.
44321         * modules/unictype/category-Lt-tests: New file.
44322         * modules/unictype/category-Lu-tests: New file.
44323         * modules/unictype/category-M-tests: New file.
44324         * modules/unictype/category-Mc-tests: New file.
44325         * modules/unictype/category-Me-tests: New file.
44326         * modules/unictype/category-Mn-tests: New file.
44327         * modules/unictype/category-N-tests: New file.
44328         * modules/unictype/category-Nd-tests: New file.
44329         * modules/unictype/category-Nl-tests: New file.
44330         * modules/unictype/category-No-tests: New file.
44331         * modules/unictype/category-P-tests: New file.
44332         * modules/unictype/category-Pc-tests: New file.
44333         * modules/unictype/category-Pd-tests: New file.
44334         * modules/unictype/category-Pe-tests: New file.
44335         * modules/unictype/category-Pf-tests: New file.
44336         * modules/unictype/category-Pi-tests: New file.
44337         * modules/unictype/category-Po-tests: New file.
44338         * modules/unictype/category-Ps-tests: New file.
44339         * modules/unictype/category-S-tests: New file.
44340         * modules/unictype/category-Sc-tests: New file.
44341         * modules/unictype/category-Sk-tests: New file.
44342         * modules/unictype/category-Sm-tests: New file.
44343         * modules/unictype/category-So-tests: New file.
44344         * modules/unictype/category-Z-tests: New file.
44345         * modules/unictype/category-Zl-tests: New file.
44346         * modules/unictype/category-Zp-tests: New file.
44347         * modules/unictype/category-Zs-tests: New file.
44348         * modules/unictype/category-and-not-tests: New file.
44349         * modules/unictype/category-and-tests: New file.
44350         * modules/unictype/category-byname-tests: New file.
44351         * modules/unictype/category-name-tests: New file.
44352         * modules/unictype/category-none-tests: New file.
44353         * modules/unictype/category-of-tests: New file.
44354         * modules/unictype/category-or-tests: New file.
44355         * modules/unictype/category-test-withtable-tests: New file.
44356         * modules/unictype/combining-class-tests: New file.
44357         * modules/unictype/ctype-alnum-tests: New file.
44358         * modules/unictype/ctype-alpha-tests: New file.
44359         * modules/unictype/ctype-blank-tests: New file.
44360         * modules/unictype/ctype-cntrl-tests: New file.
44361         * modules/unictype/ctype-digit-tests: New file.
44362         * modules/unictype/ctype-graph-tests: New file.
44363         * modules/unictype/ctype-lower-tests: New file.
44364         * modules/unictype/ctype-print-tests: New file.
44365         * modules/unictype/ctype-punct-tests: New file.
44366         * modules/unictype/ctype-space-tests: New file.
44367         * modules/unictype/ctype-upper-tests: New file.
44368         * modules/unictype/ctype-xdigit-tests: New file.
44369         * modules/unictype/decimal-digit-tests: New file.
44370         * modules/unictype/digit-tests: New file.
44371         * modules/unictype/mirror-tests: New file.
44372         * modules/unictype/numeric-tests: New file.
44373         * modules/unictype/property-alphabetic-tests: New file.
44374         * modules/unictype/property-ascii-hex-digit-tests: New file.
44375         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44376         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44377         * modules/unictype/property-bidi-block-separator-tests: New file.
44378         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44379         * modules/unictype/property-bidi-common-separator-tests: New file.
44380         * modules/unictype/property-bidi-control-tests: New file.
44381         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44382         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44383         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44384         * modules/unictype/property-bidi-european-digit-tests: New file.
44385         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44386         * modules/unictype/property-bidi-left-to-right-tests: New file.
44387         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44388         * modules/unictype/property-bidi-other-neutral-tests: New file.
44389         * modules/unictype/property-bidi-pdf-tests: New file.
44390         * modules/unictype/property-bidi-segment-separator-tests: New file.
44391         * modules/unictype/property-bidi-whitespace-tests: New file.
44392         * modules/unictype/property-byname-tests: New file.
44393         * modules/unictype/property-combining-tests: New file.
44394         * modules/unictype/property-composite-tests: New file.
44395         * modules/unictype/property-currency-symbol-tests: New file.
44396         * modules/unictype/property-dash-tests: New file.
44397         * modules/unictype/property-decimal-digit-tests: New file.
44398         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44399         * modules/unictype/property-deprecated-tests: New file.
44400         * modules/unictype/property-diacritic-tests: New file.
44401         * modules/unictype/property-extender-tests: New file.
44402         * modules/unictype/property-format-control-tests: New file.
44403         * modules/unictype/property-grapheme-base-tests: New file.
44404         * modules/unictype/property-grapheme-extend-tests: New file.
44405         * modules/unictype/property-grapheme-link-tests: New file.
44406         * modules/unictype/property-hex-digit-tests: New file.
44407         * modules/unictype/property-hyphen-tests: New file.
44408         * modules/unictype/property-id-continue-tests: New file.
44409         * modules/unictype/property-id-start-tests: New file.
44410         * modules/unictype/property-ideographic-tests: New file.
44411         * modules/unictype/property-ids-binary-operator-tests: New file.
44412         * modules/unictype/property-ids-trinary-operator-tests: New file.
44413         * modules/unictype/property-ignorable-control-tests: New file.
44414         * modules/unictype/property-iso-control-tests: New file.
44415         * modules/unictype/property-join-control-tests: New file.
44416         * modules/unictype/property-left-of-pair-tests: New file.
44417         * modules/unictype/property-line-separator-tests: New file.
44418         * modules/unictype/property-logical-order-exception-tests: New file.
44419         * modules/unictype/property-lowercase-tests: New file.
44420         * modules/unictype/property-math-tests: New file.
44421         * modules/unictype/property-non-break-tests: New file.
44422         * modules/unictype/property-not-a-character-tests: New file.
44423         * modules/unictype/property-numeric-tests: New file.
44424         * modules/unictype/property-other-alphabetic-tests: New file.
44425         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44426         * modules/unictype/property-other-grapheme-extend-tests: New file.
44427         * modules/unictype/property-other-id-continue-tests: New file.
44428         * modules/unictype/property-other-id-start-tests: New file.
44429         * modules/unictype/property-other-lowercase-tests: New file.
44430         * modules/unictype/property-other-math-tests: New file.
44431         * modules/unictype/property-other-uppercase-tests: New file.
44432         * modules/unictype/property-paired-punctuation-tests: New file.
44433         * modules/unictype/property-paragraph-separator-tests: New file.
44434         * modules/unictype/property-pattern-syntax-tests: New file.
44435         * modules/unictype/property-pattern-white-space-tests: New file.
44436         * modules/unictype/property-private-use-tests: New file.
44437         * modules/unictype/property-punctuation-tests: New file.
44438         * modules/unictype/property-quotation-mark-tests: New file.
44439         * modules/unictype/property-radical-tests: New file.
44440         * modules/unictype/property-sentence-terminal-tests: New file.
44441         * modules/unictype/property-soft-dotted-tests: New file.
44442         * modules/unictype/property-space-tests: New file.
44443         * modules/unictype/property-terminal-punctuation-tests: New file.
44444         * modules/unictype/property-test-tests: New file.
44445         * modules/unictype/property-titlecase-tests: New file.
44446         * modules/unictype/property-unassigned-code-value-tests: New file.
44447         * modules/unictype/property-unified-ideograph-tests: New file.
44448         * modules/unictype/property-uppercase-tests: New file.
44449         * modules/unictype/property-variation-selector-tests: New file.
44450         * modules/unictype/property-white-space-tests: New file.
44451         * modules/unictype/property-xid-continue-tests: New file.
44452         * modules/unictype/property-xid-start-tests: New file.
44453         * modules/unictype/property-zero-width-tests: New file.
44454         * modules/unictype/scripts-tests: New file.
44455         * modules/unictype/syntax-c-ident-tests: New file.
44456         * modules/unictype/syntax-c-whitespace-tests: New file.
44457         * modules/unictype/syntax-java-ident-tests: New file.
44458         * modules/unictype/syntax-java-whitespace-tests: New file.
44459         * tests/unictype/test-bidi_byname.c: New file.
44460         * tests/unictype/test-bidi_name.c: New file.
44461         * tests/unictype/test-bidi_of.c: New file.
44462         * tests/unictype/test-bidi_test.c: New file.
44463         * tests/unictype/test-block_list.c: New file.
44464         * tests/unictype/test-block_of.c: New file.
44465         * tests/unictype/test-block_test.c: New file.
44466         * tests/unictype/test-categ_and.c: New file.
44467         * tests/unictype/test-categ_and_not.c: New file.
44468         * tests/unictype/test-categ_byname.c: New file.
44469         * tests/unictype/test-categ_name.c: New file.
44470         * tests/unictype/test-categ_none.c: New file.
44471         * tests/unictype/test-categ_of.c: New file.
44472         * tests/unictype/test-categ_or.c: New file.
44473         * tests/unictype/test-categ_test_withtable.c: New file.
44474         * tests/unictype/test-combining.c: New file.
44475         * tests/unictype/test-decdigit.c: New file.
44476         * tests/unictype/test-digit.c: New file.
44477         * tests/unictype/test-mirror.c: New file.
44478         * tests/unictype/test-numeric.c: New file.
44479         * tests/unictype/test-pr_byname.c: New file.
44480         * tests/unictype/test-pr_test.c: New file.
44481         * tests/unictype/test-predicate-part1.h: New file.
44482         * tests/unictype/test-predicate-part2.h: New file.
44483         * tests/unictype/test-scripts.c: New file.
44484         * tests/unictype/test-sy_c_ident.c: New file.
44485         * tests/unictype/test-sy_java_ident.c: New file.
44486
44487         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
44488         for Unicode 5.0.0.
44489         * tests/unictype/test-categ_Cc.c: Likewise.
44490         * tests/unictype/test-categ_Cf.c: Likewise.
44491         * tests/unictype/test-categ_Cn.c: Likewise.
44492         * tests/unictype/test-categ_Co.c: Likewise.
44493         * tests/unictype/test-categ_Cs.c: Likewise.
44494         * tests/unictype/test-categ_L.c: Likewise.
44495         * tests/unictype/test-categ_Ll.c: Likewise.
44496         * tests/unictype/test-categ_Lm.c: Likewise.
44497         * tests/unictype/test-categ_Lo.c: Likewise.
44498         * tests/unictype/test-categ_Lt.c: Likewise.
44499         * tests/unictype/test-categ_Lu.c: Likewise.
44500         * tests/unictype/test-categ_M.c: Likewise.
44501         * tests/unictype/test-categ_Mc.c: Likewise.
44502         * tests/unictype/test-categ_Me.c: Likewise.
44503         * tests/unictype/test-categ_Mn.c: Likewise.
44504         * tests/unictype/test-categ_N.c: Likewise.
44505         * tests/unictype/test-categ_Nd.c: Likewise.
44506         * tests/unictype/test-categ_Nl.c: Likewise.
44507         * tests/unictype/test-categ_No.c: Likewise.
44508         * tests/unictype/test-categ_P.c: Likewise.
44509         * tests/unictype/test-categ_Pc.c: Likewise.
44510         * tests/unictype/test-categ_Pd.c: Likewise.
44511         * tests/unictype/test-categ_Pe.c: Likewise.
44512         * tests/unictype/test-categ_Pf.c: Likewise.
44513         * tests/unictype/test-categ_Pi.c: Likewise.
44514         * tests/unictype/test-categ_Po.c: Likewise.
44515         * tests/unictype/test-categ_Ps.c: Likewise.
44516         * tests/unictype/test-categ_S.c: Likewise.
44517         * tests/unictype/test-categ_Sc.c: Likewise.
44518         * tests/unictype/test-categ_Sk.c: Likewise.
44519         * tests/unictype/test-categ_Sm.c: Likewise.
44520         * tests/unictype/test-categ_So.c: Likewise.
44521         * tests/unictype/test-categ_Z.c: Likewise.
44522         * tests/unictype/test-categ_Zl.c: Likewise.
44523         * tests/unictype/test-categ_Zp.c: Likewise.
44524         * tests/unictype/test-categ_Zs.c: Likewise.
44525         * tests/unictype/test-ctype_alnum.c: Likewise.
44526         * tests/unictype/test-ctype_alpha.c: Likewise.
44527         * tests/unictype/test-ctype_blank.c: Likewise.
44528         * tests/unictype/test-ctype_cntrl.c: Likewise.
44529         * tests/unictype/test-ctype_digit.c: Likewise.
44530         * tests/unictype/test-ctype_graph.c: Likewise.
44531         * tests/unictype/test-ctype_lower.c: Likewise.
44532         * tests/unictype/test-ctype_print.c: Likewise.
44533         * tests/unictype/test-ctype_punct.c: Likewise.
44534         * tests/unictype/test-ctype_space.c: Likewise.
44535         * tests/unictype/test-ctype_upper.c: Likewise.
44536         * tests/unictype/test-ctype_xdigit.c: Likewise.
44537         * tests/unictype/test-decdigit.h: Likewise.
44538         * tests/unictype/test-digit.h: Likewise.
44539         * tests/unictype/test-numeric.h: Likewise.
44540         * tests/unictype/test-pr_alphabetic.c: Likewise.
44541         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
44542         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44543         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44544         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
44545         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44546         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
44547         * tests/unictype/test-pr_bidi_control.c: Likewise.
44548         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
44549         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
44550         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44551         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44552         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44553         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44554         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44555         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44556         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
44557         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
44558         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
44559         * tests/unictype/test-pr_combining.c: Likewise.
44560         * tests/unictype/test-pr_composite.c: Likewise.
44561         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44562         * tests/unictype/test-pr_dash.c: Likewise.
44563         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44564         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
44565         * tests/unictype/test-pr_deprecated.c: Likewise.
44566         * tests/unictype/test-pr_diacritic.c: Likewise.
44567         * tests/unictype/test-pr_extender.c: Likewise.
44568         * tests/unictype/test-pr_format_control.c: Likewise.
44569         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44570         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44571         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44572         * tests/unictype/test-pr_hex_digit.c: Likewise.
44573         * tests/unictype/test-pr_hyphen.c: Likewise.
44574         * tests/unictype/test-pr_id_continue.c: Likewise.
44575         * tests/unictype/test-pr_id_start.c: Likewise.
44576         * tests/unictype/test-pr_ideographic.c: Likewise.
44577         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
44578         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
44579         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44580         * tests/unictype/test-pr_iso_control.c: Likewise.
44581         * tests/unictype/test-pr_join_control.c: Likewise.
44582         * tests/unictype/test-pr_left_of_pair.c: Likewise.
44583         * tests/unictype/test-pr_line_separator.c: Likewise.
44584         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44585         * tests/unictype/test-pr_lowercase.c: Likewise.
44586         * tests/unictype/test-pr_math.c: Likewise.
44587         * tests/unictype/test-pr_non_break.c: Likewise.
44588         * tests/unictype/test-pr_not_a_character.c: Likewise.
44589         * tests/unictype/test-pr_numeric.c: Likewise.
44590         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44591         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
44592         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
44593         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44594         * tests/unictype/test-pr_other_id_start.c: Likewise.
44595         * tests/unictype/test-pr_other_lowercase.c: Likewise.
44596         * tests/unictype/test-pr_other_math.c: Likewise.
44597         * tests/unictype/test-pr_other_uppercase.c: Likewise.
44598         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
44599         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
44600         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
44601         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
44602         * tests/unictype/test-pr_private_use.c: Likewise.
44603         * tests/unictype/test-pr_punctuation.c: Likewise.
44604         * tests/unictype/test-pr_quotation_mark.c: Likewise.
44605         * tests/unictype/test-pr_radical.c: Likewise.
44606         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44607         * tests/unictype/test-pr_soft_dotted.c: Likewise.
44608         * tests/unictype/test-pr_space.c: Likewise.
44609         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44610         * tests/unictype/test-pr_titlecase.c: Likewise.
44611         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44612         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44613         * tests/unictype/test-pr_uppercase.c: Likewise.
44614         * tests/unictype/test-pr_variation_selector.c: Likewise.
44615         * tests/unictype/test-pr_white_space.c: Likewise.
44616         * tests/unictype/test-pr_xid_continue.c: Likewise.
44617         * tests/unictype/test-pr_xid_start.c: Likewise.
44618         * tests/unictype/test-pr_zero_width.c: Likewise.
44619         * tests/unictype/test-sy_c_whitespace.c: Likewise.
44620         * tests/unictype/test-sy_java_whitespace.c: Likewise.
44621
44622 2007-11-12  Bruno Haible  <bruno@clisp.org>
44623
44624         Unicode character classification functions.
44625         * lib/unictype.h: New file.
44626         * modules/unictype/base: New file.
44627         * modules/unictype/category-L: New file.
44628         * modules/unictype/category-Lu: New file.
44629         * modules/unictype/category-Ll: New file.
44630         * modules/unictype/category-Lt: New file.
44631         * modules/unictype/category-Lm: New file.
44632         * modules/unictype/category-Lo: New file.
44633         * modules/unictype/category-M: New file.
44634         * modules/unictype/category-Mn: New file.
44635         * modules/unictype/category-Mc: New file.
44636         * modules/unictype/category-Me: New file.
44637         * modules/unictype/category-N: New file.
44638         * modules/unictype/category-Nd: New file.
44639         * modules/unictype/category-Nl: New file.
44640         * modules/unictype/category-No: New file.
44641         * modules/unictype/category-P: New file.
44642         * modules/unictype/category-Pc: New file.
44643         * modules/unictype/category-Pd: New file.
44644         * modules/unictype/category-Ps: New file.
44645         * modules/unictype/category-Pe: New file.
44646         * modules/unictype/category-Pi: New file.
44647         * modules/unictype/category-Pf: New file.
44648         * modules/unictype/category-Po: New file.
44649         * modules/unictype/category-S: New file.
44650         * modules/unictype/category-Sm: New file.
44651         * modules/unictype/category-Sc: New file.
44652         * modules/unictype/category-Sk: New file.
44653         * modules/unictype/category-So: New file.
44654         * modules/unictype/category-Z: New file.
44655         * modules/unictype/category-Zs: New file.
44656         * modules/unictype/category-Zl: New file.
44657         * modules/unictype/category-Zp: New file.
44658         * modules/unictype/category-C: New file.
44659         * modules/unictype/category-Cc: New file.
44660         * modules/unictype/category-Cf: New file.
44661         * modules/unictype/category-Cs: New file.
44662         * modules/unictype/category-Co: New file.
44663         * modules/unictype/category-Cn: New file.
44664         * modules/unictype/category-or: New file.
44665         * modules/unictype/category-of: New file.
44666         * modules/unictype/category-test: New file.
44667         * modules/unictype/category-test-withtable: New file.
44668         * modules/unictype/category-byname: New file.
44669         * modules/unictype/category-none: New file.
44670         * modules/unictype/category-and: New file.
44671         * modules/unictype/category-and-not: New file.
44672         * modules/unictype/category-name: New file.
44673         * modules/unictype/combining-class: New file.
44674         * modules/unictype/category-all: New file.
44675         * modules/unictype/bidicategory-all: New file.
44676         * modules/unictype/bidicategory-byname: New file.
44677         * modules/unictype/bidicategory-name: New file.
44678         * modules/unictype/bidicategory-of: New file.
44679         * modules/unictype/bidicategory-test: New file.
44680         * modules/unictype/decimal-digit: New file.
44681         * modules/unictype/digit: New file.
44682         * modules/unictype/numeric: New file.
44683         * modules/unictype/mirror: New file.
44684         * modules/unictype/property-white-space: New file.
44685         * modules/unictype/property-alphabetic: New file.
44686         * modules/unictype/property-other-alphabetic: New file.
44687         * modules/unictype/property-not-a-character: New file.
44688         * modules/unictype/property-default-ignorable-code-point: New file.
44689         * modules/unictype/property-other-default-ignorable-code-point: New
44690         file.
44691         * modules/unictype/property-deprecated: New file.
44692         * modules/unictype/property-logical-order-exception: New file.
44693         * modules/unictype/property-variation-selector: New file.
44694         * modules/unictype/property-private-use: New file.
44695         * modules/unictype/property-unassigned-code-value: New file.
44696         * modules/unictype/property-uppercase: New file.
44697         * modules/unictype/property-other-uppercase: New file.
44698         * modules/unictype/property-lowercase: New file.
44699         * modules/unictype/property-other-lowercase: New file.
44700         * modules/unictype/property-titlecase: New file.
44701         * modules/unictype/property-soft-dotted: New file.
44702         * modules/unictype/property-id-start: New file.
44703         * modules/unictype/property-other-id-start: New file.
44704         * modules/unictype/property-id-continue: New file.
44705         * modules/unictype/property-other-id-continue: New file.
44706         * modules/unictype/property-xid-start: New file.
44707         * modules/unictype/property-xid-continue: New file.
44708         * modules/unictype/property-pattern-white-space: New file.
44709         * modules/unictype/property-pattern-syntax: New file.
44710         * modules/unictype/property-join-control: New file.
44711         * modules/unictype/property-grapheme-base: New file.
44712         * modules/unictype/property-grapheme-extend: New file.
44713         * modules/unictype/property-other-grapheme-extend: New file.
44714         * modules/unictype/property-grapheme-link: New file.
44715         * modules/unictype/property-bidi-control: New file.
44716         * modules/unictype/property-bidi-left-to-right: New file.
44717         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
44718         * modules/unictype/property-bidi-arabic-right-to-left: New file.
44719         * modules/unictype/property-bidi-european-digit: New file.
44720         * modules/unictype/property-bidi-eur-num-separator: New file.
44721         * modules/unictype/property-bidi-eur-num-terminator: New file.
44722         * modules/unictype/property-bidi-arabic-digit: New file.
44723         * modules/unictype/property-bidi-common-separator: New file.
44724         * modules/unictype/property-bidi-block-separator: New file.
44725         * modules/unictype/property-bidi-segment-separator: New file.
44726         * modules/unictype/property-bidi-whitespace: New file.
44727         * modules/unictype/property-bidi-non-spacing-mark: New file.
44728         * modules/unictype/property-bidi-boundary-neutral: New file.
44729         * modules/unictype/property-bidi-pdf: New file.
44730         * modules/unictype/property-bidi-embedding-or-override: New file.
44731         * modules/unictype/property-bidi-other-neutral: New file.
44732         * modules/unictype/property-hex-digit: New file.
44733         * modules/unictype/property-ascii-hex-digit: New file.
44734         * modules/unictype/property-ideographic: New file.
44735         * modules/unictype/property-unified-ideograph: New file.
44736         * modules/unictype/property-radical: New file.
44737         * modules/unictype/property-ids-binary-operator: New file.
44738         * modules/unictype/property-ids-trinary-operator: New file.
44739         * modules/unictype/property-zero-width: New file.
44740         * modules/unictype/property-space: New file.
44741         * modules/unictype/property-non-break: New file.
44742         * modules/unictype/property-iso-control: New file.
44743         * modules/unictype/property-format-control: New file.
44744         * modules/unictype/property-dash: New file.
44745         * modules/unictype/property-hyphen: New file.
44746         * modules/unictype/property-punctuation: New file.
44747         * modules/unictype/property-line-separator: New file.
44748         * modules/unictype/property-paragraph-separator: New file.
44749         * modules/unictype/property-quotation-mark: New file.
44750         * modules/unictype/property-sentence-terminal: New file.
44751         * modules/unictype/property-terminal-punctuation: New file.
44752         * modules/unictype/property-currency-symbol: New file.
44753         * modules/unictype/property-math: New file.
44754         * modules/unictype/property-other-math: New file.
44755         * modules/unictype/property-paired-punctuation: New file.
44756         * modules/unictype/property-left-of-pair: New file.
44757         * modules/unictype/property-combining: New file.
44758         * modules/unictype/property-composite: New file.
44759         * modules/unictype/property-decimal-digit: New file.
44760         * modules/unictype/property-numeric: New file.
44761         * modules/unictype/property-diacritic: New file.
44762         * modules/unictype/property-extender: New file.
44763         * modules/unictype/property-ignorable-control: New file.
44764         * modules/unictype/property-test: New file.
44765         * modules/unictype/property-byname: New file.
44766         * modules/unictype/property-all: New file.
44767         * modules/unictype/scripts: New file.
44768         * modules/unictype/scripts-all: New file.
44769         * modules/unictype/block-of: New file.
44770         * modules/unictype/block-test: New file.
44771         * modules/unictype/block-list: New file.
44772         * modules/unictype/block-all: New file.
44773         * modules/unictype/syntax-c-whitespace: New file.
44774         * modules/unictype/syntax-java-whitespace: New file.
44775         * modules/unictype/syntax-c-ident: New file.
44776         * modules/unictype/syntax-java-ident: New file.
44777         * modules/unictype/ctype-alnum: New file.
44778         * modules/unictype/ctype-alpha: New file.
44779         * modules/unictype/ctype-cntrl: New file.
44780         * modules/unictype/ctype-digit: New file.
44781         * modules/unictype/ctype-graph: New file.
44782         * modules/unictype/ctype-lower: New file.
44783         * modules/unictype/ctype-print: New file.
44784         * modules/unictype/ctype-punct: New file.
44785         * modules/unictype/ctype-space: New file.
44786         * modules/unictype/ctype-upper: New file.
44787         * modules/unictype/ctype-xdigit: New file.
44788         * modules/unictype/ctype-blank: New file.
44789         * lib/unictype/bidi_byname.c: New file.
44790         * lib/unictype/bidi_name.c: New file.
44791         * lib/unictype/bidi_of.c: New file.
44792         * lib/unictype/bidi_test.c: New file.
44793         * lib/unictype/bitmap.h: New file.
44794         * lib/unictype/block_test.c: New file.
44795         * lib/unictype/blocks.c: New file.
44796         * lib/unictype/categ_C.c: New file.
44797         * lib/unictype/categ_Cc.c: New file.
44798         * lib/unictype/categ_Cf.c: New file.
44799         * lib/unictype/categ_Cn.c: New file.
44800         * lib/unictype/categ_Co.c: New file.
44801         * lib/unictype/categ_Cs.c: New file.
44802         * lib/unictype/categ_L.c: New file.
44803         * lib/unictype/categ_Ll.c: New file.
44804         * lib/unictype/categ_Lm.c: New file.
44805         * lib/unictype/categ_Lo.c: New file.
44806         * lib/unictype/categ_Lt.c: New file.
44807         * lib/unictype/categ_Lu.c: New file.
44808         * lib/unictype/categ_M.c: New file.
44809         * lib/unictype/categ_Mc.c: New file.
44810         * lib/unictype/categ_Me.c: New file.
44811         * lib/unictype/categ_Mn.c: New file.
44812         * lib/unictype/categ_N.c: New file.
44813         * lib/unictype/categ_Nd.c: New file.
44814         * lib/unictype/categ_Nl.c: New file.
44815         * lib/unictype/categ_No.c: New file.
44816         * lib/unictype/categ_P.c: New file.
44817         * lib/unictype/categ_Pc.c: New file.
44818         * lib/unictype/categ_Pd.c: New file.
44819         * lib/unictype/categ_Pe.c: New file.
44820         * lib/unictype/categ_Pf.c: New file.
44821         * lib/unictype/categ_Pi.c: New file.
44822         * lib/unictype/categ_Po.c: New file.
44823         * lib/unictype/categ_Ps.c: New file.
44824         * lib/unictype/categ_S.c: New file.
44825         * lib/unictype/categ_Sc.c: New file.
44826         * lib/unictype/categ_Sk.c: New file.
44827         * lib/unictype/categ_Sm.c: New file.
44828         * lib/unictype/categ_So.c: New file.
44829         * lib/unictype/categ_Z.c: New file.
44830         * lib/unictype/categ_Zl.c: New file.
44831         * lib/unictype/categ_Zp.c: New file.
44832         * lib/unictype/categ_Zs.c: New file.
44833         * lib/unictype/categ_and.c: New file.
44834         * lib/unictype/categ_and_not.c: New file.
44835         * lib/unictype/categ_byname.c: New file.
44836         * lib/unictype/categ_name.c: New file.
44837         * lib/unictype/categ_none.c: New file.
44838         * lib/unictype/categ_of.c: New file.
44839         * lib/unictype/categ_or.c: New file.
44840         * lib/unictype/categ_test.c: New file.
44841         * lib/unictype/combining.c: New file.
44842         * lib/unictype/ctype_alnum.c: New file.
44843         * lib/unictype/ctype_alpha.c: New file.
44844         * lib/unictype/ctype_blank.c: New file.
44845         * lib/unictype/ctype_cntrl.c: New file.
44846         * lib/unictype/ctype_digit.c: New file.
44847         * lib/unictype/ctype_graph.c: New file.
44848         * lib/unictype/ctype_lower.c: New file.
44849         * lib/unictype/ctype_print.c: New file.
44850         * lib/unictype/ctype_punct.c: New file.
44851         * lib/unictype/ctype_space.c: New file.
44852         * lib/unictype/ctype_upper.c: New file.
44853         * lib/unictype/ctype_xdigit.c: New file.
44854         * lib/unictype/decdigit.c: New file.
44855         * lib/unictype/digit.c: New file.
44856         * lib/unictype/identsyntaxmap.h: New file.
44857         * lib/unictype/mirror.c: New file.
44858         * lib/unictype/numeric.c: New file.
44859         * lib/unictype/pr_alphabetic.c: New file.
44860         * lib/unictype/pr_ascii_hex_digit.c: New file.
44861         * lib/unictype/pr_bidi_arabic_digit.c: New file.
44862         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
44863         * lib/unictype/pr_bidi_block_separator.c: New file.
44864         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
44865         * lib/unictype/pr_bidi_common_separator.c: New file.
44866         * lib/unictype/pr_bidi_control.c: New file.
44867         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
44868         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
44869         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
44870         * lib/unictype/pr_bidi_european_digit.c: New file.
44871         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
44872         * lib/unictype/pr_bidi_left_to_right.c: New file.
44873         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
44874         * lib/unictype/pr_bidi_other_neutral.c: New file.
44875         * lib/unictype/pr_bidi_pdf.c: New file.
44876         * lib/unictype/pr_bidi_segment_separator.c: New file.
44877         * lib/unictype/pr_bidi_whitespace.c: New file.
44878         * lib/unictype/pr_byname.c: New file.
44879         * lib/unictype/pr_byname.gperf: New file.
44880         * lib/unictype/pr_combining.c: New file.
44881         * lib/unictype/pr_composite.c: New file.
44882         * lib/unictype/pr_currency_symbol.c: New file.
44883         * lib/unictype/pr_dash.c: New file.
44884         * lib/unictype/pr_decimal_digit.c: New file.
44885         * lib/unictype/pr_default_ignorable_code_point.c: New file.
44886         * lib/unictype/pr_deprecated.c: New file.
44887         * lib/unictype/pr_diacritic.c: New file.
44888         * lib/unictype/pr_extender.c: New file.
44889         * lib/unictype/pr_format_control.c: New file.
44890         * lib/unictype/pr_grapheme_base.c: New file.
44891         * lib/unictype/pr_grapheme_extend.c: New file.
44892         * lib/unictype/pr_grapheme_link.c: New file.
44893         * lib/unictype/pr_hex_digit.c: New file.
44894         * lib/unictype/pr_hyphen.c: New file.
44895         * lib/unictype/pr_id_continue.c: New file.
44896         * lib/unictype/pr_id_start.c: New file.
44897         * lib/unictype/pr_ideographic.c: New file.
44898         * lib/unictype/pr_ids_binary_operator.c: New file.
44899         * lib/unictype/pr_ids_trinary_operator.c: New file.
44900         * lib/unictype/pr_ignorable_control.c: New file.
44901         * lib/unictype/pr_iso_control.c: New file.
44902         * lib/unictype/pr_join_control.c: New file.
44903         * lib/unictype/pr_left_of_pair.c: New file.
44904         * lib/unictype/pr_line_separator.c: New file.
44905         * lib/unictype/pr_logical_order_exception.c: New file.
44906         * lib/unictype/pr_lowercase.c: New file.
44907         * lib/unictype/pr_math.c: New file.
44908         * lib/unictype/pr_non_break.c: New file.
44909         * lib/unictype/pr_not_a_character.c: New file.
44910         * lib/unictype/pr_numeric.c: New file.
44911         * lib/unictype/pr_other_alphabetic.c: New file.
44912         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
44913         * lib/unictype/pr_other_grapheme_extend.c: New file.
44914         * lib/unictype/pr_other_id_continue.c: New file.
44915         * lib/unictype/pr_other_id_start.c: New file.
44916         * lib/unictype/pr_other_lowercase.c: New file.
44917         * lib/unictype/pr_other_math.c: New file.
44918         * lib/unictype/pr_other_uppercase.c: New file.
44919         * lib/unictype/pr_paired_punctuation.c: New file.
44920         * lib/unictype/pr_paragraph_separator.c: New file.
44921         * lib/unictype/pr_pattern_syntax.c: New file.
44922         * lib/unictype/pr_pattern_white_space.c: New file.
44923         * lib/unictype/pr_private_use.c: New file.
44924         * lib/unictype/pr_punctuation.c: New file.
44925         * lib/unictype/pr_quotation_mark.c: New file.
44926         * lib/unictype/pr_radical.c: New file.
44927         * lib/unictype/pr_sentence_terminal.c: New file.
44928         * lib/unictype/pr_soft_dotted.c: New file.
44929         * lib/unictype/pr_space.c: New file.
44930         * lib/unictype/pr_terminal_punctuation.c: New file.
44931         * lib/unictype/pr_test.c: New file.
44932         * lib/unictype/pr_titlecase.c: New file.
44933         * lib/unictype/pr_unassigned_code_value.c: New file.
44934         * lib/unictype/pr_unified_ideograph.c: New file.
44935         * lib/unictype/pr_uppercase.c: New file.
44936         * lib/unictype/pr_variation_selector.c: New file.
44937         * lib/unictype/pr_white_space.c: New file.
44938         * lib/unictype/pr_xid_continue.c: New file.
44939         * lib/unictype/pr_xid_start.c: New file.
44940         * lib/unictype/pr_zero_width.c: New file.
44941         * lib/unictype/scripts.c: New file.
44942         * lib/unictype/sy_c_ident.c: New file.
44943         * lib/unictype/sy_c_whitespace.c: New file.
44944         * lib/unictype/sy_java_ident.c: New file.
44945         * lib/unictype/sy_java_whitespace.c: New file.
44946
44947         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
44948         Unicode 5.0.0.
44949         * lib/unictype/blocks.h: Likewise.
44950         * lib/unictype/categ_C.h: Likewise.
44951         * lib/unictype/categ_Cc.h: Likewise.
44952         * lib/unictype/categ_Cf.h: Likewise.
44953         * lib/unictype/categ_Cn.h: Likewise.
44954         * lib/unictype/categ_Co.h: Likewise.
44955         * lib/unictype/categ_Cs.h: Likewise.
44956         * lib/unictype/categ_L.h: Likewise.
44957         * lib/unictype/categ_Ll.h: Likewise.
44958         * lib/unictype/categ_Lm.h: Likewise.
44959         * lib/unictype/categ_Lo.h: Likewise.
44960         * lib/unictype/categ_Lt.h: Likewise.
44961         * lib/unictype/categ_Lu.h: Likewise.
44962         * lib/unictype/categ_M.h: Likewise.
44963         * lib/unictype/categ_Mc.h: Likewise.
44964         * lib/unictype/categ_Me.h: Likewise.
44965         * lib/unictype/categ_Mn.h: Likewise.
44966         * lib/unictype/categ_N.h: Likewise.
44967         * lib/unictype/categ_Nd.h: Likewise.
44968         * lib/unictype/categ_Nl.h: Likewise.
44969         * lib/unictype/categ_No.h: Likewise.
44970         * lib/unictype/categ_P.h: Likewise.
44971         * lib/unictype/categ_Pc.h: Likewise.
44972         * lib/unictype/categ_Pd.h: Likewise.
44973         * lib/unictype/categ_Pe.h: Likewise.
44974         * lib/unictype/categ_Pf.h: Likewise.
44975         * lib/unictype/categ_Pi.h: Likewise.
44976         * lib/unictype/categ_Po.h: Likewise.
44977         * lib/unictype/categ_Ps.h: Likewise.
44978         * lib/unictype/categ_S.h: Likewise.
44979         * lib/unictype/categ_Sc.h: Likewise.
44980         * lib/unictype/categ_Sk.h: Likewise.
44981         * lib/unictype/categ_Sm.h: Likewise.
44982         * lib/unictype/categ_So.h: Likewise.
44983         * lib/unictype/categ_Z.h: Likewise.
44984         * lib/unictype/categ_Zl.h: Likewise.
44985         * lib/unictype/categ_Zp.h: Likewise.
44986         * lib/unictype/categ_Zs.h: Likewise.
44987         * lib/unictype/categ_of.h: Likewise.
44988         * lib/unictype/combining.h: Likewise.
44989         * lib/unictype/ctype_alnum.h: Likewise.
44990         * lib/unictype/ctype_alpha.h: Likewise.
44991         * lib/unictype/ctype_blank.h: Likewise.
44992         * lib/unictype/ctype_cntrl.h: Likewise.
44993         * lib/unictype/ctype_digit.h: Likewise.
44994         * lib/unictype/ctype_graph.h: Likewise.
44995         * lib/unictype/ctype_lower.h: Likewise.
44996         * lib/unictype/ctype_print.h: Likewise.
44997         * lib/unictype/ctype_punct.h: Likewise.
44998         * lib/unictype/ctype_space.h: Likewise.
44999         * lib/unictype/ctype_upper.h: Likewise.
45000         * lib/unictype/ctype_xdigit.h: Likewise.
45001         * lib/unictype/decdigit.h: Likewise.
45002         * lib/unictype/digit.h: Likewise.
45003         * lib/unictype/mirror.h: Likewise.
45004         * lib/unictype/numeric.h: Likewise.
45005         * lib/unictype/pr_alphabetic.h: Likewise.
45006         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45007         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45008         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45009         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45010         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45011         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45012         * lib/unictype/pr_bidi_control.h: Likewise.
45013         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45014         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45015         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45016         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45017         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45018         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45019         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45020         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45021         * lib/unictype/pr_bidi_pdf.h: Likewise.
45022         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45023         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45024         * lib/unictype/pr_combining.h: Likewise.
45025         * lib/unictype/pr_composite.h: Likewise.
45026         * lib/unictype/pr_currency_symbol.h: Likewise.
45027         * lib/unictype/pr_dash.h: Likewise.
45028         * lib/unictype/pr_decimal_digit.h: Likewise.
45029         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45030         * lib/unictype/pr_deprecated.h: Likewise.
45031         * lib/unictype/pr_diacritic.h: Likewise.
45032         * lib/unictype/pr_extender.h: Likewise.
45033         * lib/unictype/pr_format_control.h: Likewise.
45034         * lib/unictype/pr_grapheme_base.h: Likewise.
45035         * lib/unictype/pr_grapheme_extend.h: Likewise.
45036         * lib/unictype/pr_grapheme_link.h: Likewise.
45037         * lib/unictype/pr_hex_digit.h: Likewise.
45038         * lib/unictype/pr_hyphen.h: Likewise.
45039         * lib/unictype/pr_id_continue.h: Likewise.
45040         * lib/unictype/pr_id_start.h: Likewise.
45041         * lib/unictype/pr_ideographic.h: Likewise.
45042         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45043         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45044         * lib/unictype/pr_ignorable_control.h: Likewise.
45045         * lib/unictype/pr_iso_control.h: Likewise.
45046         * lib/unictype/pr_join_control.h: Likewise.
45047         * lib/unictype/pr_left_of_pair.h: Likewise.
45048         * lib/unictype/pr_line_separator.h: Likewise.
45049         * lib/unictype/pr_logical_order_exception.h: Likewise.
45050         * lib/unictype/pr_lowercase.h: Likewise.
45051         * lib/unictype/pr_math.h: Likewise.
45052         * lib/unictype/pr_non_break.h: Likewise.
45053         * lib/unictype/pr_not_a_character.h: Likewise.
45054         * lib/unictype/pr_numeric.h: Likewise.
45055         * lib/unictype/pr_other_alphabetic.h: Likewise.
45056         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45057         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45058         * lib/unictype/pr_other_id_continue.h: Likewise.
45059         * lib/unictype/pr_other_id_start.h: Likewise.
45060         * lib/unictype/pr_other_lowercase.h: Likewise.
45061         * lib/unictype/pr_other_math.h: Likewise.
45062         * lib/unictype/pr_other_uppercase.h: Likewise.
45063         * lib/unictype/pr_paired_punctuation.h: Likewise.
45064         * lib/unictype/pr_paragraph_separator.h: Likewise.
45065         * lib/unictype/pr_pattern_syntax.h: Likewise.
45066         * lib/unictype/pr_pattern_white_space.h: Likewise.
45067         * lib/unictype/pr_private_use.h: Likewise.
45068         * lib/unictype/pr_punctuation.h: Likewise.
45069         * lib/unictype/pr_quotation_mark.h: Likewise.
45070         * lib/unictype/pr_radical.h: Likewise.
45071         * lib/unictype/pr_sentence_terminal.h: Likewise.
45072         * lib/unictype/pr_soft_dotted.h: Likewise.
45073         * lib/unictype/pr_space.h: Likewise.
45074         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45075         * lib/unictype/pr_titlecase.h: Likewise.
45076         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45077         * lib/unictype/pr_unified_ideograph.h: Likewise.
45078         * lib/unictype/pr_uppercase.h: Likewise.
45079         * lib/unictype/pr_variation_selector.h: Likewise.
45080         * lib/unictype/pr_white_space.h: Likewise.
45081         * lib/unictype/pr_xid_continue.h: Likewise.
45082         * lib/unictype/pr_xid_start.h: Likewise.
45083         * lib/unictype/pr_zero_width.h: Likewise.
45084         * lib/unictype/scripts.h: Likewise.
45085         * lib/unictype/scripts_byname.gperf: Likewise.
45086         * lib/unictype/sy_c_ident.h: Likewise.
45087         * lib/unictype/sy_c_whitespace.h: Likewise.
45088         * lib/unictype/sy_java_ident.h: Likewise.
45089         * lib/unictype/sy_java_whitespace.h: Likewise.
45090
45091         * lib/unictype/Makefile: New file.
45092         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
45093         glibc.
45094         * lib/unictype/3level.h: New file, copied from glibc.
45095         * lib/unictype/3levelbit.h: New file.
45096
45097 2007-11-11  Bruno Haible  <bruno@clisp.org>
45098
45099         * modules/gperf: New file.
45100         * modules/iconv_open (Depends-on): Add it.
45101         (Makefile.am): Remove the GPERF definition.
45102
45103 2007-11-11  Bruno Haible  <bruno@clisp.org>
45104
45105         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
45106         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
45107
45108 2007-11-11  Bruno Haible  <bruno@clisp.org>
45109
45110         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
45111         (usage): Remove function.
45112
45113 2007-11-11  Bruno Haible  <bruno@clisp.org>
45114
45115         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
45116         gl_FUNC_CEILF_LIBS.
45117         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
45118         gl_FUNC_CEIL_LIBS.
45119         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
45120         gl_FUNC_CEILL_LIBS.
45121         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
45122         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
45123         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
45124
45125 2007-11-11  Bruno Haible  <bruno@clisp.org>
45126
45127         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
45128         roundf were declared but do not exist on functions.
45129         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
45130         roundl were declared but do not exist on functions.
45131         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
45132         HAVE_FLOORL_AND_CEILL, respectively.
45133         Needed for Sun C on Solaris 10.
45134
45135 2007-11-11  Bruno Haible  <bruno@clisp.org>
45136
45137         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
45138         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
45139         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
45140         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45141         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
45142         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
45143         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
45144         HAVE_DECL_ROUNDF.
45145         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
45146         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
45147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
45148         of HAVE_DECL_ROUND*.
45149         * modules/math (Makefile.am): Update.
45150
45151 2007-11-10  Bruno Haible  <bruno@clisp.org>
45152
45153         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
45154         ptrdiff_t as m4/intl.m4.
45155
45156 2007-11-10  Jim Meyering  <meyering@redhat.com>
45157
45158         Avoid link failure for the argmatch test.
45159         * tests/test-argmatch.c (usage): Define function to avoid a link
45160         failure: argmatch_die requires a usage function.
45161
45162 2007-11-09  Bruno Haible  <bruno@clisp.org>
45163
45164         * doc/functions/snprintf.texi: Mention BeOS deficiency.
45165         * doc/functions/vsnprintf.texi: Likewise.
45166         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
45167         with a size argument < 2.
45168
45169 2007-11-09  Bruno Haible  <bruno@clisp.org>
45170
45171         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
45172         buffer. Fixes an inefficiency introduced on 2007-11-03.
45173
45174 2007-11-09  Bruno Haible  <bruno@clisp.org>
45175
45176         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
45177         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
45178
45179 2007-11-08  Jim Meyering  <meyering@redhat.com>
45180
45181         Change cache variable name prefix "jm_" to "gl_" everywhere.
45182         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
45183         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
45184         * m4/uptime.m4: s/gl_/jm_/
45185
45186 2007-11-07  Bruno Haible  <bruno@clisp.org>
45187
45188         Update to GNU gettext 0.17.
45189         * m4/intl.m4: Update to GNU gettext 0.17.
45190         * m4/po.m4: Likewise.
45191         * modules/gettext (Files): Remove m4/ulonglong.m4.
45192         (configure.ac): Require gettext infrastructure from version 0.17.
45193
45194 2007-11-06  Bruno Haible  <bruno@clisp.org>
45195
45196         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45197         symbolic values are not defined in a public header.
45198         * lib/freadable.c (freadable) [QNX]: Likewise.
45199         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45200         * lib/freading.c (freading) [QNX]: Likewise.
45201         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45202         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45203         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45204         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45205         Reported by Alain Magloire.
45206
45207         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45208
45209 2007-11-05  Bruno Haible  <bruno@clisp.org>
45210
45211         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45212         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45213         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45214         Reported by Eric Blake.
45215
45216 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45217             Bruno Haible  <bruno@clisp.org>
45218
45219         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45220         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45221         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45222         (malloc): Undefine also before including <stdlib.h>.
45223         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45224         Needed on OSF/1 4.0.
45225
45226 2007-11-05  Jim Meyering  <meyering@redhat.com>
45227
45228         git-version-gen: sync from coreutils.
45229         * build-aux/git-version-gen: Add comments.
45230         Change the first '-' to '.' in the snapshot version string,
45231         e.g., 6.9-377-08144 -> 6.9.377-08144
45232         Remove first parameter.
45233         Don't declare a version "-dirty" merely because a time
45234         stamp has changed.
45235
45236 2007-11-04  Bruno Haible  <bruno@clisp.org>
45237
45238         * lib/lock.h: Protect all macro definitions containing an 'if'
45239         statement through a "do { ... } while (0)".
45240         * lib/tls.h: Likewise.
45241
45242 2007-11-04  Bruno Haible  <bruno@clisp.org>
45243
45244         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45245
45246 2007-11-04  Bruno Haible  <bruno@clisp.org>
45247
45248         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45249         * modules/fprintf-posix (Depends-on): Add nocrash.
45250         * modules/snprintf-posix (Depends-on): Likewise.
45251         * modules/sprintf-posix (Depends-on): Likewise.
45252         * modules/vasnprintf-posix (Depends-on): Likewise.
45253         * modules/vasprintf-posix (Depends-on): Likewise.
45254         * modules/vfprintf-posix (Depends-on): Likewise.
45255         * modules/vsnprintf-posix (Depends-on): Likewise.
45256         * modules/vsprintf-posix (Depends-on): Likewise.
45257         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45258         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45259         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45260         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45261         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45262         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45263         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45264
45265 2007-11-04  Bruno Haible  <bruno@clisp.org>
45266
45267         * modules/nocrash: New file.
45268         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
45269         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
45270
45271 2007-11-04  Bruno Haible  <bruno@clisp.org>
45272
45273         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
45274         precision handling.
45275         * tests/test-vasprintf-posix.c (test_function): Likewise.
45276         * tests/test-snprintf-posix.h (test_function): Likewise.
45277         * tests/test-sprintf-posix.h (test_function): Likewise.
45278
45279         Fix *printf behaviour for large precisions on mingw and BeOS.
45280         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
45281         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
45282         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
45283         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45284         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45285         gl_PRINTF_PRECISION and test its result. Invoke
45286         gl_PREREQ_VASNPRINTF_PRECISION.
45287         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45288         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45289         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45290         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45291         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45292         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45293         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45294         * doc/functions/fprintf.texi: Update.
45295         * doc/functions/printf.texi: Update.
45296         * doc/functions/snprintf.texi: Update.
45297         * doc/functions/sprintf.texi: Update.
45298         * doc/functions/vfprintf.texi: Update.
45299         * doc/functions/vprintf.texi: Update.
45300         * doc/functions/vsnprintf.texi: Update.
45301         * doc/functions/vsprintf.texi: Update.
45302
45303 2007-11-04  Bruno Haible  <bruno@clisp.org>
45304
45305         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
45306
45307 2007-11-04  Bruno Haible  <bruno@clisp.org>
45308
45309         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
45310         Reported by Sylvain Beucler <beuc@gnu.org>.
45311
45312 2007-11-03  Bruno Haible  <bruno@clisp.org>
45313
45314         * tests/test-fprintf-posix2.sh: New file.
45315         * tests/test-fprintf-posix2.c: New file.
45316         * modules/fprintf-posix-tests (Files): Add them.
45317         (TESTS): Add test-fprintf-posix2.sh.
45318         (configure.ac): Check for getrlimit and setrlimit.
45319         (check_PROGRAMS): Add test-fprintf-posix2.
45320
45321         * tests/test-printf-posix2.sh: New file.
45322         * tests/test-printf-posix2.c: New file.
45323         * modules/printf-posix-tests (Files): Add them.
45324         (TESTS): Add test-printf-posix2.sh.
45325         (configure.ac): Check for getrlimit and setrlimit.
45326         (check_PROGRAMS): Add test-printf-posix2.
45327
45328         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45329         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45330         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45331         (decode_double): New function, copied from decode_long_double.
45332         (scale10_round_decimal_decoded): New function, extracted from
45333         scale10_round_decimal_long_double.
45334         (scale10_round_decimal_long_double): Use it.
45335         (scale10_round_decimal_double): New function.
45336         (floorlog10): New function.
45337         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45338         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45339         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45340         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45341         gl_PRINTF_ENOMEM and test its result. Invoke
45342         gl_PREREQ_VASNPRINTF_ENOMEM.
45343         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45344         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45345         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45346         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45347         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45348         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45349         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45350         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45351         * modules/snprintf-posix (Depends-on): Likewise.
45352         * modules/sprintf-posix (Depends-on): Likewise.
45353         * modules/vasnprintf-posix (Depends-on): Likewise.
45354         * modules/vasprintf-posix (Depends-on): Likewise.
45355         * modules/vfprintf-posix (Depends-on): Likewise.
45356         * modules/vsnprintf-posix (Depends-on): Likewise.
45357         * modules/vsprintf-posix (Depends-on): Likewise.
45358         * doc/functions/fprintf.texi: Update.
45359         * doc/functions/printf.texi: Update.
45360         * doc/functions/snprintf.texi: Update.
45361         * doc/functions/sprintf.texi: Update.
45362         * doc/functions/vfprintf.texi: Update.
45363         * doc/functions/vprintf.texi: Update.
45364         * doc/functions/vsnprintf.texi: Update.
45365         * doc/functions/vsprintf.texi: Update.
45366
45367 2007-11-03  Bruno Haible  <bruno@clisp.org>
45368
45369         * modules/frexp-nolibm-tests: New file.
45370
45371         * modules/frexp-nolibm: New file.
45372         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45373
45374 2007-11-03  Bruno Haible  <bruno@clisp.org>
45375
45376         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45377         value is C99 compliant.
45378         Needed for OSF/1 5.1.
45379
45380 2007-11-03  Bruno Haible  <bruno@clisp.org>
45381
45382         Fix out-of-memory handling of vasnprintf.
45383         * lib/printf-parse.c: Include <errno.h>.
45384         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45385         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45386         is already set.
45387
45388 2007-11-02  Eric Blake  <ebb9@byu.net>
45389
45390         Fix tests on cygwin.
45391         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45392
45393 2007-11-01  Bruno Haible  <bruno@clisp.org>
45394
45395         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45396         warning.
45397         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45398         needed for POSIX compatibility.
45399
45400 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45401
45402         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45403         for compatibility with GNU.
45404
45405 2007-11-01  Bruno Haible  <bruno@clisp.org>
45406
45407         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45408         (putenv): Renamed from rpl_putenv. Change argument type from
45409         'const char *' to 'char *'.
45410         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45411         of defining putenv in config.h, just set REPLACE_PUTENV.
45412         * modules/putenv (Depends-on): Add stdlib.
45413         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45414         (Include): Use <stdlib.h>.
45415         * lib/stdlib.in.h (putenv): New declaration.
45416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45417         REPLACE_PUTENV.
45418         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45419         REPLACE_PUTENV.
45420         Needed for MacOS X 10.5.0.
45421         Reported by Peter O'Gorman <peter@pogma.com>.
45422
45423 2007-11-01  Jim Meyering  <meyering@redhat.com>
45424
45425         Treat an empty date string exactly like "0".
45426         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45427         if the remaining date string (to be parsed) is empty, use "0".
45428         Reported by Mischa Molhoek and discussed in this thread:
45429         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45430
45431 2007-10-31  Bruno Haible  <bruno@clisp.org>
45432
45433         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45434         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45435         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45436         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45437         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45438         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45439
45440 2007-10-31  Bruno Haible  <bruno@clisp.org>
45441
45442         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45443         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45444         (AC_TYPE_LONG_LONG_INT): Use it.
45445         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45446         it as well.
45447         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45448         to m4/longlong.m4.
45449         * modules/stdint (Files): Remove m4/ulonglong.m4.
45450         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45451         m4/ulonglong.m4.
45452         * modules/strtoumax (Files): Likewise.
45453
45454 2007-10-30  Bruno Haible  <bruno@clisp.org>
45455
45456         * modules/xvasprintf-posix: New file.
45457         Suggested by Eric Blake.
45458
45459 2007-10-30  Bruno Haible  <bruno@clisp.org>
45460
45461         * modules/xprintf-posix-tests: New file.
45462         * tests/test-xprintf-posix.sh: New file.
45463         * tests/test-xprintf-posix.c: New file.
45464         * tests/test-xfprintf-posix.c: New file.
45465
45466         * modules/xprintf-posix: New file.
45467
45468 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45469
45470         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45471         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45472         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45473
45474 2007-10-29  Bruno Haible  <bruno@clisp.org>
45475
45476         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
45477         contain the special marker '_cv_'.
45478         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45479         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45480         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45481         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45482         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45483         Reported by Ralf Wildenhues.
45484
45485 2007-10-29  Bruno Haible  <bruno@clisp.org>
45486
45487         * gnulib-tool (func_import): When --lgpl is not specified, set
45488         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
45489         GPLv3.
45490         Reported by Simon Josefsson.
45491
45492 2007-10-28  Bruno Haible  <bruno@clisp.org>
45493
45494         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
45495         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
45496         HAVE_DECL_ISFINITE.
45497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45498         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
45499         HAVE_DECL_ISFINITE.
45500
45501 2007-10-28  Bruno Haible  <bruno@clisp.org>
45502
45503         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
45504         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
45505
45506 2007-10-28  Bruno Haible  <bruno@clisp.org>
45507
45508         Fix link errors with Sun C 5.0 on Solaris 10.
45509         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
45510         function is declared but not present in the compiler's libm.
45511         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45512         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45513         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
45514         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
45515         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
45516         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
45517         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
45518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45519         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
45520         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
45521         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
45522         HAVE_DECL_FLOORL.
45523
45524 2007-10-28  Bruno Haible  <bruno@clisp.org>
45525
45526         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
45527         gl_FUNC_FLOORL. Cache the result.
45528         (gl_FUNC_FLOORL): Use it.
45529         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
45530         gl_FUNC_CEILL. Cache the result.
45531         (gl_FUNC_CEILL): Use it.
45532
45533         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
45534         gl_FUNC_FLOOR. Cache the result.
45535         (gl_FUNC_FLOOR): Use it.
45536         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
45537         gl_FUNC_CEIL. Cache the result.
45538         (gl_FUNC_CEIL): Use it.
45539
45540         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
45541         gl_FUNC_FLOORF. Cache the result.
45542         (gl_FUNC_FLOORF): Use it.
45543         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
45544         gl_FUNC_CEILF. Cache the result.
45545         (gl_FUNC_CEILF): Use it.
45546
45547 2007-10-28  Bruno Haible  <bruno@clisp.org>
45548
45549         * gnulib-tool: Allow specifying the LGPL version number through
45550         --lgpl=2 or --lgpl=3.
45551         (func_usage): Document --lgpl with argument.
45552         Handle --lgpl=... arguments.
45553         (func_import): Recognize also gl_LGPL calls with an argument. When
45554         --lgpl=2 is used and the module's license is just LGPL, report an
45555         error. Set sed_transform_lib_file according to the lgpl variable. In
45556         the generated files, use --lgpl or gl_LGPL invocations with argument,
45557         if necessary.
45558         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
45559         an LGPv2+ license.
45560         * doc/gnulib-tool.texi (Modified imports): Update explanation of
45561         gl_LGPL macro.
45562
45563 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45564             Bruno Haible  <bruno@clisp.org>
45565
45566         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
45567         (u16_uctomb_aux): Likewise.
45568         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
45569         !HAVE_INLINE.
45570         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
45571
45572 2007-10-28  Bruno Haible  <bruno@clisp.org>
45573
45574         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
45575         Invoke AM_GETTEXT_OPTION if it exists.
45576         * modules/vasprintf: Likewise.
45577         * modules/verror: Likewise.
45578         * modules/xprintf: Likewise.
45579         * modules/xvasprintf: Likewise.
45580
45581 2007-10-27  Ben Pfaff  <blp@gnu.org>
45582
45583         * lib/math.in.h: Define isfinite macro and prototypes for
45584         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
45585         implementations.
45586         * m4/math_h.m4: New substitutions for isfinite module.
45587         * lib/isfinite.c: New file.
45588         * m4/isfinite.m4: New file.
45589         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
45590         * modules/isfinite: New file.
45591         * modules/isfinite-tests: New file.
45592         * tests/tests-isfinite.c: New file.
45593         * doc/functions/isfinite.texi: Mention isfinite module.
45594         * MODULES.html.sh: Mention new module.
45595
45596 2007-10-27  Ben Pfaff  <blp@gnu.org>
45597
45598         Ralf Wildenhues reported that Tru64 4.0D declares the round
45599         functions but does not have definitions.
45600         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
45601         cannot be found in any library, set the output variable to
45602         "missing" instead of "".
45603         * m4/round.m4: Also use our substitute if we cannot find round in
45604         any library, even if it is declared.
45605         * m4/roundf.m4: Likewise for roundf.
45606         * m4/roundl.m4: Likewise for roundl.
45607         * lib/math.in.h: Undefine roundf, round, roundl before defining
45608         their replacements, to allow for hypothetical systems where these
45609         may be defined as macros but not available in libraries.
45610
45611 2007-10-27  Bruno Haible  <bruno@clisp.org>
45612
45613         * doc/gnulib.texi: Invoke @firstparagraphindent.
45614         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
45615         changes in gnulib.
45616         (Source changes): New section.
45617
45618 2007-10-26  Bruno Haible  <bruno@clisp.org>
45619
45620         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
45621         borrowed from autoconf.
45622
45623 2007-10-26  Bruno Haible  <bruno@clisp.org>
45624
45625         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
45626         strerror returned the empty string. Needed on HP-UX 11.00.
45627
45628 2007-10-24  Micah Cowan  <micah@cowan.name>
45629
45630         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
45631         * build-aux/bootstrap: Remove support for now-unnecessary option,
45632         --cvs-user, and envvars CVS_USER, CVS_RSH.
45633
45634 2007-10-24  Jim Meyering  <meyering@redhat.com>
45635
45636         Avoid diagnostics from sha1sum when there is no cached checksum.
45637         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
45638         if the po.s1 file hasn't been created yet.
45639
45640         * build-aux/bootstrap: Sync from coreutils:
45641         2007-10-24  Jim Meyering  <meyering@redhat.com>
45642         Get gnulib from the git repository, not from an obsolete cvs one.
45643         * build-aux/bootstrap: Suggestion from Micah Cowan.
45644         2007-10-04  Jim Meyering  <jim@meyering.net>
45645         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
45646         (update_po_files): Work also when there are no .po files in po/.
45647
45648 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45649
45650         * README: Append ".git" to git and cg examples.
45651         Problem reported by Benoit Sigoure.
45652
45653 2007-10-23  Micah Cowan  <micah@cowan.name>
45654
45655         * users.txt: Add wget.
45656
45657 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45658
45659         Fix linking of some unistdio tests on FreeBSD.
45660         * modules/unistdio/u16-vsnprintf-tests
45661         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
45662         * modules/unistdio/u16-vsprintf-tests
45663         (test_u16_vsnprintf1_LDADD): Likewise.
45664         * modules/unistdio/u32-vsnprintf-tests
45665         (test_u32_vsnprintf1_LDADD): Likewise.
45666         * modules/unistdio/u32-vsprintf-tests
45667         (test_u32_vsprintf1_LDADD): Likewise.
45668         * modules/unistdio/u8-vsnprintf-tests
45669         (test_u8_vsnprintf1_LDADD): Likewise.
45670         * modules/unistdio/u8-vsprintf-tests
45671         (test_u8_vsprintf1_LDADD): Likewise.
45672         * modules/unistdio/ulc-vsnprintf-tests
45673         (test_ulc_vsnprintf1_LDADD): Likewise.
45674         * modules/unistdio/ulc-vsprintf-tests
45675         (test_ulc_vsprintf1_LDADD): Likewise.
45676
45677         Fix linking of some uniconv tests on FreeBSD.
45678         * modules/uniconv/u16-conv-from-enc-tests
45679         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
45680         * modules/uniconv/u16-conv-to-enc-tests
45681         (test_u16_conv_to_enc_LDADD): Likewise.
45682         * modules/uniconv/u16-strconv-from-enc-tests
45683         (test_u16_strconv_from_enc_LDADD): Likewise.
45684         * modules/uniconv/u16-strconv-to-enc-tests
45685         (test_u16_strconv_to_enc_LDADD): Likewise.
45686         * modules/uniconv/u32-conv-from-enc-tests
45687         (test_u32_conv_from_enc_LDADD): Likewise.
45688         * modules/uniconv/u32-conv-to-enc-tests
45689         (test_u32_conv_to_enc_LDADD): Likewise.
45690         * modules/uniconv/u32-strconv-from-enc-tests
45691         (test_u32_strconv_from_enc_LDADD): Likewise.
45692         * modules/uniconv/u32-strconv-to-enc-tests
45693         (test_u32_strconv_to_enc_LDADD): Likewise.
45694         * modules/uniconv/u8-conv-from-enc-tests
45695         (test_u8_conv_from_enc_LDADD): Likewise.
45696         * modules/uniconv/u8-conv-to-enc-tests
45697         (test_u8_conv_to_enc_LDADD): Likewise.
45698         * modules/uniconv/u8-strconv-from-enc-tests
45699         (test_u8_strconv_from_enc_LDADD): Likewise.
45700         * modules/uniconv/u8-strconv-to-enc-tests
45701         (test_u8_strconv_to_enc_LDADD): Likewise.
45702
45703 2007-10-22  Bruno Haible  <bruno@clisp.org>
45704
45705         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
45706         size.
45707
45708 2007-10-22  Eric Blake  <ebb9@byu.net>
45709
45710         Tweak x*printf documentation.
45711         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
45712         variable name and comments.
45713         Suggested by Bruno Haible.
45714
45715 2007-10-22  Bruno Haible  <bruno@clisp.org>
45716
45717         * lib/acl.c (copy_acl): Fix file name in comment.
45718
45719 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45720
45721         Fix Tru64 problem with stdbool.h.
45722         * lib/stdbool.in.h (false, true):
45723         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
45724         Don't declare as an enum in this situation; it runs afoul of Tru64.
45725         Problem reported by Steven M. Schweda in
45726         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
45727
45728 2007-10-22  Eric Blake  <ebb9@byu.net>
45729
45730         Also wrap vf?printf.
45731         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
45732         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
45733         (xvprintf, xvfprintf): New functions.
45734
45735 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45736
45737         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
45738         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
45739
45740         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
45741         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
45742
45743 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45744
45745         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
45746         by Bruno Haible.
45747
45748 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45749
45750         * lib/getloadavg.c
45751         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
45752         Undef `sys' after including sys/table.h, for Tru64 4.0D.
45753
45754         * tests/test-i-ring.c: Work for C89.
45755
45756 2007-10-22  Bruno Haible  <bruno@clisp.org>
45757
45758         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
45759         -1u, in preprocessor expression, so that we don't test for the bug
45760         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
45761         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
45762
45763 2007-10-22  Eric Blake  <ebb9@byu.net>
45764
45765         * tests/test-yesno.sh: Silence stderr during test.
45766
45767 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45768
45769         * modules/crypto/gc-camellia: New file.
45770
45771         * m4/gc-camellia.m4: New file.
45772
45773         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
45774
45775         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
45776
45777 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45778
45779         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
45780         --help to stdout.  Reported by sms@antinode.org (Steven
45781         M. Schweda).
45782
45783 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45784
45785         * users.txt: Fix link to libksba.
45786
45787 2007-10-21  Ben Pfaff  <blp@gnu.org>
45788
45789         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
45790         round.c roundf implementation that depends on floorf and ceilf to
45791         be tested unconditionally.
45792
45793 2007-10-21  Ben Pfaff  <blp@gnu.org>
45794
45795         * m4/check-libm-func.m4: Removed.
45796         * m4/check-math-lib.m4: New file.
45797         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
45798         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
45799         definition and lack of AC_LIBOBJ([roundf]).
45800         * m4/roundl.m4: Ditto, and similarly for roundl.
45801         * modules/round: Reference new m4 file.
45802         * modules/roundf: Ditto.
45803         * modules/roundl: Ditto.
45804         * tests/test-round2.c (main): Use ROUND instead of round.
45805         Bug report from Bruno Haible.
45806
45807 2007-10-21  Bruno Haible  <bruno@clisp.org>
45808
45809         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
45810         context.
45811
45812 2007-10-21  Bruno Haible  <bruno@clisp.org>
45813
45814         * tests/test-wcwidth.c (main): Allow negative result for some control
45815         characters.
45816
45817         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
45818         Needed on OSF/1 5.1.
45819
45820 2007-10-21  Bruno Haible  <bruno@clisp.org>
45821
45822         * tests/test-floorf1.c: Include isnanf.h.
45823         (main): Use isnanf() instead of isnan().
45824         * tests/test-ceilf1.c: Include isnanf.h.
45825         (main): Use isnanf() instead of isnan().
45826         * tests/test-truncf1.c: Include isnanf.h.
45827         (main): Use isnanf() instead of isnan().
45828         * tests/test-roundf1.c: Include isnanf.h.
45829         (main): Use isnanf() instead of isnan().
45830
45831 2007-10-21  Eric Blake  <ebb9@byu.net>
45832
45833         * users.txt: Update URL for m4.
45834
45835 2007-10-21  Bruno Haible  <bruno@clisp.org>
45836
45837         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
45838
45839 2007-10-21  Bruno Haible  <bruno@clisp.org>
45840
45841         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
45842         Git's management files if the CVS files are not present.
45843
45844 2007-10-20  Bruno Haible  <bruno@clisp.org>
45845
45846         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
45847         gcc-3.4.x.
45848
45849 2007-10-20  Ben Pfaff  <blp@gnu.org>
45850
45851         * lib/math.in.h: Declare round, roundf, roundl if we are providing
45852         implementations.
45853         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
45854         * lib/round.c: New file.
45855         * lib/roundf.c: New file.
45856         * lib/roundl.c: New file.
45857         * m4/round.m4: New file.
45858         * m4/roundf.m4: New file.
45859         * m4/roundl.m4: New file.
45860         * m4/check-libm-func-m4: New file.
45861         * modules/math: Replace round, roundf, roundl related @VARS@ in
45862         math.in.h.
45863         * modules/round: New file.
45864         * modules/round-tests: New file.
45865         * modules/roundf: New file.
45866         * modules/roundf-tests: New file.
45867         * modules/roundl: New file.
45868         * modules/roundl-tests: New file.
45869         * tests/test-round1.c: New file.
45870         * tests/test-round2.c: New file.
45871         * tests/test-roundf1.c: New file.
45872         * tests/test-roundf2.c: New file.
45873         * tests/test-roundl.c: New file.
45874         * doc/functions/round.texi: Mention round module.
45875         * doc/functions/roundf.texi: Mention roundf module.
45876         * doc/functions/roundl.texi: Mention roundl module.
45877         * MODULES.html.sh: Mention new modules.
45878         Thanks to Bruno Haible for suggestions.
45879
45880 2007-10-20  Jim Meyering  <meyering@redhat.com>
45881
45882         * lib/xprintf.c: Include <config.h> unconditionally.
45883
45884         Change xprintf's license to GPL.
45885         * modules/xprintf (License): s/LGPL/GPL/, since this module
45886         depends on modules (exit and exitfail) which are GPL.
45887         Suggestion from Bruno Haible.
45888
45889         xprintf fixes.
45890         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
45891         Use a clearer diagnostic.
45892         Patch from Bruno Haible.
45893
45894 2007-10-20  Bruno Haible  <bruno@clisp.org>
45895
45896         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
45897         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
45898         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45899
45900 2007-10-20  Bruno Haible  <bruno@clisp.org>
45901
45902         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
45903         precision in the comparison result > x - 1 or similar.
45904         * tests/test-ceilf2.c (correct_result_p): Likewise.
45905         * tests/test-truncf2.c (correct_result_p): Likewise.
45906         * tests/test-trunc2.c (correct_result_p): Likewise.
45907         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45908
45909 2007-10-20  Bruno Haible  <bruno@clisp.org>
45910
45911         * modules/ceil: New file.
45912         * m4/ceil.m4: New file.
45913         * doc/functions/ceil.texi: Mention the 'ceil' module.
45914
45915 2007-10-20  Bruno Haible  <bruno@clisp.org>
45916
45917         * modules/floor: New file.
45918         * m4/floor.m4: New file.
45919         * doc/functions/floor.texi: Mention the 'floor' module.
45920
45921 2007-10-20  Bruno Haible  <bruno@clisp.org>
45922
45923         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
45924         of %a.
45925         * modules/floorf-tests (Depends-on): Likewise.
45926         * modules/truncf-tests (Depends-on): Likewise.
45927         * modules/trunc-tests (Depends-on): Likewise.
45928         Reported by Ben Pfaff.
45929
45930 2007-10-19  Jim Meyering  <meyering@redhat.com>
45931
45932         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
45933         Don't bother testing specific errno values.  Just test ferror.
45934
45935         New module: xprintf
45936         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
45937
45938 2007-10-19  Bruno Haible  <bruno@clisp.org>
45939
45940         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
45941         syntax.
45942         * modules/javaexec (Makefile.am): Likewise.
45943         * modules/relocatable-prog (Makefile.am): Likewise.
45944         Suggested by Jim Meyering.
45945
45946 2007-10-18  Bruno Haible  <bruno@clisp.org>
45947
45948         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
45949         Reported by Jim Meyering.
45950
45951 2007-10-18  Eric Blake  <ebb9@byu.net>
45952
45953         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
45954
45955 2007-10-18  Bruno Haible  <bruno@clisp.org>
45956
45957         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
45958         the format string into writable memory. Needed in Fortify conditions.
45959
45960 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
45961             Bruno Haible  <bruno@clisp.org>
45962
45963         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
45964         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
45965         * modules/trim (Depends-on): Add mbchar.
45966         (configure.ac): Add gl_FUNC_MBRTOWC.
45967         (Makefile.am): Augment lib_SOURCES.
45968
45969 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45970
45971         Modify glob.c to use fstatat and dirfd, to simplify it.
45972         Suggested by Eric Blake.
45973         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
45974         Don't include <stdbool.h>; not used.
45975         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
45976         (link_exists_p): Simplify implementation, since we can now assume
45977         dirfd and fstatat.
45978         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
45979
45980 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45981
45982         * gnulib-tool (func_get_dependencies): Fix sed script to
45983         match only tests.
45984
45985 2007-10-17  Bruno Haible  <bruno@clisp.org>
45986
45987         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
45988         allow locale names without encoding suffix.
45989         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45990         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45991
45992 2007-10-16  Bruno Haible  <bruno@clisp.org>
45993
45994         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
45995         * lib/getgroups.c (getgroups): Likewise.
45996         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
45997
45998 2007-10-16  Bruno Haible  <bruno@clisp.org>
45999
46000         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
46001         * modules/malloc-posix (License): Likewise.
46002         * modules/realloc-posix (License): Likewise.
46003         * modules/calloc-posix (License): Likewise.
46004         * modules/intprops (License): Change from GPL to LGPL, with
46005         Paul Eggert's approval.
46006
46007 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46008
46009         Merge glibc changes into lib/glob.c.
46010
46011         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
46012         2007-10-15 04:59:03 UTC.  Here are the changes:
46013
46014         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
46015
46016         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
46017
46018         * lib/glob.c: Add some branch prediction throughout.
46019
46020         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
46021
46022         [BZ #5103]
46023         * lib/glob.c (glob): Recognize patterns starting \/.
46024
46025         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
46026
46027         [BZ #3996]
46028         * lib/glob.c (attribute_hidden): Define if not defined.
46029         (glob): Unescape dirname, filename or username when needed and not
46030         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
46031         is NULL.  Handle unescaped [ in pattern without closing ].
46032         Don't pass GLOB_CHECK down to recursive glob for directories.
46033         (__glob_pattern_type): New function.
46034         (__glob_pattern_p): Implement using __glob_pattern_type.
46035         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
46036         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
46037         Remove unreachable code.
46038
46039         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
46040
46041         * lib/glob.c (glob_in_dir): Add some comments and asserts to
46042         explain why there are no leaks.
46043
46044         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
46045
46046         [BZ #3253]
46047         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
46048         time, rather allocate increasingly bigger arrays of pointers, if
46049         possible with alloca, if too large with malloc.
46050
46051 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46052
46053         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
46054         Problem reported by H.Merijn Brand in
46055         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
46056         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
46057         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46058
46059 2007-10-15  Bruno Haible  <bruno@clisp.org>
46060
46061         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
46062         with explicit rpl_ prefix.
46063         * lib/fopen.c (fopen): Likewise.
46064         * lib/freopen.c (freopen): Likewise.
46065         * lib/iconv.c (iconv): Likewise.
46066         * lib/iconv_close.c (iconv_close): Likewise.
46067
46068 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46069
46070         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
46071
46072 2007-10-15  Bruno Haible  <bruno@clisp.org>
46073
46074         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
46075         <stddef.h> instead of <stdlib.h> since we only need NULL.
46076         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46077
46078 2007-10-15  Bruno Haible  <bruno@clisp.org>
46079
46080         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
46081         Replace paragraph talking about LIBOBJS.
46082         Reported by Colin Watson <cjwatson@debian.org>.
46083
46084 2007-10-15  Bruno Haible  <bruno@clisp.org>
46085
46086         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
46087         <stdlib.h> before using NULL.
46088
46089 2007-10-15  Simon Josefsson  <simon@josefsson.org>
46090
46091         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
46092         Reported by Albert Chin <china@thewrittenword.com>.
46093
46094 2007-10-14  Bruno Haible  <bruno@clisp.org>
46095
46096         * modules/iconv_open-utf-tests: New file.
46097         * tests/test-iconv-utf.c: New file.
46098
46099         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
46100         * modules/iconv_open-utf: New file.
46101         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
46102         (iconv, iconv_close): New declarations.
46103         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
46104         be defined.
46105         (iconv_open): Add special handling of conversion between UTF-8 and
46106         UTF-{16,32}{BE,LE}.
46107         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
46108         * lib/iconv_close.c: New file.
46109         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
46110         gl_FUNC_ICONV_OPEN.
46111         (gl_FUNC_ICONV_OPEN): Use it.
46112         (gl_FUNC_ICONV_OPEN_UTF): New macro.
46113         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
46114         and REPLACE_ICONV_UTF.
46115         * modules/iconv_open (Depends-on): Add c-strcase.
46116         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
46117         ICONV_CONST.
46118         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
46119
46120 2007-10-13  Albert Chin  <china@thewrittenword.com>
46121             Bruno Haible  <bruno@clisp.org>
46122
46123         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
46124         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
46125
46126 2007-10-13  Bruno Haible  <bruno@clisp.org>
46127
46128         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
46129         defined, use the ISO C99 inline semantics.
46130         * lib/argp.h (ARGP_EI): Likewise.
46131
46132 2007-10-13  Bruno Haible  <bruno@clisp.org>
46133
46134         Handle 'inline' change in gcc 4.3.0.
46135         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
46136         argp_fmtstream_write, argp_fmtstream_set_lmargin,
46137         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
46138         argp_fmtstream_point): Disable 'extern' declaration if the function
46139         definition is going to be provided inline.
46140         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
46141         semantics, not the ISO C99 inline semantics.
46142         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
46143         'extern' declaration if the function definition is going to be provided
46144         inline.
46145         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
46146         the GNU C inline semantics, not the ISO C99 inline semantics. With
46147         GCC 4.2, avoid a warning.
46148
46149 2007-10-13  Bruno Haible  <bruno@clisp.org>
46150
46151         * lib/freading.h (freading): Enable the use of __freading for
46152         glibc >= 2.7.
46153         * lib/freading.c (freading): Likewise.
46154
46155 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46156
46157         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
46158         "warning: C99 inline functions are not supported; using GNU89".
46159
46160 2007-10-12  Bruno Haible  <bruno@clisp.org>
46161
46162         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
46163         of 2.
46164         * tests/test-ceilf2.c: New file.
46165         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
46166
46167         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
46168         * modules/ceilf-tests: Update.
46169
46170 2007-10-12  Bruno Haible  <bruno@clisp.org>
46171
46172         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
46173         of 2.
46174         * tests/test-floorf2.c: New file.
46175         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
46176
46177         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
46178         * modules/floorf-tests: Update.
46179
46180 2007-10-12  Bruno Haible  <bruno@clisp.org>
46181
46182         * tests/test-trunc2.c: New file.
46183         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
46184
46185         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
46186         * modules/trunc-tests: Update.
46187
46188 2007-10-12  Bruno Haible  <bruno@clisp.org>
46189
46190         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
46191         of 2.
46192         * tests/test-truncf2.c: New file.
46193         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46194
46195         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46196         * modules/truncf-tests: Update.
46197
46198 2007-10-11  Eric Blake  <ebb9@byu.net>
46199
46200         Don't claim strerror is broken on Interix.
46201         * doc/functions/strerror.texi (strerror): Known broken systems are
46202         now Solaris 8, and not Interix.
46203         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46204         Interix on cross-compile.
46205         Reported by Martin Koeppe in
46206         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46207
46208 2007-10-11  Bruno Haible  <bruno@clisp.org>
46209
46210         * modules/i-ring-tests: New file.
46211         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46212         instead of assert.
46213
46214 2007-10-11  Bruno Haible  <bruno@clisp.org>
46215
46216         * modules/filenamecat-tests: New file.
46217         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46218         * lib/filenamecat.c: Remove test code.
46219
46220 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46221
46222         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46223
46224         * lib/strerror.c: Include <string.h> always, to test interface,
46225         and to remove the need for the dummy.
46226         Include intprops.h to compute width instead of doing it ourselves
46227         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46228         (strerror): Define it to return NULL if there's no system strerror.
46229         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46230         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46231         ancient pre-strerror Unix systems well any more.  Saying "unknown
46232         system error" is enough.
46233         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46234         simpler strerror.c implementation.
46235         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46236         Simplify the tests to reflect the simpler strerror implementation.
46237         * modules/strerror (Depends-on): Add intprops.
46238
46239 2007-10-09  Eric Blake  <ebb9@byu.net>
46240
46241         Silence test-fpending.
46242         * modules/fpending-tests (Files): Add wrapper script.
46243         * tests/test-fpending.sh: New file.
46244
46245 2007-10-09  Bruno Haible  <bruno@clisp.org>
46246
46247         * MODULES.html.sh (func_module): Don't create a hyperlink for
46248         function names like 'printf_frexp'.
46249         (Misc): Add crc, memxor.
46250         (Characteristics of floating types): New section.
46251         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46252         isnanf-nolibm, signbit, trunc, truncf, truncl.
46253         (Enhancements for ISO C 99 functions): New subsection Input/output.
46254         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46255         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46256         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46257         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46258         (Enhancements for POSIX:2001 functions): Add chdir-long.
46259         (File system functions): Add areadlink, chdir-safer, read-file.
46260         Remove cycle-check.
46261         (File system as inode set): New section.
46262         (Date and time): Add gethrxtime.
46263         (Multithreading): Add openmp.
46264         (Internationalization functions): Add localename.
46265         (Unicode string functions): Add unistr/u*-mbsnlen.
46266         (Support for maintaining and releasing projects): Add git-version-gen.
46267         (Lone files): Remove directories.
46268
46269 2007-10-08  Ben Pfaff  <blp@gnu.org>
46270
46271         * lib/xmalloca.h: Fix typo in comment.
46272
46273 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46274
46275         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
46276         when avoiding problems with integer overflow.  Use a portable test
46277         instead.
46278
46279 2007-10-08  Simon Josefsson  <simon@josefsson.org>
46280
46281         * modules/dummy (License): Change to LGPLv2+.
46282         * modules/float (License): Likewise
46283         * modules/realloc (License): Likewise
46284         * modules/stdlib (License): Likewise
46285
46286 2007-10-07  Bruno Haible  <bruno@clisp.org>
46287
46288         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
46289         * floor.c (TWO_MANT_DIG): Likewise.
46290         * ceil.c (TWO_MANT_DIG): Likewise.
46291         Reported by Ben Pfaff.
46292
46293 2007-10-07  Bruno Haible  <bruno@clisp.org>
46294
46295         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
46296         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
46297         * lib/frexp.c (FUNC): Likewise.
46298         * lib/printf-frexp.h (printf_frexp): Likewise.
46299         * lib/printf-frexpl.h (printf_frexpl): Likewise.
46300         * lib/printf-frexp.c (FUNC): Likewise.
46301         Suggested by Jim Meyering.
46302
46303 2007-10-07  Jim Meyering  <meyering@redhat.com>
46304
46305         Make xnanosleep's integer overflow test more robust.
46306         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
46307         so that gcc-4.3.0 doesn't optimize away this test for overflow.
46308
46309 2007-10-07  Bruno Haible  <bruno@clisp.org>
46310
46311         * NEWS: Mention the license change.
46312
46313         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
46314         abbreviations in the modules files.
46315
46316         Change copyright notice from GPLv2+ to GPLv3+.
46317         * README: Change copyright notice.
46318         * MODULES.html.sh: Likewise.
46319         * build-aux/bootstrap.conf: Likewise.
46320         * build-aux/config.libpath: Likewise.
46321         * build-aux/csharpcomp.sh.in: Likewise.
46322         * build-aux/csharpexec.sh.in: Likewise.
46323         * build-aux/install-reloc: Likewise.
46324         * build-aux/javacomp.sh.in: Likewise.
46325         * build-aux/javaexec.sh.in: Likewise.
46326         * build-aux/ldd.sh.in: Likewise.
46327         * build-aux/reloc-ldflags: Likewise.
46328         * build-aux/relocatable.sh.in: Likewise.
46329         * build-aux/x-to-1.in: Likewise.
46330         * check-module: Likewise.
46331         * config/srclistvars.sh: Likewise.
46332         * gnulib-tool: Likewise.
46333         * lib/acl-internal.h: Likewise.
46334         * lib/acl.c: Likewise.
46335         * lib/acl.h: Likewise.
46336         * lib/acl_entries.c: Likewise.
46337         * lib/areadlink-with-size.c: Likewise.
46338         * lib/areadlink.c: Likewise.
46339         * lib/areadlink.h: Likewise.
46340         * lib/argmatch.c: Likewise.
46341         * lib/argmatch.h: Likewise.
46342         * lib/argp-ba.c: Likewise.
46343         * lib/argp-eexst.c: Likewise.
46344         * lib/argp-fmtstream.c: Likewise.
46345         * lib/argp-fmtstream.h: Likewise.
46346         * lib/argp-fs-xinl.c: Likewise.
46347         * lib/argp-help.c: Likewise.
46348         * lib/argp-namefrob.h: Likewise.
46349         * lib/argp-parse.c: Likewise.
46350         * lib/argp-pin.c: Likewise.
46351         * lib/argp-pv.c: Likewise.
46352         * lib/argp-pvh.c: Likewise.
46353         * lib/argp-xinl.c: Likewise.
46354         * lib/argp.h: Likewise.
46355         * lib/at-func.c: Likewise.
46356         * lib/atanl.c: Likewise.
46357         * lib/backupfile.c: Likewise.
46358         * lib/backupfile.h: Likewise.
46359         * lib/basename.c: Likewise.
46360         * lib/binary-io.h: Likewise.
46361         * lib/byteswap.in.h: Likewise.
46362         * lib/c-stack.c: Likewise.
46363         * lib/c-stack.h: Likewise.
46364         * lib/c-strcasestr.c: Likewise.
46365         * lib/c-strcasestr.h: Likewise.
46366         * lib/c-strstr.c: Likewise.
46367         * lib/c-strstr.h: Likewise.
46368         * lib/c-strtod.c: Likewise.
46369         * lib/calloc.c: Likewise.
46370         * lib/canon-host.c: Likewise.
46371         * lib/canon-host.h: Likewise.
46372         * lib/canonicalize-lgpl.c: Likewise.
46373         * lib/canonicalize.c: Likewise.
46374         * lib/canonicalize.h: Likewise.
46375         * lib/ceil.c: Likewise.
46376         * lib/ceilf.c: Likewise.
46377         * lib/ceill.c: Likewise.
46378         * lib/chdir-long.c: Likewise.
46379         * lib/chdir-long.h: Likewise.
46380         * lib/chdir-safer.c: Likewise.
46381         * lib/chdir-safer.h: Likewise.
46382         * lib/chown.c: Likewise.
46383         * lib/classpath.c: Likewise.
46384         * lib/classpath.h: Likewise.
46385         * lib/clean-temp.c: Likewise.
46386         * lib/clean-temp.h: Likewise.
46387         * lib/cloexec.c: Likewise.
46388         * lib/close-stream.c: Likewise.
46389         * lib/closein.c: Likewise.
46390         * lib/closein.h: Likewise.
46391         * lib/closeout.c: Likewise.
46392         * lib/closeout.h: Likewise.
46393         * lib/concat-filename.c: Likewise.
46394         * lib/copy-file.c: Likewise.
46395         * lib/copy-file.h: Likewise.
46396         * lib/count-one-bits.h: Likewise.
46397         * lib/crc.c: Likewise.
46398         * lib/crc.h: Likewise.
46399         * lib/creat-safer.c: Likewise.
46400         * lib/csharpcomp.c: Likewise.
46401         * lib/csharpcomp.h: Likewise.
46402         * lib/csharpexec.c: Likewise.
46403         * lib/csharpexec.h: Likewise.
46404         * lib/cycle-check.c: Likewise.
46405         * lib/cycle-check.h: Likewise.
46406         * lib/diacrit.c: Likewise.
46407         * lib/diacrit.h: Likewise.
46408         * lib/diffseq.h: Likewise.
46409         * lib/dirchownmod.c: Likewise.
46410         * lib/dirent.in.h: Likewise.
46411         * lib/dirfd.c: Likewise.
46412         * lib/dirfd.h: Likewise.
46413         * lib/dirname.c: Likewise.
46414         * lib/dirname.h: Likewise.
46415         * lib/dummy.c: Likewise.
46416         * lib/dup-safer.c: Likewise.
46417         * lib/dup2.c: Likewise.
46418         * lib/eealloc.h: Likewise.
46419         * lib/error.c: Likewise.
46420         * lib/error.h: Likewise.
46421         * lib/euidaccess.c: Likewise.
46422         * lib/exclude.c: Likewise.
46423         * lib/exclude.h: Likewise.
46424         * lib/execute.c: Likewise.
46425         * lib/execute.h: Likewise.
46426         * lib/exitfail.c: Likewise.
46427         * lib/exitfail.h: Likewise.
46428         * lib/expl.c: Likewise.
46429         * lib/fatal-signal.c: Likewise.
46430         * lib/fatal-signal.h: Likewise.
46431         * lib/fbufmode.c: Likewise.
46432         * lib/fbufmode.h: Likewise.
46433         * lib/fchdir.c: Likewise.
46434         * lib/fchmodat.c: Likewise.
46435         * lib/fchownat.c: Likewise.
46436         * lib/fcntl--.h: Likewise.
46437         * lib/fcntl-safer.h: Likewise.
46438         * lib/fcntl.in.h: Likewise.
46439         * lib/fd-safer.c: Likewise.
46440         * lib/fflush.c: Likewise.
46441         * lib/file-has-acl.c: Likewise.
46442         * lib/file-set.c: Likewise.
46443         * lib/file-type.c: Likewise.
46444         * lib/file-type.h: Likewise.
46445         * lib/fileblocks.c: Likewise.
46446         * lib/filemode.c: Likewise.
46447         * lib/filemode.h: Likewise.
46448         * lib/filename.h: Likewise.
46449         * lib/filenamecat.c: Likewise.
46450         * lib/filenamecat.h: Likewise.
46451         * lib/findprog.c: Likewise.
46452         * lib/findprog.h: Likewise.
46453         * lib/float.in.h: Likewise.
46454         * lib/floor.c: Likewise.
46455         * lib/floorf.c: Likewise.
46456         * lib/floorl.c: Likewise.
46457         * lib/fopen-safer.c: Likewise.
46458         * lib/fopen.c: Likewise.
46459         * lib/fpending.c: Likewise.
46460         * lib/fpending.h: Likewise.
46461         * lib/fprintf.c: Likewise.
46462         * lib/fprintftime.h: Likewise.
46463         * lib/fpucw.h: Likewise.
46464         * lib/fpurge.c: Likewise.
46465         * lib/fpurge.h: Likewise.
46466         * lib/freadable.c: Likewise.
46467         * lib/freadable.h: Likewise.
46468         * lib/freadahead.c: Likewise.
46469         * lib/freadahead.h: Likewise.
46470         * lib/freading.c: Likewise.
46471         * lib/freading.h: Likewise.
46472         * lib/free.c: Likewise.
46473         * lib/freopen.c: Likewise.
46474         * lib/frexp.c: Likewise.
46475         * lib/frexpl.c: Likewise.
46476         * lib/fseek.c: Likewise.
46477         * lib/fseterr.c: Likewise.
46478         * lib/fseterr.h: Likewise.
46479         * lib/fstatat.c: Likewise.
46480         * lib/fstrcmp.c: Likewise.
46481         * lib/fstrcmp.h: Likewise.
46482         * lib/fsusage.c: Likewise.
46483         * lib/fsusage.h: Likewise.
46484         * lib/ftell.c: Likewise.
46485         * lib/ftello.c: Likewise.
46486         * lib/fts-cycle.c: Likewise.
46487         * lib/fts.c: Likewise.
46488         * lib/fts_.h: Likewise.
46489         * lib/full-read.c: Likewise.
46490         * lib/full-read.h: Likewise.
46491         * lib/full-write.c: Likewise.
46492         * lib/full-write.h: Likewise.
46493         * lib/fwritable.c: Likewise.
46494         * lib/fwritable.h: Likewise.
46495         * lib/fwriteerror.c: Likewise.
46496         * lib/fwriteerror.h: Likewise.
46497         * lib/fwriting.c: Likewise.
46498         * lib/fwriting.h: Likewise.
46499         * lib/gcd.c: Likewise.
46500         * lib/gcd.h: Likewise.
46501         * lib/getcwd.c: Likewise.
46502         * lib/getdate.h: Likewise.
46503         * lib/getdate.y: Likewise.
46504         * lib/getdomainname.c: Likewise.
46505         * lib/getdomainname.h: Likewise.
46506         * lib/getgroups.c: Likewise.
46507         * lib/gethostname.c: Likewise.
46508         * lib/gethrxtime.c: Likewise.
46509         * lib/gethrxtime.h: Likewise.
46510         * lib/getloadavg.c: Likewise.
46511         * lib/getndelim2.c: Likewise.
46512         * lib/getndelim2.h: Likewise.
46513         * lib/getnline.c: Likewise.
46514         * lib/getnline.h: Likewise.
46515         * lib/getopt.c: Likewise.
46516         * lib/getopt.in.h: Likewise.
46517         * lib/getopt1.c: Likewise.
46518         * lib/getopt_int.h: Likewise.
46519         * lib/getpagesize.h: Likewise.
46520         * lib/getsubopt.c: Likewise.
46521         * lib/gettime.c: Likewise.
46522         * lib/getugroups.c: Likewise.
46523         * lib/getugroups.h: Likewise.
46524         * lib/getusershell.c: Likewise.
46525         * lib/gl_anyavltree_list1.h: Likewise.
46526         * lib/gl_anyavltree_list2.h: Likewise.
46527         * lib/gl_anyhash_list1.h: Likewise.
46528         * lib/gl_anyhash_list2.h: Likewise.
46529         * lib/gl_anylinked_list1.h: Likewise.
46530         * lib/gl_anylinked_list2.h: Likewise.
46531         * lib/gl_anyrbtree_list1.h: Likewise.
46532         * lib/gl_anyrbtree_list2.h: Likewise.
46533         * lib/gl_anytree_list1.h: Likewise.
46534         * lib/gl_anytree_list2.h: Likewise.
46535         * lib/gl_anytree_oset.h: Likewise.
46536         * lib/gl_anytreehash_list1.h: Likewise.
46537         * lib/gl_anytreehash_list2.h: Likewise.
46538         * lib/gl_array_list.c: Likewise.
46539         * lib/gl_array_list.h: Likewise.
46540         * lib/gl_array_oset.c: Likewise.
46541         * lib/gl_array_oset.h: Likewise.
46542         * lib/gl_avltree_list.c: Likewise.
46543         * lib/gl_avltree_list.h: Likewise.
46544         * lib/gl_avltree_oset.c: Likewise.
46545         * lib/gl_avltree_oset.h: Likewise.
46546         * lib/gl_avltreehash_list.c: Likewise.
46547         * lib/gl_avltreehash_list.h: Likewise.
46548         * lib/gl_carray_list.c: Likewise.
46549         * lib/gl_carray_list.h: Likewise.
46550         * lib/gl_linked_list.c: Likewise.
46551         * lib/gl_linked_list.h: Likewise.
46552         * lib/gl_linkedhash_list.c: Likewise.
46553         * lib/gl_linkedhash_list.h: Likewise.
46554         * lib/gl_list.c: Likewise.
46555         * lib/gl_list.h: Likewise.
46556         * lib/gl_oset.c: Likewise.
46557         * lib/gl_oset.h: Likewise.
46558         * lib/gl_rbtree_list.c: Likewise.
46559         * lib/gl_rbtree_list.h: Likewise.
46560         * lib/gl_rbtree_oset.c: Likewise.
46561         * lib/gl_rbtree_oset.h: Likewise.
46562         * lib/gl_rbtreehash_list.c: Likewise.
46563         * lib/gl_rbtreehash_list.h: Likewise.
46564         * lib/gl_sublist.c: Likewise.
46565         * lib/gl_sublist.h: Likewise.
46566         * lib/group-member.c: Likewise.
46567         * lib/group-member.h: Likewise.
46568         * lib/hard-locale.c: Likewise.
46569         * lib/hard-locale.h: Likewise.
46570         * lib/hash-pjw.c: Likewise.
46571         * lib/hash-pjw.h: Likewise.
46572         * lib/hash-triple.c: Likewise.
46573         * lib/hash.c: Likewise.
46574         * lib/hash.h: Likewise.
46575         * lib/human.c: Likewise.
46576         * lib/human.h: Likewise.
46577         * lib/i-ring.c: Likewise.
46578         * lib/i-ring.h: Likewise.
46579         * lib/idcache.c: Likewise.
46580         * lib/imaxabs.c: Likewise.
46581         * lib/imaxdiv.c: Likewise.
46582         * lib/inet_pton.c: Likewise.
46583         * lib/inet_pton.h: Likewise.
46584         * lib/intprops.h: Likewise.
46585         * lib/inttostr.c: Likewise.
46586         * lib/inttostr.h: Likewise.
46587         * lib/inttypes.in.h: Likewise.
46588         * lib/isapipe.c: Likewise.
46589         * lib/isdir.c: Likewise.
46590         * lib/isnan.c: Likewise.
46591         * lib/isnan.h: Likewise.
46592         * lib/isnanf.c: Likewise.
46593         * lib/isnanf.h: Likewise.
46594         * lib/isnanl-nolibm.h: Likewise.
46595         * lib/isnanl.c: Likewise.
46596         * lib/isnanl.h: Likewise.
46597         * lib/javacomp.c: Likewise.
46598         * lib/javacomp.h: Likewise.
46599         * lib/javaexec.c: Likewise.
46600         * lib/javaexec.h: Likewise.
46601         * lib/javaversion.c: Likewise.
46602         * lib/javaversion.h: Likewise.
46603         * lib/javaversion.java: Likewise.
46604         * lib/lbrkprop.h: Likewise.
46605         * lib/lchmod.h: Likewise.
46606         * lib/lchown.c: Likewise.
46607         * lib/ldexpl.c: Likewise.
46608         * lib/linebreak.c: Likewise.
46609         * lib/linebreak.h: Likewise.
46610         * lib/linebuffer.c: Likewise.
46611         * lib/linebuffer.h: Likewise.
46612         * lib/locale.in.h: Likewise.
46613         * lib/logl.c: Likewise.
46614         * lib/long-options.c: Likewise.
46615         * lib/long-options.h: Likewise.
46616         * lib/lstat.c: Likewise.
46617         * lib/lstat.h: Likewise.
46618         * lib/math.in.h: Likewise.
46619         * lib/mbchar.c: Likewise.
46620         * lib/mbchar.h: Likewise.
46621         * lib/mbfile.h: Likewise.
46622         * lib/mbiter.h: Likewise.
46623         * lib/mbscasecmp.c: Likewise.
46624         * lib/mbscasestr.c: Likewise.
46625         * lib/mbschr.c: Likewise.
46626         * lib/mbscspn.c: Likewise.
46627         * lib/mbslen.c: Likewise.
46628         * lib/mbsncasecmp.c: Likewise.
46629         * lib/mbsnlen.c: Likewise.
46630         * lib/mbspbrk.c: Likewise.
46631         * lib/mbspcasecmp.c: Likewise.
46632         * lib/mbsrchr.c: Likewise.
46633         * lib/mbssep.c: Likewise.
46634         * lib/mbsspn.c: Likewise.
46635         * lib/mbsstr.c: Likewise.
46636         * lib/mbstok_r.c: Likewise.
46637         * lib/mbswidth.c: Likewise.
46638         * lib/mbswidth.h: Likewise.
46639         * lib/mbuiter.h: Likewise.
46640         * lib/memcasecmp.c: Likewise.
46641         * lib/memcasecmp.h: Likewise.
46642         * lib/memchr.c: Likewise.
46643         * lib/memcmp.c: Likewise.
46644         * lib/memcoll.c: Likewise.
46645         * lib/memcoll.h: Likewise.
46646         * lib/memcpy.c: Likewise.
46647         * lib/memrchr.c: Likewise.
46648         * lib/mkancesdirs.c: Likewise.
46649         * lib/mkdir-p.c: Likewise.
46650         * lib/mkdir-p.h: Likewise.
46651         * lib/mkdir.c: Likewise.
46652         * lib/mkdirat.c: Likewise.
46653         * lib/mkdtemp.c: Likewise.
46654         * lib/mkstemp-safer.c: Likewise.
46655         * lib/mkstemp.c: Likewise.
46656         * lib/modechange.c: Likewise.
46657         * lib/modechange.h: Likewise.
46658         * lib/mountlist.c: Likewise.
46659         * lib/mountlist.h: Likewise.
46660         * lib/mpsort.c: Likewise.
46661         * lib/nanosleep.c: Likewise.
46662         * lib/obstack.c: Likewise.
46663         * lib/obstack.h: Likewise.
46664         * lib/open-safer.c: Likewise.
46665         * lib/open.c: Likewise.
46666         * lib/openat-die.c: Likewise.
46667         * lib/openat-priv.h: Likewise.
46668         * lib/openat-proc.c: Likewise.
46669         * lib/openat.c: Likewise.
46670         * lib/openat.h: Likewise.
46671         * lib/pagealign_alloc.c: Likewise.
46672         * lib/pagealign_alloc.h: Likewise.
46673         * lib/physmem.c: Likewise.
46674         * lib/physmem.h: Likewise.
46675         * lib/pipe-safer.c: Likewise.
46676         * lib/pipe.c: Likewise.
46677         * lib/pipe.h: Likewise.
46678         * lib/posixtm.c: Likewise.
46679         * lib/posixtm.h: Likewise.
46680         * lib/posixver.c: Likewise.
46681         * lib/printf-frexp.c: Likewise.
46682         * lib/printf-frexp.h: Likewise.
46683         * lib/printf-frexpl.c: Likewise.
46684         * lib/printf-frexpl.h: Likewise.
46685         * lib/printf.c: Likewise.
46686         * lib/progname.c: Likewise.
46687         * lib/progname.h: Likewise.
46688         * lib/progreloc.c: Likewise.
46689         * lib/putenv.c: Likewise.
46690         * lib/quote.c: Likewise.
46691         * lib/quote.h: Likewise.
46692         * lib/quotearg.c: Likewise.
46693         * lib/quotearg.h: Likewise.
46694         * lib/raise.c: Likewise.
46695         * lib/readline.c: Likewise.
46696         * lib/readline.h: Likewise.
46697         * lib/readlink.c: Likewise.
46698         * lib/readtokens.c: Likewise.
46699         * lib/readtokens.h: Likewise.
46700         * lib/readtokens0.c: Likewise.
46701         * lib/readtokens0.h: Likewise.
46702         * lib/readutmp.c: Likewise.
46703         * lib/readutmp.h: Likewise.
46704         * lib/realloc.c: Likewise.
46705         * lib/relocwrapper.c: Likewise.
46706         * lib/rename-dest-slash.c: Likewise.
46707         * lib/rename.c: Likewise.
46708         * lib/rmdir.c: Likewise.
46709         * lib/rpmatch.c: Likewise.
46710         * lib/safe-read.c: Likewise.
46711         * lib/safe-read.h: Likewise.
46712         * lib/safe-write.c: Likewise.
46713         * lib/safe-write.h: Likewise.
46714         * lib/same-inode.h: Likewise.
46715         * lib/same.c: Likewise.
46716         * lib/same.h: Likewise.
46717         * lib/save-cwd.c: Likewise.
46718         * lib/save-cwd.h: Likewise.
46719         * lib/savedir.c: Likewise.
46720         * lib/savedir.h: Likewise.
46721         * lib/savewd.c: Likewise.
46722         * lib/savewd.h: Likewise.
46723         * lib/search.in.h: Likewise.
46724         * lib/setenv.c: Likewise.
46725         * lib/setenv.h: Likewise.
46726         * lib/settime.c: Likewise.
46727         * lib/sh-quote.c: Likewise.
46728         * lib/sh-quote.h: Likewise.
46729         * lib/sig2str.c: Likewise.
46730         * lib/sig2str.h: Likewise.
46731         * lib/signal.in.h: Likewise.
46732         * lib/signbitd.c: Likewise.
46733         * lib/signbitf.c: Likewise.
46734         * lib/signbitl.c: Likewise.
46735         * lib/sigprocmask.c: Likewise.
46736         * lib/sincosl.c: Likewise.
46737         * lib/sleep.c: Likewise.
46738         * lib/sprintf.c: Likewise.
46739         * lib/sqrtl.c: Likewise.
46740         * lib/stat-time.h: Likewise.
46741         * lib/stdio--.h: Likewise.
46742         * lib/stdio-safer.h: Likewise.
46743         * lib/stdlib--.h: Likewise.
46744         * lib/stdlib-safer.h: Likewise.
46745         * lib/stdlib.in.h: Likewise.
46746         * lib/stpcpy.c: Likewise.
46747         * lib/stpncpy.c: Likewise.
46748         * lib/strchrnul.c: Likewise.
46749         * lib/strcspn.c: Likewise.
46750         * lib/strerror.c: Likewise.
46751         * lib/strftime.c: Likewise.
46752         * lib/strftime.h: Likewise.
46753         * lib/striconveh.c: Likewise.
46754         * lib/striconveh.h: Likewise.
46755         * lib/striconveha.c: Likewise.
46756         * lib/striconveha.h: Likewise.
46757         * lib/stripslash.c: Likewise.
46758         * lib/strnlen1.c: Likewise.
46759         * lib/strnlen1.h: Likewise.
46760         * lib/strtod.c: Likewise.
46761         * lib/strtoimax.c: Likewise.
46762         * lib/strtok_r.c: Likewise.
46763         * lib/strtol.c: Likewise.
46764         * lib/strtoll.c: Likewise.
46765         * lib/strtoul.c: Likewise.
46766         * lib/strtoull.c: Likewise.
46767         * lib/sysexits.in.h: Likewise.
46768         * lib/tempname.c: Likewise.
46769         * lib/tempname.h: Likewise.
46770         * lib/timespec.h: Likewise.
46771         * lib/tls.c: Likewise.
46772         * lib/tls.h: Likewise.
46773         * lib/tmpdir.c: Likewise.
46774         * lib/tmpdir.h: Likewise.
46775         * lib/tmpfile-safer.c: Likewise.
46776         * lib/tmpfile.c: Likewise.
46777         * lib/trigl.c: Likewise.
46778         * lib/trigl.h: Likewise.
46779         * lib/trim.c: Likewise.
46780         * lib/trim.h: Likewise.
46781         * lib/trunc.c: Likewise.
46782         * lib/truncf.c: Likewise.
46783         * lib/truncl.c: Likewise.
46784         * lib/tsearch.c: Likewise.
46785         * lib/unicodeio.c: Likewise.
46786         * lib/unicodeio.h: Likewise.
46787         * lib/unistd--.h: Likewise.
46788         * lib/unistd-safer.h: Likewise.
46789         * lib/unistdio/ulc-fprintf.c: Likewise.
46790         * lib/unistdio/ulc-vfprintf.c: Likewise.
46791         * lib/unlinkdir.c: Likewise.
46792         * lib/unlinkdir.h: Likewise.
46793         * lib/unlocked-io.h: Likewise.
46794         * lib/unsetenv.c: Likewise.
46795         * lib/userspec.c: Likewise.
46796         * lib/utime.c: Likewise.
46797         * lib/utimecmp.c: Likewise.
46798         * lib/utimecmp.h: Likewise.
46799         * lib/utimens.c: Likewise.
46800         * lib/verify.h: Likewise.
46801         * lib/verror.c: Likewise.
46802         * lib/verror.h: Likewise.
46803         * lib/version-etc-fsf.c: Likewise.
46804         * lib/version-etc.c: Likewise.
46805         * lib/version-etc.h: Likewise.
46806         * lib/vfprintf.c: Likewise.
46807         * lib/vprintf.c: Likewise.
46808         * lib/vsprintf.c: Likewise.
46809         * lib/w32spawn.h: Likewise.
46810         * lib/wait-process.c: Likewise.
46811         * lib/wait-process.h: Likewise.
46812         * lib/wcwidth.c: Likewise.
46813         * lib/write-any-file.c: Likewise.
46814         * lib/xalloc-die.c: Likewise.
46815         * lib/xalloc.h: Likewise.
46816         * lib/xasprintf.c: Likewise.
46817         * lib/xgetcwd.c: Likewise.
46818         * lib/xgetcwd.h: Likewise.
46819         * lib/xgetdomainname.c: Likewise.
46820         * lib/xgetdomainname.h: Likewise.
46821         * lib/xgethostname.c: Likewise.
46822         * lib/xmalloc.c: Likewise.
46823         * lib/xmalloca.c: Likewise.
46824         * lib/xmalloca.h: Likewise.
46825         * lib/xmemcoll.c: Likewise.
46826         * lib/xnanosleep.c: Likewise.
46827         * lib/xreadlink.c: Likewise.
46828         * lib/xreadlink.h: Likewise.
46829         * lib/xsetenv.c: Likewise.
46830         * lib/xsetenv.h: Likewise.
46831         * lib/xstriconv.c: Likewise.
46832         * lib/xstriconv.h: Likewise.
46833         * lib/xstrndup.c: Likewise.
46834         * lib/xstrndup.h: Likewise.
46835         * lib/xstrtod.c: Likewise.
46836         * lib/xstrtod.h: Likewise.
46837         * lib/xstrtol-error.c: Likewise.
46838         * lib/xstrtol.c: Likewise.
46839         * lib/xstrtol.h: Likewise.
46840         * lib/xtime.h: Likewise.
46841         * lib/xvasprintf.c: Likewise.
46842         * lib/xvasprintf.h: Likewise.
46843         * lib/yesno.c: Likewise.
46844         * lib/yesno.h: Likewise.
46845         * posix-modules: Likewise.
46846         * tests/test-alloca-opt.c: Likewise.
46847         * tests/test-arcfour.c: Likewise.
46848         * tests/test-arctwo.c: Likewise.
46849         * tests/test-argmatch.c: Likewise.
46850         * tests/test-argp-2.sh: Likewise.
46851         * tests/test-argp.c: Likewise.
46852         * tests/test-arpa_inet.c: Likewise.
46853         * tests/test-array_list.c: Likewise.
46854         * tests/test-array_oset.c: Likewise.
46855         * tests/test-atexit.c: Likewise.
46856         * tests/test-avltree_list.c: Likewise.
46857         * tests/test-avltree_oset.c: Likewise.
46858         * tests/test-avltreehash_list.c: Likewise.
46859         * tests/test-base64.c: Likewise.
46860         * tests/test-binary-io.c: Likewise.
46861         * tests/test-byteswap.c: Likewise.
46862         * tests/test-c-ctype.c: Likewise.
46863         * tests/test-c-strcasecmp.c: Likewise.
46864         * tests/test-c-strcasestr.c: Likewise.
46865         * tests/test-c-strncasecmp.c: Likewise.
46866         * tests/test-c-strstr.c: Likewise.
46867         * tests/test-canonicalize-lgpl.c: Likewise.
46868         * tests/test-canonicalize.c: Likewise.
46869         * tests/test-carray_list.c: Likewise.
46870         * tests/test-ceilf.c: Likewise.
46871         * tests/test-ceill.c: Likewise.
46872         * tests/test-count-one-bits.c: Likewise.
46873         * tests/test-crc.c: Likewise.
46874         * tests/test-dirname.c: Likewise.
46875         * tests/test-fbufmode.c: Likewise.
46876         * tests/test-fcntl.c: Likewise.
46877         * tests/test-fflush.c: Likewise.
46878         * tests/test-floorf.c: Likewise.
46879         * tests/test-floorl.c: Likewise.
46880         * tests/test-fopen.c: Likewise.
46881         * tests/test-fprintf-posix.c: Likewise.
46882         * tests/test-fprintf-posix.h: Likewise.
46883         * tests/test-fpurge.c: Likewise.
46884         * tests/test-freadable.c: Likewise.
46885         * tests/test-freadahead.c: Likewise.
46886         * tests/test-freading.c: Likewise.
46887         * tests/test-freopen.c: Likewise.
46888         * tests/test-frexp.c: Likewise.
46889         * tests/test-frexpl.c: Likewise.
46890         * tests/test-fseek.c: Likewise.
46891         * tests/test-fseeko.c: Likewise.
46892         * tests/test-fseterr.c: Likewise.
46893         * tests/test-fstrcmp.c: Likewise.
46894         * tests/test-ftell.c: Likewise.
46895         * tests/test-ftello.c: Likewise.
46896         * tests/test-fwritable.c: Likewise.
46897         * tests/test-fwriting.c: Likewise.
46898         * tests/test-getaddrinfo.c: Likewise.
46899         * tests/test-getpass.c: Likewise.
46900         * tests/test-gettimeofday.c: Likewise.
46901         * tests/test-hmac-md5.c: Likewise.
46902         * tests/test-hmac-sha1.c: Likewise.
46903         * tests/test-iconv.c: Likewise.
46904         * tests/test-iconvme.c: Likewise.
46905         * tests/test-inttypes.c: Likewise.
46906         * tests/test-isnan.c: Likewise.
46907         * tests/test-isnanf.c: Likewise.
46908         * tests/test-isnanl-nolibm.c: Likewise.
46909         * tests/test-isnanl.c: Likewise.
46910         * tests/test-isnanl.h: Likewise.
46911         * tests/test-ldexpl.c: Likewise.
46912         * tests/test-linked_list.c: Likewise.
46913         * tests/test-linkedhash_list.c: Likewise.
46914         * tests/test-locale.c: Likewise.
46915         * tests/test-localename.c: Likewise.
46916         * tests/test-lock.c: Likewise.
46917         * tests/test-lseek.c: Likewise.
46918         * tests/test-malloca.c: Likewise.
46919         * tests/test-math.c: Likewise.
46920         * tests/test-mbscasecmp.c: Likewise.
46921         * tests/test-mbscasestr1.c: Likewise.
46922         * tests/test-mbscasestr2.c: Likewise.
46923         * tests/test-mbscasestr3.c: Likewise.
46924         * tests/test-mbscasestr4.c: Likewise.
46925         * tests/test-mbschr.c: Likewise.
46926         * tests/test-mbscspn.c: Likewise.
46927         * tests/test-mbsncasecmp.c: Likewise.
46928         * tests/test-mbspbrk.c: Likewise.
46929         * tests/test-mbspcasecmp.c: Likewise.
46930         * tests/test-mbsrchr.c: Likewise.
46931         * tests/test-mbsspn.c: Likewise.
46932         * tests/test-mbsstr1.c: Likewise.
46933         * tests/test-mbsstr2.c: Likewise.
46934         * tests/test-mbsstr3.c: Likewise.
46935         * tests/test-md5.c: Likewise.
46936         * tests/test-memmem.c: Likewise.
46937         * tests/test-netinet_in.c: Likewise.
46938         * tests/test-open.c: Likewise.
46939         * tests/test-printf-frexp.c: Likewise.
46940         * tests/test-printf-frexpl.c: Likewise.
46941         * tests/test-printf-posix.c: Likewise.
46942         * tests/test-printf-posix.h: Likewise.
46943         * tests/test-rbtree_list.c: Likewise.
46944         * tests/test-rbtree_oset.c: Likewise.
46945         * tests/test-rbtreehash_list.c: Likewise.
46946         * tests/test-read-file.c: Likewise.
46947         * tests/test-rijndael.c: Likewise.
46948         * tests/test-search.c: Likewise.
46949         * tests/test-signbit.c: Likewise.
46950         * tests/test-sleep.c: Likewise.
46951         * tests/test-snprintf-posix.c: Likewise.
46952         * tests/test-snprintf-posix.h: Likewise.
46953         * tests/test-snprintf.c: Likewise.
46954         * tests/test-sprintf-posix.c: Likewise.
46955         * tests/test-sprintf-posix.h: Likewise.
46956         * tests/test-stat-time.c: Likewise.
46957         * tests/test-stdbool.c: Likewise.
46958         * tests/test-stdint.c: Likewise.
46959         * tests/test-stdio.c: Likewise.
46960         * tests/test-stdlib.c: Likewise.
46961         * tests/test-stpncpy.c: Likewise.
46962         * tests/test-strcasestr.c: Likewise.
46963         * tests/test-striconv.c: Likewise.
46964         * tests/test-striconveh.c: Likewise.
46965         * tests/test-striconveha.c: Likewise.
46966         * tests/test-string.c: Likewise.
46967         * tests/test-sys_select.c: Likewise.
46968         * tests/test-sys_socket.c: Likewise.
46969         * tests/test-sys_stat.c: Likewise.
46970         * tests/test-sys_time.c: Likewise.
46971         * tests/test-sysexits.c: Likewise.
46972         * tests/test-time.c: Likewise.
46973         * tests/test-tls.c: Likewise.
46974         * tests/test-trunc.c: Likewise.
46975         * tests/test-truncf.c: Likewise.
46976         * tests/test-truncl.c: Likewise.
46977         * tests/test-unistd.c: Likewise.
46978         * tests/test-vasnprintf-posix.c: Likewise.
46979         * tests/test-vasnprintf-posix2.c: Likewise.
46980         * tests/test-vasnprintf.c: Likewise.
46981         * tests/test-vasprintf-posix.c: Likewise.
46982         * tests/test-vasprintf.c: Likewise.
46983         * tests/test-verify.c: Likewise.
46984         * tests/test-vfprintf-posix.c: Likewise.
46985         * tests/test-vprintf-posix.c: Likewise.
46986         * tests/test-vsnprintf-posix.c: Likewise.
46987         * tests/test-vsnprintf.c: Likewise.
46988         * tests/test-vsprintf-posix.c: Likewise.
46989         * tests/test-wchar.c: Likewise.
46990         * tests/test-wctype.c: Likewise.
46991         * tests/test-wcwidth.c: Likewise.
46992         * tests/test-xstrtol.c: Likewise.
46993         * tests/test-xvasprintf.c: Likewise.
46994         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
46995         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
46996         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46997         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46998         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46999         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
47000         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47001         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47002         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47003         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
47004         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47005         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47006         * tests/uniname/test-uninames.c: Likewise.
47007         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
47008         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
47009         * tests/unistdio/test-u16-printf1.h: Likewise.
47010         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
47011         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
47012         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
47013         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
47014         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
47015         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
47016         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
47017         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
47018         * tests/unistdio/test-u32-printf1.h: Likewise.
47019         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
47020         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
47021         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
47022         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
47023         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
47024         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
47025         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
47026         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
47027         * tests/unistdio/test-u8-printf1.h: Likewise.
47028         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
47029         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
47030         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
47031         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
47032         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
47033         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
47034         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
47035         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
47036         * tests/unistdio/test-ulc-printf1.h: Likewise.
47037         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
47038         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
47039         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
47040         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
47041         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
47042         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
47043         * tests/uniwidth/test-u16-strwidth.c: Likewise.
47044         * tests/uniwidth/test-u16-width.c: Likewise.
47045         * tests/uniwidth/test-u32-strwidth.c: Likewise.
47046         * tests/uniwidth/test-u32-width.c: Likewise.
47047         * tests/uniwidth/test-u8-strwidth.c: Likewise.
47048         * tests/uniwidth/test-u8-width.c: Likewise.
47049         * tests/uniwidth/test-uc_width.c: Likewise.
47050         * config/srclist-update: Likewise.
47051         (fixlicense): Update to GPLv3+.
47052
47053         Change copyright notice from LGPLv2.1+ to LGPLv3+.
47054         * tests/test-tsearch.c: Change copyright notice.
47055
47056         Change copyright notice from LGPLv2.0+ to LGPLv3+.
47057         * lib/c-strcaseeq.h: Change copyright notice.
47058         * lib/streq.h: Likewise.
47059         * lib/uniconv.h: Likewise.
47060         * lib/uniconv/u-conv-from-enc.h: Likewise.
47061         * lib/uniconv/u-conv-to-enc.h: Likewise.
47062         * lib/uniconv/u-strconv-from-enc.h: Likewise.
47063         * lib/uniconv/u-strconv-to-enc.h: Likewise.
47064         * lib/uniconv/u16-conv-from-enc.c: Likewise.
47065         * lib/uniconv/u16-conv-to-enc.c: Likewise.
47066         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
47067         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
47068         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
47069         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
47070         * lib/uniconv/u32-conv-from-enc.c: Likewise.
47071         * lib/uniconv/u32-conv-to-enc.c: Likewise.
47072         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
47073         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
47074         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
47075         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
47076         * lib/uniconv/u8-conv-from-enc.c: Likewise.
47077         * lib/uniconv/u8-conv-to-enc.c: Likewise.
47078         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
47079         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
47080         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
47081         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
47082         * lib/uniname.h: Likewise.
47083         * lib/uniname/uniname.c: Likewise.
47084         * lib/unistdio.h: Likewise.
47085         * lib/unistdio/u-asnprintf.h: Likewise.
47086         * lib/unistdio/u-asprintf.h: Likewise.
47087         * lib/unistdio/u-printf-args.c: Likewise.
47088         * lib/unistdio/u-printf-args.h: Likewise.
47089         * lib/unistdio/u-printf-parse.h: Likewise.
47090         * lib/unistdio/u-snprintf.h: Likewise.
47091         * lib/unistdio/u-sprintf.h: Likewise.
47092         * lib/unistdio/u-vasprintf.h: Likewise.
47093         * lib/unistdio/u-vsnprintf.h: Likewise.
47094         * lib/unistdio/u-vsprintf.h: Likewise.
47095         * lib/unistdio/u16-asnprintf.c: Likewise.
47096         * lib/unistdio/u16-asprintf.c: Likewise.
47097         * lib/unistdio/u16-printf-parse.c: Likewise.
47098         * lib/unistdio/u16-snprintf.c: Likewise.
47099         * lib/unistdio/u16-sprintf.c: Likewise.
47100         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
47101         * lib/unistdio/u16-u16-asprintf.c: Likewise.
47102         * lib/unistdio/u16-u16-snprintf.c: Likewise.
47103         * lib/unistdio/u16-u16-sprintf.c: Likewise.
47104         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
47105         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
47106         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
47107         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
47108         * lib/unistdio/u16-vasnprintf.c: Likewise.
47109         * lib/unistdio/u16-vasprintf.c: Likewise.
47110         * lib/unistdio/u16-vsnprintf.c: Likewise.
47111         * lib/unistdio/u16-vsprintf.c: Likewise.
47112         * lib/unistdio/u32-asnprintf.c: Likewise.
47113         * lib/unistdio/u32-asprintf.c: Likewise.
47114         * lib/unistdio/u32-printf-parse.c: Likewise.
47115         * lib/unistdio/u32-snprintf.c: Likewise.
47116         * lib/unistdio/u32-sprintf.c: Likewise.
47117         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
47118         * lib/unistdio/u32-u32-asprintf.c: Likewise.
47119         * lib/unistdio/u32-u32-snprintf.c: Likewise.
47120         * lib/unistdio/u32-u32-sprintf.c: Likewise.
47121         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
47122         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
47123         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
47124         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
47125         * lib/unistdio/u32-vasnprintf.c: Likewise.
47126         * lib/unistdio/u32-vasprintf.c: Likewise.
47127         * lib/unistdio/u32-vsnprintf.c: Likewise.
47128         * lib/unistdio/u32-vsprintf.c: Likewise.
47129         * lib/unistdio/u8-asnprintf.c: Likewise.
47130         * lib/unistdio/u8-asprintf.c: Likewise.
47131         * lib/unistdio/u8-printf-parse.c: Likewise.
47132         * lib/unistdio/u8-snprintf.c: Likewise.
47133         * lib/unistdio/u8-sprintf.c: Likewise.
47134         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
47135         * lib/unistdio/u8-u8-asprintf.c: Likewise.
47136         * lib/unistdio/u8-u8-snprintf.c: Likewise.
47137         * lib/unistdio/u8-u8-sprintf.c: Likewise.
47138         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
47139         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
47140         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
47141         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
47142         * lib/unistdio/u8-vasnprintf.c: Likewise.
47143         * lib/unistdio/u8-vasprintf.c: Likewise.
47144         * lib/unistdio/u8-vsnprintf.c: Likewise.
47145         * lib/unistdio/u8-vsprintf.c: Likewise.
47146         * lib/unistdio/ulc-asnprintf.c: Likewise.
47147         * lib/unistdio/ulc-asprintf.c: Likewise.
47148         * lib/unistdio/ulc-printf-parse.c: Likewise.
47149         * lib/unistdio/ulc-snprintf.c: Likewise.
47150         * lib/unistdio/ulc-sprintf.c: Likewise.
47151         * lib/unistdio/ulc-vasnprintf.c: Likewise.
47152         * lib/unistdio/ulc-vasprintf.c: Likewise.
47153         * lib/unistdio/ulc-vsnprintf.c: Likewise.
47154         * lib/unistdio/ulc-vsprintf.c: Likewise.
47155         * lib/unistr.h: Likewise.
47156         * lib/unistr/u-cpy-alloc.h: Likewise.
47157         * lib/unistr/u-cpy.h: Likewise.
47158         * lib/unistr/u-endswith.h: Likewise.
47159         * lib/unistr/u-move.h: Likewise.
47160         * lib/unistr/u-set.h: Likewise.
47161         * lib/unistr/u-startswith.h: Likewise.
47162         * lib/unistr/u-stpcpy.h: Likewise.
47163         * lib/unistr/u-stpncpy.h: Likewise.
47164         * lib/unistr/u-strcat.h: Likewise.
47165         * lib/unistr/u-strcpy.h: Likewise.
47166         * lib/unistr/u-strcspn.h: Likewise.
47167         * lib/unistr/u-strdup.h: Likewise.
47168         * lib/unistr/u-strlen.h: Likewise.
47169         * lib/unistr/u-strncat.h: Likewise.
47170         * lib/unistr/u-strncpy.h: Likewise.
47171         * lib/unistr/u-strnlen.h: Likewise.
47172         * lib/unistr/u-strpbrk.h: Likewise.
47173         * lib/unistr/u-strspn.h: Likewise.
47174         * lib/unistr/u-strstr.h: Likewise.
47175         * lib/unistr/u-strtok.h: Likewise.
47176         * lib/unistr/u16-check.c: Likewise.
47177         * lib/unistr/u16-chr.c: Likewise.
47178         * lib/unistr/u16-cmp.c: Likewise.
47179         * lib/unistr/u16-cpy-alloc.c: Likewise.
47180         * lib/unistr/u16-cpy.c: Likewise.
47181         * lib/unistr/u16-endswith.c: Likewise.
47182         * lib/unistr/u16-mblen.c: Likewise.
47183         * lib/unistr/u16-mbsnlen.c: Likewise.
47184         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47185         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47186         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47187         * lib/unistr/u16-mbtouc.c: Likewise.
47188         * lib/unistr/u16-mbtoucr.c: Likewise.
47189         * lib/unistr/u16-move.c: Likewise.
47190         * lib/unistr/u16-next.c: Likewise.
47191         * lib/unistr/u16-prev.c: Likewise.
47192         * lib/unistr/u16-set.c: Likewise.
47193         * lib/unistr/u16-startswith.c: Likewise.
47194         * lib/unistr/u16-stpcpy.c: Likewise.
47195         * lib/unistr/u16-stpncpy.c: Likewise.
47196         * lib/unistr/u16-strcat.c: Likewise.
47197         * lib/unistr/u16-strchr.c: Likewise.
47198         * lib/unistr/u16-strcmp.c: Likewise.
47199         * lib/unistr/u16-strcpy.c: Likewise.
47200         * lib/unistr/u16-strcspn.c: Likewise.
47201         * lib/unistr/u16-strdup.c: Likewise.
47202         * lib/unistr/u16-strlen.c: Likewise.
47203         * lib/unistr/u16-strmblen.c: Likewise.
47204         * lib/unistr/u16-strmbtouc.c: Likewise.
47205         * lib/unistr/u16-strncat.c: Likewise.
47206         * lib/unistr/u16-strncmp.c: Likewise.
47207         * lib/unistr/u16-strncpy.c: Likewise.
47208         * lib/unistr/u16-strnlen.c: Likewise.
47209         * lib/unistr/u16-strpbrk.c: Likewise.
47210         * lib/unistr/u16-strrchr.c: Likewise.
47211         * lib/unistr/u16-strspn.c: Likewise.
47212         * lib/unistr/u16-strstr.c: Likewise.
47213         * lib/unistr/u16-strtok.c: Likewise.
47214         * lib/unistr/u16-to-u32.c: Likewise.
47215         * lib/unistr/u16-to-u8.c: Likewise.
47216         * lib/unistr/u16-uctomb-aux.c: Likewise.
47217         * lib/unistr/u16-uctomb.c: Likewise.
47218         * lib/unistr/u32-check.c: Likewise.
47219         * lib/unistr/u32-chr.c: Likewise.
47220         * lib/unistr/u32-cmp.c: Likewise.
47221         * lib/unistr/u32-cpy-alloc.c: Likewise.
47222         * lib/unistr/u32-cpy.c: Likewise.
47223         * lib/unistr/u32-endswith.c: Likewise.
47224         * lib/unistr/u32-mblen.c: Likewise.
47225         * lib/unistr/u32-mbsnlen.c: Likewise.
47226         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47227         * lib/unistr/u32-mbtouc.c: Likewise.
47228         * lib/unistr/u32-mbtoucr.c: Likewise.
47229         * lib/unistr/u32-move.c: Likewise.
47230         * lib/unistr/u32-next.c: Likewise.
47231         * lib/unistr/u32-prev.c: Likewise.
47232         * lib/unistr/u32-set.c: Likewise.
47233         * lib/unistr/u32-startswith.c: Likewise.
47234         * lib/unistr/u32-stpcpy.c: Likewise.
47235         * lib/unistr/u32-stpncpy.c: Likewise.
47236         * lib/unistr/u32-strcat.c: Likewise.
47237         * lib/unistr/u32-strchr.c: Likewise.
47238         * lib/unistr/u32-strcmp.c: Likewise.
47239         * lib/unistr/u32-strcpy.c: Likewise.
47240         * lib/unistr/u32-strcspn.c: Likewise.
47241         * lib/unistr/u32-strdup.c: Likewise.
47242         * lib/unistr/u32-strlen.c: Likewise.
47243         * lib/unistr/u32-strmblen.c: Likewise.
47244         * lib/unistr/u32-strmbtouc.c: Likewise.
47245         * lib/unistr/u32-strncat.c: Likewise.
47246         * lib/unistr/u32-strncmp.c: Likewise.
47247         * lib/unistr/u32-strncpy.c: Likewise.
47248         * lib/unistr/u32-strnlen.c: Likewise.
47249         * lib/unistr/u32-strpbrk.c: Likewise.
47250         * lib/unistr/u32-strrchr.c: Likewise.
47251         * lib/unistr/u32-strspn.c: Likewise.
47252         * lib/unistr/u32-strstr.c: Likewise.
47253         * lib/unistr/u32-strtok.c: Likewise.
47254         * lib/unistr/u32-to-u16.c: Likewise.
47255         * lib/unistr/u32-to-u8.c: Likewise.
47256         * lib/unistr/u32-uctomb.c: Likewise.
47257         * lib/unistr/u8-check.c: Likewise.
47258         * lib/unistr/u8-chr.c: Likewise.
47259         * lib/unistr/u8-cmp.c: Likewise.
47260         * lib/unistr/u8-cpy-alloc.c: Likewise.
47261         * lib/unistr/u8-cpy.c: Likewise.
47262         * lib/unistr/u8-endswith.c: Likewise.
47263         * lib/unistr/u8-mblen.c: Likewise.
47264         * lib/unistr/u8-mbsnlen.c: Likewise.
47265         * lib/unistr/u8-mbtouc-aux.c: Likewise.
47266         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47267         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47268         * lib/unistr/u8-mbtouc.c: Likewise.
47269         * lib/unistr/u8-mbtoucr.c: Likewise.
47270         * lib/unistr/u8-move.c: Likewise.
47271         * lib/unistr/u8-next.c: Likewise.
47272         * lib/unistr/u8-prev.c: Likewise.
47273         * lib/unistr/u8-set.c: Likewise.
47274         * lib/unistr/u8-startswith.c: Likewise.
47275         * lib/unistr/u8-stpcpy.c: Likewise.
47276         * lib/unistr/u8-stpncpy.c: Likewise.
47277         * lib/unistr/u8-strcat.c: Likewise.
47278         * lib/unistr/u8-strchr.c: Likewise.
47279         * lib/unistr/u8-strcmp.c: Likewise.
47280         * lib/unistr/u8-strcpy.c: Likewise.
47281         * lib/unistr/u8-strcspn.c: Likewise.
47282         * lib/unistr/u8-strdup.c: Likewise.
47283         * lib/unistr/u8-strlen.c: Likewise.
47284         * lib/unistr/u8-strmblen.c: Likewise.
47285         * lib/unistr/u8-strmbtouc.c: Likewise.
47286         * lib/unistr/u8-strncat.c: Likewise.
47287         * lib/unistr/u8-strncmp.c: Likewise.
47288         * lib/unistr/u8-strncpy.c: Likewise.
47289         * lib/unistr/u8-strnlen.c: Likewise.
47290         * lib/unistr/u8-strpbrk.c: Likewise.
47291         * lib/unistr/u8-strrchr.c: Likewise.
47292         * lib/unistr/u8-strspn.c: Likewise.
47293         * lib/unistr/u8-strstr.c: Likewise.
47294         * lib/unistr/u8-strtok.c: Likewise.
47295         * lib/unistr/u8-to-u16.c: Likewise.
47296         * lib/unistr/u8-to-u32.c: Likewise.
47297         * lib/unistr/u8-uctomb-aux.c: Likewise.
47298         * lib/unistr/u8-uctomb.c: Likewise.
47299         * lib/unitypes.h: Likewise.
47300         * lib/uniwidth.h: Likewise.
47301         * lib/uniwidth/cjk.h: Likewise.
47302         * lib/uniwidth/u16-strwidth.c: Likewise.
47303         * lib/uniwidth/u16-width.c: Likewise.
47304         * lib/uniwidth/u32-strwidth.c: Likewise.
47305         * lib/uniwidth/u32-width.c: Likewise.
47306         * lib/uniwidth/u8-strwidth.c: Likewise.
47307         * lib/uniwidth/u8-width.c: Likewise.
47308         * lib/uniwidth/width.c: Likewise.
47309
47310 2007-10-07  Bruno Haible  <bruno@clisp.org>
47311
47312         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
47313         The file is still under LGPL (see modules/inttypes).
47314
47315 2007-10-06  Bruno Haible  <bruno@clisp.org>
47316
47317         * modules/trunc (Dependencies): Add 'extensions'.
47318         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
47319         Reported by Ben Pfaff <blp@gnu.org>.
47320
47321 2007-10-06  Bruno Haible  <bruno@clisp.org>
47322
47323         * modules/freopen-tests: New file.
47324         * tests/test-freopen.c: New file.
47325
47326         * modules/fopen-tests: New file.
47327         * tests/test-fopen.c: New file.
47328
47329         * modules/fopen: New file.
47330         * lib/fopen.c: New file.
47331         * m4/fopen.m4: New file.
47332         * modules/freopen: New file.
47333         * lib/freopen.c: New file.
47334         * m4/freopen.m4: New file.
47335         * lib/stdio.in.h (fopen, freopen): New declarations.
47336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47337         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47338         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47339         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47340         * doc/functions/fopen.texi: Mention the 'fopen' module.
47341         * doc/functions/freopen.texi: Mention the 'freopen' module.
47342
47343 2007-10-06  Bruno Haible  <bruno@clisp.org>
47344
47345         * modules/open-tests: New file.
47346         * tests/test-open.c: New file.
47347
47348         * modules/open: New file.
47349         * lib/open.c: New file.
47350         * m4/open.m4: New file.
47351         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47352         lib/open.c does.
47353         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47354         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47355         macros.
47356         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47357         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47358         REPLACE_OPEN.
47359         * doc/functions/open.texi: Mention the 'open' module.
47360
47361 2007-10-04  Bruno Haible  <bruno@clisp.org>
47362
47363         * modules/ceill-tests: New file.
47364         * tests/test-ceill.c: New file.
47365
47366         * modules/ceill: New file.
47367         * lib/ceill.c: Replace entire file.
47368         * m4/ceill.m4: New file.
47369         * lib/math.in.h (ceill): Replace declaration.
47370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47371         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47372         * doc/functions/ceill.texi: Mention the 'ceill' module.
47373         * modules/mathl (Files): Remove lib/ceill.c.
47374         (Depends-on): Add ceill.
47375
47376 2007-10-04  Bruno Haible  <bruno@clisp.org>
47377
47378         * modules/ceilf-tests: New file.
47379         * tests/test-ceilf.c: New file.
47380
47381         * modules/ceilf: New file.
47382         * lib/ceil.c: New file.
47383         * lib/ceilf.c: New file.
47384         * m4/ceilf.m4: New file.
47385         * lib/math.in.h (ceilf): New declaration.
47386         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47387         HAVE_DECL_CEILF.
47388         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47389         HAVE_DECL_CEILF.
47390         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47391
47392 2007-10-04  Bruno Haible  <bruno@clisp.org>
47393
47394         * modules/floorl-tests: New file.
47395         * tests/test-floorl.c: New file.
47396
47397         * modules/floorl: New file.
47398         * lib/floorl.c: Replace entire file.
47399         * m4/floorl.m4: New file.
47400         * lib/math.in.h (floorl): Replace declaration.
47401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47402         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47403         * doc/functions/floorl.texi: Mention the 'floorl' module.
47404         * modules/mathl (Files): Remove lib/floorl.c.
47405         (Depends-on): Add floorl.
47406
47407 2007-10-04  Bruno Haible  <bruno@clisp.org>
47408
47409         * modules/floorf-tests: New file.
47410         * tests/test-floorf.c: New file.
47411
47412         * modules/floorf: New file.
47413         * lib/floor.c: New file.
47414         * lib/floorf.c: New file.
47415         * m4/floorf.m4: New file.
47416         * lib/math.in.h (floorf): New declaration.
47417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47418         HAVE_DECL_FLOORF.
47419         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47420         HAVE_DECL_FLOORF.
47421         * doc/functions/floorf.texi: Mention the 'floorf' module.
47422
47423 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47424             Bruno Haible  <bruno@clisp.org>
47425
47426         Advertise for the Git server instead of the CVS server.
47427         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47428         repository instead of the CVS one.
47429         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47430         about all VCS systems generically.
47431         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47432
47433 2007-10-04  Bruno Haible  <bruno@clisp.org>
47434
47435         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47436         means.
47437         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47438
47439 2007-10-04  Bruno Haible  <bruno@clisp.org>
47440
47441         * modules/truncl-tests: New file.
47442         * tests/test-truncl.c: New file.
47443
47444         * modules/truncl: New file.
47445         * lib/truncl.c: New file.
47446         * m4/truncl.m4: New file.
47447         * lib/math.in.h (truncl): New declaration.
47448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47449         HAVE_DECL_TRUNCL.
47450         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47451         HAVE_DECL_TRUNCL.
47452         * doc/functions/truncl.texi: Mention the 'truncl' module.
47453
47454 2007-10-04  Bruno Haible  <bruno@clisp.org>
47455
47456         * modules/truncf-tests: New file.
47457         * tests/test-truncf.c: New file.
47458
47459         * modules/truncf: New file.
47460         * lib/trunc.c: Make paramerizable through USE_* macros.
47461         * lib/truncf.c: New file.
47462         * m4/truncf.m4: New file.
47463         * lib/math.in.h (truncf): New declaration.
47464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47465         HAVE_DECL_TRUNCF.
47466         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47467         HAVE_DECL_TRUNCF.
47468         * doc/functions/truncf.texi: Mention the 'truncf' module.
47469
47470 2007-10-03  Bruno Haible  <bruno@clisp.org>
47471
47472         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47473         augmentation also for tests modules.
47474         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
47475         * modules/atexit-tests (Makefile.am): Likewise.
47476         * modules/binary-io-tests (Makefile.am): Likewise.
47477         * modules/c-strcase-tests (Makefile.am): Likewise.
47478         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
47479         * modules/canonicalize-tests (Makefile.am): Likewise.
47480         * modules/closein-tests (Makefile.am): Likewise.
47481         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47482         * modules/freadahead-tests (Makefile.am): Likewise.
47483         * modules/fseek-tests (Makefile.am): Likewise.
47484         * modules/fseeko-tests (Makefile.am): Likewise.
47485         * modules/ftell-tests (Makefile.am): Likewise.
47486         * modules/ftello-tests (Makefile.am): Likewise.
47487         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
47488         * modules/isnanl-tests (Makefile.am): Likewise.
47489         * modules/lseek-tests (Makefile.am): Likewise.
47490         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47491         * modules/mbscasestr-tests (Makefile.am): Likewise.
47492         * modules/mbschr-tests (Makefile.am): Likewise.
47493         * modules/mbscspn-tests (Makefile.am): Likewise.
47494         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47495         * modules/mbspbrk-tests (Makefile.am): Likewise.
47496         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47497         * modules/mbsrchr-tests (Makefile.am): Likewise.
47498         * modules/mbsspn-tests (Makefile.am): Likewise.
47499         * modules/mbsstr-tests (Makefile.am): Likewise.
47500         * modules/printf-posix-tests (Makefile.am): Likewise.
47501         * modules/snprintf-posix-tests (Makefile.am): Likewise.
47502         * modules/sprintf-posix-tests (Makefile.am): Likewise.
47503         * modules/tsearch-tests (Makefile.am): Likewise.
47504         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47505         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47506         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47507         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47508         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47509         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47510         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47511         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47512         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
47513         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
47514         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47515         * modules/xstrtol-tests (Makefile.am): Likewise.
47516         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47517         * modules/yesno-tests (Makefile.am): Likewise.
47518
47519 2007-10-03  Bruno Haible  <bruno@clisp.org>
47520
47521         * modules/trunc-tests: New file.
47522         * tests/test-trunc.c: New file.
47523
47524         * modules/trunc: New file.
47525         * lib/trunc.c: New file.
47526         * m4/trunc.m4: New file.
47527         * lib/math.in.h (trunc): New declaration.
47528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
47529         HAVE_DECL_TRUNC.
47530         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
47531         HAVE_DECL_TRUNC.
47532         * doc/functions/trunc.texi: Mention the 'trunc' module.
47533
47534 2007-10-03  Bruno Haible  <bruno@clisp.org>
47535
47536         * tests/test-fpending.c: New file, mostly copied
47537         from coreutils/lib/t-fpending.c.
47538         * modules/fpending-tests: New file.
47539
47540 2007-10-03  Bruno Haible  <bruno@clisp.org>
47541
47542         Port the stdio extensions to QNX (untested).
47543         * lib/fseterr.c (fseterr): Add support for QNX.
47544         * lib/fbufmode.c (fbufmode): Likewise.
47545         * lib/freadable.c (freadable): Likewise.
47546         * lib/fwritable.c (fwritable): Likewise.
47547         * lib/freading.c (freading): Likewise.
47548         * lib/fwriting.c (fwriting): Likewise.
47549         * lib/freadahead.c (freadahed): Likewise.
47550         * lib/fpurge.c (fpurge): Likewise.
47551         * lib/fseeko.c (rpl_fseeko): Likewise.
47552
47553 2007-10-03  Bruno Haible  <bruno@clisp.org>
47554             Jim Meyering  <jim@meyering.net>
47555             Eric Blake  <ebb9@byu.net>
47556
47557         * doc/relocatable.texi: Use @command instead of @program.
47558
47559 2007-10-02  Jim Meyering  <jim@meyering.net>
47560
47561         Perform one more "_.h" -> ".in.h" substitution.
47562         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
47563         instead of unistd_.h here, too.
47564
47565 2007-10-01  Bruno Haible  <bruno@clisp.org>
47566
47567         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
47568         Needed for the alloca-opt module.
47569
47570 2007-09-30  Bruno Haible  <bruno@clisp.org>
47571
47572         * lib/alloca.in.h: Renamed from lib/alloca_.h.
47573         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
47574         alloca_.h.
47575         * lib/argz.in.h: Renamed from lib/argz_.h.
47576         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
47577         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
47578         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
47579         byteswap_.h.
47580         * lib/dirent.in.h: Renamed from lib/dirent_.h.
47581         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
47582         dirent_.h.
47583         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
47584         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
47585         fcntl_.h.
47586         * lib/float.in.h: Renamed from lib/float_.h.
47587         * modules/float (Files, Makefile.am): Use float.in.h instead of
47588         float_.h.
47589         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
47590         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
47591         fnmatch_.h.
47592         * lib/getopt.in.h: Renamed from lib/getopt_.h.
47593         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
47594         getopt_.h.
47595         * lib/glob.in.h: Renamed from lib/glob_.h.
47596         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
47597         * lib/iconv.in.h: Renamed from lib/iconv_.h.
47598         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
47599         iconv_.h.
47600         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
47601         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
47602         inttypes_.h.
47603         * lib/locale.in.h: Renamed from lib/locale_.h.
47604         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
47605         locale_.h.
47606         * lib/math.in.h: Renamed from lib/math_.h.
47607         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
47608         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
47609         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
47610         of netinet_in_.h. Add dependency.
47611         * lib/poll.in.h: Renamed from lib/poll_.h.
47612         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
47613         * lib/search.in.h: Renamed from lib/search_.h.
47614         * modules/search (Files, Makefile.am): Use search.in.h instead of
47615         search_.h.
47616         * lib/signal.in.h: Renamed from lib/signal_.h.
47617         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
47618         _signal.h.
47619         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
47620         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
47621         stdbool_.h.
47622         * lib/stdint.in.h: Renamed from lib/stdint_.h.
47623         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
47624         stdint_.h.
47625         * lib/stdio.in.h: Renamed from lib/stdio_.h.
47626         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
47627         stdio_.h.
47628         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
47629         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
47630         stdlib_.h.
47631         * lib/string.in.h: Renamed from lib/string_.h.
47632         * modules/string (Files, Makefile.am): Use string.in.h instead of
47633         string_.h.
47634         * doc/gnulib-tool.texi (Initial import): Update.
47635         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
47636         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
47637         of sys_select_.h. Add dependency.
47638         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
47639         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
47640         of sys_socket_.h.
47641         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
47642         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
47643         sys_stat_.h.
47644         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
47645         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
47646         sys_time_.h.
47647         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
47648         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
47649         sysexits_.h.
47650         * lib/time.in.h: Renamed from lib/time_.h.
47651         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
47652         * lib/unistd.in.h: Renamed from lib/unistd_.h.
47653         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
47654         unistd_.h.
47655         * lib/wchar.in.h: Renamed from lib/wchar_.h.
47656         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
47657         wchar_.h.
47658         * lib/wctype.in.h: Renamed from lib/wctype_.h.
47659         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
47660         wctype_.h.
47661         * build-aux/bootstrap (slurp): Update.
47662         * lib/.cppi-disable: Update.
47663
47664 2007-09-30  Bruno Haible  <bruno@clisp.org>
47665
47666         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
47667         Needed on BeOS.
47668
47669 2007-09-30  Bruno Haible  <bruno@clisp.org>
47670
47671         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
47672
47673 2007-09-29  Bruno Haible  <bruno@clisp.org>
47674
47675         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
47676
47677 2007-09-29  Bruno Haible  <bruno@clisp.org>
47678
47679         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
47680         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
47681         * build-aux/install-reloc: Compile also areadlink.c.
47682         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
47683
47684 2007-09-29  Bruno Haible  <bruno@clisp.org>
47685
47686         * gnulib-tool (func_emit_initmacro_done): Indentation.
47687
47688 2007-09-29  Bruno Haible  <bruno@clisp.org>
47689
47690         * README: Add CVS checkout update instructions.
47691         Info from Bob Proulx <bob@proulx.com>.
47692
47693 2007-09-28  Eric Blake  <ebb9@byu.net>
47694
47695         Provide move-if-change.
47696         * build-aux/move-if-change: New file, based on best practice
47697         rather than any canonical upstream location.
47698
47699 2007-09-28  Jim Meyering  <jim@meyering.net>
47700
47701         Fix canonicalize loop-detection corner case.
47702         Do not attempt to stat the symlink values stored via seen_triple.
47703         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
47704         on linux-2.6.18, (but not 2.6.22).
47705         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
47706         triple_compare.  The former compares dev,ino,filename, while the latter
47707         would actually stat dirname(filename) when dev and ino were equal.
47708         * lib/hash-triple.c: Install <string.h>.
47709         (STREQ): Define.
47710         (triple_compare_ino_str): New function.
47711         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
47712
47713 2007-09-28  Eric Blake  <ebb9@byu.net>
47714
47715         Enforce that AC_REPLACE_FUNCS files exist.
47716         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
47717         override check for typos.
47718
47719         Fix test-closein on Solaris 10.
47720         * tests/test-closein.c (main): Don't assume stdin can be inherited
47721         closed on all systems.
47722         * tests/test-closein.sh: Likewise.
47723         Reported by Piotr Tarnowski.
47724
47725 2007-09-28  Jim Meyering  <jim@meyering.net>
47726
47727         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
47728
47729 2007-09-27  Jim Meyering  <jim@meyering.net>
47730
47731         canonicalize: Avoid a false-positive cycle failure.
47732         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
47733         Sort.  Remove cycle-check.
47734         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
47735         not cycle-check.h.
47736         (seen_triple): New function.
47737         (canonicalize_filename_mode): Use it instead of cycle-check.
47738         * tests/test-canonicalize.c: Add a test for this bug.
47739         * tests/test-canonicalize.sh: Set up and run the test.
47740
47741         New module, file-set, from coreutils.
47742         * modules/file-set: Define it.
47743         * lib/file-set.c, lib/file-set.h: Implement.
47744
47745         New module, hash-triple, from coreutils.
47746         * modules/hash-triple: Define it.
47747         * lib/hash-triple.c, lib/hash-triple.h: Implement.
47748
47749 2007-09-25  Eric Blake  <ebb9@byu.net>
47750
47751         Fix strerror on Interix.
47752         * lib/string_.h (strerror): Declare replacement.
47753         * doc/functions/strerror.texi (strerror): Document the Interix
47754         shortcoming.
47755         * modules/string (Makefile.am): Support new hooks.
47756         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
47757         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
47758         gl_FUNC_STRERROR_SEPARATE.
47759         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
47760         * lib/strerror.c (rpl_strerror): Provide replacement.
47761         * modules/strerror (Depends-on): Add string.
47762         (configure.ac): Detect use of module.
47763         * tests/test-strerror.c: New file.
47764         * modules/strerror-tests: New test module.
47765         * modules/argp (Depends-on): Add strerror.
47766         * modules/error (Depends-on): Likewise.
47767         Reported by Martin Koeppe.
47768
47769 2007-09-24  Bruno Haible  <bruno@clisp.org>
47770
47771         * README: Update git instructions.
47772
47773 2007-09-24  Eric Blake  <ebb9@byu.net>
47774
47775         Revert fpending breakage from 2007-09-08.
47776         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
47777         __fpending.c.
47778
47779 2007-09-24  Jim Meyering  <jim@meyering.net>
47780
47781         filenamecat.c: Add a test.
47782         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
47783         showing how the function works when DIR is the empty string.
47784
47785 2007-09-21  Simon Josefsson  <simon@josefsson.org>
47786
47787         * tests/test-canonicalize.sh: Turn on executable bit.
47788
47789 2007-09-19  Eric Blake  <ebb9@byu.net>
47790
47791         * README: Update CVS instructions.
47792
47793 2007-09-18  Bruno Haible  <bruno@clisp.org>
47794
47795         * modules/areadlink: New file.
47796         * lib/areadlink.h (areadlink): New declaration.
47797         * lib/areadlink.c: New file, based on lib/xreadlink.c.
47798
47799 2007-09-17  Jim Meyering  <jim@meyering.net>
47800
47801         * lib/savewd.c (ESTALE) [!defined]: Define.
47802         Reported to be required on Interix by Martin Koeppe.
47803
47804 2007-09-17  Bruno Haible  <bruno@clisp.org>
47805
47806         * gnulib-tool (func_version): Use $version.
47807
47808 2007-09-16  Bruno Haible  <bruno@clisp.org>
47809
47810         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
47811         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
47812         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
47813         Reported by Greg Schafer <gschafer@zip.com.au>.
47814
47815 2007-09-15  Bruno Haible  <bruno@clisp.org>
47816
47817         * gnulib-tool (sed): Try a little harder to make bash understand the
47818         alias.
47819         Reported by Bruce Korb <bruce.korb@gmail.com>.
47820
47821 2007-09-13  Eric Blake  <ebb9@byu.net>
47822
47823         * ChangeLog: Remove conflict markers.
47824
47825 2007-09-13  Simon Josefsson  <simon@josefsson.org>
47826
47827         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
47828         Reported by Bruno Haible <bruno@clisp.org>.
47829
47830 2007-09-12  Bruno Haible  <bruno@clisp.org>
47831
47832         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
47833         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
47834         is not defined.
47835
47836 2007-09-12  Eric Blake  <ebb9@byu.net>
47837
47838         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
47839         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
47840         Autoconf definition.
47841         * modules/euidaccess (Depends-on): Add extensions, for
47842         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
47843         * modules/fnmatch (Depends-on): Likewise.
47844         * modules/getaddrinfo (Depends-on): Likewise.
47845         * modules/getdelim (Depends-on): Likewise.
47846         * modules/getline (Depends-on): Likewise.
47847         * modules/getsubopt (Depends-on): Likewise.
47848         * modules/gettext (Depends-on): Likewise.
47849         * modules/group-member (Depends-on): Likewise.
47850         * modules/mbchar (Depends-on): Likewise.
47851         * modules/memmem (Depends-on): Likewise.
47852         * modules/mempcpy (Depends-on): Likewise.
47853         * modules/memrchr (Depends-on): Likewise.
47854         * modules/pagealign_alloc (Depends-on): Likewise.
47855         * modules/readutmp (Depends-on): Likewise.
47856         * modules/stpcpy (Depends-on): Likewise.
47857         * modules/stpncpy (Depends-on): Likewise.
47858         * modules/strchrnul (Depends-on): Likewise.
47859         * modules/strndup (Depends-on): Likewise.
47860         * modules/strsep (Depends-on): Likewise.
47861         * modules/strverscmp (Depends-on): Likewise.
47862         * modules/vasprintf (Depends-on): Likewise.
47863         * modules/wcwidth (Depends-on): Likewise.
47864         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
47865         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
47866         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
47867         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
47868         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47869         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47870         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
47871         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47872         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
47873         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
47874         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47875         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
47876         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
47877         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47878         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
47879         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47880         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47881         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
47882         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47883         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
47884         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47885         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
47886         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
47887         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
47888         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
47889         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47890         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
47891         so that lock.m4 can be used in gettext without extensions module.
47892
47893 2007-09-11  Bruno Haible  <bruno@clisp.org>
47894
47895         * m4/isc-posix.m4: Remove file.
47896         Suggested by Eric Blake.
47897
47898 2007-09-11  Eric Blake  <ebb9@byu.net>
47899
47900         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
47901
47902 2007-09-10  Bruno Haible  <bruno@clisp.org>
47903
47904         * posix-modules: Fix typo in error message.
47905         Reported by Matt <mkraai@beckman.com>.
47906
47907 2007-09-09  Bruno Haible  <bruno@clisp.org>
47908
47909         * doc/functions/getdelim.texi: Update list of platforms lacking the
47910         function.
47911         * doc/functions/getline.texi: Likewise.
47912
47913 2007-09-09  Jim Meyering  <jim@meyering.net>
47914
47915         * lib/hash.c (hash_initialize): Detect calloc failure.
47916         Reported by Bruno Haible.
47917
47918 2007-09-09  Bruno Haible  <bruno@clisp.org>
47919
47920         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
47921         malloc or realloc fails.
47922
47923 2007-09-09  Bruno Haible  <bruno@clisp.org>
47924
47925         * modules/getcwd (Depends-on): Add malloc-posix.
47926         * modules/glob (Depends-on): Likewise.
47927         * modules/putenv (Depends-on): Likewise.
47928         * modules/strdup (Depends-on): Likewise.
47929         * modules/getdelim (Depends-on): Add realloc-posix.
47930         * modules/read-file (Depends-on): Likewise.
47931
47932 2007-09-09  Bruno Haible  <bruno@clisp.org>
47933
47934         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
47935         (gl_FUNC_MALLOC_POSIX): Require it.
47936         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
47937         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
47938         * modules/realloc (Files): Add m4/malloc.m4.
47939         * modules/calloc (Files): Likewise.
47940
47941 2007-09-09  Bruno Haible  <bruno@clisp.org>
47942
47943         * modules/malloc-posix: New file.
47944         * modules/malloc (Depends-on): Add malloc-posix.
47945         * lib/malloc.c: Include errno.h.
47946         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
47947         and a POSIX-compatible malloc into a single function. Set ENOMEM
47948         when returning NULL.
47949         * m4/malloc.m4: New file.
47950         * doc/functions/malloc.texi: Mention the malloc-posix module.
47951         * lib/stdlib_.h (malloc): New declaration.
47952         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47953         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
47954         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
47955         and HAVE_MALLOC_POSIX.
47956
47957 2007-09-09  Bruno Haible  <bruno@clisp.org>
47958
47959         * modules/realloc-posix: New file.
47960         * modules/realloc (Depends-on): Add realloc-posix.
47961         * lib/realloc.c: Include errno.h.
47962         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
47963         and a POSIX-compatible realloc into a single function. Set ENOMEM
47964         when returning NULL.
47965         * m4/realloc.m4: New file.
47966         * doc/functions/realloc.texi: Mention the realloc-posix module.
47967         * lib/stdlib_.h (realloc): New declaration.
47968         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47969         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
47970         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
47971         and HAVE_REALLOC_POSIX.
47972
47973 2007-09-09  Bruno Haible  <bruno@clisp.org>
47974
47975         * modules/calloc-posix: New file.
47976         * modules/calloc (Depends-on): Add calloc-posix.
47977         * lib/calloc.c: Include errno.h.
47978         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
47979         and a POSIX-compatible calloc into a single function. Set ENOMEM
47980         when returning NULL.
47981         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
47982         * doc/functions/calloc.texi: Mention the calloc-posix module.
47983         * lib/stdlib_.h (calloc): New declaration.
47984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47985         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
47986         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
47987         and HAVE_CALLOC_POSIX.
47988
47989 2007-09-09  Bruno Haible  <bruno@clisp.org>
47990
47991         Allow for modules to show an arbitrary notice.
47992         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
47993         * gnulib-tool: New option --extract-notice.
47994         (func_usage): Document it.
47995         (sed_extract_prog): Update.
47996         (func_get_notice): New function.
47997         (func_modules_notice): New function.
47998         (func_import, func_create_testdir): Invoke it.
47999         Suggested by Jim Meyering.
48000
48001 2007-09-09  Bruno Haible  <bruno@clisp.org>
48002
48003         * gnulib-tool: New options --verbose, --quiet.
48004         (func_usage): Document them.
48005         (verbose): New variable.
48006         (func_execute_command): New function.
48007         (func_import): Don't show the module list and the file list if
48008         $verbose < 0.
48009         (func_create_testdir): Likewise. Use func_execute_command.
48010         (func_create_megatestdir): Use func_execute_command.
48011
48012 2007-09-08  Bruno Haible  <bruno@clisp.org>
48013
48014         * gnulib-tool (func_import): Prefer rsync over wget when available,
48015         for fetching the PO files.
48016
48017 2007-09-08  Bruno Haible  <bruno@clisp.org>
48018
48019         * posix-modules: New file. Portions copied from gnulib-tool.
48020         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
48021
48022 2007-09-08  Jim Meyering  <jim@meyering.net>
48023
48024         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
48025         * lib/fpending.h: Rename from __fpending.h.
48026         * lib/fpending.c: Rename from __fpending.c.
48027         Include "fpending.h", not "__fpending.h".
48028         * lib/__fpending.h, lib/__fpending.c: Remove files.
48029         * modules/fpending (Files): Reflect new file names.
48030         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
48031
48032 2007-09-08  Bruno Haible  <bruno@clisp.org>
48033
48034         * m4/inttypes-h.m4: Remove stub file.
48035
48036 2007-09-07  Simon Josefsson  <simon@josefsson.org>
48037
48038         * doc/headers/stdint.texi: Discuss #include_next issue.
48039
48040 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48041
48042         * build-aux/bootstrap: Remove obsolete comment about wget --help.
48043
48044 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48045
48046         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
48047         in variable name.
48048
48049 2007-09-03  Jim Meyering  <jim@meyering.net>
48050
48051         New module: git-version-gen.
48052         * modules/git-version-gen: New file.
48053
48054         Import changes from coreutils for bootstrap script.
48055
48056         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
48057
48058         bootstrap: uses rsync to download the .po files
48059         * build-aux/bootstrap (po_download_command_format): New global.
48060         (download_po_files): Use rsync.
48061         (update_po_files): Don't remove .po files after download,
48062         so future rsync runs can take advantage of the copies.
48063
48064         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
48065
48066         Solve the unnecessary-.po-file-regeneration problem once and for all.
48067         * build-aux/bootstrap (download_po_files): New function, renamed from
48068         get_translations.  Now, downloads, but doesn't update LINGUAS.
48069         (update_po_files): New function.
48070
48071         bootstrap: Ignore more.
48072         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
48073         uniwidth to e.g., lib/.gitignore.
48074         (slurp): Handle the sys_stat_.h -> sys mapping, too.
48075
48076         * build-aux/bootstrap: New setting: vc_ignore.
48077         (insert_sorted_if_absent): Create $file if absent.
48078         Adapt to new, possibly empty, list: $vc_ignore.
48079
48080         bootstrap: generate more ignorable names
48081         * build-aux/bootstrap (slurp): When generating ignorable names,
48082         also map .sin to .sed, .gperf to .c, and .y to .c.
48083
48084 2007-09-03  Jim Meyering  <jim@meyering.net>
48085
48086         * build-aux/git-version-gen: New file, from coreutils.  For details, see
48087         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
48088
48089 2007-09-02  Bruno Haible  <bruno@clisp.org>
48090
48091         Fix mis-recognition of 'mcs' on QNX 6.
48092         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
48093         output contains the string "Mono".
48094         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
48095         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
48096
48097 2007-09-01  Bruno Haible  <bruno@clisp.org>
48098
48099         Fix collision between uniwidth/* and linebreak modules.
48100         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
48101         u32_width): Remove declarations.
48102         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
48103         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
48104         streq3, streq2, streq1, streq0): Remove functions.
48105         (STREQ): Remove macro.
48106         (is_cjk_encoding): Remove function.
48107         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
48108         (uc_width, u8_width, u16_width, u32_width): Remove functions.
48109         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
48110         * NEWS: Document the change.
48111
48112 2007-09-01  Bruno Haible  <bruno@clisp.org>
48113
48114         * lib/streq.h: Add double-inclusion guard.
48115
48116 2007-09-01  Karl Berry  <karl@gnu.org>
48117
48118         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
48119
48120 2007-08-28  Jim Meyering  <jim@meyering.net>
48121
48122         Rename mreadlink_with_size to areadlink_with_size.
48123         * NEWS: Document the change.
48124         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
48125         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
48126         * lib/mreadlink.h: Rename this to...
48127         * lib/areadlink.h: ...this.
48128         * modules/mreadlink-with-size: Rename this to...
48129         * modules/areadlink-with-size: ...this.
48130         * lib/canonicalize.c: Reflect the renaming.
48131         * modules/canonicalize: Likewise.
48132
48133 2007-08-26  Bruno Haible  <bruno@clisp.org>
48134
48135         * gnulib-tool (func_import): When deciding which files to remove,
48136         consider also dangling symbolic links.
48137         Reported by Eric Blake.
48138
48139 2007-08-26  Bruno Haible  <bruno@clisp.org>
48140
48141         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
48142
48143 2007-08-23  Simon Josefsson  <simon@josefsson.org>
48144
48145         * lib/readline.c: Don't include getline.h, the prototype is now
48146         found in stdio.h.
48147
48148 2007-08-23  Jim Meyering  <jim@meyering.net>
48149
48150         Getdelim touchup.
48151         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
48152         around the funlockfile call, since funlockfile never sets errno.
48153         Don't set errno upon failed realloc.
48154
48155 2007-08-22  Eric Blake  <ebb9@byu.net>
48156
48157         Getline touchups.
48158         * lib/getdelim.c (getdelim): Revert regression that required *n to
48159         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
48160         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
48161         getdelim, rather than whether implementation is missing.
48162         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
48163         * lib/stdio_.h (getline): Also declare if replacement is
48164         required.
48165         * doc/functions/getdelim.texi: New file.
48166         * doc/functions/getline.texi: Likewise.
48167         * doc/gnulib.texi (Function Substitutes): Add new files.
48168         Reported by Bruno Haible.
48169
48170 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
48171
48172         * users.txt: Add Guile.
48173
48174 2007-08-22  Eric Blake  <ebb9@byu.net>
48175
48176         * tests/test-getdelim.c (main): Use remove, not unlink.
48177         * tests/test-getline.c (main): Likewise.
48178
48179         Move getline and getdelim into stdio.h, per POSIX 200x.
48180         * modules/getline (Files): Remove getline.h.
48181         (Depends-on): Add stdio.
48182         (configure.ac): Add module indicator.
48183         * modules/getdelim (Files): Remove getdelim.h.
48184         (Depends-on): Add stdio.
48185         (configure.ac): Add module indicator.
48186         * modules/stdio (Makefile.am): Work with new indicators.
48187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
48188         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
48189         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48190         * lib/getdelim.h: Delete.
48191         * lib/getline.h: Delete.
48192         * lib/stdio_.h (getdelim, getline): Declare.
48193         * modules/getdelim-tests: New module.
48194         * modules/getline-tests: Likewise.
48195         * tests/test-getdelim.c: New file.
48196         * tests/test-getline.c: Likewise.
48197         * NEWS: Document the change.
48198         * lib/getline.c: Update choice of header.
48199         * lib/csharpcomp.c: Likewise.
48200         * lib/getpass.c: Likewise.
48201         * lib/javacomp.c: Likewise.
48202         * lib/javaversion.c: Likewise.
48203         * lib/yesno.c: Likewise.
48204         * lib/getdelim.c: Likewise.
48205         (getdelim): Set errno on failure, and avoid memory leak.
48206
48207 2007-08-19  Bruno Haible  <bruno@clisp.org>
48208
48209         * modules/closein (Depends-on): Add freadahead.
48210         * lib/closein.c: Include freadahead.h.
48211         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48212         is zero.
48213
48214 2007-08-19  Bruno Haible  <bruno@clisp.org>
48215
48216         * modules/freadahead-tests: New file.
48217         * tests/test-freadahead.sh: New file.
48218         * tests/test-freadahead.c: New file.
48219
48220         * modules/freadahead: New file.
48221         * lib/freadahead.h: New file.
48222         * lib/freadahead.c: New file.
48223         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48224         fbufmode, fpurge, freadable, fwritable.
48225
48226 2007-08-19  Eric Blake  <ebb9@byu.net>
48227
48228         Test yesno in combination with closein.
48229         * lib/yesno.c (yesno): Document use of stdin.
48230         * modules/yesno-tests (Files): New module.
48231         * tests/test-yesno.c (main): New file.
48232         * tests/test-yesno.sh: Likewise.
48233
48234 2007-08-19  Bruno Haible  <bruno@clisp.org>
48235
48236         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48237         * lib/fseeko.c (rpl_fseeko): Likewise.
48238         * lib/fseterr.c (fseterr): Likewise.
48239
48240 2007-08-19  Bruno Haible  <bruno@clisp.org>
48241
48242         * tests/test-lseek.c (main): Disable a test for BeOS.
48243         * doc/functions/lseek.texi: Document the BeOS bug.
48244
48245 2007-08-19  Bruno Haible  <bruno@clisp.org>
48246             Eric Blake  <ebb9@byu.net>
48247
48248         * lib/lseek.c: Include <sys/stat.h>.
48249         (rpl_lseek): Add workaround code also for Unix platforms.
48250         Needed for BeOS.
48251         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48252         * doc/functions/lseek.texi: Document BeOS definiency.
48253
48254 2007-08-18  Bruno Haible  <bruno@clisp.org>
48255
48256         * modules/fstrcmp-tests: New file.
48257         * tests/test-fstrcmp.c: New file.
48258
48259 2007-08-18  Bruno Haible  <bruno@clisp.org>
48260
48261         * modules/fstrcmp: New file, from GNU gettext with modifications.
48262         * lib/fstrcmp.h: New file, from GNU gettext.
48263         * lib/fstrcmp.c: New file, from GNU gettext.
48264         * MODULES.html.sh (String handling): Add fstrcmp.
48265
48266 2007-08-18  Bruno Haible  <bruno@clisp.org>
48267
48268         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
48269         'bool'.
48270         (diag, compareseq): Remove const from the ctxt argument.
48271         (USE_HEURISTIC): Undefine at the end.
48272
48273 2007-08-18  Jim Meyering  <jim@meyering.net>
48274
48275         New file: lib/idcache.h
48276         * NEWS: Mention the addition.
48277         * modules/idcache (Files): Add lib/idcache.h
48278         * lib/idcache.c: Include "idcache.h".
48279         Don't include <sys/types.h>.
48280         Add a FIXME comment.
48281         Move file-scoped "static" declarations to the top.
48282         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
48283
48284 2007-08-17  Bruno Haible  <bruno@clisp.org>
48285         and Paul Eggert  <eggert@cs.ucla.edu>
48286
48287         * MODULES.html.sh: Add diffseq.
48288         * modules/diffseq: New file.
48289         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
48290         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
48291
48292 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48293
48294         Import changes from coreutils for bootstrap script.
48295
48296         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
48297
48298         * build-aux/bootstrap (slurp): Work even in environments where
48299         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
48300         current code does not slurp files whose names start with ".", and
48301         this looks like it might be a troublesome area.
48302
48303         2007-07-11  Jim Meyering  <jim@meyering.net>
48304
48305         If there's a GPL vN copyright comment, require that N == 3.
48306
48307         2007-07-08  Jim Meyering  <jim@meyering.net>
48308
48309         Run the coreutils-specific code only if tests/Makefile.am.in exists.
48310         * build-aux/bootstrap (mam_template): Move definition out of loop.
48311
48312         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
48313
48314         * build-aux/bootstrap (symlink_to_dir): Rename function from
48315         symlink_to_gnulib.  Add a directory parameter.  Update all
48316         callers.
48317         (cp_mark_as_generated): Also check for -- and link to -- files in
48318         gl/.
48319
48320         2007-07-08  Jim Meyering  <jim@meyering.net>
48321
48322         Adapt to deeper hierarchy in gnulib.
48323         * build-aux/bootstrap (symlink_to_dir): If the destination
48324         directory doesn't exist, create it. This is required at least for
48325         "lib/uniwidth/cjk.h".
48326
48327         2007-05-15  Jim Meyering  <jim@meyering.net>
48328
48329         * build-aux/bootstrap: Now that generated Makefile.am files
48330         are no longer under version control, they must be created at
48331         bootstrap time.
48332
48333 2007-08-14  Ben Pfaff  <blp@gnu.org>
48334
48335         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48336
48337 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48338
48339         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48340         given the changes below.
48341         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48342         even on hosts that have padding bits beyond the supported 64.
48343
48344 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48345
48346         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48347         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48348         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48349         depends on it.
48350         (xstrtol_error): Remove.
48351         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48352         but with a different signature.
48353         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48354         * lib/xstrtol-error.c: Include exitfail.h.
48355         (xstrtol_fatal): New function, with a different signature from the
48356         old xstrtol_error, so that the caller need not worry about passing
48357         in an exit status, or about storage management of the option argument.
48358         (xstrtol_error): Now a static function.  Redo signature to
48359         implement xstrtol_fatal.  Output the correct number of hyphens in
48360         front of the option so that the caller need not worry about
48361         storage management.
48362         (N_): New macro.
48363         (_): Remove; not used now.
48364         * modules/xstrtol: Depend on getopt.
48365         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48366         of old STRTOL_FATAL_ERROR macro.
48367         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48368         of test program.
48369         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48370         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48371
48372 2007-08-08  Eric Blake  <ebb9@byu.net>
48373
48374         * lib/xstrtol-error.c: Add missing include.
48375
48376         Move xstrtol messages into gnulib domain, when --pobase is used.
48377         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48378         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48379         * modules/xstrtol (Files): Distribute new file.
48380         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48381         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48382         * tests/test-xstrtol.c: ...into new file.
48383         * tests/test-xstrtoul.c: Also test xstrtoul.
48384         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48385         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48386         * tests/test-xstrtol.sh: Drive the tests.
48387         * tests/test-xstrtoimax.sh: Likewise.
48388         * tests/test-xstrtoumax.sh: Likewise.
48389         * modules/xstrtol-tests: New module.
48390         * modules/xstrtoimax-tests: Likewise.
48391         * modules/xstrtoumax-tests: Likewise.
48392
48393 2007-08-08  Jim Meyering  <jim@meyering.net>
48394
48395         New function: mfile_name_concat.
48396         * lib/filenamecat.c (mfile_name_concat): New function, just like
48397         file_name_concat, but return NULL upon failure rather than exiting
48398         with a diagnostic.
48399         * lib/filenamecat.h: Declare it.
48400
48401 2007-08-07  Bruno Haible  <bruno@clisp.org>
48402
48403         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48404         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48405         warning from gcc.
48406         Reported by Eric Blake.
48407
48408 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48409
48410         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48411         * modules/crypto/arcfour (License): Likewise.
48412         * modules/crypto/des-tests (License): Likewise.
48413         * modules/crypto/gc-arctwo-tests (License): Likewise.
48414         * modules/crypto/gc-des-tests (License): Likewise.
48415         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48416         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48417         * modules/crypto/gc-md2-tests (License): Likewise.
48418         * modules/crypto/gc-md4-tests (License): Likewise.
48419         * modules/crypto/gc-md5-tests (License): Likewise.
48420         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48421         * modules/crypto/gc-rijndael-tests (License): Likewise.
48422         * modules/crypto/gc-sha1-tests (License): Likewise.
48423         * modules/crypto/gc-tests (License): Likewise.
48424         * modules/crypto/hmac-md5 (License): Likewise.
48425         * modules/crypto/hmac-sha1 (License): Likewise.
48426         * modules/crypto/md2-tests (License): Likewise.
48427         * modules/crypto/md4-tests (License): Likewise.
48428         * modules/crypto/md5 (License): Likewise.
48429         * modules/crypto/rijndael (License): Likewise.
48430         * modules/crypto/sha1 (License): Likewise.
48431         * modules/memxor (License): Likewise.
48432
48433 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48434         and Bruno Haible  <bruno@clisp.org>
48435
48436         * NEWS: Describe interface changes to human, xstrtol.
48437         * lib/human.h: Include <xstrtol.h>.
48438         (human_options): Return enum strtol_error, not int.  Remove
48439         bool arg; take int * instead.
48440         * lib/human.c: Don't include "gettext.h".
48441         (_): Remove; no longer used.
48442         Don't include <xstrtol.h>, since human.h does it.
48443         (human_options): Adjust to abovementioned interface changes.
48444         Do not report error to stderr; that's now the caller's
48445         responsibility.
48446         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48447         interface change.
48448         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48449         Str, Argument_type_string.  All uses changed.  Put " argument"
48450         in diagnostics to make them clearer.  Change wording of suffix
48451         message for clarity.
48452         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48453         Argument_type_string.
48454         (STRTOL_FATAL_WARN): Remove; no longer used.
48455         * modules/human (Depends-on): Remove gettext-h.
48456
48457 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48458
48459         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48460
48461 2007-07-31  Bruno Haible  <bruno@clisp.org>
48462
48463         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48464         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48465         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48466
48467 2007-07-31  Bruno Haible  <bruno@clisp.org>
48468
48469         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48470         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48471
48472 2007-07-30  Bruno Haible  <bruno@clisp.org>
48473
48474         * modules/base64 (License): Use the synonymous term "LGPLv2+".
48475         * modules/c-ctype (License): Likewise.
48476         * modules/c-strcase (License): Likewise.
48477         * modules/check-version (License): Likewise.
48478         * modules/iconv (License): Likewise.
48479         * modules/iconv_open (License): Likewise.
48480         * modules/read-file (License): Likewise.
48481         * modules/striconv (License): Likewise.
48482         * modules/strverscmp (License): Likewise.
48483         * modules/vasprintf (License): Likewise.
48484         * modules/crypto/des (License): Likewise.
48485         * modules/crypto/gc (License): Likewise.
48486         * modules/crypto/gc-arcfour (License): Likewise.
48487         * modules/crypto/gc-arctwo (License): Likewise.
48488         * modules/crypto/gc-des (License): Likewise.
48489         * modules/crypto/gc-hmac-md5 (License): Likewise.
48490         * modules/crypto/gc-hmac-sha1 (License): Likewise.
48491         * modules/crypto/gc-md2 (License): Likewise.
48492         * modules/crypto/gc-md4 (License): Likewise.
48493         * modules/crypto/gc-md5 (License): Likewise.
48494         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
48495         * modules/crypto/gc-random (License): Likewise.
48496         * modules/crypto/gc-rijndael (License): Likewise.
48497         * modules/crypto/gc-sha1 (License): Likewise.
48498         * modules/crypto/md2 (License): Likewise.
48499         * modules/crypto/md4 (License): Likewise.
48500
48501 2007-07-30  Jim Meyering  <jim@meyering.net>
48502
48503         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
48504         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
48505         it has valid stat data.  This bug would cause du not to count the
48506         sizes of inaccessible directories.
48507         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
48508         in <http://bugzilla.redhat.com/250077>.
48509
48510 2007-07-25  Peter O'Gorman  <peter@pogma.com>
48511             Bruno Haible  <bruno@clisp.org>
48512
48513         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
48514         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
48515         #include_next, gives a diagnostic about it, but reports no error in
48516         the exit code.
48517         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48518
48519 2007-07-24  Ben Pfaff  <blp@gnu.org>
48520
48521         Improve name: "count-one-bits" is better than "popcount".
48522         * MODULES.html.sh: Update name.
48523         * lib/popcount.h: Renamed lib/count-one-bits.h.
48524         (popcount): Renamed count_one_bits.
48525         (popcountl): Renamed count_one_bits_l.
48526         (popcountll): Renamed count_one_bits_ll.
48527         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
48528         * modules/popcount: Renamed module/count-one-bits.
48529         * modules/popcount-tests: Renamed module/count-one-bits-tests.
48530         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
48531
48532 2007-07-23  Ben Pfaff  <blp@gnu.org>
48533
48534         * lib/popcount.h (popcount32): Reduce size of constants, to allow
48535         better code generation, and add U to large constants to avoid
48536         warnings, in non-GCC case.
48537         Suggested by Bruno Haible.
48538
48539 2007-07-23  Ben Pfaff  <blp@gnu.org>
48540
48541         * lib/popcount.h: Use verify_true instead of if...abort.
48542         * modules/popcount: Depend on verify module.
48543         Suggested by Jim Meyering.
48544
48545 2007-07-23  Bruno Haible  <bruno@clisp.org>
48546
48547         * gnulib-tool (func_import): Create a .cvsignore file also when the
48548         directory is not yet in CVS but the toplevel directory is. When
48549         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
48550         Reported by Karl Berry.
48551
48552 2007-07-22  Ben Pfaff  <blp@gnu.org>
48553
48554         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
48555         case.
48556         Suggested by Eric Blake.
48557
48558 2007-07-22  Ben Pfaff  <blp@gnu.org>
48559
48560         New module: popcount.
48561         * MODULES.html.sh: Add popcount.
48562         * modules/popcount: New file.
48563         * modules/popcount-tests: New file.
48564         * tests/test-popcount.c: New file.
48565         * lib/popcount.h: New file.
48566         * m4/popcount.m4: New file.
48567
48568 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48569
48570         * build-aux/announce-gen: Update to GPLv3.
48571
48572         * build-aux/config.guess: Update from config.
48573
48574 2007-07-21  Bruno Haible  <bruno@clisp.org>
48575
48576         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
48577         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
48578
48579 2007-07-20  Jim Meyering  <jim@meyering.net>
48580
48581         * check-module: Diagnose a self-dependency.
48582
48583 2007-07-19  Bruno Haible  <bruno@clisp.org>
48584
48585         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
48586         empty.
48587         Reported by Eric Blake.
48588
48589 2007-07-18  Bruno Haible  <bruno@clisp.org>
48590
48591         * gnulib-tool: New options --po-base, --po-domain.
48592         (func_usage): Document them.
48593         (pobase, po_domain): New variables.
48594         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
48595         DEFAULT_TEXT_DOMAIN.
48596         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
48597         (func_import): Consider pobase and po_domain. Create a po/ directory.
48598         (func_create_testdir): Set pobase and po_domain to empty.
48599         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
48600         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
48601
48602 2007-07-18  Bruno Haible  <bruno@clisp.org>
48603
48604         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48605         EXTRA_DIST augmentation for files in build-aux/.
48606
48607 2007-07-16  Bruno Haible  <bruno@clisp.org>
48608
48609         * modules/lseek (License): Use the synonymous term "LGPLv2+".
48610         * modules/getdelim (License): Likewise.
48611
48612 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48613
48614         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
48615         * modules/d-type (License): Likewise.
48616         * modules/extensions (License): Likewise.
48617         * modules/fnmatch (License): Likewise.
48618         * modules/fseeko (License): Likewise.
48619         * modules/getaddrinfo (License): Likewise.
48620         * modules/getline (License): Likewise.
48621         * modules/getlogin_r (License): Likewise.
48622         * modules/getpass (License): Likewise.
48623         * modules/gettimeofday (License): Likewise.
48624         * modules/glob (License): Likewise.
48625         * modules/inet_ntop (License): Likewise.
48626         * modules/malloc (License): Likewise.
48627         * modules/malloca (License): Likewise.
48628         * modules/memmem (License): Likewise.
48629         * modules/mempcpy (License): Likewise.
48630         * modules/memset (License): Likewise.
48631         * modules/minmax (License): Likewise.
48632         * modules/mktime (License): Likewise.
48633         * modules/netinet_in (License): Likewise.
48634         * modules/pathmax (License): Likewise.
48635         * modules/poll (License): Likewise.
48636         * modules/regex (License): Likewise.
48637         * modules/snprintf (License): Likewise.
48638         * modules/stdbool (License): Likewise.
48639         * modules/stdint (License): Likewise.
48640         * modules/stdio (License): Likewise.
48641         * modules/strcase (License): Likewise.
48642         * modules/strcasestr (License): Likewise.
48643         * modules/strdup (License): Likewise.
48644         * modules/string (License): Likewise.
48645         * modules/strndup (License): Likewise.
48646         * modules/strnlen (License): Likewise.
48647         * modules/strpbrk (License): Likewise.
48648         * modules/strptime (License): Likewise.
48649         * modules/strsep (License): Likewise.
48650         * modules/sys_select (License): Likewise.
48651         * modules/sys_socket (License): Likewise.
48652         * modules/sys_stat (License): Likewise.
48653         * modules/sys_time (License): Likewise.
48654         * modules/time (License): Likewise.
48655         * modules/time_r (License): Likewise.
48656         * modules/timegm (License): Likewise.
48657         * modules/unistd (License): Likewise.
48658         * modules/vsnprintf (License): Likewise.
48659         * modules/wctype (License): Likewise.
48660
48661 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48662
48663         * modules/argz (License): LGPLv2+.
48664
48665 2007-07-15  Karl Berry  <karl@gnu.org>
48666
48667         * doc/gnulib.texi: revise node structure per new fdl.texi.
48668
48669 2007-07-14  Bruno Haible  <bruno@clisp.org>
48670
48671         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
48672         the output file.
48673         * lib/uniname/uninames.h: Regenerated.
48674
48675 2007-07-14  Karl Berry  <karl@gnu.org>
48676
48677         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
48678         omitting sectioning and index commands.
48679
48680 2007-07-13  Bruno Haible  <bruno@clisp.org>
48681
48682         New gnulib-tool option --more-symlinks.
48683         * gnulib-tool (func_usage): Document --more-symlinks.
48684         (do_copyrights): New variable.
48685         Recognize option --more-symlinks.
48686         (func_import): Don't add a copyright notice transform to
48687         sed_transform_lib_file if do_copyrights is empty.
48688
48689 2007-07-13  Bruno Haible  <bruno@clisp.org>
48690
48691         * lib/vasnprintf.c (decimal_point_char): Define also if
48692         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
48693         && !NEED_PRINTF_DIRECTIVE_A.
48694         Reported by Clemens Koller <clemens.koller@anagramm.de> via
48695         Gary V. Vaughan <gary@gnu.org>.
48696
48697 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
48698
48699         * lib/inttypes_.h: Undo previous change, since it was fixed
48700         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
48701
48702 2007-07-13  Bruno Haible  <bruno@clisp.org>
48703
48704         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
48705         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
48706
48707 2007-07-13  Jim Meyering  <jim@meyering.net>
48708
48709         df: Don't fail for Tru64's "file-on-file mount".
48710         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
48711         so we fall through and use statfs instead.  Details here:
48712         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
48713         Reported by Albert Chin.
48714
48715 2007-07-13  Bruno Haible  <bruno@clisp.org>
48716
48717         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
48718         * modules/configmake (License): Likewise.
48719         * modules/gettext (License): Likewise.
48720         * modules/gettext-h (License): Likewise.
48721         * modules/include_next (License): Likewise.
48722         * modules/link-warning (License): Likewise.
48723         * modules/localcharset (License): Likewise.
48724         * modules/localename (License): Likewise.
48725         * modules/lock (License): Likewise.
48726         * modules/relocatable-lib-lgpl (License): Likewise.
48727         * modules/size_max (License): Likewise.
48728         * modules/vasnprintf (License): Likewise.
48729         * modules/wchar (License): Likewise.
48730         * modules/xsize (License): Likewise.
48731
48732 2007-07-13  Bruno Haible  <bruno@clisp.org>
48733
48734         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
48735         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
48736
48737 2007-07-12  Bruno Haible  <bruno@clisp.org>
48738
48739         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
48740         in the modules files.
48741
48742 2007-07-11  Karl Berry  <karl@gnu.org>
48743
48744         * MODULES.html.sh (func_module): use
48745          sed -e '\|^'"${includefile}"'$|d'
48746          instead of /.../d, to avoid errors on $includefile's containing /.
48747
48748 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48749
48750         * gnulib-tool (func_import): Avoid duplication of --avoid
48751         statements
48752         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
48753         names to `_' in variable names.
48754
48755 2007-07-10  Eric Blake  <ebb9@byu.net>
48756
48757         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
48758         * NEWS: Document this change.
48759
48760 2007-07-08  Bruno Haible  <bruno@clisp.org>
48761
48762         Update to Unicode 5.0.
48763         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
48764         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
48765         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
48766         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
48767         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
48768         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
48769         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
48770         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
48771         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
48772         U+10A3F, U+1D242..U+1D244.
48773         (nonspacing_table_ind): Update.
48774         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
48775         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
48776
48777 2007-07-08  Bruno Haible  <bruno@clisp.org>
48778
48779         Update to Unicode 5.0.
48780         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
48781         code transform. Extend the name index field of unicode_name_to_code and
48782         unicode_code_to_name from 16 to 24 bits.
48783         * lib/uniname/uniname.c (unicode_character_name,
48784         unicode_name_character): Add the range 0x12xxx to the code transform.
48785         * lib/uniname/uninames.h: Regenerated.
48786         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
48787
48788 2007-07-07  Bruno Haible  <bruno@clisp.org>
48789
48790         * modules/wcwidth-tests: New file.
48791         * tests/test-wcwidth.c: New file.
48792
48793         Work around MacOS X wcwidth() bug.
48794         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
48795         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
48796         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
48797         original wcwidth in non-UTF-8 locales.
48798         * modules/wcwidth (Depends-on): Add localcharset, streq,
48799         uniwidth/width.
48800         * doc/functions/wcwidth.texi: Update.
48801
48802 2007-07-07  Bruno Haible  <bruno@clisp.org>
48803
48804         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
48805         (wcwidth): New declaration.
48806         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
48807         macros.
48808         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
48809         here. Prepare for creating <wchar.h> unconditionally.
48810         * modules/wchar (Depends-on): Add link-warning.
48811         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
48812         REPLACE_WCWIDTH, and GL_LINK_WARNING.
48813         * lib/wcwidth.h: Remove file.
48814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
48815         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
48816         * modules/wcwidth (Files): Remove lib/wcwidth.h.
48817         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
48818         (Include): Replace wcwidth.h with <wchar.h>.
48819         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
48820         * lib/mbchar.h: Don't include wcwidth.h.
48821         * lib/mbswidth.c: Likewise.
48822         * NEWS: Mention the change.
48823
48824 2007-07-07  Bruno Haible  <bruno@clisp.org>
48825
48826         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
48827         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
48828         definition with an external declaration.
48829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
48830         defined as a function. Remove AC_C_INLINE requirement.
48831         * modules/wcwidth (Files): Add lib/wcwidth.c.
48832         (Makefile.am): Remove redundant statement.
48833
48834 2007-07-07  Bruno Haible  <bruno@clisp.org>
48835
48836         * MODULES.html.sh (Unicode string functions): Add the new modules.
48837
48838         * tests/uniwidth/test-u32-strwidth.c: New file.
48839         * modules/uniwidth/u32-strwidth-tests: New file.
48840
48841         * lib/uniwidth/u32-strwidth.c: New file.
48842         * modules/uniwidth/u32-strwidth: New file.
48843
48844         * tests/uniwidth/test-u16-strwidth.c: New file.
48845         * modules/uniwidth/u16-strwidth-tests: New file.
48846
48847         * lib/uniwidth/u16-strwidth.c: New file.
48848         * modules/uniwidth/u16-strwidth: New file.
48849
48850         * tests/uniwidth/test-u8-strwidth.c: New file.
48851         * modules/uniwidth/u8-strwidth-tests: New file.
48852
48853         * lib/uniwidth/u8-strwidth.c: New file.
48854         * modules/uniwidth/u8-strwidth: New file.
48855
48856         * tests/uniwidth/test-u32-width.c: New file.
48857         * modules/uniwidth/u32-width-tests: New file.
48858
48859         * lib/uniwidth/u32-width.c: New file.
48860         * modules/uniwidth/u32-width: New file.
48861
48862         * tests/uniwidth/test-u16-width.c: New file.
48863         * modules/uniwidth/u16-width-tests: New file.
48864
48865         * lib/uniwidth/u16-width.c: New file.
48866         * modules/uniwidth/u16-width: New file.
48867
48868         * tests/uniwidth/test-u8-width.c: New file.
48869         * modules/uniwidth/u8-width-tests: New file.
48870
48871         * lib/uniwidth/u8-width.c: New file.
48872         * modules/uniwidth/u8-width: New file.
48873
48874         * tests/uniwidth/test-uc_width.c: New file.
48875         * modules/uniwidth/width-tests: New file.
48876
48877         * lib/uniwidth/width.c: New file, from GNU libiconv.
48878         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
48879         * modules/uniwidth/width: New file.
48880
48881         * lib/uniwidth.h: New file, from GNU libiconv.
48882         * modules/uniwidth/base: New file.
48883
48884 2007-07-07  Bruno Haible  <bruno@clisp.org>
48885
48886         * lib/uniname.h: New file, from GNU gettext.
48887         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
48888         * lib/uniname/uninames.h: New file, from GNU gettext.
48889         * lib/uniname/uniname.c: New file, from GNU gettext.
48890         * tests/uniname/test-uninames.sh: New file.
48891         * tests/uniname/test-uninames.c: New file, from GNU gettext.
48892         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
48893         * modules/uniname/base: New file.
48894         * modules/uniname/uniname: New file.
48895         * modules/uniname/uniname-tests: New file.
48896         * MODULES.html.sh (Unicode string functions): Add the new modules.
48897
48898 2007-07-06  Bruno Haible  <bruno@clisp.org>
48899
48900         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
48901
48902 2007-07-06  Bruno Haible  <bruno@clisp.org>
48903
48904         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
48905         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
48906         includes <cygwin/sys_time.h> which includes <sys/select.h> which
48907         include <sys/time.h>.
48908         Reported by Eric Blake.
48909
48910 2007-07-06  Eric Blake  <ebb9@byu.net>
48911
48912         Fix testing canonicalize on cygwin.
48913         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48914         Revert patch from 2007-06-19.
48915         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
48916         canonicalize module is also in use.
48917         * tests/test-canonicalize.c: New file.
48918         * tests/test-canonicalize.sh: Likewise.
48919         * modules/canonicalize-tests: Likewise.
48920
48921 2007-07-06  Jim Meyering  <jim@meyering.net>
48922
48923         * lib/getugroups.c (getugroups): Detect getgrent failure.
48924         Adjust comment to reflect reality: this function may return -1.
48925
48926 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
48927
48928         * build-aux/bootstrap (TP_URL,get_translations): Update to use
48929         the new TP address.
48930         (usage): Fix typo
48931         (gnulib_mk): New variable.
48932
48933 2007-07-05  Jim Meyering  <jim@meyering.net>
48934
48935         Don't let endgrent clobber errno, no matter how improbable.
48936         * lib/getugroups.c (getugroups): Save and restore errno around
48937         endgrent call.
48938
48939         Close the group DB even when failing with 2^31 or more members.
48940         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
48941
48942 2007-07-04  Jim Meyering  <jim@meyering.net>
48943
48944         * lib/getugroups.h: New file.
48945         * lib/getugroups.c: Include "getugroups.h".
48946         Remove uses of "register" keyword.
48947         Move local variable, "cp", down into scope where used.
48948         Give "username" parameter the "const" attribute.
48949         * modules/getugroups (Files): Add lib/getugroups.h
48950
48951 2007-07-04  Karl Berry  <karl@gnu.org>
48952
48953         * MODULES.html.sh (func_all_modules): Complete rename of
48954         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
48955
48956 2007-07-02  Bruno Haible  <bruno@clisp.org>
48957
48958         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
48959         mode, when inttypes.h comes from gnulib.
48960         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48961
48962 2007-07-02  Simon Josefsson  <simon@josefsson.org>
48963
48964         * NEWS: Mention lgpl module name change.
48965
48966         * modules/lgpl-2.1: Renamed from lgpl.
48967
48968         * NEWS: Mention gpl module name change.
48969
48970         * modules/gpl-3.0: New file, based on gpl-2.0.
48971
48972         * modules/gpl-2.0: Renamed from gpl.
48973
48974         * modules/gpl: Fix filename, doc/gpl.texi is now found at
48975         doc/gpl-2.0.texi.
48976
48977 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
48978
48979         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
48980         #define __STDC_LIMIT_MACROS temporarily while including
48981         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
48982         Problem reported by Joel E. Denny in
48983         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
48984
48985 2007-07-01  Bruno Haible  <bruno@clisp.org>
48986
48987         * lib/unistdio.h: New file.
48988         * lib/unistdio/u-asnprintf.h: New file.
48989         * lib/unistdio/u-asprintf.h: New file.
48990         * lib/unistdio/u-printf-args.c: New file.
48991         * lib/unistdio/u-printf-args.h: New file.
48992         * lib/unistdio/u-printf-parse.h: New file.
48993         * lib/unistdio/u-snprintf.h: New file.
48994         * lib/unistdio/u-sprintf.h: New file.
48995         * lib/unistdio/u-vasprintf.h: New file.
48996         * lib/unistdio/u-vsnprintf.h: New file.
48997         * lib/unistdio/u-vsprintf.h: New file.
48998         * lib/unistdio/ulc-asnprintf.c: New file.
48999         * lib/unistdio/ulc-asprintf.c: New file.
49000         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
49001         * lib/unistdio/ulc-printf-parse.c: New file.
49002         * lib/unistdio/ulc-snprintf.c: New file.
49003         * lib/unistdio/ulc-sprintf.c: New file.
49004         * lib/unistdio/ulc-vasnprintf.c: New file.
49005         * lib/unistdio/ulc-vasprintf.c: New file.
49006         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
49007         * lib/unistdio/ulc-vsnprintf.c: New file.
49008         * lib/unistdio/ulc-vsprintf.c: New file.
49009         * lib/unistdio/u8-asnprintf.c: New file.
49010         * lib/unistdio/u8-asprintf.c: New file.
49011         * lib/unistdio/u8-printf-parse.c: New file.
49012         * lib/unistdio/u8-snprintf.c: New file.
49013         * lib/unistdio/u8-sprintf.c: New file.
49014         * lib/unistdio/u8-vasnprintf.c: New file.
49015         * lib/unistdio/u8-vasprintf.c: New file.
49016         * lib/unistdio/u8-vsnprintf.c: New file.
49017         * lib/unistdio/u8-vsprintf.c: New file.
49018         * lib/unistdio/u8-u8-asnprintf.c: New file.
49019         * lib/unistdio/u8-u8-asprintf.c: New file.
49020         * lib/unistdio/u8-u8-snprintf.c: New file.
49021         * lib/unistdio/u8-u8-sprintf.c: New file.
49022         * lib/unistdio/u8-u8-vasnprintf.c: New file.
49023         * lib/unistdio/u8-u8-vasprintf.c: New file.
49024         * lib/unistdio/u8-u8-vsnprintf.c: New file.
49025         * lib/unistdio/u8-u8-vsprintf.c: New file.
49026         * lib/unistdio/u16-asnprintf.c: New file.
49027         * lib/unistdio/u16-asprintf.c: New file.
49028         * lib/unistdio/u16-printf-parse.c: New file.
49029         * lib/unistdio/u16-snprintf.c: New file.
49030         * lib/unistdio/u16-sprintf.c: New file.
49031         * lib/unistdio/u16-vasnprintf.c: New file.
49032         * lib/unistdio/u16-vasprintf.c: New file.
49033         * lib/unistdio/u16-vsnprintf.c: New file.
49034         * lib/unistdio/u16-vsprintf.c: New file.
49035         * lib/unistdio/u16-u16-asnprintf.c: New file.
49036         * lib/unistdio/u16-u16-asprintf.c: New file.
49037         * lib/unistdio/u16-u16-snprintf.c: New file.
49038         * lib/unistdio/u16-u16-sprintf.c: New file.
49039         * lib/unistdio/u16-u16-vasnprintf.c: New file.
49040         * lib/unistdio/u16-u16-vasprintf.c: New file.
49041         * lib/unistdio/u16-u16-vsnprintf.c: New file.
49042         * lib/unistdio/u16-u16-vsprintf.c: New file.
49043         * lib/unistdio/u32-asnprintf.c: New file.
49044         * lib/unistdio/u32-asprintf.c: New file.
49045         * lib/unistdio/u32-printf-parse.c: New file.
49046         * lib/unistdio/u32-snprintf.c: New file.
49047         * lib/unistdio/u32-sprintf.c: New file.
49048         * lib/unistdio/u32-vasnprintf.c: New file.
49049         * lib/unistdio/u32-vasprintf.c: New file.
49050         * lib/unistdio/u32-vsnprintf.c: New file.
49051         * lib/unistdio/u32-vsprintf.c: New file.
49052         * lib/unistdio/u32-u32-asnprintf.c: New file.
49053         * lib/unistdio/u32-u32-asprintf.c: New file.
49054         * lib/unistdio/u32-u32-snprintf.c: New file.
49055         * lib/unistdio/u32-u32-sprintf.c: New file.
49056         * lib/unistdio/u32-u32-vasnprintf.c: New file.
49057         * lib/unistdio/u32-u32-vasprintf.c: New file.
49058         * lib/unistdio/u32-u32-vsnprintf.c: New file.
49059         * lib/unistdio/u32-u32-vsprintf.c: New file.
49060         * tests/unistdio/test-ulc-asnprintf1.c: New file.
49061         * tests/unistdio/test-ulc-asnprintf1.h: New file.
49062         * tests/unistdio/test-ulc-printf1.h: New file.
49063         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
49064         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
49065         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
49066         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
49067         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
49068         * tests/unistdio/test-ulc-vasprintf1.c: New file.
49069         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
49070         * tests/unistdio/test-ulc-vsprintf1.c: New file.
49071         * tests/unistdio/test-u8-asnprintf1.c: New file.
49072         * tests/unistdio/test-u8-asnprintf1.h: New file.
49073         * tests/unistdio/test-u8-printf1.h: New file.
49074         * tests/unistdio/test-u8-vasnprintf1.c: New file.
49075         * tests/unistdio/test-u8-vasnprintf2.c: New file.
49076         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
49077         * tests/unistdio/test-u8-vasnprintf3.c: New file.
49078         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
49079         * tests/unistdio/test-u8-vasprintf1.c: New file.
49080         * tests/unistdio/test-u8-vsnprintf1.c: New file.
49081         * tests/unistdio/test-u8-vsprintf1.c: New file.
49082         * tests/unistdio/test-u16-asnprintf1.c: New file.
49083         * tests/unistdio/test-u16-asnprintf1.h: New file.
49084         * tests/unistdio/test-u16-printf1.h: New file.
49085         * tests/unistdio/test-u16-vasnprintf1.c: New file.
49086         * tests/unistdio/test-u16-vasnprintf2.c: New file.
49087         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
49088         * tests/unistdio/test-u16-vasnprintf3.c: New file.
49089         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
49090         * tests/unistdio/test-u16-vasprintf1.c: New file.
49091         * tests/unistdio/test-u16-vsnprintf1.c: New file.
49092         * tests/unistdio/test-u16-vsprintf1.c: New file.
49093         * tests/unistdio/test-u32-asnprintf1.c: New file.
49094         * tests/unistdio/test-u32-asnprintf1.h: New file.
49095         * tests/unistdio/test-u32-printf1.h: New file.
49096         * tests/unistdio/test-u32-vasnprintf1.c: New file.
49097         * tests/unistdio/test-u32-vasnprintf2.c: New file.
49098         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
49099         * tests/unistdio/test-u32-vasnprintf3.c: New file.
49100         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
49101         * tests/unistdio/test-u32-vasprintf1.c: New file.
49102         * tests/unistdio/test-u32-vsnprintf1.c: New file.
49103         * tests/unistdio/test-u32-vsprintf1.c: New file.
49104         * modules/unistdio/base: New file.
49105         * modules/unistdio/u-printf-args: New file.
49106         * modules/unistdio/ulc-asnprintf: New file.
49107         * modules/unistdio/ulc-asprintf: New file.
49108         * modules/unistdio/ulc-fprintf: New file.
49109         * modules/unistdio/ulc-printf-parse: New file.
49110         * modules/unistdio/ulc-snprintf: New file.
49111         * modules/unistdio/ulc-sprintf: New file.
49112         * modules/unistdio/ulc-vasnprintf: New file.
49113         * modules/unistdio/ulc-vasprintf: New file.
49114         * modules/unistdio/ulc-vfprintf: New file.
49115         * modules/unistdio/ulc-vsnprintf: New file.
49116         * modules/unistdio/ulc-vsprintf: New file.
49117         * modules/unistdio/u8-asnprintf: New file.
49118         * modules/unistdio/u8-asprintf: New file.
49119         * modules/unistdio/u8-printf-parse: New file.
49120         * modules/unistdio/u8-snprintf: New file.
49121         * modules/unistdio/u8-sprintf: New file.
49122         * modules/unistdio/u8-vasnprintf: New file.
49123         * modules/unistdio/u8-vasprintf: New file.
49124         * modules/unistdio/u8-vsnprintf: New file.
49125         * modules/unistdio/u8-vsprintf: New file.
49126         * modules/unistdio/u8-u8-asnprintf: New file.
49127         * modules/unistdio/u8-u8-asprintf: New file.
49128         * modules/unistdio/u8-u8-snprintf: New file.
49129         * modules/unistdio/u8-u8-sprintf: New file.
49130         * modules/unistdio/u8-u8-vasnprintf: New file.
49131         * modules/unistdio/u8-u8-vasprintf: New file.
49132         * modules/unistdio/u8-u8-vsnprintf: New file.
49133         * modules/unistdio/u8-u8-vsprintf: New file.
49134         * modules/unistdio/u16-asnprintf: New file.
49135         * modules/unistdio/u16-asprintf: New file.
49136         * modules/unistdio/u16-printf-parse: New file.
49137         * modules/unistdio/u16-snprintf: New file.
49138         * modules/unistdio/u16-sprintf: New file.
49139         * modules/unistdio/u16-vasnprintf: New file.
49140         * modules/unistdio/u16-vasprintf: New file.
49141         * modules/unistdio/u16-vsnprintf: New file.
49142         * modules/unistdio/u16-vsprintf: New file.
49143         * modules/unistdio/u16-u16-asnprintf: New file.
49144         * modules/unistdio/u16-u16-asprintf: New file.
49145         * modules/unistdio/u16-u16-snprintf: New file.
49146         * modules/unistdio/u16-u16-sprintf: New file.
49147         * modules/unistdio/u16-u16-vasnprintf: New file.
49148         * modules/unistdio/u16-u16-vasprintf: New file.
49149         * modules/unistdio/u16-u16-vsnprintf: New file.
49150         * modules/unistdio/u16-u16-vsprintf: New file.
49151         * modules/unistdio/u32-asnprintf: New file.
49152         * modules/unistdio/u32-asprintf: New file.
49153         * modules/unistdio/u32-printf-parse: New file.
49154         * modules/unistdio/u32-snprintf: New file.
49155         * modules/unistdio/u32-sprintf: New file.
49156         * modules/unistdio/u32-vasnprintf: New file.
49157         * modules/unistdio/u32-vasprintf: New file.
49158         * modules/unistdio/u32-vsnprintf: New file.
49159         * modules/unistdio/u32-vsprintf: New file.
49160         * modules/unistdio/u32-u32-asnprintf: New file.
49161         * modules/unistdio/u32-u32-asprintf: New file.
49162         * modules/unistdio/u32-u32-snprintf: New file.
49163         * modules/unistdio/u32-u32-sprintf: New file.
49164         * modules/unistdio/u32-u32-vasnprintf: New file.
49165         * modules/unistdio/u32-u32-vasprintf: New file.
49166         * modules/unistdio/u32-u32-vsnprintf: New file.
49167         * modules/unistdio/u32-u32-vsprintf: New file.
49168         * modules/unistdio/ulc-asnprintf-tests: New file.
49169         * modules/unistdio/ulc-vasnprintf-tests: New file.
49170         * modules/unistdio/ulc-vasprintf-tests: New file.
49171         * modules/unistdio/ulc-vsnprintf-tests: New file.
49172         * modules/unistdio/ulc-vsprintf-tests: New file.
49173         * modules/unistdio/u8-asnprintf-tests: New file.
49174         * modules/unistdio/u8-vasnprintf-tests: New file.
49175         * modules/unistdio/u8-vasprintf-tests: New file.
49176         * modules/unistdio/u8-vsnprintf-tests: New file.
49177         * modules/unistdio/u8-vsprintf-tests: New file.
49178         * modules/unistdio/u16-asnprintf-tests: New file.
49179         * modules/unistdio/u16-vasnprintf-tests: New file.
49180         * modules/unistdio/u16-vasprintf-tests: New file.
49181         * modules/unistdio/u16-vsnprintf-tests: New file.
49182         * modules/unistdio/u16-vsprintf-tests: New file.
49183         * modules/unistdio/u32-asnprintf-tests: New file.
49184         * modules/unistdio/u32-vasnprintf-tests: New file.
49185         * modules/unistdio/u32-vasprintf-tests: New file.
49186         * modules/unistdio/u32-vsnprintf-tests: New file.
49187         * modules/unistdio/u32-vsprintf-tests: New file.
49188         * MODULES.html.sh (Unicode string functions): Add the new modules.
49189
49190 2007-07-01  Bruno Haible  <bruno@clisp.org>
49191
49192         * lib/sprintf.c (sprintf): Limit the available length estimation,
49193         to avoid address wraparound.
49194         * lib/vsprintf.c (vsprintf): Likewise.
49195         * modules/sprintf-posix (Dependencies): Add stdint.
49196         * modules/vsprintf-posix (Dependencies): Likewise.
49197
49198 2007-07-01  Bruno Haible  <bruno@clisp.org>
49199
49200         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49201         Windows PATH as well. Conservative double-quoting. Comments.
49202
49203 2007-07-01  Bruno Haible  <bruno@clisp.org>
49204             Eric Blake  <ebb9@byu.net>
49205             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49206
49207         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49208         empty components in $PATH, denoting '.'.
49209
49210 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49211
49212         * gnulib-tool: Fix indentation.
49213         (func_create_megatestdir): Likewise.
49214         Report by Bruno Haible.
49215
49216 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49217
49218         Sync from Automake.
49219         * build-aux/gnupload: Fix shell portability issues with for loops.
49220         Report by Karl Berry.
49221
49222 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49223
49224         * build-aux/maint.mk (POURL): Use translationproject.org.
49225
49226 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49227             Bruno Haible  <bruno@clisp.org>
49228
49229         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49230         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49231         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49232         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49233         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49234
49235 2007-06-27  Bruno Haible  <bruno@clisp.org>
49236
49237         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49238         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49239
49240 2007-06-26  Karl Berry  <karl@gnu.org>
49241
49242         * MODULES.html.sh: remove xreadlink-with-size.
49243
49244 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49245
49246         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49247         method that I hope also handles the double-include problem noted
49248         by Bruno Haible in
49249         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49250
49251 2007-06-23  Bruno Haible  <bruno@clisp.org>
49252
49253         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49254         Don't let the 'mostlyclean' target fail if the last subdirectory could
49255         not be removed.
49256         Reported by Karl Berry.
49257
49258 2007-06-23  Bruno Haible  <bruno@clisp.org>
49259
49260         * gnulib-tool (echo): Add a speedier workaround for ksh.
49261         * tests/test-echo.sh: Likewise.
49262
49263 2007-06-23  Bruno Haible  <bruno@clisp.org>
49264
49265         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
49266         * tests/test-echo.sh: Likewise.
49267
49268 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49269
49270         * gnulib-tool (IFS): Initialize early, so we don't set it to
49271         empty later.
49272         (self_abspathname): Rewrite algorithm to set it, reindent.
49273         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
49274         (func_create_megatestdir): Merge some sed scripts.
49275
49276 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49277
49278         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
49279         exposed by Sun Studio 11 cc on Solaris 8.
49280
49281 2007-06-22  Bruno Haible  <bruno@clisp.org>
49282
49283         * gnulib-tool (echo): Ensure the echo primitive does not interpret
49284         backslashes.
49285         * tests/test-echo.sh: New file.
49286
49287 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49288
49289         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
49290         simplify `sed_replace_build_aux' scripts, they are portable but
49291         echoing them with `echo' is not.
49292         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
49293
49294 2007-06-21  Karl Berry  <karl@gnu.org>
49295
49296         * config/srclist.txt: guess we can't handle the licenses via
49297         srclist at the moment.
49298
49299 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49300
49301         * MODULES.html.sh: Add include_next.
49302         * modules/include_next: New file.
49303
49304 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49305
49306         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
49307         INCLUDE_NEXT.
49308         (gl_CHECK_NEXT_HEADERS): New macro.
49309         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
49310         the obsolescent gl_ABSOLUTE_HEADER.
49311         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
49312         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
49313         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
49314         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49315         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49316         * m4/math_h.m4 (gl_MATH_H): Likewise.
49317         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49318         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49319         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49320         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49321         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49322         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49323         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49324         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49325         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49326         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49327         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49328         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49329         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49330         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49331         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49332         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49333         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49334         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49335         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49336         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49337         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49338         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49339         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49340         * lib/float_.h: Likewise.
49341         * lib/inttypes_.h: Likewise.
49342         * lib/math_.h: Likewise.
49343         * lib/search_.h: Likewise.
49344         * lib/signal_.h: Likewise.
49345         * lib/stdint_.h: Likewise.
49346         * lib/stdio_.h: Likewise.
49347         * lib/stdlib_.h: Likewise.
49348         * lib/string_.h: Likewise.
49349         * lib/sys_stat_.h: Likewise.
49350         * lib/sys_time_.h: Likewise.
49351         * lib/time_.h: Likewise.
49352         * lib/unistd_.h: Likewise.
49353         * lib/wchar_.h: Likewise.
49354         * lib/wctype_.h: Likewise.
49355         * lib/dirent_.h: Likewise.
49356         * lib/iconv_.h: Likewise.
49357         * lib/locale_.h: Likewise.
49358         * lib/netinet_in_.h: Likewise.
49359         * lib/sys_select_.h: Likewise.
49360         * lib/sys_socket_.h: Likewise.
49361         * lib/sysexits_.h: Likewise.
49362         * modules/fcntl (Depends-on): Depend on include_next, not
49363         absolute_header.
49364         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49365         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49366         * modules/fchdir: Likewise.
49367         * modules/float: Likewise.
49368         * modules/iconv_open: Likewise.
49369         * modules/inttypes: Likewise.
49370         * modules/locale: Likewise.
49371         * modules/math: Likewise.
49372         * modules/netinet_in: Likewise.
49373         * modules/search: Likewise.
49374         * modules/signal: Likewise.
49375         * modules/stdint: Likewise.
49376         * modules/stdio: Likewise.
49377         * modules/stdlib: Likewise.
49378         * modules/string: Likewise.
49379         * modules/sys_select: Likewise.
49380         * modules/sys_socket: Likewise.
49381         * modules/sys_stat: Likewise.
49382         * modules/sys_time: Likewise.
49383         * modules/sysexits: Likewise.
49384         * modules/time: Likewise.
49385         * modules/unistd: Likewise.
49386         * modules/wchar: Likewise.
49387         * modules/wctype: Likewise.
49388         * modules/sys_stat: Change maintainer to "all".
49389         * modules/unistd: Likewise.
49390
49391 2007-06-20  Karl Berry  <karl@gnu.org>
49392
49393         * config/srclist.txt: track www changes in license files.
49394
49395 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49396
49397         * build-aux/bootstrap: Remove stray dot.
49398         Make sure build_aux settings are honored when linking
49399         gnulib_extra_files.
49400
49401 2007-06-19  Eric Blake  <ebb9@byu.net>
49402
49403         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49404         Allow compilation on cygwin.
49405
49406 2007-06-19  Jim Meyering  <jim@meyering.net>
49407
49408         xreadlink-with-size: Remove module.  No longer used.
49409         Ex-callers now use xreadlink or mreadlink-with-size.
49410         * modules/xreadlink-with-size: Remove module.
49411         * lib/xreadlink-with-size.c: Remove file.
49412         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49413         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49414         just before the function definition *is* accurate.
49415
49416         Eliminate one way canonicalize_filename_mode could exit.
49417         * lib/canonicalize.c (canonicalize_filename_mode):
49418         Use mreadlink_with_size, not xreadlink_with_size.
49419
49420 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49421
49422         Detect porting problems to FreeBSD/arm, which has time_t wider than
49423         long int.  Original problem reported for GNU diff by Xin Li in
49424         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49425         * modules/getdate (Depends-on): Add intprops, verify.
49426         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49427         is an integer type no wider than long int.
49428
49429 2007-06-18  Jim Meyering  <jim@meyering.net>
49430
49431         New module: mreadlink-with-size.
49432         * MODULES.html.sh: Add mreadlink-with-size.
49433         * modules/mreadlink-with-size: New module
49434         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49435         not xreadlink-with-size.
49436         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49437
49438 2007-06-16  Bruno Haible  <bruno@clisp.org>
49439
49440         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49441         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49442         Reported by Gary V. Vaughan <gary@gnu.org>.
49443
49444 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49445
49446         Revamp lchown so that it lives in unistd.h where it belongs.
49447         * lib/lchown.h: Remove.
49448         * lib/dirchownmod.c: Don't include lib/lchown.h.
49449         * lib/fchownat.c: Likewise.
49450         * lib/openat.c: Likewise.
49451         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49452         does not follow symlinks.
49453         (EOPNOTSUPP): Define if not defined.
49454         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49455         is defined to 0.
49456         (lchown): New decl.
49457         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49458         Do not check for lchown decl.
49459         Set REPLACE_LCHOWN.
49460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49461         REPLACE_LCHOWN.
49462         * modules/chown: Make it clear it follows symlinks.
49463         * modules/lchown: Make it clear it doesn't follow symlinks.
49464         (Files): Remove lib/lchown.h
49465         (Depends-on): Add unistd.
49466         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49467         (Include): Include <unistd.h>, not "lchown.h".
49468         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49469         REPLACE_LCHOWN.
49470
49471 2007-06-15  Jim Meyering  <jim@meyering.net>
49472
49473         Change license (GPL to LGPL) of fsusage and dependents.
49474         * modules/fsusage (License): Change to LGPL.
49475         * modules/full-read (License): Likewise.
49476         * modules/full-write (License): Likewise.
49477         * modules/safe-read (License): Likewise.
49478         * modules/safe-write (License): Likewise.
49479
49480 2007-06-14  Ben Pfaff  <blp@gnu.org>
49481
49482         Missing part of allocsa -> malloca transition.
49483         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
49484         gl_MALLOCA.
49485
49486 2007-06-12  Bruno Haible  <bruno@clisp.org>
49487
49488         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
49489         to ia64, x86_64, i386.
49490         Reported by Eric Blake.
49491
49492 2007-06-12  Bruno Haible  <bruno@clisp.org>
49493
49494         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
49495         cross-compiling to x86_64.
49496
49497 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
49498
49499         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
49500         glitch reported by Ralf Wildenhues in
49501         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
49502
49503         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
49504         Vin Shelton.
49505
49506 2007-06-11  Bruno Haible  <bruno@clisp.org>
49507
49508         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
49509         replacement string.
49510         Reported by Eric Blake.
49511
49512 2007-06-10  Bruno Haible  <bruno@clisp.org>
49513
49514         Prepare vasnprintf code for use with Unicode strings.
49515         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
49516         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
49517         TYPE_U32_STRING.
49518         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
49519         a_u32_string variants.
49520         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49521         * lib/printf-args.c: Don't include config.h and the specification
49522         header if PRINTF_FETCHARGS is already defined.
49523         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49524         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
49525         TYPE_U16_STRING, TYPE_U32_STRING.
49526         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
49527         u16_directive, u16_directives, u32_directive, u32_directives): New
49528         types.
49529         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
49530         New declarations.
49531         * lib/printf-parse.c: Don't include config.h and the specification
49532         header if PRINTF_PARSE is already defined. Eliminate the set of
49533         parameters for WIDE_CHAR_VERSION; the user of this file must provide
49534         them now. Include c-ctype.h.
49535         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
49536         directive and CHAR_T_ONLY_ASCII.
49537         * lib/vasnprintf.c: Don't include config.h and the specification header
49538         if VASNPRINTF is already defined.
49539         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
49540         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
49541         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
49542         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
49543         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
49544         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
49545         code accordingly.
49546         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
49547         pad_ourselves also in this case, with the 'c' and 's' directives, and
49548         with a different notion of "width".
49549         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
49550
49551 2007-06-10  Bruno Haible  <bruno@clisp.org>
49552
49553         * modules/unistr/u32-mbsnlen: New file.
49554         * lib/unistr/u32-mbsnlen.c: New file.
49555
49556         * modules/unistr/u16-mbsnlen: New file.
49557         * lib/unistr/u16-mbsnlen.c: New file.
49558
49559         * modules/unistr/u8-mbsnlen: New file.
49560         * lib/unistr/u8-mbsnlen.c: New file.
49561
49562         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
49563         declarations.
49564
49565 2007-06-10  Bruno Haible  <bruno@clisp.org>
49566
49567         * lib/string_.h (mbsnlen): New declaration.
49568         * lib/mbsnlen.c: New file.
49569         * m4/mbsnlen.m4: New file.
49570         * modules/mbsnlen: New file.
49571         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
49572         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
49573         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
49574
49575 2007-06-10  Bruno Haible  <bruno@clisp.org>
49576
49577         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
49578
49579 2007-06-10  Bruno Haible  <bruno@clisp.org>
49580
49581         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
49582         * lib/mbuiter.h: Likewise.
49583
49584 2007-06-10  Bruno Haible  <bruno@clisp.org>
49585
49586         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
49587         declaration.
49588
49589 2007-06-10  Karl Berry  <karl@gnu.org>
49590
49591         * config/srclist.txt: remove gettext entries, Bruno prefers
49592         to update individually.
49593
49594 2007-06-10  Bruno Haible  <bruno@clisp.org>
49595
49596         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
49597         'maxlen'. Ensure only length + width bytes are allocated, not
49598         length + 1 + width.
49599
49600 2007-06-09  Bruno Haible  <bruno@clisp.org>
49601
49602         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
49603         (CHAR_T): Remove macro.
49604         (VASNPRINTF): Update.
49605
49606 2007-06-09  Bruno Haible  <bruno@clisp.org>
49607
49608         * MODULES.html.sh (Unicode string functions): Add the new modules.
49609
49610         * modules/uniconv/u32-conv-to-enc: New file.
49611         * lib/uniconv/u32-conv-to-enc.c: New file.
49612         * modules/uniconv/u32-conv-to-enc-tests: New file.
49613         * tests/uniconv/test-u32-conv-to-enc.c: New file.
49614
49615         * modules/uniconv/u16-conv-to-enc: New file.
49616         * lib/uniconv/u16-conv-to-enc.c: New file.
49617         * lib/uniconv/u-conv-to-enc.h: New file.
49618         * modules/uniconv/u16-conv-to-enc-tests: New file.
49619         * tests/uniconv/test-u16-conv-to-enc.c: New file.
49620
49621         * modules/uniconv/u8-conv-to-enc: New file.
49622         * lib/uniconv/u8-conv-to-enc.c: New file.
49623         * modules/uniconv/u8-conv-to-enc-tests: New file.
49624         * tests/uniconv/test-u8-conv-to-enc.c: New file.
49625
49626         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49627         u32_conv_to_encoding): New declarations.
49628
49629 2007-06-09  Bruno Haible  <bruno@clisp.org>
49630
49631         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
49632
49633 2007-06-09  Bruno Haible  <bruno@clisp.org>
49634
49635         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
49636         * modules/malloca: Renamed from modules/allocsa, updated.
49637         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
49638         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
49639         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
49640         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
49641         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
49642         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
49643         * modules/xmalloca: Renamed from modules/xallocsa, updated.
49644         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
49645         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
49646         * modules/c-strcasestr (Depends-on): Update.
49647         * lib/c-strcasestr.c: Update.
49648         * modules/c-strstr (Depends-on): Update.
49649         * lib/c-strstr.c: Update.
49650         * modules/canonicalize-lgpl (Depends-on): Update.
49651         * lib/canonicalize-lgpl.c: Update.
49652         * modules/clean-temp (Depends-on): Update.
49653         * lib/clean-temp.c: Update.
49654         * modules/csharpcomp (Depends-on): Update.
49655         * lib/csharpcomp.c: Update.
49656         * modules/csharpexec (Depends-on): Update.
49657         * lib/csharpexec.c: Update.
49658         * modules/javacomp (Depends-on): Update.
49659         * lib/javacomp.c: Update.
49660         * modules/javaexec (Depends-on): Update.
49661         * lib/javaexec.c: Update.
49662         * modules/mbscasestr (Depends-on): Update.
49663         * lib/mbscasestr.c: Update.
49664         * modules/mbsstr (Depends-on): Update.
49665         * lib/mbsstr.c: Update.
49666         * modules/setenv (Depends-on): Update.
49667         * lib/setenv.c: Update.
49668         * modules/strcasestr (Depends-on): Update.
49669         * lib/strcasestr.c: Update.
49670         * modules/striconveha (Depends-on): Update.
49671         * lib/striconveha.c: Update.
49672         * modules/relocatable-prog-wrapper (Files): Update.
49673         * lib/relocwrapper.c: Update.
49674         * build-aux/install-reloc: Update.
49675         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
49676
49677 2007-06-08  Bruno Haible  <bruno@clisp.org>
49678
49679         Port to uClibc.
49680         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
49681         * lib/fpurge.c (fpurge): Likewise.
49682         * lib/freading.c (freading): Likewise.
49683         * lib/fseeko.c (rpl_fseeko): Likewise.
49684         * lib/fseterr.c (fseterr): Likewise.
49685         * lib/fwriting.c (fwriting): Likewise.
49686         * tests/test-fflush.c (main): Avoid a failure on uClibc.
49687
49688 2007-06-08  Bruno Haible  <bruno@clisp.org>
49689
49690         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
49691         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
49692         * modules/gettext (Files): Add m4/intlmacosx.m4.
49693
49694 2007-06-07  Bruno Haible  <bruno@clisp.org>
49695
49696         * modules/localename-tests: New file.
49697         * tests/test-localename.c: New file.
49698
49699         New module 'localename'.
49700         * lib/localename.h: New file.
49701         * lib/localename.c: New file, from GNU gettext.
49702         * m4/localename.m4: New file.
49703         * modules/localename: New file.
49704
49705 2007-06-07  Bruno Haible  <bruno@clisp.org>
49706
49707         Work around the lack of <wchar.h> on some builds of uClibc.
49708         * doc/headers/wchar.texi: Update.
49709         * lib/wchar_.h: Include <wchar.h> only if it exists.
49710         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
49711         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
49712         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
49713         doesn't exist.
49714         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
49715         * modules/mbfile (Depends-on): Add wchar.
49716         * modules/mbiter (Depends-on): Likewise.
49717         * modules/mbuiter (Depends-on): Likewise.
49718         Reported by Simon Josefsson.
49719
49720 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
49721
49722         Work around problem reported by Steven M. Schweda in
49723         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
49724         Tru64 5.1B with the Compaq compiler environment installed declares
49725         an 'isblank' function but does not define it in the C library.
49726         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
49727         * lib/regex_internal.h (isblank): Likewise.
49728         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
49729         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49730
49731 2007-06-05  Bruno Haible  <bruno@clisp.org>
49732
49733         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
49734         ia64.
49735         * modules/printf-safe: New file.
49736         * modules/fprintf-posix (Depends-on): Add printf-safe.
49737         * modules/printf-posix (Depends-on): Likewise.
49738         * modules/snprintf-posix (Depends-on): Likewise.
49739         * modules/sprintf-posix (Depends-on): Likewise.
49740         * modules/vasnprintf-posix (Depends-on): Likewise.
49741         * modules/vasprintf-posix (Depends-on): Likewise.
49742         * modules/vfprintf-posix (Depends-on): Likewise.
49743         * modules/vprintf-posix (Depends-on): Likewise.
49744         * modules/vsnprintf-posix (Depends-on): Likewise.
49745         * modules/vsprintf-posix (Depends-on): Likewise.
49746         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
49747         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
49748         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
49749         "no" on i386, x86_64, ia64.
49750         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
49751         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49752         on i386, x86_64, ia64.
49753         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
49754         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49755         on i386, x86_64, ia64.
49756         * tests/test-vasnprintf-posix.c: Include float.h.
49757         (LDBL80_WORDS): New macro.
49758         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49759         on i386, x86_64, ia64.
49760         * tests/test-vasprintf-posix.c: Include float.h.
49761         (LDBL80_WORDS): New macro.
49762         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49763         on i386, x86_64, ia64.
49764         * tests/test-snprintf-posix.c: Include float.h.
49765         * tests/test-sprintf-posix.c: Likewise.
49766         * tests/test-vsnprintf-posix.c: Likewise.
49767         * tests/test-vsprintf-posix.c: Likewise.
49768
49769 2007-06-05  Bruno Haible  <bruno@clisp.org>
49770
49771         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
49772         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
49773         non-IEEE numbers on i386, x86_64, ia64.
49774         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
49775         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
49776         * tests/test-isnanl.h: Include float.h.
49777         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
49778
49779 2007-06-05  Bruno Haible  <bruno@clisp.org>
49780
49781         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
49782         also the %a / %A. Handle the %a / %A code before this extra handling.
49783
49784 2007-06-05  Bruno Haible  <bruno@clisp.org>
49785
49786         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
49787         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
49788
49789 2007-06-05  Bruno Haible  <bruno@clisp.org>
49790
49791         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
49792         typo in variable name.
49793
49794 2007-06-05  Eric Blake  <ebb9@byu.net>
49795
49796         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
49797         Reported by Simon Josefsson.
49798
49799 2007-06-04  Bruno Haible  <bruno@clisp.org>
49800
49801         Avoid test failures on some PowerPC platforms.
49802         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
49803         Define differently for PowerPC.
49804         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
49805         Reported by Gary V. Vaughan <gary@gnu.org>.
49806
49807 2007-06-02  Bruno Haible  <bruno@clisp.org>
49808
49809         Fix test-stdint failure on FreeBSD/ia64.
49810         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
49811         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
49812         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
49813         * doc/headers/stdint.texi: Update.
49814
49815 2007-06-01  Bruno Haible  <bruno@clisp.org>
49816
49817         * tests/test-binary-io.c (main): Pass a third argument to open().
49818         Reported by Gary V. Vaughan <gary@gnu.org>.
49819
49820 2007-06-01  Bruno Haible  <bruno@clisp.org>
49821
49822         * doc/functions/frexpl.texi: Update for mingw.
49823
49824 2007-06-01  Bruno Haible  <bruno@clisp.org>
49825
49826         * tests/test-lseek.c (main): Disable test of errno for invalid third
49827         argument.
49828         * doc/functions/lseek.texi: Update.
49829         Reported by Gary V. Vaughan <gary@gnu.org>.
49830
49831 2007-05-28  Bruno Haible  <bruno@clisp.org>
49832
49833         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
49834
49835 2007-05-31  Eric Blake  <ebb9@byu.net>
49836
49837         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
49838         cross compiling.
49839
49840 2007-05-30  Eric Blake  <ebb9@byu.net>
49841         and Bruno Haible  <bruno@clisp.org>
49842
49843         Work around mingw test failures exposed by m4-1.4.9b.
49844         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
49845         * tests/test-unistd.c: Disable uid_t and git_t tests for the
49846         moment.
49847
49848 2007-05-30  Bruno Haible  <bruno@clisp.org>
49849
49850         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
49851         assuming that they are closed. Needed on HP-UX 11.
49852
49853 2007-05-29  Bruno Haible  <bruno@clisp.org>
49854
49855         Fix a problem with #include_next.
49856         * lib/dirent_.h: Split the double-inclusion guard.
49857         * lib/fcntl_.h: Likewise.
49858         * lib/float_.h: Likewise.
49859         * lib/iconv_.h: Likewise.
49860         * lib/inttypes_.h: Likewise.
49861         * lib/locale_.h: Likewise.
49862         * lib/math_.h: Likewise.
49863         * lib/netinet_in_.h: Likewise.
49864         * lib/search_.h: Likewise.
49865         * lib/signal_.h: Likewise.
49866         * lib/stdint_.h: Likewise.
49867         * lib/stdio_.h: Likewise.
49868         * lib/stdlib_.h: Likewise.
49869         * lib/string_.h: Likewise.
49870         * lib/sys_select_.h: Likewise.
49871         * lib/sys_socket_.h: Likewise.
49872         * lib/sys_stat_.h: Likewise.
49873         * lib/sys_time_.h: Likewise.
49874         * lib/sysexits_.h: Likewise.
49875         * lib/time_.h: Likewise.
49876         * lib/unistd_.h: Likewise.
49877         * lib/wchar_.h: Likewise.
49878         * lib/wctype_.h: Likewise.
49879
49880 2007-05-29  Bruno Haible  <bruno@clisp.org>
49881
49882         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
49883         for the moment.
49884
49885 2007-05-29  Bruno Haible  <bruno@clisp.org>
49886
49887         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
49888         invocation.
49889         Reported by Eric Blake.
49890
49891 2007-05-29  Bruno Haible  <bruno@clisp.org>
49892
49893         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
49894         compiling case.
49895
49896 2007-05-29  Eric Blake  <ebb9@byu.net>
49897             Bruno Haible  <bruno@clisp.org>
49898
49899         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
49900         cross compiles.
49901
49902 2007-05-28  Eric Blake  <ebb9@byu.net>
49903
49904         * modules/closein-tests (test_closein_LDADD): Support test on
49905         cygwin with libtool.
49906
49907 2007-05-28  Bruno Haible  <bruno@clisp.org>
49908
49909         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
49910         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49911         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49912         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49913         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49914         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49915         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49916         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49917         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49918
49919 2007-05-28  Eric Blake  <ebb9@byu.net>
49920
49921         Unconditionally include <config.h> in unit tests.
49922         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
49923         * tests/test-allocsa.c, tests/test-arcfour.c,
49924         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
49925         tests/test-array_list.c, tests/test-array_oset.c,
49926         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
49927         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
49928         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
49929         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
49930         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
49931         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
49932         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
49933         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
49934         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
49935         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
49936         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
49937         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
49938         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
49939         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
49940         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
49941         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
49942         test-md5.c, test-memmem.c, test-printf-posix.c,
49943         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
49944         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
49945         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
49946         test-strcasestr.c, test-striconv.c, test-striconveh.c,
49947         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
49948         test-vasnprintf-posix2.c, test-vasnprintf.c,
49949         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
49950         test-vfprintf-posix.c, test-vprintf-posix.c,
49951         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
49952         test-xvasprintf.c: Likewise.
49953
49954 2007-05-28  Bruno Haible  <bruno@clisp.org>
49955
49956         * gnulib-tool (func_import): Remember the --with-tests command-line
49957         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
49958         Reported by Eric Blake.
49959
49960 2007-05-28  Bruno Haible  <bruno@clisp.org>
49961
49962         * modules/ftell-tests: New file.
49963         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
49964         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
49965
49966         * lib/ftell.c: New file.
49967         * modules/ftell: New file.
49968         * m4/ftell.m4: New file.
49969         * doc/functions/ftell.texi: Update.
49970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
49971         REPLACE_FTELL.
49972         * lib/stdio_.h (rpl_ftell): New declaration.
49973         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
49974         REPLACE_FTELL.
49975
49976 2007-05-28  Eric Blake  <ebb9@byu.net>
49977
49978         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
49979
49980 2007-05-28  Bruno Haible  <bruno@clisp.org>
49981
49982         * modules/fseek-tests: New file.
49983         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
49984         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
49985
49986         * lib/fseek.c: New file.
49987         * modules/fseek: New file.
49988         * m4/fseek.m4: New file.
49989         * doc/functions/fseek.texi: Update.
49990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
49991         REPLACE_FSEEK.
49992         * lib/stdio_.h (rpl_fseek): New declaration.
49993         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
49994         REPLACE_FSEEK.
49995
49996 2007-05-28  Bruno Haible  <bruno@clisp.org>
49997
49998         * lib/stdio_.h (fflush): More comments.
49999
50000 2007-05-28  Bruno Haible  <bruno@clisp.org>
50001
50002         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
50003         runtime test.
50004
50005 2007-05-28  Eric Blake  <ebb9@byu.net>
50006
50007         Improve lseek module.
50008         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
50009         * lib/unistd_.h (lseek): Scale back link warning message.
50010         * tests/test-lseek.c: Beef up test.
50011         * tests/test-lseek.sh: Exercise more facets of lseek.
50012         Reported by Bruno Haible.
50013
50014 2007-05-28  Bruno Haible  <bruno@clisp.org>
50015
50016         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
50017         to define.
50018
50019 2007-05-27  Bruno Haible  <bruno@clisp.org>
50020
50021         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
50022
50023 2007-05-27  Bruno Haible  <bruno@clisp.org>
50024
50025         * modules/openmp: New file.
50026         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
50027         Noah Misch.
50028
50029 2007-05-26  Bruno Haible  <bruno@clisp.org>
50030
50031         * modules/chdir-long (Depends-on): Add fchdir.
50032         * modules/chdir-safer (Depends-on): Likewise.
50033         * modules/fts (Depends-on): Likewise.
50034         * modules/fts-lgpl (Depends-on): Likewise.
50035         * modules/openat (Depends-on): Likewise.
50036         * modules/savewd (Depends-on): Likewise.
50037
50038 2007-05-24  Eric Blake  <ebb9@byu.net>
50039
50040         Fix lseek on mingw.
50041         * modules/lseek: New module.
50042         * m4/lseek.m4: New file.
50043         * lib/lseek.c: New file.
50044         * modules/lseek-tests: New file.
50045         * tests/test-lseek.c: New file.
50046         * tests/test-lseek.sh: New file.
50047         * MODULES.html.sh: Document lseek module.
50048         * modules/fflush (Depends-on): Add lseek, fseeko.
50049         * modules/fseeko (Depends-on): Likewise.
50050         * modules/ftello (Depends-on): Likewise.
50051         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
50052         broken.
50053         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
50054         broken.
50055         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
50056         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
50057         * lib/ftello.c (rpl_ftello): Likewise.
50058         * tests/test-fseeko.c (main): Test this.
50059         * tests/test-fseeko.sh: Likewise.
50060         * tests/test-ftello.c (main): Likewise.
50061         * tests/test-ftello.sh: Likewise.
50062         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
50063         implies replacing fseek.
50064         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
50065         HAVE_FTELLO.
50066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
50067         * modules/unistd (Makefile.am): Likewise.
50068         * lib/unistd_.h (lseek): Declare a replacement.
50069         * doc/functions/lseek.texi (lseek): Document this fix.
50070         * doc/functions/fseek.texi (fseek): Likewise.
50071         * doc/functions/ftell.texi (ftell): Likewise.
50072
50073 2007-05-24  Bruno Haible  <bruno@clisp.org>
50074
50075         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
50076         in the printed representation of a NaN.
50077         * tests/test-vasprintf-posix.c (test_function): Likewise.
50078         * tests/test-snprintf-posix.h (test_function): Likewise.
50079         * tests/test-sprintf-posix.h (test_function): Likewise.
50080         Reported by Eric Blake.
50081
50082 2007-05-23  Eric Blake  <ebb9@byu.net>
50083
50084         Fix fseeko/ftello on cygwin 1.5.24.
50085         * doc/functions/fseeko.texi (fseeko): Document the fix.
50086         * doc/functions/ftello.texi (ftello): Document the fix.
50087         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
50088         * doc/functions/stdout.text (stdout): New file.
50089         * doc/functions/stderr.text (stderr): New file.
50090         * doc/gnulib.texi (Function Substitutes): Use new files.
50091         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
50092         prior to 1.7.0.
50093         * tests/test-ftello.c (main): Likewise for ftello.
50094         * tests/test-fseeko.sh: New file.
50095         * tests/test-ftello.sh: New file.
50096         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
50097         with seekable stdin.
50098         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
50099         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
50100         (gl_REPLACE_FSEEKO): New macro.
50101         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
50102         * modules/fseeko (Files): Distribute fseeko.c.
50103         * modules/ftello (Files): Distribute ftello.c.
50104         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
50105         mode.
50106         * lib/ftello.c (rpl_ftello): New file.
50107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
50108         fseeko, ftello.
50109         (gl_STDIN_LARGE_OFFSET): New macro.
50110         * modules/stdio (Makefile.am): Perform the replacement.
50111         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
50112
50113 2007-05-23  Bruno Haible  <bruno@clisp.org>
50114
50115         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
50116         GNULIB_POSIXCHECK is defined.
50117
50118 2007-05-21  Bruno Haible  <bruno@clisp.org>
50119
50120         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
50121         Check also the output for NaN arguments. When cross-compiling, guess
50122         no on IRIX.
50123         * lib/vasnprintf.c: Update comments.
50124         * tests/test-vasnprintf-posix.c (strisnan): New function.
50125         (test_function): Use it.
50126         * tests/test-vasprintf-posix.c (strisnan): New function.
50127         (test_function): Use it.
50128         * tests/test-snprintf-posix.h (strisnan): New function.
50129         (test_function): Use it.
50130         * tests/test-sprintf-posix.h (strisnan): New function.
50131         (test_function): Use it.
50132         Reported by Eric Blake.
50133
50134 2007-05-20  Bruno Haible  <bruno@clisp.org>
50135
50136         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
50137         numbers that fails on BeOS.
50138         * doc/functions/frexpl.texi: Update.
50139
50140 2007-05-20  Jim Meyering  <jim@meyering.net>
50141
50142         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
50143         forced upon us by glibc-2.6.
50144
50145 2007-05-20  Bruno Haible  <bruno@clisp.org>
50146
50147         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
50148         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
50149         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
50150         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
50151         NEED_PRINTF_INFINITE.
50152         (is_infinitel): New function.
50153         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
50154         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
50155         gl_PREREQ_VASNPRINTF_INFINITE.
50156         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
50157         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50158         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
50159         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
50160         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
50161         gl_PREREQ_VASNPRINTF_INFINITE.
50162         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50163         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50164         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50165         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50166         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50167         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50168         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50169         * doc/functions/fprintf.texi: Update.
50170         * doc/functions/printf.texi: Update.
50171         * doc/functions/snprintf.texi: Update.
50172         * doc/functions/sprintf.texi: Update.
50173         * doc/functions/vfprintf.texi: Update.
50174         * doc/functions/vprintf.texi: Update.
50175         * doc/functions/vsnprintf.texi: Update.
50176         * doc/functions/vsprintf.texi: Update.
50177
50178 2007-05-20  Bruno Haible  <bruno@clisp.org>
50179
50180         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
50181         was not found in libc.
50182         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50183
50184 2007-05-20  Bruno Haible  <bruno@clisp.org>
50185
50186         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50187         printed as "-nan" instead of "nan".
50188         * tests/test-vasprintf-posix.c (test_function): Likewise.
50189         * tests/test-snprintf-posix.h (test_function): Likewise.
50190         * tests/test-sprintf-posix.h (test_function): Likewise.
50191         Needed for HP-UX 11.
50192
50193 2007-05-20  Jim Meyering  <jim@meyering.net>
50194
50195         Fix buggy test for the fchownat-deref bug.
50196         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50197         symlink required for the run-test.  Without it, this test would
50198         always declare that fchownat doesn't work, and client code would
50199         unnecessarily use the replacement function with fixed libc.
50200         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50201         Reported by Greg Schafer.
50202
50203 2007-05-19  Bruno Haible  <bruno@clisp.org>
50204
50205         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50206         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50207         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50208         Needed for IRIX 6.5 and Solaris 2.5.1.
50209
50210 2007-05-19  Bruno Haible  <bruno@clisp.org>
50211
50212         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50213         (test_function): Skip tests involving -0.0 on platforms where
50214         -0.0 = 0.0.
50215         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50216         (test_function): Skip tests involving -0.0 on platforms where
50217         -0.0 = 0.0.
50218         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50219         (test_function): Skip tests involving -0.0 on platforms where
50220         -0.0 = 0.0.
50221         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50222         (test_function): Skip tests involving -0.0 on platforms where
50223         -0.0 = 0.0.
50224         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50225         tests.
50226         * tests/test-printf-posix.h (test_function): Likewise.
50227         * tests/test-printf-posix.output: Remove all -0.0 related results.
50228         Needed for IRIX 6.5.
50229
50230 2007-05-19  Bruno Haible  <bruno@clisp.org>
50231
50232         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50233         printed as "nan0x7fffffff" instead of "nan".
50234         * tests/test-vasprintf-posix.c (test_function): Likewise.
50235         * tests/test-snprintf-posix.h (test_function): Likewise.
50236         * tests/test-sprintf-posix.h (test_function): Likewise.
50237         * tests/test-fprintf-posix.h (NaN): Remove macro.
50238         (test_function): Remove all NaN related tests.
50239         * tests/test-printf-posix.h (NaN): Remove macro.
50240         (test_function): Remove all NaN related tests.
50241         * tests/test-printf-posix.output: Remove all NaN related results.
50242         Needed for IRIX 6.5.
50243
50244 2007-05-19  Bruno Haible  <bruno@clisp.org>
50245
50246         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50247         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50248
50249 2007-05-19  Bruno Haible  <bruno@clisp.org>
50250
50251         * lib/float_.h: New file.
50252         * m4/float_h.m4: New file.
50253         * modules/float: New file.
50254         * modules/isnanl (Dependencies): Add float.
50255         * modules/isnanl-nolibm (Dependencies): Likewise.
50256         * modules/mathl (Dependencies): Likewise.
50257         * modules/printf-frexpl (Dependencies): Likewise.
50258         * modules/signbit (Dependencies): Likewise.
50259         * modules/vasnprintf (Dependencies): Likewise.
50260         * doc/headers/float.texi: Update.
50261
50262 2007-05-19  Jim Meyering  <jim@meyering.net>
50263
50264         * lib/utimens.c (gl_futimens): Rename from futimens,
50265         now that glibc-2.6 declares futimens.
50266         * lib/utimens.h: Likewise.
50267
50268 2007-05-19  Bruno Haible  <bruno@clisp.org>
50269
50270         Avoid test failures on mingw.
50271         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
50272         * tests/test-printf-posix.sh: Likewise.
50273         * tests/test-vfprintf-posix.sh: Likewise.
50274         * tests/test-vprintf-posix.sh: Likewise.
50275
50276 2007-05-19  Bruno Haible  <bruno@clisp.org>
50277
50278         Fix *printf result for NaN, Inf, -0.0 on mingw.
50279         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
50280         * lib/vasnprintf.c: Include math.h and isnan.h.
50281         (is_infinite_or_zero): New function.
50282         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
50283         values in the %f, %F, %e, %E, %g, %G directives.
50284         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
50285         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50286         gl_PRINTF_INFINITE and test its result. Invoke
50287         gl_PREREQ_VASNPRINTF_INFINITE.
50288         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50289         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50290         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50291         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50292         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50293         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50294         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50295         * doc/functions/fprintf.texi: Update.
50296         * doc/functions/printf.texi: Update.
50297         * doc/functions/snprintf.texi: Update.
50298         * doc/functions/sprintf.texi: Update.
50299         * doc/functions/vfprintf.texi: Update.
50300         * doc/functions/vprintf.texi: Update.
50301         * doc/functions/vsnprintf.texi: Update.
50302         * doc/functions/vsprintf.texi: Update.
50303
50304 2007-05-19  Bruno Haible  <bruno@clisp.org>
50305
50306         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
50307         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
50308         Instead of multiplying with 10^k, set extra_zeroes to k.
50309         (scale10_round_long_double): Remove function.
50310
50311 2007-05-18  Bruno Haible  <bruno@clisp.org>
50312
50313         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
50314         introduced on 2007-05-06.
50315
50316 2007-05-18  Bruno Haible  <bruno@clisp.org>
50317
50318         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
50319         %g directives.
50320         * tests/test-vasprintf-posix.c (test_function): Likewise.
50321         * tests/test-snprintf-posix.h (test_function): Likewise.
50322         * tests/test-sprintf-posix.h (test_function): Likewise.
50323
50324 2007-05-18  Bruno Haible  <bruno@clisp.org>
50325
50326         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50327         (strmatch): New function.
50328         (test_function): Test the %f directive on numbers of various exponents.
50329         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50330         (strmatch): New function.
50331         (test_function): Test the %f directive on numbers of various exponents.
50332         * tests/test-snprintf-posix.h (strmatch): New function.
50333         (test_function): Test the %f directive on numbers of various exponents.
50334         * tests/test-sprintf-posix.h (strmatch): New function.
50335         (test_function): Test the %f directive on numbers of various exponents.
50336         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50337         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50338         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50339         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50340
50341 2007-05-18  Bruno Haible  <bruno@clisp.org>
50342
50343         Add support for 'long double' number output.
50344         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50345         * lib/vasnprintf.c: Include math.h and float+.h.
50346         (mp_limb_t): New type.
50347         (GMP_LIMB_BITS): New macro.
50348         (mp_twolimb_t): New type.
50349         (GMP_TWOLIMB_BITS): New macro.
50350         (mpn_t): New type.
50351         (multiply, divide, convert_to_decimal, decode_long_double,
50352         scale10_round_long_double, scale10_round_decimal_long_double,
50353         floorlog10l): New functions.
50354         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50355         for the %f, %F, %e, %E, %g, %G directives.
50356         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50357         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50358         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50359         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50360         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50361         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50362         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50363         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50364         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50365         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50366         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50367         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50368         * modules/snprintf-posix (Depends-on): Likewise.
50369         * modules/sprintf-posix (Depends-on): Likewise.
50370         * modules/vasnprintf-posix (Depends-on): Likewise.
50371         * modules/vasprintf-posix (Depends-on): Likewise.
50372         * modules/vfprintf-posix (Depends-on): Likewise.
50373         * modules/vsnprintf-posix (Depends-on): Likewise.
50374         * modules/vsprintf-posix (Depends-on): Likewise.
50375         * modules/vasnprintf (Files): Add lib/float+.h.
50376         * doc/functions/fprintf.texi: Update.
50377         * doc/functions/printf.texi: Update.
50378         * doc/functions/snprintf.texi: Update.
50379         * doc/functions/sprintf.texi: Update.
50380         * doc/functions/vfprintf.texi: Update.
50381         * doc/functions/vprintf.texi: Update.
50382         * doc/functions/vsnprintf.texi: Update.
50383         * doc/functions/vsprintf.texi: Update.
50384
50385 2007-05-18  Bruno Haible  <bruno@clisp.org>
50386
50387         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50388
50389 2007-05-18  Bruno Haible  <bruno@clisp.org>
50390
50391         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50392         for printing 64-bit integers. Needed for mingw.
50393
50394 2007-05-18  Bruno Haible  <bruno@clisp.org>
50395
50396         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50397         gl_FUNC_FREXPL_WORKS.
50398         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50399
50400 2007-05-18  Bruno Haible  <bruno@clisp.org>
50401
50402         * modules/frexpl-nolibm-tests: New file.
50403
50404         * modules/frexpl-nolibm: New file.
50405         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50406
50407 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50408
50409         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50410         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50411         GCC 4.2, which otherwise issues a lot of warnings.
50412         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50413         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50414         Likewise.
50415         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50416         * modules/iconv_open (iconv.h): Likewise.
50417         * modules/locale (locale.h): Likewise.
50418         * modules/netinet_in (netinet/in.h): Likewise.
50419         * modules/sys_select (sys_select.h): Likewise.
50420         * modules/sys_socket (sys/socket.h): Likewise.
50421         * modules/sys_stat (sys/stat.h): Likewise.
50422         * modules/sysexits (sysexits.h): Likewise.
50423         * modules/unistd (unistd.h): Likewise.
50424
50425 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50426
50427         * modules/closein-tests (Makefile.am): Distribute
50428         `test-closein.sh'.
50429
50430 2007-05-17  Bruno Haible  <bruno@clisp.org>
50431
50432         * tests/test-printf-posix.output: Renamed from
50433         tests/test-fprintf-posix.out.
50434         * modules/fprintf-posix-tests: Update.
50435         * modules/printf-posix-tests: Update.
50436         * modules/vfprintf-posix-tests: Update.
50437         * modules/vprintf-posix-tests: Update.
50438         * tests/test-fprintf-posix.sh: Update.
50439         * tests/test-printf-posix.sh: Update.
50440         * tests/test-vfprintf-posix.sh: Update.
50441         * tests/test-vprintf-posix.sh: Update.
50442         Reported by Ralf Wildenhues.
50443
50444 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50445
50446         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50447         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50448         GCC 4.2, which otherwise issues a lot of warnings.
50449         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50450         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50451         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50452         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50453         it should no longer be needed.
50454         * lib/string_.h: Likewise.
50455         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50456         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50457         * modules/inttypes (inttypes.h): Likewise.
50458         * modules/math (math.h): Likewise.
50459         * modules/search (search.h): Likewise.
50460         * modules/signal (signal.h): Likewise.
50461         * modules/stdint (stdint.h): Likewise.
50462         * modules/stdio (stdio.h): Likewise.
50463         * modules/stdlib (stdlib.h): Likewise.
50464         * modules/string (string.h): Likewise.
50465         * modules/sys_time (sys/time.h): Likewise.
50466         * modules/time (time.h): Likewise.
50467         * modules/wchar (wchar.h): Likewise.
50468         * modules/wctype (wtype.h): Likewise.
50469
50470 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50471
50472         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50473
50474 2007-05-13  Bruno Haible  <bruno@clisp.org>
50475
50476         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
50477         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50478         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
50479         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50480         (gl_PREREQ_STRTOK_R): Don't require it here.
50481
50482 2007-05-13  Bruno Haible  <bruno@clisp.org>
50483
50484         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
50485         when used in C++ mode.
50486
50487 2007-05-12  Bruno Haible  <bruno@clisp.org>
50488
50489         * lib/linebuffer.h: Tweak doc.
50490         * lib/linebuffer.c: Likewise.
50491
50492 2007-05-12  James Youngman  <jay@gnu.org>
50493
50494         * lib/linebuffer.c (readlinebuffer_delim): New function,
50495         like readlinebuffer, but use a caller-specified delimiter.
50496         (readlinebuffer): Just call readlinebuffer_delim with '\n'
50497         as the delimiter.
50498         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
50499
50500 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50501
50502         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
50503         * modules/openat (Files): Remove openat-die.c.
50504         (Depends-on): Add openat-die.
50505         * modules/openat-die: New module.
50506
50507 2007-05-06  Bruno Haible  <bruno@clisp.org>
50508
50509         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
50510         Update with info about Cygwin.
50511         * doc/functions/fprintf.texi: Update.
50512         * doc/functions/printf.texi: Update.
50513         * doc/functions/snprintf.texi: Update.
50514         * doc/functions/sprintf.texi: Update.
50515         * doc/functions/vfprintf.texi: Update.
50516         * doc/functions/vprintf.texi: Update.
50517         * doc/functions/vsnprintf.texi: Update.
50518         * doc/functions/vsprintf.texi: Update.
50519         Reported by Eric Blake.
50520
50521 2007-05-06  Bruno Haible  <bruno@clisp.org>
50522
50523         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
50524         padding ourselves for the floating-point directives.
50525         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
50526         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
50527         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50528         gl_PRINTF_FLAG_ZERO and test its result. Invoke
50529         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
50530         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50531         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50532         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50533         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50534         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50535         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50536         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50537         * tests/test-snprintf-posix.h (test_function): Also check the width
50538         and some flags in the %f directive.
50539         * tests/test-sprintf-posix.h (test_function): Likewise.
50540         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50541         * tests/test-vasprintf-posix.c (test_function): Likewise.
50542         * doc/functions/fprintf.texi: Update.
50543         * doc/functions/printf.texi: Update.
50544         * doc/functions/snprintf.texi: Update.
50545         * doc/functions/sprintf.texi: Update.
50546         * doc/functions/vfprintf.texi: Update.
50547         * doc/functions/vprintf.texi: Update.
50548         * doc/functions/vsnprintf.texi: Update.
50549         * doc/functions/vsprintf.texi: Update.
50550
50551 2007-05-06  Bruno Haible  <bruno@clisp.org>
50552
50553         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
50554         pass the ' flag character to sprintf or snprintf.
50555         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
50556         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
50557         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50558         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
50559         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
50560         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50561         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50562         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50563         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50564         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50565         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50566         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50567         * tests/test-snprintf-posix.h (test_function): Also check the grouping
50568         flag.
50569         * tests/test-sprintf-posix.h (test_function): Likewise.
50570         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50571         * tests/test-vasprintf-posix.c (test_function): Likewise.
50572         * doc/functions/fprintf.texi: Update.
50573         * doc/functions/printf.texi: Update.
50574         * doc/functions/snprintf.texi: Update.
50575         * doc/functions/sprintf.texi: Update.
50576         * doc/functions/vfprintf.texi: Update.
50577         * doc/functions/vprintf.texi: Update.
50578         * doc/functions/vsnprintf.texi: Update.
50579         * doc/functions/vsprintf.texi: Update.
50580
50581 2007-05-01  Bruno Haible  <bruno@clisp.org>
50582
50583         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
50584
50585 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
50586
50587         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
50588         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
50589
50590 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50591
50592         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
50593         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
50594         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
50595
50596 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
50597
50598         * lib/argp-help.c (struct hol_entry): New member `ord'.
50599         (HOL_ENTRY_PTRCMP): Use ord for comparison
50600         (hol_sort): Initialize ord.
50601
50602 2007-05-01  Bruno Haible  <bruno@clisp.org>
50603
50604         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
50605         Reported by Eric Blake.
50606         * doc/gnulib.texi (Function Substitutes): Update.
50607
50608 2007-05-01  Bruno Haible  <bruno@clisp.org>
50609
50610         * doc/functions.texi: Remove file, now redundant through
50611         doc/functions/*.texi.
50612
50613 2007-05-01  Bruno Haible  <bruno@clisp.org>
50614
50615         * modules/argp (Depends-on): Add sleep.
50616
50617 2007-05-01  Bruno Haible  <bruno@clisp.org>
50618
50619         * modules/sleep-tests: New file.
50620         * tests/test-sleep.c: New file.
50621
50622         * modules/sleep: New file.
50623         * lib/sleep.c: New file.
50624         * m4/sleep.m4: New file.
50625         * lib/unistd_.h (sleep): New declaration.
50626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
50627         HAVE_SLEEP.
50628         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
50629         * doc/functions/sleep.texi: Document the sleep module.
50630
50631 2007-05-01  Bruno Haible  <bruno@clisp.org>
50632
50633         * lib/sigprocmask.h: Remove file.
50634         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
50635         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
50636         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
50637         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
50638         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50639         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
50640         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
50641         HAVE_SIGSET_T as a shell variable.
50642         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
50643         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
50644         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
50645         (Depends-on): Add signal. Remove verify.
50646         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
50647         (Include): Mention <signal.h> instead of sigprocmask.h.
50648         * NEWS: Mention the change.
50649         * lib/fatal-signal.c: Don't include sigprocmask.h.
50650
50651 2007-05-01  Bruno Haible  <bruno@clisp.org>
50652
50653         * modules/signal: New file.
50654         * lib/signal_.h: New file.
50655         * m4/signal_h.m4: New file.
50656
50657 2007-05-01  Bruno Haible  <bruno@clisp.org>
50658
50659         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
50660         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
50661         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
50662         HAVE_WCTYPE_CTMP_BUG into wctype.h.
50663
50664 2007-05-01  Bruno Haible  <bruno@clisp.org>
50665
50666         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
50667         configure time.
50668         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
50669         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
50670         * modules/sys_stat (Makefile.am): Substitute their values into
50671         sys/stat.h.
50672
50673 2007-05-01  Bruno Haible  <bruno@clisp.org>
50674
50675         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
50676         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
50677         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
50678
50679 2007-05-01  Bruno Haible  <bruno@clisp.org>
50680
50681         * doc/header/assert.texi: Undo last change: don't mention the gnulib
50682         'assert' module here.
50683
50684 2007-05-01  Bruno Haible  <bruno@clisp.org>
50685
50686         * doc/functions/*.texi: New files.
50687         * doc/functions/google-ranking.txt: New file.
50688         * doc/gnulib.texi (Function Substitutes): New chapter.
50689         (ctime, inet_ntoa): Remove sections.
50690         * doc/ctime.texi: Remove file.
50691         * doc/inet_ntoa.texi: Remove file.
50692         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
50693         dependencies.
50694         (%.info): New rule, specifying a --reference-limit.
50695
50696 2007-05-01  Bruno Haible  <bruno@clisp.org>
50697
50698         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
50699
50700 2007-05-01  Bruno Haible  <bruno@clisp.org>
50701
50702         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
50703         the portability of 'mkdir' to mingw systems.
50704
50705 2007-05-01  Bruno Haible  <bruno@clisp.org>
50706
50707         * doc/headers/google-ranking.txt: New file.
50708
50709 2007-04-30  Eric Blake  <ebb9@byu.net>
50710
50711         Prefer fseeko to fseek.
50712         * modules/getpass (Depends-on): Add fseeko.
50713         * lib/getpass.c (getpass): Use fseeko, not fseek.
50714
50715 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
50716
50717         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
50718         assumes the sorting is stable, while most qsort implementations
50719         are not.  Use argument addresses to ensure they never compare as
50720         equal.
50721
50722         * tests/test-argp-2.sh (usage-indent test): Fix output
50723         (func_compare): Restore diff options
50724         * tests/test-argp.c: Restore #include "progname.h"
50725
50726 2007-04-29  Bruno Haible  <bruno@clisp.org>
50727
50728         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
50729         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50730         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
50731         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50732         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
50733         (configure.ac): Define CHECK_SNPRINTF_POSIX.
50734         (TESTS, check_PROGRAMS): Add test-snprintf.
50735         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
50736         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
50737         (TESTS, check_PROGRAMS): Add test-vsnprintf.
50738         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
50739         assertions that fail on HP-UX, OSF/1, or IRIX.
50740         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
50741
50742 2007-04-29  Bruno Haible  <bruno@clisp.org>
50743
50744         * MODULES.html.sh (posix_functions): Remove 'contents'.
50745
50746 2007-04-29  Karl Berry  <karl@gnu.org>
50747
50748         * config/srclist.txt (gendocs_template_min): new entry.
50749
50750 2007-04-29  Bruno Haible  <bruno@clisp.org>
50751
50752         Work around fpurge bug on BSD systems.
50753         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
50754         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
50755         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
50756         fpurge to rpl_fpurge if the system already has this function.
50757         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
50758         the case where the system already has this function. Correct invariants
50759         on BSD systems.
50760         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
50761         BSD systems.
50762
50763 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50764
50765         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
50766         proposed by Sven Verdoolaege.
50767
50768         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
50769         options.
50770         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
50771         (usage and help tests): Update
50772
50773 2007-04-29  Bruno Haible  <bruno@clisp.org>
50774
50775         * tests/test-fflush.c (main): Use a file of size 17, not 10.
50776         Print more information in case of failure. Disable a test on BeOS.
50777
50778 2007-04-29  Bruno Haible  <bruno@clisp.org>
50779
50780         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
50781         This helps debugging on systems on which no gdb is available.
50782
50783 2007-04-29  Bruno Haible  <bruno@clisp.org>
50784
50785         * lib/freading.h: Improve comments.
50786         * lib/fwriting.h: Likewise.
50787         * tests/test-freading.c (main): Don't check freading immediately after
50788         repositioning. Needed for glibc.
50789
50790 2007-04-29  Bruno Haible  <bruno@clisp.org>
50791
50792         * lib/freading.c (freading): Trivial simplification.
50793
50794 2007-04-28  Bruno Haible  <bruno@clisp.org>
50795
50796         * tests/test-fwriting.c (main): Also test the interaction between
50797         fflush and fwriting.
50798         * modules/fwriting-tests (Depends-on): Add fflush.
50799
50800         * tests/test-freading.c (main): Also test the interaction between
50801         fflush and freading.
50802         * modules/freading-tests (Depends-on): Add fflush.
50803
50804 2007-04-28  Bruno Haible  <bruno@clisp.org>
50805
50806         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
50807         fseeko and ftello.
50808         Suggested by Eric Blake.
50809
50810 2007-04-28  Jim Meyering  <jim@meyering.net>
50811
50812         Avoid false-negative in gl_STDINT_H's C99 conformance test.
50813         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
50814         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
50815
50816 2007-04-27  Eric Blake  <ebb9@byu.net>
50817
50818         * doc/headers/assert.texi (assert.h): Document assert module use.
50819
50820 2007-04-27  Bruno Haible  <bruno@clisp.org>
50821
50822         * doc/headers/*.texi: New files.
50823         * doc/gnulib.texi (Header File Substitutes): New chapter.
50824         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
50825         dependencies.
50826         (standards.info ,standards.html, standards.dvi): Update dependencies.
50827         (mostlyclean, clean): New targets.
50828
50829 2007-04-27  Bruno Haible  <bruno@clisp.org>
50830
50831         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
50832         * modules/sysexits (Files, Makefile.am): Update.
50833
50834         * lib/sys_socket_.h: Renamed from lib/socket_.h.
50835         * modules/sys_socket (Files, Makefile.am): Update.
50836
50837         * lib/sys_stat_.h: Renamed from lib/stat_.h.
50838         * modules/sys_stat (Files, Makefile.am): Update.
50839
50840 2007-04-27  Eric Blake  <ebb9@byu.net>
50841
50842         * lib/freading.h: Improve comments.
50843         * lib/fwriting.h: Likewise.
50844         * lib/fflush.c: Likewise.
50845
50846         Fix closein for mingw.
50847         * modules/closein-tests: Add tests for closein.
50848         * tests/test-closein.c: New file.
50849         * tests/test-closein.sh: Likewise.
50850         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
50851         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
50852
50853 2007-04-27  Bruno Haible  <bruno@clisp.org>
50854
50855         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
50856         version is < 6.
50857         * lib/math_.h [__DECC]: Likewise.
50858         * lib/stdio_.h [__DECC]: Likewise.
50859         * lib/stdlib_.h [__DECC]: Likewise.
50860         * lib/string_.h [__DECC]: Likewise.
50861         * lib/time_.h [__DECC]: Likewise.
50862         * lib/wchar_.h [__DECC]: Likewise.
50863         * lib/wctype_.h [__DECC]: Likewise.
50864
50865 2007-04-27  Bruno Haible  <bruno@clisp.org>
50866
50867         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
50868
50869 2007-04-27  Bruno Haible  <bruno@clisp.org>
50870
50871         * lib/fflush.c: Add comments.
50872         * modules/fpurge-tests (Depends-on): Add fflush.
50873         * modules/freadable-tests (Depends-on): Likewise.
50874         * modules/fwritable-tests (Depends-on): Likewise.
50875
50876 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
50877
50878         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
50879         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
50880         Report by Bruno Haible <bruno@clisp.org>.
50881
50882 2007-04-26  Eric Blake  <ebb9@byu.net>
50883
50884         Fix fflush on mingw.
50885         * modules/fflush (Depends-on): Add freading.
50886         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
50887         but unread data.
50888
50889 2007-04-26  Eric Blake  <ebb9@byu.net>
50890         and Bruno Haible  <bruno@clisp.org>
50891
50892         Implement freading and fwriting.
50893         * lib/freading.c: New file.
50894         * lib/freading.h: Likewise.
50895         * m4/freading.m4: Likewise.
50896         * modules/freading: Likewise.
50897         * modules/freading-tests: Likewise.
50898         * tests/test-freading.c: Likewise.
50899         * lib/fwriting.c: New file.
50900         * lib/fwriting.h: Likewise.
50901         * m4/fwriting.m4: Likewise.
50902         * modules/fwriting: Likewise.
50903         * modules/fwriting-tests: Likewise.
50904         * tests/test-fwriting.c: Likewise.
50905         * MODULES.html.sh (File stream based Input/Output): Mention them.
50906
50907 2007-04-26  Bruno Haible  <bruno@clisp.org>
50908
50909         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
50910         'long' when we assume it.
50911         Suggested by Eric Blake.
50912
50913 2007-04-26  Bruno Haible  <bruno@clisp.org>
50914
50915         Ensure fseeko, ftello are declared on glibc systems.
50916         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
50917         * modules/fseeko (configure.ac-early): Likewise.
50918         * modules/ftello (configure.ac-early): Likewise.
50919         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
50920         AC_FUNC_FSEEKO for this.
50921         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
50922         (gl_CHECK_FSEEKO): Remove macro.
50923
50924 2007-04-26  Bruno Haible  <bruno@clisp.org>
50925
50926         * tests/test-fflush.c (main): Also check the ftell result after
50927         fflush and fseek/fseeko.
50928         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
50929         file descriptor position cache in the stream.
50930         * lib/fseeko.c (rpl_fseeko): Likewise.
50931
50932 2007-04-26  Bruno Haible  <bruno@clisp.org>
50933
50934         * modules/fflush-tests (Depends-on): Add fseeko.
50935
50936 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
50937             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50938
50939         * lib/argz_.h: ensure error_t definition is obtained in same
50940         mechanism system argz.h would have.
50941         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
50942         argz facilities are known bad.  Err on the side of caution if
50943         cross-compiling.
50944
50945 2007-04-25  Eric Blake  <ebb9@byu.net>
50946
50947         * lib/fpurge.c (includes): Use stdlib.h for free.
50948         * tests/test-fflush.c (main): Also test fflush-fseeko.
50949
50950 2007-04-25  Bruno Haible  <bruno@clisp.org>
50951
50952         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
50953         * lib/fseeko.c: New file.
50954         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
50955         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
50956         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
50957         gl_FUNC_FSEEKO.
50958         (gl_FUNC_FSEEKO): Invoke it.
50959         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
50960         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
50961         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
50962
50963 2007-04-25  Bruno Haible  <bruno@clisp.org>
50964
50965         * modules/fflush (Depends-on): Add ftello.
50966
50967 2007-04-25  Bruno Haible  <bruno@clisp.org>
50968
50969         * modules/ftello-tests: New file.
50970         * tests/test-ftello.c: New file.
50971
50972         * modules/ftello: New file.
50973         * m4/ftello.m4: New file.
50974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
50975         HAVE_FTELLO.
50976         * lib/stdio_.h (ftello): New declaration.
50977         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
50978         HAVE_FTELLO.
50979
50980 2007-04-25  Bruno Haible  <bruno@clisp.org>
50981
50982         * modules/fseeko-tests: New file.
50983         * tests/test-fseeko.c: New file.
50984
50985         * modules/fseeko: New file.
50986         * m4/fseeko.m4: New file.
50987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
50988         HAVE_FSEEKO.
50989         * lib/stdio_.h (fseeko): New declaration.
50990         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
50991         HAVE_FSEEKO.
50992
50993 2007-04-25  Bruno Haible  <bruno@clisp.org>
50994
50995         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
50996
50997 2007-04-25  Bruno Haible  <bruno@clisp.org>
50998
50999         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
51000         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
51001         * tests/test-unistd.c: Likewise.
51002         * tests/test-fcntl.c: Likewise.
51003
51004 2007-04-23  Eric Blake  <ebb9@byu.net>
51005
51006         * lib/fflush.c: Fix missing include.
51007         Reported by Bruno Haible.
51008
51009 2007-04-23  Bruno Haible  <bruno@clisp.org>
51010
51011         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
51012         Reported by Eric Blake.
51013
51014 2007-04-23  Bruno Haible  <bruno@clisp.org>
51015
51016         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
51017
51018 2007-04-23  Bruno Haible  <bruno@clisp.org>
51019
51020         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
51021
51022 2007-04-23  Bruno Haible  <bruno@clisp.org>
51023
51024         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
51025         Needed on HP-UX 11.
51026
51027 2007-04-16  Eric Blake  <ebb9@byu.net>
51028
51029         Make fflush rely on fpurge.
51030         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
51031         open coding all variants.
51032         * modules/fflush (Depends-on): Add fpurge and unistd.
51033         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
51034         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
51035
51036         Fix --with-tests compilation on cygwin.
51037         * modules/argmatch-tests (Makefile.am): List gnulib library first
51038         in LDADD.
51039         * modules/argp-tests (Makefile.am): Likewise.
51040         * modules/array-list-tests (Makefile.am): Likewise.
51041         * modules/array-oset-tests (Makefile.am): Likewise.
51042         * modules/avltree-list-tests (Makefile.am): Likewise.
51043         * modules/avltree-oset-tests (Makefile.am): Likewise.
51044         * modules/avltreehash-list-tests (Makefile.am): Likewise.
51045         * modules/carray-list-tests (Makefile.am): Likewise.
51046         * modules/dirname-tests (Makefile.am): Likewise.
51047         * modules/frexp-tests (Makefile.am): Likewise.
51048         * modules/isnanl-tests (Makefile.am): Likewise.
51049         * modules/linked-list-tests (Makefile.am): Likewise.
51050         * modules/linkedhash-list-tests (Makefile.am): Likewise.
51051         * modules/lock-tests (Makefile.am): Likewise.
51052         * modules/rbtree-list-tests (Makefile.am): Likewise.
51053         * modules/rbtree-oset-tests (Makefile.am): Likewise.
51054         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
51055         * modules/tls-tests (Makefile.am): Likewise.
51056         * modules/tsearch-tests (Makefile.am): Likewise.
51057         * modules/xvasprintf-tests (Makefile.am): Likewise.
51058
51059         Fix fpurge for cygwin.
51060         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
51061         value.
51062         * modules/fpurge-tests (Depends-on): Clean up trash.
51063
51064 2007-04-16  Simon Josefsson  <simon@josefsson.org>
51065
51066         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
51067
51068         * m4/autobuild.m4: Re-indent.
51069
51070 2007-04-13  Bruno Haible  <bruno@clisp.org>
51071
51072         * modules/fpurge-tests: New file.
51073         * tests/test-fpurge.c: New file.
51074
51075         * modules/fpurge: New file.
51076         * lib/fpurge.h: New file.
51077         * lib/fpurge.c: New file.
51078         * m4/fpurge.m4: New file.
51079
51080 2007-04-13  Bruno Haible  <bruno@clisp.org>
51081
51082         * modules/fbufmode-tests: New file.
51083         * tests/test-fbufmode.c: New file.
51084
51085         * modules/fbufmode: New file.
51086         * lib/fbufmode.h: New file.
51087         * lib/fbufmode.c: New file.
51088         * m4/fbufmode.m4: New file.
51089
51090 2007-04-13  Bruno Haible  <bruno@clisp.org>
51091
51092         * modules/fwritable-tests: New file.
51093         * tests/test-fwritable.c: New file.
51094
51095         * modules/fwritable: New file.
51096         * lib/fwritable.h: New file.
51097         * lib/fwritable.c: New file.
51098         * m4/fwritable.m4: New file.
51099
51100 2007-04-13  Bruno Haible  <bruno@clisp.org>
51101
51102         * modules/freadable-tests: New file.
51103         * tests/test-freadable.c: New file.
51104
51105         * modules/freadable: New file.
51106         * lib/freadable.h: New file.
51107         * lib/freadable.c: New file.
51108         * m4/freadable.m4: New file.
51109
51110 2007-04-13  Bruno Haible  <bruno@clisp.org>
51111
51112         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
51113         MOSTLYCLEANFILES.
51114
51115 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51116
51117         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
51118         gzip bootstrap.conf to avoid dragging in i18n machinery.
51119         (gnulib_tool_option): Use it.
51120
51121 2007-04-13  Bruno Haible  <bruno@clisp.org>
51122
51123         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
51124         %F directives.
51125         * tests/test-vasprintf-posix.c (test_function): Likewise.
51126         * tests/test-snprintf-posix.h (test_function): Likewise.
51127         * tests/test-sprintf-posix.h (test_function): Likewise.
51128         * tests/test-fprintf-posix.h (test_function): Likewise.
51129         * tests/test-printf-posix.h (test_function): Likewise.
51130         * tests/test-fprintf-posix.out: Likewise.
51131
51132 2007-04-13  Bruno Haible  <bruno@clisp.org>
51133
51134         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
51135         * modules/tls-tests (configure.ac): Likewise.
51136         Reported by Arto C. Nirkko <anirkko@insel.ch>.
51137
51138 2007-04-13  Bruno Haible  <bruno@clisp.org>
51139
51140         * lib/tls.c (glthread_tls_get): Fix return type.
51141         Patch by Arto C. Nirkko <anirkko@insel.ch>.
51142
51143 2007-04-12  Eric Blake  <ebb9@byu.net>
51144
51145         * modules/gettime (Depends-on): Remove gettime.
51146         Reported by Dmitry V. Levin.
51147
51148 2007-04-12  Bruno Haible  <bruno@clisp.org>
51149
51150         * modules/fflush (Include): Mention <stdio.h>.
51151         * modules/strtoimax (Include): Mention <inttypes.h>.
51152         * modules/strtoumax (Include): Likewise.
51153
51154 2007-04-12  Eric Blake  <ebb9@byu.net>
51155
51156         * .cvsignore: New file.
51157         * .gitignore: Likewise.
51158
51159 2007-04-12  Bruno Haible  <bruno@clisp.org>
51160
51161         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
51162         not before, since $(LDADD) often contains libgnu.a.
51163         * modules/striconv-tests (test_striconv_LDADD): Likewise.
51164         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
51165         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
51166         Needed on Cygwin.
51167
51168 2007-04-12  Eric Blake  <ebb9@byu.net>
51169
51170         Work around glibc's failure to flush stdin on fclose.
51171         * lib/closein.c (close_stdin): Flush stdin before closing.
51172
51173         Work around glibc's failure to reset seekable stdin on exit.
51174         * modules/closein: New module.
51175         * lib/closein.c: New file.
51176         * lib/closein.h: Likewise.
51177         * m4/closein.m4: Likewise.
51178         * MODULES.html.sh (File stream based Input/Output): Document it.
51179
51180 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51181
51182         * gnulib-tool: Rename generated 'autobuild' script to
51183         'do-autobuild' in --create-megatestdir output.
51184
51185         * doc/gnulib.texi (Build robot for gnulib): Fix.
51186
51187 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51188
51189         * modules/sysexits (Depends-on): Add absolute-header.
51190
51191 2007-04-12  Eric Blake  <ebb9@byu.net>
51192
51193         No need to preserve errno on success.
51194         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51195         Reported by Bruno Haible.
51196
51197 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51198
51199         * MODULES.html.sh (Support for maintaining and releasing
51200         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51201
51202 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51203
51204         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51205
51206 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51207
51208         * modules/autobuild: New module.
51209
51210         * m4/autobuild.m4: New file.
51211
51212 2007-04-11  Bruno Haible  <bruno@clisp.org>
51213
51214         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51215         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51216         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51218         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51219         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51220         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51221         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51222         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51223         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51224         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51225         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51226         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51227         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51228         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51229         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51230         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
51231         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51232         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51233         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
51234         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51235         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51236         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
51237         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51238         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51239         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
51240         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51241         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51242         Reported by Eric Blake.
51243
51244 2007-04-11  Bruno Haible  <bruno@clisp.org>
51245
51246         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51247
51248 2007-04-10  Bruno Haible  <bruno@clisp.org>
51249
51250         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51251         for NaN and Infinity. Needed on FreeBSD 6.1.
51252         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51253         regarding results for "%010a" of Infinity and NaN.
51254         * tests/test-vasprintf-posix.c (test_function): Likewise.
51255         * tests/test-snprintf-posix.h (test_function): Likewise.
51256         * tests/test-sprintf-posix.h (test_function): Likewise.
51257         * tests/test-fprintf-posix.h (test_function): Likewise.
51258         * tests/test-printf-posix.h (test_function): Likewise.
51259         * tests/test-fprintf-posix.out: Likewise.
51260
51261 2007-04-10  Bruno Haible  <bruno@clisp.org>
51262
51263         * modules/locale-tests: New file.
51264         * tests/test-locale.c: New file.
51265
51266         * modules/locale: New file.
51267         * lib/locale_.h: New file.
51268         * m4/locale_h.m4: New file.
51269
51270 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
51271             Bruno Haible  <bruno@clisp.org>
51272
51273         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
51274         be determined, test for availability of the copysignf, copysign,
51275         copysignl functions.
51276         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
51277         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
51278         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
51279
51280 2007-04-09  Eric Blake  <ebb9@byu.net>
51281
51282         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
51283         * modules/stdio (Makefile.am): Support fflush.
51284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51285         * modules/fflush: New file.
51286         * lib/fflush.c: Likewise.
51287         * m4/fflush.m4: Likewise.
51288         * modules/fflush-tests: New test.
51289         * tests/test-fflush.c: Likewise.
51290         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
51291
51292 2007-04-06  Bruno Haible  <bruno@clisp.org>
51293
51294         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
51295         (VASNPRINTF): Use signbit for faster determination whether to print a
51296         minus sign.
51297         * modules/vasnprintf (Files): Remove lib/float+.h.
51298         * modules/fprintf-posix (Depends-on): Add signbit.
51299         * modules/snprintf-posix (Depends-on): Likewise.
51300         * modules/sprintf-posix (Depends-on): Likewise.
51301         * modules/vasnprintf-posix (Depends-on): Likewise.
51302         * modules/vasprintf-posix (Depends-on): Likewise.
51303         * modules/vfprintf-posix (Depends-on): Likewise.
51304         * modules/vsnprintf-posix (Depends-on): Likewise.
51305         * modules/vsprintf-posix (Depends-on): Likewise.
51306
51307 2007-04-06  Bruno Haible  <bruno@clisp.org>
51308
51309         * tests/test-frexp.c (main): Test also the sign bit of zero results.
51310         * tests/test-frexpl.c (main): Likewise.
51311         * tests/test-ldexpl.c (main): Likewise.
51312         * modules/frexp-tests (Depends-on): Add signbit.
51313         * modules/frexpl-tests (Depdends-on): Likewise.
51314         * modules/ldexpl-tests (Depdends-on): Likewise.
51315
51316 2007-04-06  Bruno Haible  <bruno@clisp.org>
51317
51318         * modules/signbit-tests: New file.
51319         * tests/test-signbit.c: New file.
51320
51321         * modules/signbit: New file.
51322         * lib/signbitf.c: New file.
51323         * lib/signbitd.c: New file.
51324         * lib/signbitl.c: New file.
51325         * m4/signbit.m4: New file.
51326         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51327         (signbit): New macro.
51328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51329         REPLACE_SIGNBIT.
51330         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51331         REPLACE_FREXPL into math.h.
51332
51333 2007-04-06  Bruno Haible  <bruno@clisp.org>
51334
51335         * modules/isnanf-nolibm-tests: New file.
51336         * tests/test-isnanf.c: New file.
51337
51338         * modules/isnanf-nolibm: New file.
51339         * lib/isnanf.h: New file.
51340         * lib/isnanf.c: New file.
51341         * lib/isnan.c: Consider the USE_FLOAT macro.
51342         * m4/isnanf.m4: New file.
51343
51344 2007-04-06  Bruno Haible  <bruno@clisp.org>
51345
51346         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51347         (Link): New section.
51348
51349         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51350
51351 2007-04-06  Bruno Haible  <bruno@clisp.org>
51352
51353         Assume the 'long double' type.
51354         * m4/longdouble.m4: Remove file.
51355         * config/srclist.txt: Don't mention longdouble.m4.
51356         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51357         * lib/float+.h: Likewise.
51358         * lib/frexp.c: Likewise.
51359         * lib/printf-args.h: Likewise.
51360         * lib/printf-args.c: Likewise.
51361         * lib/printf-frexp.c: Likewise.
51362         * lib/printf-parse.c: Likewise.
51363         * lib/vasnprintf.c: Likewise.
51364         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51365         * m4/intl.m4: Likewise.
51366         * m4/isnanl.m4: Likewise.
51367         * m4/printf.m4: Likewise.
51368         * m4/printf-frexpl.m4: Likewise.
51369         * m4/vasnprintf.m4: Likewise.
51370         * modules/allocsa (Files): Remove m4/longdouble.m4.
51371         * modules/gettext (Files): Likewise.
51372         * modules/relocatable-prog-wrapper (Files): Likewise.
51373         * modules/vasnprintf (Files): Likewise.
51374         * modules/isnanl (Files): Likewise.
51375         (Include): Simplify.
51376         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51377         (Include): Simplify.
51378         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51379         (Include): Simplify.
51380         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51381         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51382         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51383         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51384         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51385         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51386         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51387         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51388         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51389         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51390         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51391         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51392         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51393         * tests/test-isnanl.c: Likewise.
51394         * tests/test-snprintf-posix.h: Likewise.
51395         * tests/test-sprintf-posix.h: Likewise.
51396         * tests/test-vasnprintf-posix.c: Likewise.
51397         * tests/test-vasnprintf-posix2.c: Likewise.
51398         * tests/test-vasprintf-posix.c: Likewise.
51399
51400 2007-04-06  Bruno Haible  <bruno@clisp.org>
51401
51402         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51403         * lib/math_.h [__DECC]: Include the overridden include file through
51404         #include_next, outside the double-inclusion guard.
51405         * lib/stdio_.h [__DECC]: Likewise.
51406         * lib/stdlib_.h [__DECC]: Likewise.
51407         * lib/string_.h [__DECC]: Likewise.
51408         * lib/time_.h [__DECC]: Likewise.
51409         * lib/wchar_.h [__DECC]: Likewise.
51410         * lib/wctype_.h [__DECC]: Likewise.
51411         * lib/inttypes_.h [__DECC]: Likewise.
51412         Reported by Albert Chin <china@thewrittenword.com> in
51413         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51414
51415 2007-04-04  Eric Blake  <ebb9@byu.net>
51416
51417         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51418         1.5.x.
51419
51420 2007-04-04  Bruno Haible  <bruno@clisp.org>
51421
51422         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51423         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51424
51425 2007-04-04  Bruno Haible  <bruno@clisp.org>
51426
51427         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51428         results for "%010a" of Infinity and NaN.
51429         * tests/test-vasprintf-posix.c (test_function): Likewise.
51430         * tests/test-snprintf-posix.h (test_function): Likewise.
51431         * tests/test-sprintf-posix.h (test_function): Likewise.
51432         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51433         * tests/test-printf-posix.h (test_function): Likewise.
51434         * tests/test-fprintf-posix.out: Update.
51435         Needed for FreeBSD 6.1.
51436
51437 2007-04-04  Bruno Haible  <bruno@clisp.org>
51438
51439         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51440         directly used by the gnulib modules nor by gnulib-tool.
51441
51442 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51443
51444         * DEPENDENCIES: Give overall description of version dependency
51445         desirability.  Use more-typical names for apps.
51446         Add shell, coreutils, diffutils, grep, tar, gzip.
51447
51448 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51449
51450         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51451
51452 2007-04-04  Karl Berry  <karl@gnu.org>
51453
51454         * MODULES.html.sh (func_module): missing '.
51455
51456 2007-04-03  Bruno Haible  <bruno@clisp.org>
51457
51458         * modules/argmatch-tests (Makefile.am): New variable
51459         test_argmatch_LDADD.
51460         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51461         * modules/array-list-tests (Makefile.am): New variable
51462         test_array_list_LDADD.
51463         * modules/array-oset-tests (Makefile.am): New variable
51464         test_array_oset_LDADD.
51465         * modules/avltree-list-tests (Makefile.am): New variable
51466         test_avltree_list_LDADD.
51467         * modules/avltree-oset-tests (Makefile.am): New variable
51468         test_avltree_oset_LDADD.
51469         * modules/avltreehash-list-tests (Makefile.am): New variable
51470         test_avltreehash_list_LDADD.
51471         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51472         test_canonicalize_lgpl_LDADD.
51473         * modules/carray-list-tests (Makefile.am): New variable
51474         test_carray_list_LDADD.
51475         * modules/dirname-tests (Makefile.am): New variable
51476         test_dirname_LDADD.
51477         * modules/linked-list-tests (Makefile.am): New variable
51478         test_linked_list_LDADD.
51479         * modules/linkedhash-list-tests (Makefile.am): New variable
51480         test_linkedhash_list_LDADD.
51481         * modules/rbtree-list-tests (Makefile.am): New variable
51482         test_rbtree_list_LDADD.
51483         * modules/rbtree-oset-tests (Makefile.am): New variable
51484         test_rbtree_oset_LDADD.
51485         * modules/rbtreehash-list-tests (Makefile.am): New variable
51486         test_rbtreehash_list_LDADD.
51487         * modules/xvasprintf-tests (Makefile.am): New variable
51488         test_xvasprintf_LDADD.
51489         Reported by Eric Blake.
51490
51491 2007-04-03  Eric Blake  <ebb9@byu.net>
51492
51493         * DEPENDENCIES: Weaken m4 requirements.
51494
51495 2007-04-03  Bruno Haible  <bruno@clisp.org>
51496
51497         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
51498         * modules/isnanl-tests (configure.ac): Likewise.
51499
51500 2007-04-03  Ben Pfaff  <blp@gnu.org>
51501
51502         * modules/iconv_open: Add $(srcdir)/ to source directory
51503         references in Makefile fragments that call gperf, to fix VPATH
51504         builds.
51505
51506 2007-04-03  Bruno Haible  <bruno@clisp.org>
51507
51508         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
51509         * lib/ldexpl.c: Undo last change.
51510
51511 2007-04-03  Bruno Haible  <bruno@clisp.org>
51512
51513         * modules/printf-frexpl (Depends-on): Undo last change.
51514         (Files): Add m4/ldexpl.m4.
51515
51516 2007-04-03  Bruno Haible  <bruno@clisp.org>
51517
51518         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
51519         * modules/isnanl (Link): New section.
51520
51521         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
51522         * modules/frexp (Link): New section.
51523
51524         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
51525         * modules/frexpl (Link): New section.
51526
51527         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
51528         * modules/ldexpl (Link): New section.
51529
51530 2007-04-03  Bruno Haible  <bruno@clisp.org>
51531
51532         * modules/TEMPLATE-EXTENDED: New file.
51533         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
51534
51535 2007-04-03  Bruno Haible  <bruno@clisp.org>
51536
51537         * DEPENDENCIES: New file.
51538         Suggested by Simon Josefsson.
51539
51540 2007-04-03  Bruno Haible  <bruno@clisp.org>
51541
51542         * doc/gnulib.texi: Escape @.
51543
51544 2007-04-03  James Youngman  <jay@gnu.org>
51545         and Paul Eggert  <eggert@cs.ucla.edu>
51546
51547         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
51548         birthtime on all systems that have birthtime, not just those which
51549         use st_birthtimensec rather than st_birthtim.  Putting zero in
51550         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
51551         that the birth time is not available for files on an NFS mount.
51552
51553 2007-04-03  Simon Josefsson  <simon@josefsson.org>
51554
51555         * modules/memxor: Move back from crypto/, suggested by Bruno.
51556         * modules/crypto/hmac-sha1: Fix memxor dependency.
51557
51558         * modules/crypto/gc: Moved from ../.
51559
51560 2007-04-02  Eric Blake  <ebb9@byu.net>
51561
51562         * lib/ldexpl.c (includes): Avoid libm.
51563
51564         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
51565
51566 2007-04-02  Bruno Haible  <bruno@clisp.org>
51567
51568         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
51569         on IRIX.
51570
51571 2007-04-02  Bruno Haible  <bruno@clisp.org>
51572
51573         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
51574         x86 or x86_64 platforms running MacOS X.
51575         Reported by Ryan Schmidt <@ryandesign.com>.
51576
51577 2007-04-02  Bruno Haible  <bruno@clisp.org>
51578
51579         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
51580         i386.
51581
51582 2007-04-01  Simon Josefsson  <simon@josefsson.org>
51583
51584         * modules/crypto/arcfour: Moved from ../.
51585         * modules/crypto/arcfour-tests: Moved from ../.
51586         * modules/crypto/arctwo: Moved from ../.
51587         * modules/crypto/arctwo-tests: Moved from ../.
51588         * modules/crypto/des: Moved from ../.
51589         * modules/crypto/des-tests: Moved from ../.
51590         * modules/crypto/gc-arcfour: Moved from ../.
51591         * modules/crypto/gc-arcfour-tests: Moved from ../.
51592         * modules/crypto/gc-arctwo: Moved from ../.
51593         * modules/crypto/gc-arctwo-tests: Moved from ../.
51594         * modules/crypto/gc-des: Moved from ../.
51595         * modules/crypto/gc-des-tests: Moved from ../.
51596         * modules/crypto/gc-hmac-md5: Moved from ../.
51597         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
51598         * modules/crypto/gc-hmac-sha1: Moved from ../.
51599         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
51600         * modules/crypto/gc-md2: Moved from ../.
51601         * modules/crypto/gc-md2-tests: Moved from ../.
51602         * modules/crypto/gc-md4: Moved from ../.
51603         * modules/crypto/gc-md4-tests: Moved from ../.
51604         * modules/crypto/gc-md5: Moved from ../.
51605         * modules/crypto/gc-md5-tests: Moved from ../.
51606         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
51607         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
51608         * modules/crypto/gc-random: Moved from ../.
51609         * modules/crypto/gc-rijndael: Moved from ../.
51610         * modules/crypto/gc-rijndael-tests: Moved from ../.
51611         * modules/crypto/gc-sha1: Moved from ../.
51612         * modules/crypto/gc-sha1-tests: Moved from ../.
51613         * modules/crypto/gc-tests: Moved from ../.
51614         * modules/crypto/hmac-md5: Moved from ../.
51615         * modules/crypto/hmac-md5-tests: Moved from ../.
51616         * modules/crypto/hmac-sha1: Moved from ../.
51617         * modules/crypto/hmac-sha1-tests: Moved from ../.
51618         * modules/crypto/md2: Moved from ../.
51619         * modules/crypto/md2-tests: Moved from ../.
51620         * modules/crypto/md4: Moved from ../.
51621         * modules/crypto/md4-tests: Moved from ../.
51622         * modules/crypto/md5: Moved from ../.
51623         * modules/crypto/md5-tests: Moved from ../.
51624         * modules/crypto/memxor: Moved from ../.
51625         * modules/crypto/rijndael: Moved from ../.
51626         * modules/crypto/rijndael-tests: Moved from ../.
51627         * modules/crypto/sha1: Moved from ../.
51628
51629 2007-03-30  James Youngman  <jay@gnu.org>
51630
51631         * tests/test-stat-time.c (prepare_test): use chmod() rather than
51632         rename() to change the ctime of a file (because ctime is unaffected
51633         by rename on jfs2 on AIX 5.1).
51634         (main): Start by doing cleanup, in case a previous run failed leaving
51635         test files behind.
51636
51637 2007-03-31  Bruno Haible  <bruno@clisp.org>
51638
51639         Support old proprietary implementations of iconv.
51640         * modules/iconv_open: New file.
51641         * lib/iconv_.h: New file.
51642         * m4/iconv_h.m4: New file.
51643         * lib/iconv_open.c: New file.
51644         * lib/iconv_open-aix.gperf: New file.
51645         * lib/iconv_open-hpux.gperf: New file.
51646         * lib/iconv_open-irix.gperf: New file.
51647         * lib/iconv_open-osf.gperf: New file.
51648         * m4/iconv_open.m4: New file.
51649         * modules/linebreak (Depends-on): Add iconv_open.
51650         * modules/striconv (Depends-on): Likewise.
51651         * modules/striconveh (Depends-on): Likewise.
51652         * modules/unicodeio (Depends-on): Likewise.
51653         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
51654         (iconv_t)(-1).
51655         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
51656         conversion if cd is (iconv_t)(-1).
51657         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
51658         is not possible.
51659
51660 2007-03-31  Bruno Haible  <bruno@clisp.org>
51661
51662         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51663         work on Solaris either. Protect also second use of "autodetect_jp".
51664
51665 2007-03-31  Bruno Haible  <bruno@clisp.org>
51666
51667         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
51668         the function is not present.
51669
51670 2007-03-31  Bruno Haible  <bruno@clisp.org>
51671
51672         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
51673         the function is not present.
51674
51675 2007-03-31  Bruno Haible  <bruno@clisp.org>
51676
51677         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
51678         a bug in HP-UX iconv_open().
51679
51680 2007-03-31  Bruno Haible  <bruno@clisp.org>
51681
51682         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
51683         (Mathematics <math.h>): New section, add fpieee.
51684         (Input/output <stdio.h>): Add fseterr.
51685         (Mathematics <math.h>): New section, add printf-frexp.
51686         (Container data structures): Add sublist.
51687         (Core language properties): Add fpucw, inline.
51688         (Functions for greatest-width integer types <inttypes.h>): Add
51689         imaxabs, imaxdiv, inttypes.
51690         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
51691         isnanl-nolibm, ldexp.
51692         (Mathematics <math.h>): New section, add printf-frexpl.
51693         (Support for systems lacking POSIX:2001): Add fprintf-posix,
51694         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
51695         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
51696         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
51697         (Unicode string functions): Add unistr/u*-mbtoucr.
51698         (Java): Add javacomp-script, javaexec-script.
51699         (C#): Add csharpcomp-script, csharpexec-script.
51700         (Support for building libraries and executables): Add havelib,
51701         relocatable-*.
51702         (Support for maintaining and releasing projects): Renamed from
51703         'Support for maintaining and release projects'. Add announce-gen.
51704
51705 2007-03-31  Bruno Haible  <bruno@clisp.org>
51706
51707         * README: Talk primarily about git.
51708         (git and CVS): Renamed from CVS.
51709         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
51710         gnulib is available through git.
51711         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
51712
51713 2007-03-30  Bruno Haible  <bruno@clisp.org>
51714
51715         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
51716         * lib/poll_.h: Likewise.
51717         * lib/stat_.h: Likewise.
51718         * lib/sys_time_.h: Likewise.
51719         * lib/sysexit_.h: Likewise.
51720         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
51721         * lib/stdbool_.h: Likewise.
51722         * lib/byteswap_.h: Add double-inclusion guard.
51723
51724 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
51725
51726         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
51727
51728 2007-03-30  Karl Berry  <karl@gnu.org>
51729
51730         * config/srclist-update: double space after USA in the license
51731         substitution, since that's how it's usually (?) written.
51732
51733 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51734
51735         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
51736         reported by Bruno Haible.
51737
51738 2007-03-29  Bruno Haible  <bruno@clisp.org>
51739
51740         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
51741         a bug in AIX iconv().
51742
51743 2007-03-29  Bruno Haible  <bruno@clisp.org>
51744
51745         * modules/ldexpl-tests: New file.
51746         * tests/test-ldexpl.c: New file.
51747
51748 2007-03-29  Bruno Haible  <bruno@clisp.org>
51749
51750         * lib/ldexpl.c: Include fpucw.h.
51751         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
51752         multiplication.
51753         * modules/ldexpl (Depends-on): Add fpucw.
51754
51755 2007-03-29  Bruno Haible  <bruno@clisp.org>
51756
51757         * modules/ldexpl: New file.
51758         * m4/ldexpl.m4: New file.
51759         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
51760         set.
51761         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
51762         REPLACE_LDEXPL.
51763         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
51764         REPLACE_LDEXPL.
51765         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51766         gl_FUNC_LDEXPL_WORKS.
51767         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
51768         * modules/mathl (Files): Remove lib/ldexpl.c.
51769         (Depends-on): Add ldexpl.
51770
51771 2007-03-29  Bruno Haible  <bruno@clisp.org>
51772
51773         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
51774
51775 2007-03-29  Bruno Haible  <bruno@clisp.org>
51776
51777         * tests/test-striconveh.c (main): Don't assume that a direct conversion
51778         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
51779         and possibly also HP-UX.
51780         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51781         work on AIX, IRIX, HP-UX, OSF/1.
51782         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
51783         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
51784         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
51785         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
51786         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
51787         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
51788
51789 2007-03-29  Bruno Haible  <bruno@clisp.org>
51790
51791         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
51792
51793 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51794
51795         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
51796         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
51797
51798 2007-03-29  Eric Blake  <ebb9@byu.net>
51799
51800         * lib/acl-internal.h: Remove redundant include.
51801         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
51802         Cygwin when a file is locked.
51803
51804 2007-03-29  Bruno Haible  <bruno@clisp.org>
51805
51806         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
51807         file.
51808         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
51809
51810 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51811
51812         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
51813         try to remove a parent directory if the child couldn't be removed
51814         (except for the first rmdir, which could fail because the child
51815         doesn't exist).  Problem reported by Jeff Blaine in
51816         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
51817
51818 2007-03-28  Bruno Haible  <bruno@clisp.org>
51819
51820         * lib/striconveh.c (utf8conv_carefully): New function.
51821         (mem_cd_iconveh_internal): Invoke it.
51822
51823 2007-03-28  Bruno Haible  <bruno@clisp.org>
51824
51825         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
51826         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
51827         input.
51828         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
51829         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
51830         unistr/u8-uctomb.
51831
51832 2007-03-28  Bruno Haible  <bruno@clisp.org>
51833
51834         * modules/unistr/u8-mbtoucr: New file.
51835         * lib/unistr/u8-mbtoucr.c: New file.
51836         * modules/unistr/u16-mbtoucr: New file.
51837         * lib/unistr/u16-mbtoucr.c: New file.
51838         * modules/unistr/u16-mbtoucr: New file.
51839         * lib/unistr/u16-mbtoucr.c: New file.
51840         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
51841
51842 2007-03-27  Simon Josefsson  <simon@josefsson.org>
51843             Bruno Haible  <bruno@clisp.org>
51844
51845         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
51846         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
51847         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
51848
51849         * m4/stdio_h.m4: Add stubs for vasprintf too.
51850
51851         * modules/stdio: Support vasprintf in sed command.
51852
51853         * modules/vasprintf: Depend on stdio for prototypes.  Remove
51854         vasprintf.h.  Add stdio module indicator.
51855
51856         * lib/stdio_.h: Declare asprintf and vasprintf, based on
51857         vasprintf.h.
51858
51859         * lib/vasprintf.h: File removed.
51860
51861         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
51862         * lib/vasprintf.c: Ditto.
51863         * lib/xvasprintf.c: Ditto.
51864         * tests/test-vasprintf-posix.c: Ditto.
51865         * tests/test-vasprintf.c: Ditto.
51866
51867 2007-03-27  Bruno Haible  <bruno@clisp.org>
51868
51869         Make vasnprintf multithread-safe.
51870         * lib/vasnprintf.c (decimal_point_char): New function.
51871         (VASNPRINTF): Use it.
51872         Suggested by Simon Josefsson.
51873
51874 2007-03-27  Eric Blake  <ebb9@byu.net>
51875
51876         Support sub-second birthtime on cygwin.
51877         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
51878         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
51879         (get_stat_birthtime): Also work with st_birthtim.
51880
51881 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
51882
51883         * lib/stat-time.h (USE_BIRTHTIME): Remove.
51884         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
51885         (get_stat_birthtime_ns): Do not try to use "spare" fields.
51886         (get_stat_birthtime_ns): Simplify compile-time tests.
51887         (get_stat_birthtime): Change the API to look like
51888         get_stat_mtime etc., except return a negative tv_nsec on error.
51889         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
51890         Don't check for "spare" fields.
51891         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
51892         or for struct stat.st_birthtime, as these tests aren't used.
51893         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
51894
51895 2007-03-27  Bruno Haible  <bruno@clisp.org>
51896
51897         * lib/stat-time.h: Include <sys/stat.h>.
51898
51899 2007-03-27  James Youngman  <jay@gnu.org>
51900
51901         * lib/stat-time.h (get_stat_birthtime): New function for
51902           retrieving st_birthtime as provided by UFS2 (hence *BSD).
51903         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
51904           and its variants.
51905         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
51906         * modules/stat-time-test: New file.
51907         * tests/test-stat-time.c: New test, devised by Bruno Haible.
51908
51909 2007-03-26  Bruno Haible  <bruno@clisp.org>
51910
51911         Better support of signalling NaNs.
51912         * lib/atanl.c: Include isnanl.h.
51913         (atanl): Perform test for NaN at the beginning of the function and
51914         through a call to isnanl.
51915         * lib/cosl.c: Include isnanl.h.
51916         (cosl): Perform test for NaN at the beginning of the function and
51917         through a call to isnanl.
51918         * lib/ldexpl.c: Include isnanl.h.
51919         (ldexpl): Perform test for NaN through a call to isnanl.
51920         * lib/logl.c: Include isnanl.h.
51921         (logl): Perform test for NaN at the beginning of the function and
51922         through a call to isnanl.
51923         * lib/sinl.c: Include isnanl.h.
51924         (sinl): Perform test for NaN at the beginning of the function and
51925         through a call to isnanl.
51926         * lib/sqrtl.c: Include isnanl.h.
51927         (sqrtl): Perform test for NaN at the beginning of the function and
51928         through a call to isnanl.
51929         * lib/tanl.c: Include isnanl.h.
51930         (tanl): Perform test for NaN at the beginning of the function and
51931         through a call to isnanl.
51932         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
51933         * modules/mathl (Depends-on): Add isnanl.
51934
51935 2007-03-26  Eric Blake  <ebb9@byu.net>
51936
51937         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
51938         regression in logic sense of previous patch.
51939
51940 2007-03-26  Bruno Haible  <bruno@clisp.org>
51941
51942         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
51943         unportable shell command "if ! ...".
51944         Reported by Ralf Wildenhues.
51945
51946 2007-03-25  Bruno Haible  <bruno@clisp.org>
51947
51948         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
51949         <sysexits.h> file, and only add EX_CONFIG.
51950         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
51951         absolute file name and whether it is sufficient. Substitute also
51952         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
51953         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
51954         ABSOLUTE_SYSEXITS_H into sysexits.h.
51955
51956 2007-03-25  Bruno Haible  <bruno@clisp.org>
51957
51958         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
51959         hints is NULL.
51960
51961 2007-03-25  Bruno Haible  <bruno@clisp.org>
51962
51963         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
51964         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
51965
51966 2007-03-25  Bruno Haible  <bruno@clisp.org>
51967
51968         * lib/vasnprintf.c: Include langinfo.h.
51969         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
51970         multithread-safe.
51971         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
51972         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
51973         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51974         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51975         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51976         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51977         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51978         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
51979         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51980         Reported by Simon Josefsson.
51981
51982 2007-03-25  Bruno Haible  <bruno@clisp.org>
51983
51984         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
51985         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
51986         * modules/vasnprintf (Depends-on): Add stdint.
51987
51988 2007-03-25  Bruno Haible  <bruno@clisp.org>
51989
51990         * modules/fpieee: New file.
51991         * m4/fpieee.m4: New file.
51992         * modules/isnan-nolibm (Depends-on): Add fpieee.
51993         * modules/isnanl-nolibm (Depends-on): Add fpieee.
51994         * modules/isnanl (Depends-on): Add fpieee.
51995
51996 2007-03-25  Bruno Haible  <bruno@clisp.org>
51997
51998         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
51999
52000 2007-03-25  Bruno Haible  <bruno@clisp.org>
52001
52002         Avoid test failures on IRIX 6.5.
52003         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
52004         (main): Use it.
52005         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
52006         macros.
52007         (main): Use them.
52008
52009 2007-03-25  Bruno Haible  <bruno@clisp.org>
52010
52011         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
52012         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
52013         exists but doesn't work.
52014         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
52015         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
52016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
52017         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
52018         math.h.
52019
52020 2007-03-25  Bruno Haible  <bruno@clisp.org>
52021
52022         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
52023         returns inf. Needed on IRIX 6.5.
52024
52025 2007-03-25  Bruno Haible  <bruno@clisp.org>
52026
52027         * tests/test-frexpl.c: Include isnanl-nolibm.h.
52028         (main): Use isnanl instead of x != x idiom.
52029         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
52030
52031         * tests/test-frexp.c: Include isnan.h.
52032         (main): Use isnan instead of x != x idiom.
52033         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
52034
52035 2007-03-25  Bruno Haible  <bruno@clisp.org>
52036
52037         * tests/test-frexp.c (NaN): New function/macro.
52038         (main): Use it instead of 0.0 / 0.0.
52039         * tests/test-isnan.c (NaN): New function/macro.
52040         (main): Use it instead of 0.0 / 0.0.
52041         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
52042         (test_function): Use it instead of 0.0 / 0.0.
52043         * tests/test-vasprintf-posix.c (NaN): New function/macro.
52044         (test_function): Use it instead of 0.0 / 0.0.
52045         * tests/test-snprintf-posix.h (NaN): New function/macro.
52046         (test_function): Use it instead of 0.0 / 0.0.
52047         * tests/test-sprintf-posix.h (NaN): New function/macro.
52048         (test_function): Use it instead of 0.0 / 0.0.
52049         * tests/test-fprintf-posix.h (NaN): New function/macro.
52050         (test_function): Use it instead of 0.0 / 0.0.
52051         * tests/test-printf-posix.h (NaN): New function/macro.
52052         (test_function): Use it instead of 0.0 / 0.0.
52053
52054         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
52055
52056 2007-03-25  Bruno Haible  <bruno@clisp.org>
52057
52058         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
52059
52060 2007-03-25  Bruno Haible  <bruno@clisp.org>
52061
52062         * lib/regexec.c (merge_state_with_log): Make static.
52063
52064 2007-03-25  Bruno Haible  <bruno@clisp.org>
52065
52066         * lib/trigl.c (kernel_rem_pio2): Make static.
52067
52068 2007-03-25  Bruno Haible  <bruno@clisp.org>
52069
52070         * lib/sincosl.c (sincosl_table): Make static.
52071
52072 2007-03-25  Bruno Haible  <bruno@clisp.org>
52073
52074         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
52075         if the compiler does not support C99.
52076
52077 2007-03-25  Bruno Haible  <bruno@clisp.org>
52078
52079         * modules/time (Makefile.am): Ensure all rule action lines start with a
52080         tab.
52081
52082 2007-03-24  Bruno Haible  <bruno@clisp.org>
52083
52084         * modules/tsearch-tests: New file.
52085         * tests/test-tsearch.sh: New file.
52086         * tests/test-tsearch.c: New file, mostly copied from glibc.
52087
52088         * modules/search-tests: New file.
52089         * tests/test-search.c: New file.
52090
52091         * modules/search: New file.
52092         * lib/search_.h: New file, incorporating lib/tsearch.h.
52093         * m4/search_h.m4: New file.
52094         * lib/tsearch.h: Remove file.
52095         * lib/tsearch.c: Include search.h instead of tsearch.h.
52096         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
52097         HAVE_TSEARCH.
52098         * modules/tsearch (Files): Remove lib/tsearch.h.
52099         (Depends-on): Add search.
52100         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
52101         (Include): Change tsearch.h into search.h.
52102
52103 2007-03-24  Bruno Haible  <bruno@clisp.org>
52104
52105         * modules/fpucw: New file.
52106         * lib/fpucw.h: New file.
52107         * lib/frexp.c: Include fpucw.h.
52108         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52109         (FUNC): Use them.
52110         * lib/printf-frexp.c: Include fpucw.h.
52111         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52112         (FUNC): Use them.
52113         * lib/vasnprintf.c: Include fpucw.h.
52114         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
52115         'long double' calculations.
52116         * tests/test-frexpl.c: Include fpucw.h.
52117         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52118         * tests/test-printf-frexpl.c: Include fpucw.h.
52119         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52120         * modules/frexpl (Depends-on): Add fpucw.
52121         * modules/printf-frexpl (Depends-on): Likewise.
52122         * modules/fprintf-posix (Depends-on): Likewise.
52123         * modules/snprintf-posix (Depends-on): Likewise.
52124         * modules/sprintf-posix (Depends-on): Likewise.
52125         * modules/vasnprintf-posix (Depends-on): Likewise.
52126         * modules/vasprintf-posix (Depends-on): Likewise.
52127         * modules/vfprintf-posix (Depends-on): Likewise.
52128         * modules/vsnprintf-posix (Depends-on): Likewise.
52129         * modules/vsprintf-posix (Depends-on): Likewise.
52130         * modules/frexpl-tests (Depends-on): Likewise.
52131         * modules/printf-frexpl-tests (Depends-on): Likewise.
52132
52133 2007-03-24  Bruno Haible  <bruno@clisp.org>
52134
52135         * lib/float+.h: New file.
52136         * lib/isnan.c: Include float+.h.
52137         (SIZE): New macro.
52138         (FUNC): Compare only SIZE bytes of the value.
52139         * lib/vasnprintf.c: Include float+.h.
52140         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
52141         SIZEOF_LDBL or SIZEOF_DBL bytes.
52142         * modules/isnan-nolibm (Files): Add lib/float+.h.
52143         * modules/isnanl-nolibm (Files): Add lib/float+.h.
52144         * modules/isnanl (Files): Add lib/float+.h.
52145         * modules/vasnprintf (Files): Add lib/float+.h.
52146
52147 2007-03-24  Bruno Haible  <bruno@clisp.org>
52148
52149         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
52150         include isnanl-nolibm.h.
52151
52152 2007-03-24  Bruno Haible  <bruno@clisp.org>
52153
52154         * tests/test-read-file.c (main): Don't produce spurious output for
52155         expected situations. Make the test fail if it encountered unexpected
52156         results.
52157
52158 2007-03-24  Bruno Haible  <bruno@clisp.org>
52159
52160         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
52161         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
52162
52163 2007-03-24  Bruno Haible  <bruno@clisp.org>
52164
52165         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
52166
52167 2007-03-24  Bruno Haible  <bruno@clisp.org>
52168
52169         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
52170         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
52171
52172         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
52173         * modules/utf8-ucs4: Turn into a symbolic link to module
52174         unistr/u8-mbtouc.
52175
52176         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
52177         utf8-ucs4-unsafe.
52178         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
52179         unistr/u8-mbtouc-unsafe.
52180
52181         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
52182         * modules/utf16-ucs4: Turn into a symbolic link to module
52183         unistr/u16-mbtouc.
52184
52185         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
52186         utf16-ucs4-unsafe.
52187         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
52188         unistr/u16-mbtouc-unsafe.
52189
52190         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
52191         * modules/ucs4-utf8: Turn into a symbolic link to module
52192         unistr/u8-ubtomb.
52193
52194         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52195         * modules/ucs4-utf16: Turn into a symbolic link to module
52196         unistr/u16-ubtomb.
52197
52198 2007-03-24  Bruno Haible  <bruno@clisp.org>
52199
52200         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52201         Enable the function only if HAVE_INLINE.
52202         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52203         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52204         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52205         Enable the function only if HAVE_INLINE.
52206         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52207         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52208         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52209         Enable the function only if HAVE_INLINE.
52210         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52211         Enable the function only if HAVE_INLINE.
52212         * modules/utf8-ucs4: Update.
52213         * modules/utf8-ucs4-unsafe: Update.
52214         * modules/utf16-ucs4: Update.
52215         * modules/utf16-ucs4-unsafe: Update.
52216         * modules/ucs4-utf8: Update.
52217         * modules/ucs4-utf16: Update.
52218
52219 2007-03-24  Bruno Haible  <bruno@clisp.org>
52220
52221         * lib/utf8-ucs4.h: Remove file.
52222         * lib/utf8-ucs4-unsafe.h: Remove file.
52223         * lib/utf16-ucs4.h: Remove file.
52224         * lib/utf16-ucs4-unsafe.h: Remove file.
52225         * lib/ucs4-utf8.h: Remove file.
52226         * lib/ucs4-utf16.h: Remove file.
52227         * lib/unistr.h: Include their previous contents.
52228         * m4/utf-ucs4.m4: Remove file.
52229         * m4/ucs4-utf.m4: Remove file.
52230         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
52231         (Depends-on): Add unistr/base.
52232         (configure.ac): Remove gl_UTF_UCS4.
52233         (Makefile.am): Update.
52234         (Include): Change to unistr.h.
52235         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
52236         (Depends-on): Add unistr/base.
52237         (configure.ac): Remove gl_UTF_UCS4.
52238         (Makefile.am): Update.
52239         (Include): Change to unistr.h.
52240         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52241         (Depends-on): Add unistr/base.
52242         (configure.ac): Remove gl_UTF_UCS4.
52243         (Makefile.am): Update.
52244         (Include): Change to unistr.h.
52245         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52246         (Depends-on): Add unistr/base.
52247         (configure.ac): Remove gl_UTF_UCS4.
52248         (Makefile.am): Update.
52249         (Include): Change to unistr.h.
52250         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52251         (Depends-on): Add unistr/base.
52252         (configure.ac): Remove gl_UCS4_UTF.
52253         (Makefile.am): Update.
52254         (Include): Change to unistr.h.
52255         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52256         (Depends-on): Add unistr/base.
52257         (configure.ac): Remove gl_UCS4_UTF.
52258         (Makefile.am): Update.
52259         (Include): Change to unistr.h.
52260         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52261         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52262         utf8-ucs4-unsafe.h.
52263         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
52264         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
52265         utf16-ucs4-unsafe.h.
52266         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
52267         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
52268         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
52269         * lib/unistr/u8-strchr.c: Likewise.
52270         * lib/unistr/u8-strrchr.c: Likewise.
52271         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
52272         * lib/unistr/u16-strchr.c: Likewise.
52273         * lib/unistr/u16-strrchr.c: Likewise.
52274         * lib/striconveh.c: Update.
52275         * lib/linebreak.c: Update.
52276
52277 2007-03-24  Bruno Haible  <bruno@clisp.org>
52278
52279         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
52280         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
52281
52282 2007-03-22  Bruno Haible  <bruno@clisp.org>
52283
52284         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
52285
52286 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52287
52288         * MODULES.html.sh (File system functions): New module write-any-file.
52289         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
52290         * m4/write-any-file.m4: New files.
52291
52292 2007-03-23  Eric Blake  <ebb9@byu.net>
52293
52294         * gnulib-tool: Rearrange space-tab sequences, since some editors
52295         like to eat them.
52296
52297 2007-03-23  Eric Blake  <ebb9@byu.net>
52298
52299         * lib/version-etc.c (version_etc_va): Update license wording to
52300         be more concise.  Recommended by Richard Stallman.
52301
52302 2007-03-22  Bruno Haible  <bruno@clisp.org>
52303
52304         * lib/poll.c (MSG_PEEK): New fallback definition.
52305
52306 2007-03-22  Bruno Haible  <bruno@clisp.org>
52307
52308         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
52309         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
52310         (main): Update.
52311         Fixes a compilation error on BeOS.
52312
52313 2007-03-22  Bruno Haible  <bruno@clisp.org>
52314
52315         * modules/frexpl-tests: New file.
52316         * tests/test-frexpl.c: New file.
52317
52318         * modules/frexpl: New file.
52319         * m4/frexpl.m4: New file.
52320         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52321         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52322         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52323         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52324         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52325         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52326
52327 2007-03-22  Bruno Haible  <bruno@clisp.org>
52328
52329         * lib/frexpl.c: Share code with lib/frexp.c.
52330         * modules/mathl (Files): Add lib/frexp.c.
52331         (Depends-on): Add isnanl-nolibm.
52332
52333 2007-03-22  Bruno Haible  <bruno@clisp.org>
52334
52335         * modules/printf-frexp (Files): Add m4/frexp.m4.
52336         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52337         only if the found frexp function actually works.
52338
52339 2007-03-22  Bruno Haible  <bruno@clisp.org>
52340
52341         * lib/frexp.c: Remove older implementation that uses divisions.
52342
52343 2007-03-21  Bruno Haible  <bruno@clisp.org>
52344
52345         * modules/frexp-tests: New file.
52346         * tests/test-frexp.c: New file.
52347
52348         * modules/frexp: New file.
52349         * lib/frexp.c: New file.
52350         * m4/frexp.m4: New file.
52351         * lib/math_.h (frexp): New declaration.
52352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52353         REPLACE_FREXP.
52354         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52355
52356 2007-03-21  Bruno Haible  <bruno@clisp.org>
52357
52358         * modules/isnanl-tests: New file.
52359         * tests/test-isnanl.c: New file.
52360
52361         * modules/isnanl: New file.
52362         * lib/isnanl.h: New file.
52363         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52364         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52365         gl_FUNC_ISNANL_WORKS.
52366         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52367         New macros.
52368
52369 2007-03-21  Bruno Haible  <bruno@clisp.org>
52370
52371         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52372         lib/isnanl.h.
52373         (Include): Update.
52374         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52375         * lib/vasnprintf.c: Update.
52376         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52377         tests/test-isnanl.h, remove tests/test-isnanl.c.
52378         (Makefile.am): Update.
52379         * tests/test-isnanl-nolibm.c: New file.
52380         * tests/test-isnanl.h: New file.
52381         * tests/test-isnanl.c: Remove file.
52382
52383 2007-03-21  Jim Meyering  <jim@meyering.net>
52384
52385         When trying to open ".", treat ESTALE like EACCES.
52386         * lib/savewd.c (savewd_save): Resort to forking not just upon
52387         failure with EACCES, but also when errno is ESTALE.
52388
52389 2007-03-20  Bruno Haible  <bruno@clisp.org>
52390
52391         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52392         Needed on AIX 5.1. Reported by Matthew Woehlke.
52393
52394 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52395
52396         Suggestions by Bruno Haible:
52397         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52398         our own.
52399         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52400         * modules/acl (Depends-on): Add gettext.
52401
52402 2007-03-19  Bruno Haible  <bruno@clisp.org>
52403
52404         * modules/iconvme: Remove file.
52405         * lib/iconvme.h: Remove file.
52406         * lib/iconvme.c: Remove file.
52407         * m4/iconvme.m4: Remove file.
52408
52409 2007-03-19  Bruno Haible  <bruno@clisp.org>
52410
52411         * doc/relocatable-maint.texi: Break long shell script line.
52412         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52413
52414 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52415
52416         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52417         handle file_has_acl.
52418         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52419         * lib/acl.c: Move header inclusions and related macro defns into
52420         lib/acl-internal.h.
52421         (S_ISLNK): Remove defn, since that's now done for us.
52422         (file_has_acl): Move to lib/file-has-acl.c.
52423         Call acl_trivial if available.  This is the crucial part of the fix.
52424         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52425         shared within the library.  Rewrite a bit, partly to make it compatible
52426         with the GNU coding style.
52427         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52428         Remove unnecessary double-quotes.
52429         Don't test for acl_to_text; the build will catch that.
52430         Replace acl_entries if it doesn't exist and it is needed.
52431         Check for -lsec and acl_trivial (as used on Solaris 10).
52432         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52433         lib/file-has-acl.c.
52434         (Depends-on): Add sys_stat, for S_ISLNK.
52435
52436 2007-03-19  Ben Pfaff  <blp@gnu.org>
52437
52438         * doc/gnulib.texi: Fix typos.
52439         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52440
52441 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52442
52443         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52444         If size is zero here, buf must be zero.
52445
52446 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52447
52448         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52449         <bruno@clisp.org>.
52450
52451 2007-03-18  Bruno Haible  <bruno@clisp.org>
52452
52453         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52454         Suggested by Eric Blake.
52455
52456 2007-03-18  Ben Pfaff  <blp@gnu.org>
52457
52458         * doc/relocatable.texi: Recommend using as prefix a directory
52459         that does not exist and will never be created.  Based on
52460         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52461         and others.
52462
52463 2007-03-17  Bruno Haible  <bruno@clisp.org>
52464
52465         * lib/fchownat.c: Include lchown.h.
52466
52467 2007-03-17  Bruno Haible  <bruno@clisp.org>
52468
52469         Fix endless loop when the given allocated size was > INT_MAX.
52470         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52471         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52472         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52473         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
52474         * lib/sprintf.c (sprintf): Likewise.
52475
52476 2007-03-17  Bruno Haible  <bruno@clisp.org>
52477
52478         * tests/test-argp-2.sh (func_compare): Output a context diff.
52479
52480 2007-03-17  Bruno Haible  <bruno@clisp.org>
52481
52482         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
52483         locale's decimal-point character.
52484
52485 2007-03-17  Bruno Haible  <bruno@clisp.org>
52486
52487         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
52488         before comparing it. Needed because on some platforms (e.g. x86) a
52489         'long double' occupies less bytes than sizeof (long double).
52490
52491 2007-03-17  Bruno Haible  <bruno@clisp.org>
52492
52493         * tests/test-crc.c (main): Make printf statements 64-bit clean.
52494         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
52495         * tests/test-getaddrinfo.c (simple): Likewise.
52496         * tests/test-read-file.c (main): Likewise.
52497
52498 2007-03-17  Bruno Haible  <bruno@clisp.org>
52499
52500         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
52501
52502 2007-03-17  Bruno Haible  <bruno@clisp.org>
52503
52504         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
52505         unused variable.
52506
52507 2007-03-17  Bruno Haible  <bruno@clisp.org>
52508
52509         * tests/test-c-strcasecmp.c: Include c-strcase.h.
52510         * tests/test-c-strncasecmp.c: Likewise.
52511
52512 2007-03-17  Bruno Haible  <bruno@clisp.org>
52513
52514         * modules/stdlib (Depends-on): Add unistd.
52515         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
52516         Needed for MacOS X 10.3.
52517
52518 2007-03-17  Bruno Haible  <bruno@clisp.org>
52519
52520         * lib/unistr/u-strdup.h: Include <stdlib.h>.
52521
52522 2007-03-17  Bruno Haible  <bruno@clisp.org>
52523
52524         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
52525
52526 2007-03-17  Bruno Haible  <bruno@clisp.org>
52527
52528         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
52529         to reflect files copied from gnulib (with or without modifications).
52530         Suggested by Jim Meyering.
52531
52532 2007-03-17  Eric Blake  <ebb9@byu.net>
52533
52534         * NEWS: Document stdlib change from 2007-02-18.
52535
52536 2007-03-17  Jim Meyering  <jim@meyering.net>
52537
52538         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
52539         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
52540         someone uses a name containing shell meta-characters.
52541         Reported by Alfred M. Szmidt.
52542
52543         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
52544
52545 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52546
52547         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
52548         and copy gettext configuration files only if configure.ac contains
52549         a use of AM_GNU_GETTEXT_VERSION.
52550
52551 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52552
52553         * build-aux/bootstrap (gnulib_name): New variable.
52554         (gnulib_tool_options): Use it.
52555
52556 2007-03-13  Simon Josefsson  <simon@josefsson.org>
52557
52558         * tests/test-des.c: Use new namespace.
52559
52560 2007-03-15  Bruno Haible  <bruno@clisp.org>
52561
52562         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
52563         Reported by James Youngman <jay@gnu.org>.
52564
52565 2007-03-15  Bruno Haible  <bruno@clisp.org>
52566
52567         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
52568         declared prototype. Needed with cc on OSF/1 5.1.
52569
52570 2007-03-15  Bruno Haible  <bruno@clisp.org>
52571
52572         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
52573         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
52574         (struct gl_list_implementation): Add dispose_fn argument to the
52575         'create_empty', 'create' methods.
52576         (struct gl_list_impl_base): Add field 'dispose_fn'.
52577         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
52578         argument.
52579         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
52580         dispose_fn argument.
52581         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
52582         dispose_fn on the dropped values.
52583         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
52584         dispose_fn argument.
52585         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
52586         dropped values.
52587         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
52588         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52589         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
52590         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52591         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
52592         argument.
52593         (gl_tree_list_free): Call dispose_fn on the dropped values.
52594         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
52595         the dropped values.
52596         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52597         Add dispose_fn argument.
52598         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
52599         Call dispose_fn on the dropped values.
52600         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
52601         Add dispose_fn argument.
52602         (gl_sublist_create): Initialize the 'dispose_fn' field.
52603         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
52604         * tests/test-array_list.c (main): Update.
52605         * tests/test-carray_list.c (main): Update.
52606         * tests/test-avltree_list.c (main): Update.
52607         * tests/test-rbtree_list.c (main): Update.
52608         * tests/test-avltreehash_list.c (main): Update.
52609         * tests/test-rbtreehash_list.c (main): Update.
52610         * tests/test-linked_list.c (main): Update.
52611         * tests/test-linkedhash_list.c (main): Update.
52612         * tests/test-array_oset.c (main): Update.
52613
52614 2007-03-15  Bruno Haible  <bruno@clisp.org>
52615
52616         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
52617         (gl_oset_create_empty): Add dispose_fn argument.
52618         (struct gl_oset_implementation): Add dispose_fn argument to
52619         'create_empty' method.
52620         (struct gl_oset_impl_base): Add dispose_fn field.
52621         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
52622         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
52623         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
52624         values.
52625         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
52626         (gl_tree_oset_free): Call dispose_fn on the dropped values.
52627         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52628         dropped value.
52629         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52630         dropped value.
52631         * tests/test-array_oset.c (main): Update.
52632         * tests/test-avltree_oset.c (main): Update.
52633         * tests/test-rbtree_oset.c (main): Update.
52634         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
52635
52636 2007-03-13  Bruno Haible  <bruno@clisp.org>
52637
52638         * tests/test-stdbool.c (i): Update after last patch.
52639
52640 2007-03-12  Bruno Haible  <bruno@clisp.org>
52641
52642         * lib/quotearg.c: Include <wctype.h> early, before the definition of
52643         the iswprint macro. Needed on Solaris 2.5.1.
52644
52645 2007-03-12  Bruno Haible  <bruno@clisp.org>
52646
52647         * tests/test-printf-frexp.c (main): Declare x as volatile.
52648
52649 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52650
52651         * doc/gnulib.texi (Build robot for gnulib): New section.
52652
52653 2007-03-12  Jim Meyering  <jim@meyering.net>
52654
52655         * build-aux/bootstrap: New file.
52656         * build-aux/bootstrap.conf: New file, from coreutils.
52657
52658 2007-03-11  Bruno Haible  <bruno@clisp.org>
52659
52660         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
52661
52662 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52663
52664         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
52665         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
52666         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
52667
52668 2007-03-11  Bruno Haible  <bruno@clisp.org>
52669
52670         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
52671         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
52672
52673 2007-03-11  Bruno Haible  <bruno@clisp.org>
52674
52675         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
52676         formula. Needed for SunPRO C 5.0.
52677
52678 2007-03-11  Bruno Haible  <bruno@clisp.org>
52679
52680         * modules/long-options (Depends-on): Add getopt.
52681
52682 2007-03-11  Bruno Haible  <bruno@clisp.org>
52683
52684         * modules/modechange (Depends-on): Add stdbool.
52685
52686 2007-03-11  Bruno Haible  <bruno@clisp.org>
52687
52688         * modules/i-ring (Depends-on): Add stdbool.
52689
52690 2007-03-11  Bruno Haible  <bruno@clisp.org>
52691
52692         * modules/gc-des (Depends-on): Add stdbool.
52693
52694 2007-03-11  Bruno Haible  <bruno@clisp.org>
52695
52696         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
52697
52698 2007-03-11  Bruno Haible  <bruno@clisp.org>
52699
52700         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
52701
52702 2007-03-11  Bruno Haible  <bruno@clisp.org>
52703
52704         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
52705
52706 2007-03-11  Bruno Haible  <bruno@clisp.org>
52707
52708         * lib/vasnprintf.c (sprintf): Undefine.
52709
52710 2007-03-11  Bruno Haible  <bruno@clisp.org>
52711
52712         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
52713         initializers in SunPRO C and Compaq C compilers.
52714
52715 2007-03-11  Bruno Haible  <bruno@clisp.org>
52716
52717         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
52718         decrementing code ANSI C compliant.
52719
52720 2007-03-11  Bruno Haible  <bruno@clisp.org>
52721
52722         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
52723         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
52724
52725 2007-03-11  Bruno Haible  <bruno@clisp.org>
52726
52727         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
52728         <stdbool.h> substitute doesn't pass.
52729
52730 2007-03-11  Bruno Haible  <bruno@clisp.org>
52731
52732         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
52733
52734 2007-03-11  Bruno Haible  <bruno@clisp.org>
52735
52736         * gnulib-tool (func_create_megatestdir): Create also an autobuild
52737         script, for submission to autobuild.josefsson.org.
52738
52739 2007-03-10  Bruno Haible  <bruno@clisp.org>
52740
52741         * modules/canonicalize-lgpl-tests: New file.
52742         * tests/test-canonicalize-lgpl.sh: New file.
52743         * tests/test-canonicalize-lgpl.c: New file.
52744
52745         * modules/c-strcase-tests: New file.
52746         * tests/test-c-strcase.sh: New file.
52747         * tests/test-c-strcasecmp.c: New file.
52748         * tests/test-c-strncasecmp.c: New file.
52749
52750         * modules/atexit-tests: New file.
52751         * tests/test-atexit.sh: New file.
52752         * tests/test-atexit.c: New file.
52753
52754 2007-03-10  Bruno Haible  <bruno@clisp.org>
52755
52756         * tests/test-binary-io.sh: Use temporary filenames that are not so
52757         likely to clash with those of other tests (in a parallel make).
52758         * tests/test-binary-io.c: Likewise.
52759
52760 2007-03-10  Bruno Haible  <bruno@clisp.org>
52761
52762         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
52763         fallback; use #error instead.
52764         Suggested by Simon Josefsson.
52765
52766 2007-03-10  Bruno Haible  <bruno@clisp.org>
52767
52768         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
52769         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
52770         first and the last.
52771
52772 2007-03-10  Bruno Haible  <bruno@clisp.org>
52773
52774         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
52775
52776 2007-03-10  Bruno Haible  <bruno@clisp.org>
52777
52778         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
52779         "make distcheck".
52780         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
52781         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
52782         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
52783
52784 2007-03-10  Bruno Haible  <bruno@clisp.org>
52785
52786         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
52787         variable.
52788         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
52789         variable.
52790
52791 2007-03-09  Eric Blake  <ebb9@byu.net>
52792         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
52793
52794         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
52795         types are not being provided by gnulib.
52796         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
52797         types are supported.
52798
52799 2007-03-10  Bruno Haible  <bruno@clisp.org>
52800
52801         * lib/stdio_.h (__attribute__): New macro.
52802         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
52803         vsprintf): Specify __attribute__ __format__ for GCC.
52804         Suggested by Eric Blake.
52805
52806 2007-03-09  Bruno Haible  <bruno@clisp.org>
52807
52808         * modules/printf-posix-tests: New file.
52809         * tests/test-printf-posix.sh: New file.
52810         * tests/test-printf-posix.c: New file.
52811
52812         * modules/printf-posix: New file.
52813         * lib/printf.c: New file.
52814         * m4/printf-posix-rpl.m4: New file.
52815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
52816         REPLACE_PRINTF.
52817         * lib/stdio_.h (printf): New declaration.
52818         (format, __format__, ____printf____, ____scanf____, ____strftime____,
52819         ____strfmon____): New macros.
52820         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
52821         REPLACE_PRINTF.
52822
52823 2007-03-09  Bruno Haible  <bruno@clisp.org>
52824
52825         * tests/test-vasnprintf-posix2.sh: New file.
52826         * tests/test-vasnprintf-posix2.c: New file.
52827         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
52828         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52829         (Makefile.am): Activate test-vasnprintf-posix2.sh.
52830
52831         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
52832         a locale dependent decimal point, rather than always '.'.
52833
52834 2007-03-09  Eric Blake  <ebb9@byu.net>
52835
52836         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
52837         spite of platforms like Tandem/NSK that define it to -1.
52838
52839 2007-03-08  Bruno Haible  <bruno@clisp.org>
52840
52841         * modules/vprintf-posix-tests: New file.
52842         * tests/test-vprintf-posix.sh: New file.
52843         * tests/test-vprintf-posix.c: New file.
52844         * tests/test-printf-posix.h: New file.
52845
52846         * modules/vprintf-posix: New file.
52847         * lib/vprintf.c: New file.
52848         * m4/vprintf-posix.m4: New file.
52849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
52850         REPLACE_VPRINTF.
52851         * lib/stdio_.h (vprintf): New declaration.
52852         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
52853         REPLACE_VPRINTF.
52854
52855 2007-03-08  Bruno Haible  <bruno@clisp.org>
52856
52857         * modules/fprintf-posix-tests: New file.
52858         * tests/test-fprintf-posix.sh: New file.
52859         * tests/test-fprintf-posix.c: New file.
52860
52861         * modules/fprintf-posix: New file.
52862         * lib/fprintf.c: New file.
52863         * m4/fprintf-posix.m4: New file.
52864         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
52865         REPLACE_FPRINTF.
52866         * lib/stdio_.h (fprintf): New declaration.
52867         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
52868         REPLACE_FPRINTF.
52869
52870 2007-03-08  Bruno Haible  <bruno@clisp.org>
52871
52872         * modules/vfprintf-posix-tests: New file.
52873         * tests/test-vfprintf-posix.sh: New file.
52874         * tests/test-vfprintf-posix.c: New file.
52875         * tests/test-fprintf-posix.h: New file.
52876         * tests/test-fprintf-posix.out: New file.
52877
52878         * modules/vfprintf-posix: New file.
52879         * lib/vfprintf.c: New file.
52880         * m4/vfprintf-posix.m4: New file.
52881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
52882         REPLACE_VFPRINTF.
52883         * lib/stdio_.h (vfprintf): New declaration.
52884         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
52885         REPLACE_VFPRINTF.
52886
52887 2007-03-08  Bruno Haible  <bruno@clisp.org>
52888
52889         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
52890
52891 2007-03-08  Bruno Haible  <bruno@clisp.org>
52892
52893         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
52894         instead of 'expr' invocations.
52895         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52896         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52897         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52898         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52899         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52900         Suggested by Paul Eggert.
52901
52902 2007-03-08  Bruno Haible  <bruno@clisp.org>
52903
52904         * modules/fseterr-tests: New file.
52905         * tests/test-fseterr.c: New file.
52906
52907         * modules/fseterr: New file.
52908         * lib/fseterr.h: New file.
52909         * lib/fseterr.c: New file.
52910
52911 2007-03-08  Bruno Haible  <bruno@clisp.org>
52912
52913         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
52914         * lib/getopt_.h: Likewise.
52915         * lib/mbswidth.h: Likewise.
52916         * lib/setenv.h: Likewise.
52917         * lib/vasnprintf.h: Likewise.
52918         * lib/vasprintf.h: Likewise.
52919         * lib/verror.h: Likewise.
52920         * lib/xsetenv.h: Likewise.
52921         * lib/xvasprintf.h: Likewise.
52922
52923 2007-03-08  Jim Meyering  <jim@meyering.net>
52924
52925         * users.txt: Add parted.
52926
52927         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
52928
52929 2007-03-07  Bruno Haible  <bruno@clisp.org>
52930
52931         * m4/printf.m4: Make the shell script snippets copy&pastable.
52932
52933 2007-03-02  Bruno Haible  <bruno@clisp.org>
52934
52935         * lib/netinet_in_.h: New file.
52936         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
52937         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
52938         * modules/netinet_in (Files): Add lib/netinet_in_.h.
52939         (Depends-on): Add absolute-header.
52940         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
52941         into netinet/in.h.
52942
52943 2007-03-03  Bruno Haible  <bruno@clisp.org>
52944
52945         * lib/sys_select_.h: New file.
52946         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
52947         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
52948         * modules/sys_select (Files): Add lib/sys_select_.h.
52949         (Depends-on): Add absolute-header.
52950         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
52951         into sys/select.h.
52952
52953 2007-03-02  Bruno Haible  <bruno@clisp.org>
52954
52955         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
52956         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
52957         values.
52958         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
52959         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
52960         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
52961         * modules/sys_socket (Depends-on): Add absolute-header.
52962         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
52963         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
52964         (Include): Remove requirement of inclusion of <sys/types.h>.
52965
52966 2007-03-02  Bruno Haible  <bruno@clisp.org>
52967
52968         * lib/byteswap_.h (bswap_32): Fix formula.
52969
52970 2007-03-06  Bruno Haible  <bruno@clisp.org>
52971
52972         * modules/sprintf-posix-tests: New file.
52973         * tests/test-sprintf-posix.c: New file.
52974
52975         * modules/sprintf-posix: New file.
52976         * lib/sprintf.c: New file.
52977         * m4/sprintf-posix.m4: New file.
52978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
52979         REPLACE_SPRINTF.
52980         * lib/stdio_.h (sprintf): New declaration.
52981         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
52982         REPLACE_SPRINTF.
52983
52984 2007-03-06  Bruno Haible  <bruno@clisp.org>
52985
52986         * modules/vsprintf-posix-tests: New file.
52987         * tests/test-vsprintf-posix.c: New file.
52988         * tests/test-sprintf-posix.h: New file.
52989
52990         * modules/vsprintf-posix: New file.
52991         * lib/vsprintf.c: New file.
52992         * m4/vsprintf-posix.m4: New file.
52993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
52994         REPLACE_VSPRINTF.
52995         * lib/stdio_.h (vsprintf): New declaration.
52996         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
52997         REPLACE_VSPRINTF.
52998
52999 2007-03-06  Bruno Haible  <bruno@clisp.org>
53000
53001         * modules/vsnprintf (Depend-on): Remove minmax.
53002
53003 2007-03-06  Bruno Haible  <bruno@clisp.org>
53004
53005         * modules/snprintf-posix-tests: New file.
53006         * tests/test-snprintf-posix.c: New file.
53007
53008         * modules/snprintf-posix: New file.
53009         * m4/snprintf-posix.m4: New file.
53010         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
53011         gl_FUNC_SNPRINTF.
53012         (gl_FUNC_SNPRINTF): Invoke it.
53013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
53014         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
53015         is set.
53016         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
53017
53018 2007-03-06  Bruno Haible  <bruno@clisp.org>
53019
53020         * modules/vsnprintf-posix-tests: New file.
53021         * tests/test-vsnprintf-posix.c: New file.
53022         * tests/test-snprintf-posix.h: New file.
53023
53024         * modules/vsnprintf-posix: New file.
53025         * m4/vsnprintf-posix.m4: New file.
53026         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
53027         gl_FUNC_VSNPRINTF.
53028         (gl_FUNC_VSNPRINTF): Invoke it.
53029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
53030         * lib/stdio_.h (vsnprintf): Define as a replacement if
53031         REPLACE_VSNPRINTF is set.
53032         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
53033
53034 2007-03-06  Bruno Haible  <bruno@clisp.org>
53035
53036         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
53037         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
53038
53039 2007-03-06  Bruno Haible  <bruno@clisp.org>
53040
53041         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
53042         (asinl): Declare also if HAVE_DECL_ASINL is set.
53043         (atanl): Declare also if HAVE_DECL_ATANL is set.
53044         (ceill): Declare also if HAVE_DECL_CEILL is set.
53045         (cosl): Declare also if HAVE_DECL_COSL is set.
53046         (expl): Declare also if HAVE_DECL_EXPL is set.
53047         (floorl): Declare also if HAVE_DECL_FLOORL is set.
53048         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
53049         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
53050         (logl): Declare also if HAVE_DECL_LOGL is set.
53051         (sinl): Declare also if HAVE_DECL_SINL is set.
53052         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
53053         (tanl): Declare also if HAVE_DECL_TANL is set.
53054         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
53055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
53056         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
53057         declaration of frexpl, ldexpl.
53058         * modules/printf-frexpl (Depends-on): Add math.
53059         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
53060
53061 2007-03-05  Bruno Haible  <bruno@clisp.org>
53062
53063         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
53064         frexpl and ldexpl are declared.
53065         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
53066
53067 2007-03-05  Bruno Haible  <bruno@clisp.org>
53068
53069         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
53070         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
53071
53072 2007-03-05  Bruno Haible  <bruno@clisp.org>
53073
53074         * lib/stdio_.h: Include <stddef.h>.
53075
53076 2007-03-05  Bruno Haible  <bruno@clisp.org>
53077
53078         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
53079
53080 2007-03-05  Bruno Haible  <bruno@clisp.org>
53081
53082         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
53083         NetBSD 4, from Ralf Wildenhues.
53084
53085 2007-03-04  Bruno Haible  <bruno@clisp.org>
53086
53087         * lib/vasprintf.h: Update #if logic for the case when the functions
53088         exist but are overridden.
53089
53090 2007-03-04  Bruno Haible  <bruno@clisp.org>
53091
53092         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
53093         implementations: glibc-2.4 and MacOS X 10.3.
53094         * tests/test-vasnprintf-posix.c (test_function): Test also the case
53095         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
53096         * tests/test-vasprintf-posix.c (test_function): Likewise.
53097
53098 2007-03-04  Bruno Haible  <bruno@clisp.org>
53099
53100         * modules/vasprintf-posix-tests: New file.
53101         * tests/test-vasprintf-posix.c: New file.
53102
53103         * modules/vasprintf-posix: New file.
53104         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
53105         defined.
53106         * m4/vasprintf-posix.m4: New file.
53107         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
53108         gl_FUNC_VASPRINTF.
53109         (gl_FUNC_VASPRINTF): Invoke it.
53110         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
53111         here.
53112         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
53113
53114 2007-03-04  Bruno Haible  <bruno@clisp.org>
53115
53116         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
53117         REPLACE_GETTIMEOFDAY.
53118         * modules/sys_time (Makefile.am): Likewise.
53119         * m4/sys_time_h.m4: Likewise.
53120         * m4/gettimeofday.m4: Likewise.
53121
53122 2007-03-04  Bruno Haible  <bruno@clisp.org>
53123
53124         * modules/vasnprintf-posix-tests: New file.
53125         * tests/test-vasnprintf-posix.c: New file.
53126
53127         * modules/vasnprintf-posix: New file.
53128         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
53129         printf-frexpl.h.
53130         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
53131         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
53132         REPLACE_VASNPRINTF is defined.
53133         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
53134         gl_FUNC_VASNPRINTF.
53135         (gl_FUNC_VASNPRINTF): Invoke it.
53136         * m4/vasnprintf-posix.m4: New file.
53137         * m4/printf.m4: New file.
53138
53139 2007-03-04  Bruno Haible  <bruno@clisp.org>
53140
53141         Compile progreloc.c only if --enable-relocatable is specified.
53142         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
53143         if --enable-relocatable was specified.
53144         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
53145         lib_SOURCES.
53146
53147 2007-03-04  Jim Meyering  <jim@meyering.net>
53148
53149         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
53150         Use it consistently, rather than enumerating errno constants.
53151
53152 2007-03-04  Bruno Haible  <bruno@clisp.org>
53153
53154         * modules/xvasprintf-tests: New file.
53155         * tests/test-xvasprintf.c: New file.
53156
53157         * modules/vasprintf-tests: New file.
53158         * tests/test-vasprintf.c: New file.
53159
53160         * modules/vasnprintf-tests: New file.
53161         * tests/test-vasnprintf.c: New file.
53162
53163         * modules/vsnprintf-tests: New file.
53164         * tests/test-vsnprintf.c: New file.
53165
53166         * modules/snprintf-tests: New file.
53167         * tests/test-snprintf.c: New file.
53168
53169 2007-03-04  Bruno Haible  <bruno@clisp.org>
53170
53171         Compile relocatable.c only if --enable-relocatable is specified.
53172         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
53173         gl_RELOCATABLE_LIBRARY.
53174         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
53175         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
53176         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
53177         gl_RELOCATABLE_LIBRARY.
53178         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
53179         (Makefile.am): Remove lib_SOURCES.
53180         * modules/relocatable-lib-lgpl (configure.ac): Invoke
53181         gl_RELOCATABLE_LIBRARY.
53182         (Makefile.am): Remove lib_SOURCES.
53183         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
53184         always.
53185         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53186         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
53187
53188 2007-03-04  Bruno Haible  <bruno@clisp.org>
53189
53190         * modules/argmatch-tests: New file.
53191         * tests/test-argmatch.c: New file.
53192
53193         * tests/test-allocsa.c (main): Halve the number of loop runs.
53194
53195         * modules/alloca-opt-tests: New file.
53196         * tests/test-alloca-opt.c: New file.
53197
53198 2007-03-04  Jim Meyering  <jim@meyering.net>
53199
53200         Work around difference between Linux ACLs and Solaris 10 ZFS.
53201         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53202         for EINVAL.
53203
53204 2007-03-03  Bruno Haible  <bruno@clisp.org>
53205
53206         * modules/relocatable-prog (Depends-on): Add back progreloc's
53207         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53208
53209 2007-03-03  Bruno Haible  <bruno@clisp.org>
53210
53211         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53212         * modules/relocatable-lib: New file.
53213
53214 2007-03-03  Bruno Haible  <bruno@clisp.org>
53215
53216         * modules/relocatable-prog: Renamed from modules/relocatable.
53217         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53218
53219 2007-03-03  Bruno Haible  <bruno@clisp.org>
53220
53221         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53222         m4/relocatable-lib.m4.
53223         (Depends-on): Remove 'relocatable'.
53224         (configure.ac): Add gl_RELOCATABLE_NOP.
53225
53226 2007-03-03  Bruno Haible  <bruno@clisp.org>
53227
53228         * modules/relocatable-prog-wrapper: New file.
53229         * modules/relocatable (Depends-on): Add it. Remove all other
53230         dependencies except progname.
53231         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53232
53233         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53234         (gl_FUNC_STRERROR): Nop.
53235         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53236
53237         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53238         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53239
53240         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53241         (gl_FUNC_READLINK): Update.
53242
53243         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53244
53245 2007-03-03  Bruno Haible  <bruno@clisp.org>
53246
53247         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53248         * modules/xreadlink (Depends-on): Add unistd.
53249         * modules/xreadlink-with-size (Depends-on): Likewise.
53250
53251 2007-03-03  Bruno Haible  <bruno@clisp.org>
53252
53253         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53254         extracted from gt_FUNC_SETENV.
53255         (gt_FUNC_SETENV): Remove macro.
53256         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53257         remove gt_FUNC_SETENV.
53258
53259 2007-03-03  Bruno Haible  <bruno@clisp.org>
53260
53261         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53262         ENABLE_RELOCATABLE here.
53263         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
53264
53265 2007-03-03  Bruno Haible  <bruno@clisp.org>
53266
53267         * modules/rbtreehash-list-tests (Depends-on): Add progname.
53268         * tests/test-rbtreehash_list.c: Include progname.h.
53269         (main): Call set_program_name.
53270
53271         * modules/rbtree-oset-tests (Depends-on): Add progname.
53272         * tests/test-rbtree_oset.c: Include progname.h.
53273         (main): Call set_program_name.
53274
53275         * modules/rbtree-list-tests (Depends-on): Add progname.
53276         * tests/test-rbtree_list.c: Include progname.h.
53277         (main): Call set_program_name.
53278
53279         * modules/linked-list-tests (Depends-on): Add progname.
53280         * tests/test-linked_list.c: Include progname.h.
53281         (main): Call set_program_name.
53282
53283 2007-03-03  Bruno Haible  <bruno@clisp.org>
53284
53285         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
53286         All uses of __restrict changed to _Restrict_.
53287         * lib/glob_.h (__restrict): Remove macro.
53288
53289 2007-03-02  Bruno Haible  <bruno@clisp.org>
53290
53291         * modules/gettext (configure.ac): Require gettext infrastructure
53292         from version 0.16.1.
53293
53294 2007-03-02  Bruno Haible  <bruno@clisp.org>
53295
53296         * modules/linkedhash-list-tests (Depends-on): Add progname.
53297         * tests/test-linkedhash_list.c: Include progname.h.
53298         (main): Call set_program_name.
53299
53300         * modules/carray-list-tests (Depends-on): Add progname.
53301         * tests/test-carray_list.c: Include progname.h.
53302         (main): Call set_program_name.
53303
53304         * modules/avltreehash-list-tests (Depends-on): Add progname.
53305         * tests/test-avltreehash_list.c: Include progname.h.
53306         (main): Call set_program_name.
53307
53308         * modules/avltree-oset-tests (Depends-on): Add progname.
53309         * tests/test-avltree_oset.c: Include progname.h.
53310         (main): Call set_program_name.
53311
53312         * modules/avltree-list-tests (Depends-on): Add progname.
53313         * tests/test-avltree_list.c: Include progname.h.
53314         (main): Call set_program_name.
53315
53316         * modules/array-oset-tests (Depends-on): Add progname.
53317         * tests/test-array_oset.c: Include progname.h.
53318         (main): Call set_program_name.
53319
53320         * modules/array-list-tests (Depends-on): Add progname.
53321         * tests/test-array_list.c: Include progname.h.
53322         (main): Call set_program_name.
53323
53324         * modules/argp-tests (Depends-on): Add progname.
53325         * tests/test-argp.c: Include argp.h first. Include progname.h.
53326         (main): Call set_program_name.
53327
53328 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53329
53330         * doc/gnulib-tool.texi (Initial import): Reword description of
53331         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53332         limited effect even if defined after the first system include.
53333
53334 2007-03-01  Bruno Haible  <bruno@clisp.org>
53335
53336         * build-aux/config.libpath: Update to libtool-1.5.22.
53337         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53338
53339 2007-03-01  Bruno Haible  <bruno@clisp.org>
53340
53341         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53342         foo_CFLAGS.
53343         Reported by Ralf Wildenhues.
53344
53345 2007-03-01  Bruno Haible  <bruno@clisp.org>
53346
53347         * build-aux/install-reloc: Remove object files left over by some
53348         compilers.
53349         Reported by Ralf Wildenhues.
53350
53351 2007-03-01  Bruno Haible  <bruno@clisp.org>
53352
53353         * build-aux/install-reloc: Break long lines.
53354
53355 2007-03-01  Bruno Haible  <bruno@clisp.org>
53356
53357         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53358         Reported by Ralf Wildenhues.
53359
53360 2007-03-01  Bruno Haible  <bruno@clisp.org>
53361
53362         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53363         include ordering constraints.
53364
53365 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53366
53367         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53368         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53369         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53370         as another example.
53371         * lib/time_.h: Fix misspelling.
53372         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53373         Require gl_HEADER_TIME_H_DEFAULTS.
53374         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53375         * m4/time_r.m4 (gl_TIME_R): Likewise.
53376         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53377
53378 2007-03-01  Bruno Haible  <bruno@clisp.org>
53379
53380         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53381         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53382
53383 2007-03-01  Jim Meyering  <jim@meyering.net>
53384
53385         * modules/xreadlink (Maintainer): Add my name.
53386         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53387
53388 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53389             Bruno Haible  <bruno@clisp.org>
53390
53391         * build-aux/install-reloc: Compile also c-ctype.c.
53392         * build-aux/relocatable.sh.in: New file.
53393         * doc/relocatable.texi: New file.
53394         * doc/relocatable-maint.texi: New file.
53395         * doc/gnulib.texi: Include relocatable-maint.texi.
53396         * lib/progreloc.c: Include unistd.h unconditionally.
53397         * lib/relocwrapper.c: Include unistd.h unconditionally.
53398         Include c-ctype.h.
53399         (add_dotbin): Use c_tolower.
53400         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53401         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53402         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53403         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53404         to m4/relocatable-lib.m4.
53405         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53406         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53407         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53408         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53409         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53410         * modules/relocatable: New file.
53411         * modules/relocatable-lib: New file.
53412         * modules/relocatable-script: New file.
53413
53414 2007-02-28  Bruno Haible  <bruno@clisp.org>
53415
53416         Import --enable-relocatable infrastructure.
53417         * build-aux/config.libpath: New file, from GNU gettext.
53418         * build-aux/install-reloc: New file, from GNU gettext.
53419         * build-aux/reloc-ldflags: New file, from GNU gettext.
53420         * lib/relocatable.h: New file, from GNU gettext.
53421         * lib/relocatable.c: New file, from GNU gettext.
53422         * lib/relocwrapper.c: New file, from GNU gettext.
53423         * m4/relocatable.m4: New file, from GNU gettext.
53424
53425 2007-02-28  Bruno Haible  <bruno@clisp.org>
53426
53427         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53428
53429         * modules/xreadlink: New file, from GNU gettext with modifications.
53430         * lib/xreadlink.c: New file, from GNU gettext.
53431         * lib/xreadlink.h: Add comments.
53432         (xreadlink): New declaration.
53433
53434         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53435         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53436         lib/xreadlink-with-size.c.
53437         (configure.ac): Remove gl_XREADLINK invocation.
53438         (Makefile.am): Augment lib_SOURCES.
53439         * m4/xreadlink.m4: Remove file.
53440         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53441         (xreadlink_with_size): Renamed from xreadink.
53442         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53443         * modules/canonicalize (Depends-on): Replace xreadlink with
53444         xreadlink-with-size.
53445         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53446
53447 2007-02-25  Jim Meyering  <jim@meyering.net>
53448
53449         * build-aux/announce-gen: When complaining about excess arguments,
53450         list them.
53451
53452 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53453
53454         * README: Document signed integer overflow situation more
53455         accurately.
53456
53457 2007-02-25  Bruno Haible  <bruno@clisp.org>
53458
53459         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53460         'a' or 'A' conversion.
53461
53462 2007-02-25  Bruno Haible  <bruno@clisp.org>
53463
53464         * modules/filename: Renamed from modules/pathname.
53465         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53466         lib/concatpath.c with lib/concat-filename.c.
53467         (Makefile.am): Update.
53468         (Include): Replace pathname.h with filename.h.
53469         * lib/filename.h: Renamed from lib/pathname.h.
53470         (concatenated_filename): Renamed from concatenated_pathname.
53471         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53472         (concatenated_filename): Renamed from concatenated_pathname.
53473         * lib/findprog.c: Include filename.h instead of pathname.h.
53474         (find_in_path): Update.
53475         * lib/javacomp.c: Include filename.h instead of pathname.h.
53476         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53477         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53478         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53479         is_oldgcj_14_13_usable, is_javac_usable): Update.
53480         * lib/javaexec.c: Include filename.h instead of pathname.h.
53481         (execute_java_class): Update.
53482         * modules/findprog: Update.
53483         * modules/javacomp: Update.
53484         * modules/javaexec: Update.
53485         * MODULES.html.sh (File system functions): Add 'filename', remove
53486         'pathname'.
53487
53488 2007-02-25  Bruno Haible  <bruno@clisp.org>
53489
53490         * modules/printf-frexpl-tests: New file.
53491         * tests/test-printf-frexpl.c: New file.
53492
53493         * modules/printf-frexpl: New file.
53494         * lib/printf-frexpl.h: New file.
53495         * lib/printf-frexpl.c: New file.
53496         * m4/printf-frexpl.m4: New file.
53497
53498 2007-02-25  Bruno Haible  <bruno@clisp.org>
53499
53500         * modules/printf-frexp-tests: New file.
53501         * tests/test-printf-frexp.c: New file.
53502
53503         * modules/printf-frexp: New file.
53504         * lib/printf-frexp.h: New file.
53505         * lib/printf-frexp.c: New file.
53506         * m4/printf-frexp.m4: New file.
53507
53508 2007-02-25  Bruno Haible  <bruno@clisp.org>
53509
53510         Assume automake >= 1.10 for the tests.
53511         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
53512         * modules/arctwo-tests: Likewise.
53513         * modules/argp-tests: Likewise.
53514         * modules/avltree-list-tests: Likewise.
53515         * modules/avltree-oset-tests: Likewise.
53516         * modules/avltreehash-list-tests: Likewise.
53517         * modules/carray-list-tests: Likewise.
53518         * modules/crc-tests: Likewise.
53519         * modules/des-tests: Likewise.
53520         * modules/gc-arcfour-tests: Likewise.
53521         * modules/gc-arctwo-tests: Likewise.
53522         * modules/gc-des-tests: Likewise.
53523         * modules/gc-hmac-md5-tests: Likewise.
53524         * modules/gc-hmac-sha1-tests: Likewise.
53525         * modules/gc-md2-tests: Likewise.
53526         * modules/gc-md4-tests: Likewise.
53527         * modules/gc-md5-tests: Likewise.
53528         * modules/gc-pbkdf2-sha1-tests: Likewise.
53529         * modules/gc-rijndael-tests: Likewise.
53530         * modules/gc-sha1-tests: Likewise.
53531         * modules/gc-tests: Likewise.
53532         * modules/getaddrinfo-tests: Likewise.
53533         * modules/hmac-md5-tests: Likewise.
53534         * modules/hmac-sha1-tests: Likewise.
53535         * modules/linked-list-tests: Likewise.
53536         * modules/linkedhash-list-tests: Likewise.
53537         * modules/lock-tests: Likewise.
53538         * modules/md2-tests: Likewise.
53539         * modules/md4-tests: Likewise.
53540         * modules/md5-tests: Likewise.
53541         * modules/rbtree-list-tests: Likewise.
53542         * modules/rbtree-oset-tests: Likewise.
53543         * modules/rbtreehash-list-tests: Likewise.
53544         * modules/read-file-tests: Likewise.
53545         * modules/rijndael-tests: Likewise.
53546         * modules/stdint-tests: Likewise.
53547         * modules/tls-tests: Likewise.
53548
53549 2007-02-24  Bruno Haible  <bruno@clisp.org>
53550
53551         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
53552         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
53553         function; instead check whether isnan with a double argument links.
53554         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
53555         function; instead check whether isnan with a 'long double' argument
53556         links.
53557         Reported by Eric Blake <ebb9@byu.net>.
53558
53559 2007-02-24  Bruno Haible  <bruno@clisp.org>
53560
53561         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
53562         defined.
53563         * lib/isnanl.c: Remove all code. Just include isnan.c.
53564         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
53565
53566 2007-02-25  Jim Meyering  <jim@meyering.net>
53567
53568         Avoid conflicting types for 'unsetenv' on FreeBSD.
53569         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
53570         conflicting with FreeBSD's (5.0 and 6.1) function declaration
53571         in stdlib.h.
53572
53573 2007-02-24  Bruno Haible  <bruno@clisp.org>
53574
53575         * modules/isnanl-nolibm-tests: New file.
53576         * tests/test-isnanl.c: New file.
53577
53578         * modules/isnanl-nolibm: New file.
53579         * lib/isnanl.h: New file.
53580         * lib/isnanl.c: New file.
53581         * m4/isnanl.m4: New file.
53582
53583 2007-02-24  Bruno Haible  <bruno@clisp.org>
53584
53585         * modules/isnan-nolibm-tests: New file.
53586         * tests/test-isnan.c: New file.
53587
53588         * modules/isnan-nolibm: New file.
53589         * lib/isnan.h: New file.
53590         * lib/isnan.c: New file.
53591         * m4/isnan.m4: New file.
53592
53593 2007-02-24  Bruno Haible  <bruno@clisp.org>
53594
53595         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
53596         assume that an exponent fits in 20 bits.
53597
53598 2007-02-24  Jim Meyering  <jim@meyering.net>
53599
53600         * m4/regex.m4: Update the description of the configure-time option,
53601         --without-included-regex, to state accurately what the defaults are,
53602         and perhaps to give people an idea why using this option is risky.
53603
53604 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53605
53606         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
53607         loops on small arguments.  This attempts to avoid the problem
53608         Bruno Haible reported for AIX 4.3.2 in
53609         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
53610
53611 2007-02-23  Bruno Haible  <bruno@clisp.org>
53612
53613         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
53614         Needed for help2man.
53615
53616 2007-02-23  Karl Berry  <karl@gnu.org>
53617
53618         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
53619         exists, foo.h should be cvs-ignored, not committed.
53620
53621 2007-02-23  Eric Blake  <ebb9@byu.net>
53622
53623         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
53624         * lib/stat-time.h (includes): Likewise.
53625         * lib/utimecmp.c (includes): Likewise.
53626         * lib/utimens.h (includes): Likewise.
53627         * lib/getdate.y (includes): Also include "timespec.h" for use
53628         internal to the module.
53629         * modules/utimens (Depends-on): Revert yesterday's patch.
53630         * modules/nanosleep (Depends-on): Add missing dependency.
53631
53632 2007-02-22  Bruno Haible  <bruno@clisp.org>
53633
53634         * lib/glob.c: Don't include getlogin_r.h.
53635
53636 2007-02-22  Jim Meyering  <jim@meyering.net>
53637
53638         * modules/utimens (Depends-on): Add timespec, required for
53639         utimens.h's inclusion of timespec.h.
53640
53641 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
53642
53643         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
53644         long unreadable paths in GNU/Linux.  Problem reported by Andreas
53645         Schwab in
53646         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
53647         I'll try to think of a better way to fix the Solaris problem.
53648
53649         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
53650         like glibc; on Solaris 10, it fails with errno == EINVAL.
53651         POSIX says the behavior is unspecified if the first argument is NULL,
53652         so play it safe and never pass NULL to the system getcwd.
53653
53654 2007-02-21  Jim Meyering  <jim@meyering.net>
53655
53656         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
53657         of gettimeofday.  It would conflict with the one now always
53658         provided via sys_time_.h.  Reported by Matthew Woehlke, as
53659         an IRIX 6.5 build failure.
53660
53661 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53662
53663         Minor fixups to port to Solaris 10 with Sun C 5.8.
53664         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
53665         * modules/getcwd (Depends-on): Add dirfd.
53666         * lib/putenv.c (putenv): #undef it.
53667         (rpl_putenv): New decl.
53668         (malloc, free): Include <stdlib.h> rather than prototyping separately.
53669
53670 2007-02-20  Bruno Haible  <bruno@clisp.org>
53671
53672         * modules/stdio-tests: New file.
53673         * tests/test-stdio.c: New file.
53674
53675         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
53676         (Depends-on): Add stdio.
53677         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53678         (Include): Use <stdio.h> instead of vsnprintf.h.
53679         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53680         HAVE_DECL_VSNPRINTF.
53681         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
53682
53683         * modules/snprintf (Files): Remove lib/snprintf.h.
53684         (Depends-on): Add stdio.
53685         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53686         (Include): Use <stdio.h> instead of snprintf.h.
53687         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53688         HAVE_DECL_SNPRINTF.
53689         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
53690         * lib/getaddrinfo.c: Likewise.
53691
53692         * modules/stdio: New file.
53693         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
53694         * lib/snprintf.h: Remove file.
53695         * lib/vsnprintf.h: Remove file.
53696         * lib/.cppi-disable: Remove snprintf.h.
53697         * m4/stdio_h.m4: New file.
53698         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
53699
53700 2007-02-20  Jim Meyering  <jim@meyering.net>
53701
53702         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
53703         used by e.g., mingw.  From Bruno Haible.
53704
53705 2007-02-19  Bruno Haible  <bruno@clisp.org>
53706
53707         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
53708         warnings.
53709         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53710
53711 2007-02-19  Bruno Haible  <bruno@clisp.org>
53712
53713         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
53714         from mingw users.
53715
53716 2007-02-19  Bruno Haible  <bruno@clisp.org>
53717
53718         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
53719         warnings.
53720         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
53721
53722 2007-02-19  Jim Meyering  <jim@meyering.net>
53723
53724         Don't use FD after a successful "fdopendir (fd)".
53725         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
53726         Reset it by calling dirfd on the just-obtained DIR*.
53727
53728         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
53729         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
53730
53731 2007-02-18  Bruno Haible  <bruno@clisp.org>
53732
53733         * lib/readlink.c: Include <unistd.h>.
53734         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
53735         HAVE_READLINK.
53736         * modules/readlink (Depends-on): Add unistd.
53737         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53738         (Include): Add <unistd.h>.
53739
53740         * lib/getlogin_r.h: Remove file.
53741         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
53742         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
53743         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
53744         HAVE_DECL_GETLOGIN_R.
53745         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
53746         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53747         (Include): Use <unistd.h> instead of getlogin_r.h.
53748
53749         * lib/getcwd.h: Remove file.
53750         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
53751         * lib/xgetcwd.c: Likewise.
53752         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
53753         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
53754         * modules/getcwd (Files): Remove lib/getcwd.h.
53755         (Depends-on): Add unistd.
53756         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53757         (Include): Use <unistd.h> instad of getcwd.h.
53758
53759         * lib/ftruncate.c: Include <unistd.h> first.
53760         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
53761         Set HAVE_FTRUNCATE.
53762         * modules/ftruncate (Depends-on): Add unistd.
53763         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53764
53765         * lib/fchdir.c: Include <unistd.h> first.
53766         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
53767         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
53768         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
53769         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53770         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
53771
53772         * lib/dup2.c: Include <unistd.h> first.
53773         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
53774         HAVE_DUP2.
53775         * modules/dup2 (Depends-on): Add unistd.
53776         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53777
53778         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
53779         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
53780         REPLACE_CHOWN. Don't define chown as a macro here.
53781         * modules/chown (Depends-on): Add unistd.
53782         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53783
53784         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
53785         Add definition for GL_LINK_WARNING.
53786         (chown, dup2): New declarations.
53787         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
53788         link warning.
53789         (ftruncate): New declaration.
53790         (getcwd): New declaration, taken from old getcwd.h.
53791         (getlogin_r): New declaration, taken from old getlogin_r.h.
53792         (readlink): New declaration.
53793         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
53794         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
53795         (gl_PREREQ_UNISTD): Remove macro.
53796         (gl_UNISTD_MODULE_INDICATOR): New macro.
53797         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
53798         many new variables. Don't set UNISTD_H.
53799         * modules/unistd (Description): Change.
53800         (Depends-on): Add link-warning.
53801         (configure.ac): Update.
53802         (Makefile.am): Create unistd.h always. Substitute many new variables
53803         into it.
53804
53805 2007-02-18  Bruno Haible  <bruno@clisp.org>
53806
53807         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
53808         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
53809         HAVE_GETSUBOPT.
53810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
53811         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
53812         * lib/getsubopt.h: Remove file.
53813         * modules/getsubopt (Files): Remove lib/getsubopt.h.
53814         (Depends-on): Add stdlib.
53815         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53816         (Includes): Use <stdlib.h> instead of getsubopt.h.
53817         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
53818         Set HAVE_GETSUBOPT.
53819         * lib/getsubopt.c: Don't include getsubopt.h.
53820
53821 2007-02-18  Bruno Haible  <bruno@clisp.org>
53822
53823         * modules/fchdir (Depends-on): Add dup2.
53824
53825 2007-02-18  Bruno Haible  <bruno@clisp.org>
53826
53827         * lib/stdlib_.h: Handle glibc's special invocation convention
53828         specially.
53829
53830 2007-02-18  Bruno Haible  <bruno@clisp.org>
53831
53832         * modules/stdlib-tests: New file.
53833         * tests/test-stdlib.c: New file.
53834
53835         * modules/mkstemp (Files): Remove lib/mkstemp.h.
53836         (Depends-on): Add stdlib.
53837         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53838         (Includes): Use <stdlib.h> instead of mkstemp.h.
53839         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53840         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
53841         * lib/mkstemp.c: Don't include mkstemp.h.
53842         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
53843         * lib/stdlib--.h: Don't include mkstemp.h.
53844
53845         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
53846         (Depends-on): Add stdlib.
53847         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53848         (Includes): Use <stdlib.h> instead of mkdtemp.h.
53849         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53850         HAVE_MKDTEMP.
53851         * lib/mkdtemp.c: Don't include mkdtemp.h.
53852         * lib/clean-temp.c: Don't include mkdtemp.h.
53853
53854         * modules/exit (Files): Remove lib/exit.h.
53855         (Depends-on): Add stdlib.
53856         (Makefile.am): Remove lib_SOURCES.
53857         (Include): Use <stdlib.h> instead of exit.h.
53858         * lib/argmatch.c: Don't include exit.h.
53859         * lib/execute.c: Likewise.
53860         * lib/pagealign_alloc.c: Likewise.
53861         * lib/pipe.c: Likewise.
53862         * lib/wait-process.c: Likewise.
53863         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
53864         * lib/exitfail.c: Likewise.
53865         * lib/savewd.c: Likewise.
53866         * lib/xsetenv.c: Likewise.
53867
53868         * modules/stdlib: New file.
53869         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
53870         and extra comments about mkstemp().
53871         * lib/exit.h: Remove file.
53872         * lib/mkdtemp.h: Remove file.
53873         * lib/mkstemp.h: Remove file.
53874         * m4/stdlib_h.m4: New file.
53875         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
53876
53877 2007-02-18  Bruno Haible  <bruno@clisp.org>
53878
53879         * modules/math-tests: New file.
53880         * tests/test-math.c: New file.
53881
53882         * modules/math: New file.
53883         * modules/mathl (Files): Remove lib/mathl.h.
53884         (Depends-on): Add math.
53885         (Makefile.am): Don't mention mathl.h.
53886         (Include): Use <math.h> instead of mathl.h.
53887         * lib/math_.h: New file.
53888         * lib/mathl.h: Remove file.
53889         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
53890         mathl.h.
53891         * lib/asinl.c: Likewise.
53892         * lib/atanl.c: Likewise.
53893         * lib/ceill.c: Likewise.
53894         * lib/cosl.c: Likewise.
53895         * lib/expl.c: Likewise.
53896         * lib/floorl.c: Likewise.
53897         * lib/frexpl.c: Likewise.
53898         * lib/ldexpl.c: Likewise.
53899         * lib/logl.c: Likewise.
53900         * lib/sincosl.c: Likewise.
53901         * lib/sinl.c: Likewise.
53902         * lib/sqrtl.c: Likewise.
53903         * lib/tanl.c: Likewise.
53904         * lib/trigl.c: Likewise.
53905         * m4/math_h.m4: New file.
53906         * MODULES.html.sh (Mathematics): Add math.
53907
53908 2007-02-17  Bruno Haible  <bruno@clisp.org>
53909
53910         * modules/wctype-tests: New file.
53911         * tests/test-wctype.c: New file.
53912
53913         * modules/wchar-tests: New file.
53914         * tests/test-wchar.c: New file.
53915
53916         * modules/unistd-tests: New file.
53917         * tests/test-unistd.c: New file.
53918
53919         * modules/time-tests: New file.
53920         * tests/test-time.c: New file.
53921
53922         * modules/sysexits-tests: New file.
53923         * tests/test-sysexits.c: New file.
53924
53925         * modules/sys_time-tests: New file.
53926         * tests/test-sys_time.c: New file.
53927
53928         * modules/sys_stat-tests: New file.
53929         * tests/test-sys_stat.c: New file.
53930
53931         * modules/sys_socket-tests: New file.
53932         * tests/test-sys_socket.c: New file.
53933
53934         * modules/sys_select-tests: New file.
53935         * tests/test-sys_select.c: New file.
53936
53937         * modules/string-tests: New file.
53938         * tests/test-string.c: New file.
53939
53940         * modules/stdbool-tests: New file.
53941         * tests/test-stdbool.c: New file.
53942
53943         * modules/netinet_in-tests: New file.
53944         * tests/test-netinet_in.c: New file.
53945
53946         * modules/inttypes-tests: New file.
53947         * tests/test-inttypes.c: New file.
53948
53949         * modules/fcntl-tests: New file.
53950         * tests/test-fcntl.c: New file.
53951
53952         * modules/byteswap-tests: New file.
53953         * tests/test-byteswap.c: New file.
53954
53955         * modules/arpa_inet-tests: New file.
53956         * tests/test-arpa_inet.c: New file.
53957
53958 2007-02-17  Bruno Haible  <bruno@clisp.org>
53959
53960         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
53961         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
53962         if the corresponding module is not enabled. Emit link warnings if
53963         the function is used nevertheless.
53964         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
53965         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
53966         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
53967         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
53968         * modules/inttypes (Depends-on): Add link-warning.
53969         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53970         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
53971         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
53972         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
53973         * modules/imaxdiv (configure.ac): Likewise.
53974         * modules/strtoimax (configure.ac): Likewise.
53975         * modules/strtoumax (configure.ac): Likewise.
53976
53977 2007-02-17  Bruno Haible  <bruno@clisp.org>
53978
53979         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
53980         gl_STRING_MODULE_INDICATOR_DEFAULTS.
53981         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
53982         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
53983
53984 2007-02-17  Bruno Haible  <bruno@clisp.org>
53985
53986         * modules/link-warning: New file.
53987         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
53988         * lib/string_.h (GL_LINK_WARNING): Remove definition.
53989         * modules/string (Depends-on): Add link-warning.
53990         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53991         string.h.
53992         * MODULES.html.sh (Support for building libraries and executables): Add
53993         link-warning.
53994
53995 2007-02-17  Bruno Haible  <bruno@clisp.org>
53996
53997         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
53998         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
53999         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
54000         long lines.
54001
54002 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
54003             Bruno Haible  <bruno@clisp.org>
54004
54005         * modules/tmpfile: New file.
54006         * lib/tmpfile.c: New file.
54007         * m4/tmpfile.m4: New file.
54008         * MODULES.html.sh (func_all_modules): New section "Input/output".
54009
54010 2007-02-15  Bruno Haible  <bruno@clisp.org>
54011
54012         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
54013         (supports_delete_on_close): New function.
54014         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
54015
54016 2007-02-14  Bruno Haible  <bruno@clisp.org>
54017
54018         * modules/mbspcasecmp-tests: New file.
54019         * tests/test-mbspcasecmp.sh: New file.
54020         * tests/test-mbspcasecmp.c: New file.
54021
54022         New module mbspcasecmp.
54023         * modules/mbspcasecmp: New file.
54024         * lib/mbspcasecmp.c: New file.
54025         * lib/string_.h (strncasecmp): Change warning message.
54026         (mbspcasecmp): New declaration.
54027         * m4/mbspcasecmp.m4: New file.
54028         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54029         GNULIB_MBSPCASECMP.
54030         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
54031         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
54032
54033 2007-02-14  Bruno Haible  <bruno@clisp.org>
54034
54035         * modules/mbsncasecmp-tests: New file.
54036         * tests/test-mbsncasecmp.sh: New file.
54037         * tests/test-mbsncasecmp.c: New file.
54038
54039         New module mbsncasecmp.
54040         * modules/mbsncasecmp: New file.
54041         * lib/mbsncasecmp.c: New file.
54042         * lib/string_.h (mbsncasecmp): New declaration.
54043         * m4/mbsncasecmp.m4: New file.
54044         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54045         GNULIB_MBSNCASECMP.
54046         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
54047         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
54048
54049 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54050
54051         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
54052         Verify that it doesn't overlap with our flags.
54053         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
54054         do not have the desired effect in multibyte locales; instead, use
54055         mbscasecmp.
54056         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
54057         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
54058         we don't require GNU fnmatch ourselves (if our users require it, they
54059         should do so explicitly).
54060
54061         Fix regex code so it doesn't rely on strcasecmp.
54062         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
54063         Otherwise, include gnulib's langinfo.h.
54064         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
54065         undesirable behavior in non-C locales.  Instead, rely on localecharset.
54066         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
54067         * modules/regex (FILES): Remove m4/codeset.m4.
54068         (Depends-on): Add localcharset.  Remove strcase.
54069
54070 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54071
54072         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
54073         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54074
54075 2007-02-13  Bruno Haible  <bruno@clisp.org>
54076
54077         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
54078         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54079
54080 2007-02-12  Bruno Haible  <bruno@clisp.org>
54081
54082         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54083         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
54084         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
54085         time warning rather than a link error.
54086
54087 2007-02-12  Bruno Haible  <bruno@clisp.org>
54088
54089         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
54090         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54091         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54092
54093 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54094
54095         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
54096         args, not 2.
54097
54098 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54099
54100         New module 'time', so that apps can include <time.h> as per
54101         POSIX and GNU instead of separate include files like time_r.h
54102         and timegm.h.  This implementation tries out a simpler approach
54103         for replacing decls in standard include files (as compared to
54104         the string module), somewhat as an experiment.
54105
54106         * config/srclist.txt: Comment out mktime.c for now.
54107         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
54108         since it doesn't apply any more.  Use generic wording instead.
54109         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
54110         'time'.
54111         * lib/time_.h, m4/time_h.m4, modules/time: New files.
54112         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
54113         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
54114         Don't include <sys/types.h>; no longer needed since we assume C89.
54115         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
54116         * lib/strftime.c: Likewise.
54117         * lib/time_r.c: Likewise.
54118         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
54119         * lib/nanosleep.c: Include <time.h> first, to check interface.
54120         * lib/strptime.c: Likewise.
54121         * lib/time_r.c: Likewise.
54122         * lib/timegm.c: Likewise.
54123         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
54124         needed.
54125         * lib/timegm.c: Don't include timegm.h; no longer needed.
54126         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
54127         time.h now handles any problems in that area.
54128         (struct timespec, nanosleep): Remove; time.h now arranges for these.
54129         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
54130         that time.h defines struct timespec.
54131         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
54132         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
54133         handles that.
54134         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
54135         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
54136         needed.  Set REPLACE_LOCALTIME.
54137         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
54138         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
54139         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
54140         nanosleep; time_h.m4 now does that.  Don't require
54141         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
54142         module handles this now.
54143         * modules/getdate (Depends-on): Remove timespec.  Add time.
54144         * modules/nanosleep (Depends-on): Likewise.
54145         * modules/stat-time (Depends-on): Likewise.
54146         * modules/nanosleep (Include): Include time.h, not timespec.h.
54147         * modules/strptime (Files): Remove lib/strptime.h.
54148         (Depends-on): Add extensions, time.
54149         (Include): Include time.h, not strptime.h.
54150         * modules/time_r (Files): Remove lib/time_r.h.
54151         (Depends-on): Add time.
54152         (Include): Include time.h, not time_r.h.
54153         * modules/timegm: Likewise.
54154         * modules/timespec (Description): Now does timespec-related decls
54155         of our own, instead of struct timespec itself.
54156         (Depends-on): Add time; remove extensions.
54157         (Maintainer): Add self.
54158         * modules/utimecmp (Depends-on): Add time; remove timespec.
54159         * modules/utimens (Depends-on): Likewise.
54160         * modules/xnanosleep (Depends-on): Likewise.
54161
54162 2007-02-11  Bruno Haible  <bruno@clisp.org>
54163
54164         * lib/c-strstr.c: Include allocsa.h.
54165         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54166         * lib/c-strcasestr.c: Include allocsa.h.
54167         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54168         * lib/strcasestr.c: Include allocsa.h.
54169         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54170         * lib/mbsstr.c: Include allocsa.h.
54171         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54172         allocsa/freesa instead of malloc/free.
54173         * lib/mbscasestr.c: Include allocsa.h.
54174         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54175         allocsa/freesa instead of malloc/free.
54176         * modules/c-strstr (Depends-on): Add allocsa.
54177         * modules/c-strcasestr (Depends-on): Likewise.
54178         * modules/strcasestr (Depends-on): Likewise.
54179         * modules/mbsstr (Depends-on): Likewise.
54180         * modules/mbscasestr (Depends-on): Likewise.
54181
54182 2007-02-11  Bruno Haible  <bruno@clisp.org>
54183
54184         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
54185
54186         * modules/mbsspn-tests: New file.
54187         * tests/test-mbsspn.sh: New file.
54188         * tests/test-mbsspn.c: New file.
54189
54190 2007-02-11  Bruno Haible  <bruno@clisp.org>
54191
54192         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54193
54194         * modules/mbspbrk-tests: New file.
54195         * tests/test-mbspbrk.sh: New file.
54196         * tests/test-mbspbrk.c: New file.
54197
54198 2007-02-11  Bruno Haible  <bruno@clisp.org>
54199
54200         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54201         unneeded cast.
54202
54203         * modules/mbscspn-tests: New file.
54204         * tests/test-mbscspn.sh: New file.
54205         * tests/test-mbscspn.c: New file.
54206
54207 2007-02-11  Bruno Haible  <bruno@clisp.org>
54208
54209         * modules/mbscasecmp-tests: New file.
54210         * tests/test-mbscasecmp.sh: New file.
54211         * tests/test-mbscasecmp.c: New file.
54212
54213 2007-02-11  Bruno Haible  <bruno@clisp.org>
54214
54215         Ensure O(n) worst-case complexity of mbscasestr.
54216         * lib/mbscasestr.c: Include stdbool.h.
54217         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54218         functions.
54219         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54220         the bookkeeping indicates that it's worth it.
54221         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54222
54223         * modules/mbscasestr-tests: New file.
54224         * tests/test-mbscasestr1.c: New file.
54225         * tests/test-mbscasestr2.sh: New file.
54226         * tests/test-mbscasestr2.c: New file.
54227         * tests/test-mbscasestr3.sh: New file.
54228         * tests/test-mbscasestr3.c: New file.
54229         * tests/test-mbscasestr4.sh: New file.
54230         * tests/test-mbscasestr4.c: New file.
54231         * m4/locale-tr.m4: New file.
54232
54233 2007-02-11  Bruno Haible  <bruno@clisp.org>
54234
54235         Ensure O(n) worst-case complexity of mbsstr.
54236         * lib/mbsstr.c: Include stdbool.h.
54237         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54238         functions.
54239         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54240         bookkeeping indicates that it's worth it.
54241         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54242
54243         * modules/mbsstr-tests: New file.
54244         * tests/test-mbsstr1.c: New file.
54245         * tests/test-mbsstr2.sh: New file.
54246         * tests/test-mbsstr2.c: New file.
54247         * tests/test-mbsstr3.sh: New file.
54248         * tests/test-mbsstr3.c: New file.
54249         * m4/locale-fr.m4: New file.
54250
54251 2007-02-11  Bruno Haible  <bruno@clisp.org>
54252
54253         * lib/mbsrchr.c (mbsrchr): Fix bug.
54254
54255         * modules/mbsrchr-tests: New file.
54256         * tests/test-mbsrchr.sh: New file.
54257         * tests/test-mbsrchr.c: New file.
54258
54259 2007-02-11  Bruno Haible  <bruno@clisp.org>
54260
54261         * lib/mbschr.c (mbschr): Fix bug.
54262
54263         * modules/mbschr-tests: New file.
54264         * tests/test-mbschr.sh: New file.
54265         * tests/test-mbschr.c: New file.
54266         * m4/locale-zh.m4: New file.
54267
54268 2007-02-11  Bruno Haible  <bruno@clisp.org>
54269
54270         Support for copying multibyte string iterators.
54271         * lib/mbiter.h: Include <string.h>.
54272         (mbiter_multi_copy): New function.
54273         (mbi_copy): New macro.
54274         * lib/mbuiter.h: Include <string.h>.
54275         (mbuiter_multi_copy): New function.
54276         (mbui_copy): New macro.
54277
54278 2007-02-11  Bruno Haible  <bruno@clisp.org>
54279
54280         New module mbslen.
54281         * modules/mbslen: New file.
54282         * lib/mbslen.c: New file.
54283         * lib/string_.h (mbslen): New declaration.
54284         * m4/mbslen.m4: New file.
54285         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54286         GNULIB_MBSLEN.
54287         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
54288         * MODULES.html.sh (Internationalization functions): Add mbslen.
54289
54290 2007-02-11  Bruno Haible  <bruno@clisp.org>
54291
54292         Ensure O(n) worst-case complexity of strcasestr substitute.
54293         * lib/strcasestr.c: Include stdbool.h.
54294         (knuth_morris_pratt): New function.
54295         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54296         bookkeeping indicates that it's worth it.
54297         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
54298
54299         * modules/strcasestr-tests: New file.
54300         * tests/test-strcasestr.c: New file.
54301
54302 2007-02-11  Bruno Haible  <bruno@clisp.org>
54303
54304         Ensure O(n) worst-case complexity of c_strcasestr.
54305         * lib/c-strcasestr.c: Include stdbool.h, string.h.
54306         (knuth_morris_pratt): New function.
54307         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
54308         the bookkeeping indicates that it's worth it.
54309         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
54310
54311         * modules/c-strcasestr-tests: New file.
54312         * tests/test-c-strcasestr.c: New file.
54313
54314 2007-02-11  Bruno Haible  <bruno@clisp.org>
54315
54316         Ensure O(n) worst-case complexity of c_strstr.
54317         * lib/c-strstr.c: Include stdbool.h, string.h.
54318         (knuth_morris_pratt): New function.
54319         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54320         bookkeeping indicates that it's worth it.
54321         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54322
54323         * lib/c-strstr.c: Complete rewrite for maintainability.
54324
54325         * modules/c-strstr-tests: New file.
54326         * tests/test-c-strstr.c: New file.
54327
54328 2007-02-11  Bruno Haible  <bruno@clisp.org>
54329
54330         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54331         5.2.1 and earlier, whereby \055 was treated just like the range
54332         delimiter '-'.
54333         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54334
54335 2007-02-08  Bruno Haible  <bruno@clisp.org>
54336
54337         * modules/regex (Depends-on): Add stdbool.
54338         Reported by Dalibor Topic <robilad@kaffe.org>.
54339
54340 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54341
54342         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54343         Prefer returning from main to exiting from it.
54344         Remove unnecessary parens after sizeof.
54345
54346 2007-02-05  Bruno Haible  <bruno@clisp.org>
54347
54348         New module mbssep.
54349         * modules/mbssep: New file.
54350         * lib/mbssep.c: New file.
54351         * lib/string_.h (strsep): Add a conditional link warning.
54352         (mbssep): New declaration.
54353         * m4/mbssep.m4: New file.
54354         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54355         GNULIB_MBSSEP.
54356         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54357         * MODULES.html.sh (Internationalization functions): Add mbssep.
54358
54359 2007-02-05  Bruno Haible  <bruno@clisp.org>
54360
54361         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54362         Optimize search in case of 1 delimiter.
54363
54364 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54365
54366         * lib/acl.h: Include sys/types.h before sys/acl.h.
54367
54368 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54369
54370         Merge upstream fix for glibc bugzilla #3957:
54371
54372         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54373
54374         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54375         bit for RE_HAT_LISTS_NOT_NEWLINE.
54376         (build_charclass_op): Remove bogus comment.
54377
54378 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54379
54380         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54381
54382 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54383
54384         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54385         * lib/memmem.c [!defined _LIBC]: Include config.h.
54386
54387 2007-02-04  Bruno Haible  <bruno@clisp.org>
54388
54389         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54390         warning message.
54391
54392 2007-02-04  Bruno Haible  <bruno@clisp.org>
54393
54394         New module mbstok_r.
54395         * modules/mbstok_r: New file.
54396         * lib/mbstok_r.c: New file.
54397         * lib/string_.h (strtok_r): Change argument names to match the
54398         comments. Add a conditional link warning.
54399         (mbstok_r): New declaration.
54400         * m4/mbstok_r.m4: New file.
54401         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54402         GNULIB_MBSTOK_R.
54403         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54404         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54405
54406 2007-02-04  Bruno Haible  <bruno@clisp.org>
54407
54408         New module mbsspn.
54409         * modules/mbsspn: New file.
54410         * lib/mbsspn.c: New file.
54411         * lib/string_.h (strspn): Add a conditional link warning.
54412         (mbsspn): New declaration.
54413         * m4/mbsspn.m4: New file.
54414         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54415         GNULIB_MBSSPN.
54416         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54417         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54418
54419 2007-02-04  Bruno Haible  <bruno@clisp.org>
54420
54421         New module mbspbrk.
54422         * modules/mbspbrk: New file.
54423         * lib/mbspbrk.c: New file.
54424         * lib/string_.h (strpbrk): Add a conditional link warning.
54425         (mbspbrk): New declaration.
54426         * m4/mbspbrk.m4: New file.
54427         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54428         GNULIB_MBSPBRK.
54429         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54430         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54431
54432 2007-02-04  Bruno Haible  <bruno@clisp.org>
54433
54434         New module mbscspn.
54435         * modules/mbscspn: New file.
54436         * lib/mbscspn.c: New file.
54437         * lib/string_.h (strcspn): Add a conditional link warning.
54438         (mbscspn): New declaration.
54439         * m4/mbscspn.m4: New file.
54440         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54441         GNULIB_MBSCSPN.
54442         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54443         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54444
54445 2007-02-04  Bruno Haible  <bruno@clisp.org>
54446
54447         New module mbscasestr, reduced goal of strcasestr.
54448         * modules/mbscasestr: New file.
54449         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54450         (mbscasestr): Renamed from strcasestr.
54451         * lib/strcasestr.c: Don't include mbuiter.h.
54452         (strcasestr): Remove support for multibyte locales.
54453         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54454         Change the conditional link warning.
54455         (mbscasestr): New declaration.
54456         * m4/mbscasestr.m4: New file.
54457         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54458         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54459         REPLACE_STRCASESTR.
54460         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54461         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54462         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54463         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54464         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54465         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54466         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54467         (Depends-on): Remove mbuiter.
54468         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54469
54470 2007-02-04  Bruno Haible  <bruno@clisp.org>
54471
54472         Simplify handling of strncasecmp.
54473         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
54474         the conditional link warning.
54475         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54476         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
54477         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
54478         * modules/strcase (configure.ac): Don't invoke
54479         gl_STRING_MODULE_INDICATOR.
54480         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
54481
54482 2007-02-04  Bruno Haible  <bruno@clisp.org>
54483
54484         New module mbscasecmp, reduced goal of strcasecmp.
54485         * modules/mbscasecmp: New file.
54486         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
54487         (mbscasecmp): Renamed from strcasecmp.
54488         * lib/strcasecmp.c: Don't include mbuiter.h.
54489         (strcasecmp): Remove support for multibyte locales.
54490         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
54491         Change the conditional link warning.
54492         (mbscasecmp): New declaration.
54493         * m4/mbscasecmp.m4: New file.
54494         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
54495         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
54496         REPLACE_STRCASECMP.
54497         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
54498         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54499         GNULIB_MBSCASECMP.
54500         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
54501         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54502         * modules/strcase (Files): Remove m4/mbrtowc.m4.
54503         (Depends-on): Remove mbuiter.
54504         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
54505
54506 2007-02-04  Bruno Haible  <bruno@clisp.org>
54507
54508         New module mbsstr. Remove module strstr.
54509         * modules/mbsstr: New file.
54510         * modules/strstr: Remove file.
54511         * lib/mbsstr.c: Renamed from lib/strstr.c.
54512         (mbsstr): Renamed from strstr.
54513         * lib/string_.h (strstr): Remove declaration. Change the conditional
54514         link warning.
54515         (mbsstr): New declaration.
54516         * m4/mbsstr.m4: New file.
54517         * m4/strstr.m4: Remove file.
54518         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
54519         REPLACE_STRSTR.
54520         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
54521         Don't initialize GNULIB_STRSTR.
54522         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
54523         substitute GNULIB_STRSTR and REPLACE_STRSTR.
54524         * MODULES.html.sh (Internationalization functions): Add mbsstr.
54525         (Support for systems lacking ANSI C 89): Remove strstr.
54526
54527 2007-02-04  Bruno Haible  <bruno@clisp.org>
54528
54529         New module mbsrchr.
54530         * modules/mbsrchr: New file.
54531         * lib/mbsrchr.c: New file.
54532         * lib/string_.h (strrchr): Add a conditional link warning.
54533         (mbsrchr): New declaration.
54534         * m4/mbsrchr.m4: New file.
54535         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54536         GNULIB_MBSRCHR.
54537         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
54538         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
54539
54540 2007-02-04  Bruno Haible  <bruno@clisp.org>
54541
54542         New module mbschr.
54543         * modules/mbschr: New file.
54544         * lib/mbschr.c: New file.
54545         * lib/string_.h (strchr): Add a conditional link warning.
54546         (mbschr): New declaration.
54547         * m4/mbschr.m4: New file.
54548         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54549         GNULIB_MBSCHR.
54550         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
54551         * MODULES.html.sh (Internationalization functions): Add mbschr.
54552
54553 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54554
54555         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
54556
54557         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
54558
54559 2007-02-04  Bruno Haible  <bruno@clisp.org>
54560
54561         New module description section 'configure.ac-early'.
54562         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
54563         (func_get_autoconf_early_snippet): New function.
54564         (func_import, func_create_testdir): Use it. Remove special cases for
54565         modules 'extensions' and 'lock'.
54566         * modules/extensions (configure.ac-early): Require
54567         gl_USE_SYSTEM_EXTENSIONS.
54568         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
54569
54570 2007-02-04  Bruno Haible  <bruno@clisp.org>
54571
54572         Make use of gcj-4.3's -fsource and -ftarget option.
54573         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
54574         and if so try the options -fsource and -ftarget.
54575         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
54576         source_version, ftarget_option, target_version arguments.
54577         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
54578         (is_envjavac_oldgcj_14_14_usable): Renamed from
54579         is_envjavac_gcj_14_14_usable.
54580         (is_envjavac_oldgcj_14_13_usable): Renamed from
54581         is_envjavac_gcj_14_13_usable.
54582         (is_gcj_present): Update.
54583         (is_gcj_43, is_gcj43_usable): New functions.
54584         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
54585         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
54586         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
54587         try the options -fsource and -ftarget.
54588
54589 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54590
54591         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
54592         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
54593         larger value.
54594
54595 2007-02-03  Jim Meyering  <jim@meyering.net>
54596
54597         Give tools a better chance to allocate space for very large buffers.
54598         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
54599
54600         Make pwd and readlink work also when run with an unreadable parent dir
54601         on systems with openat support.
54602         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
54603         provided getcwd function, even when we have openat support.
54604         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
54605
54606 2007-02-02  Bruno Haible  <bruno@clisp.org>
54607
54608         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54609         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
54610         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
54611         portability problems if one of these functions is only used on specific
54612         platforms.
54613         Reported by Paul Eggert.
54614
54615 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
54616
54617         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
54618         is causing more trouble than it's curing.
54619         * lib/regex_internal.h (__mempcpy): Remove.
54620         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
54621         (and make the code a tad smaller to boot).
54622         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
54623
54624 2007-02-02  Jim Meyering  <jim@meyering.net>
54625
54626         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
54627         section, not in the Makefile.am: one.
54628
54629 2007-02-02  Eric Blake  <ebb9@byu.net>
54630
54631         * lib/strchrnul.c: Always include config.h first.
54632
54633         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
54634         gnulib strstr is not necessary here.
54635
54636 2007-02-02  Simon Josefsson  <simon@josefsson.org>
54637
54638         * m4/socklen.m4: Fix typo.
54639
54640 2007-02-02  Eric Blake  <ebb9@byu.net>
54641
54642         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
54643         * modules/netinet_in (Makefile.am): Likewise.
54644
54645 2007-02-01  Bruno Haible  <bruno@clisp.org>
54646
54647         * lib/string_.h (GL_LINK_WARNING): New macro.
54648         (strcasecmp, strstr, strcasestr): If provided by the system,
54649         conditionally define as a macro that leads to a warning instead of to
54650         an error.
54651         (strncasecmp): Conditionally define as a macro that leads to a warning.
54652
54653 2007-02-01  Karl Berry  <karl@gnu.org>
54654
54655         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
54656
54657 2007-02-01  Bruno Haible  <bruno@clisp.org>
54658
54659         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
54660         renamings.
54661
54662 2007-02-01  Eric Blake  <ebb9@byu.net>
54663
54664         * modules/regex (Depends-on): Revert dependence on mempcpy.
54665         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
54666         module's definition of mempcpy.
54667         Reported by Paul Eggert.
54668
54669 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54670
54671         * lib/string_.h: If the gnulib module XYZ is not present, undefine
54672         the symbol XYZ before redefining it.  This fixes a problem with
54673         programs that don't use XYZ, when compiled on systems that define
54674         XYZ to something else.
54675
54676 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
54677
54678         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
54679         occurs when "mkdir -m foo" creates a setgid directory that is (1)
54680         writeable to group or other and (2) is intended to have a special
54681         mode bit that is set or cleared.  In such a case, the directory
54682         should be neither group- nor other-writeable until the special
54683         mode bits are right.
54684
54685 2007-01-31  Eric Blake  <ebb9@byu.net>
54686
54687         * modules/mountlist (Depends-on): Add strstr.
54688
54689         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
54690         bug.
54691         * modules/string (Makefile.am): Remove redundant replacement.
54692         * modules/regex (Depends-on): Add mempcpy.
54693
54694 2007-01-31  Bruno Haible  <bruno@clisp.org>
54695
54696         New module description field 'Link'.
54697         * gnulib-tool (func_usage): Document --extract-link-directive.
54698         (sed_extract_prog): Recognize 'Link' directive.
54699         (func_get_link_directive): New function.
54700         (func_import): Show summary of link directives.
54701         Handle --extract-link-directive option.
54702         * modules/acl (Link): New section.
54703         * modules/clock-time (Link): New section.
54704         * modules/euidaccess (Link): New section.
54705         * modules/gettext (Link): New section.
54706         * modules/iconv (Link): New section.
54707         * modules/lock (Link): New section.
54708         * modules/nanosleep (Link): New section.
54709         * modules/readline (Link): New section.
54710
54711 2007-01-27  Bruno Haible  <bruno@clisp.org>
54712
54713         Enforce the use of gnulib modules for unportable <string.h> functions.
54714         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
54715         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
54716         (gl_HEADER_STRING_H_BODY): Require it.
54717         * lib/string_.h: If the gnulib module XYZ is not present, redefine
54718         the symbol XYZ to one that gives a link error.
54719         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
54720         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
54721         * modules/mempcpy (configure.ac): Likewise.
54722         * modules/memrchr (configure.ac): Likewise.
54723         * modules/stpcpy (configure.ac): Likewise.
54724         * modules/stpncpy (configure.ac): Likewise.
54725         * modules/strcase (configure.ac): Likewise.
54726         * modules/strcasestr (configure.ac): Likewise.
54727         * modules/strchrnul (configure.ac): Likewise.
54728         * modules/strdup (configure.ac): Likewise.
54729         * modules/strndup (configure.ac): Likewise.
54730         * modules/strnlen (configure.ac): Likewise.
54731         * modules/strpbrk (configure.ac): Likewise.
54732         * modules/strsep (configure.ac): Likewise.
54733         * modules/strstr (configure.ac): Likewise.
54734         * modules/strtok_r (configure.ac): Likewise.
54735
54736 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
54737
54738         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
54739
54740 2007-01-30  Jim Meyering  <jim@meyering.net>
54741
54742         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
54743
54744 2007-01-29  Bruno Haible  <bruno@clisp.org>
54745
54746         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
54747         * lib/execute.c: Likewise.
54748         * lib/pipe.c: Likewise.
54749         * lib/printf-args.h: Likewise.
54750         * lib/printf-args.c: Likewise.
54751         * lib/printf-parse.c: Likewise.
54752         * lib/vasnprintf.c: Likewise.
54753
54754 2007-01-29  Eric Blake  <ebb9@byu.net>
54755
54756         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
54757         declaration.
54758
54759 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
54760
54761         * lib/strptime.h (strptime): Use 'restrict' for args where
54762         POSIX requires this.
54763         * lib/strptime.c (strptime): Likewise.
54764         Change license notice from LGPL to GPL, since gnulib-tool will
54765         change this as needed.
54766         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
54767         defined.
54768         Include "strptime.h" first, to check interface.
54769         Do not #undef _LIBC and _NL_CURRENT.
54770         Do not include <stdlib.h>; no longer needed.
54771         Include "time_r.h" and declare ptime_locale_status
54772         only if _LIBC is not defined.
54773         (__P): Remove unused macro.
54774         (match_string): Bring back glibc version, but use it only if _LIBC
54775         is defined.
54776         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
54777         Remove unnecessary assertion and abort() call.
54778         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
54779         * m4/strptime.m4: Fix serial number comment.
54780         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
54781         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
54782         (Depends-on): Add time_r.
54783
54784 2007-01-29  Bruno Haible  <bruno@clisp.org>
54785
54786         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54787         strptime.
54788         * modules/strptime (Depends-on): Add stdbool.
54789         * lib/strptime.h: Include <time.h> always. Add comments.
54790
54791 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54792
54793         * modules/strptime: New file.
54794         * lib/strptime.h: New file.
54795         * lib/strptime.c: New file.
54796         * m4/strptime.m4: New file.
54797
54798 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54799
54800         * MODULES.html.sh: New module mpsort.
54801         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
54802
54803         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
54804         a circularity problem with HP-UX ia64 reported by Bob Proulx in
54805         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
54806         All uses changed.
54807         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
54808         All uses changed.
54809         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
54810         to _Restrict_.
54811         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
54812         the parameter matches the prototype.
54813
54814 2007-01-28  Jim Meyering  <jim@meyering.net>
54815
54816         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
54817         sys/time.h here, reverting that part of the previous patch:
54818         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
54819
54820 2007-01-28  Bruno Haible  <bruno@clisp.org>
54821
54822         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
54823         value of $(SYS_TIME_H).
54824         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
54825         remove it conditionally, too. [added by Jim Meyering]
54826         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
54827         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54828         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
54829         GETTIMEOFDAY_REPLACEMENT to 1.
54830
54831 2007-01-28  Bruno Haible  <bruno@clisp.org>
54832
54833         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
54834         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
54835         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
54836         Set UNISTD_H instead of UNISTD_H2.
54837         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
54838
54839 2007-01-28  Bruno Haible  <bruno@clisp.org>
54840
54841         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
54842         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
54843
54844 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54845
54846         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
54847         (func_create_testdir): Ensure C locale for `grep' and `tr'
54848         character ranges.
54849         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
54850         ACLOCAL_AMFLAGS parsing state machine.
54851
54852 2007-01-27  Bruno Haible  <bruno@clisp.org>
54853
54854         * modules/unistr/base: Update.
54855
54856 2007-01-27  Bruno Haible  <bruno@clisp.org>
54857
54858         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
54859         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
54860         * modules/unistr/u32-mbtouc-unsafe: Renamed from
54861         modules/unistr/u32-mbtouc.
54862         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
54863         * lib/unistr.h: Update.
54864         * lib/linebreak.c: Update.
54865         * modules/unistr/u32-mbtouc: Renamed from
54866         modules/unistr/u32-mbtouc-safe.
54867         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
54868         * lib/unistr.h: Update.
54869         * lib/unistr/u32-to-u8.c: Update.
54870         * lib/unistr/u32-to-u16.c: Update.
54871
54872 2007-01-27  Bruno Haible  <bruno@clisp.org>
54873
54874         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
54875         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
54876         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
54877         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
54878         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
54879         * modules/unistr/u16-mbtouc-unsafe: Renamed from
54880         modules/unistr/u16-mbtouc.
54881         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
54882         * lib/unistr.h: Update.
54883         * lib/linebreak.c: Update.
54884         * modules/linebreak: Update.
54885         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
54886         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
54887         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
54888         * modules/unistr/u16-mbtouc: Renamed from
54889         modules/unistr/u16-mbtouc-safe.
54890         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
54891         * lib/unistr.h: Update.
54892         * lib/unistr/u16-to-u8.c: Update.
54893         * modules/unistr/u16-to-u8: Update.
54894         * lib/unistr/u16-to-u32.c: Update.
54895         * modules/unistr/u16-to-u32: Update.
54896
54897 2007-01-27  Bruno Haible  <bruno@clisp.org>
54898
54899         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
54900         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
54901         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
54902         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
54903         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
54904         * modules/unistr/u8-mbtouc-unsafe: Renamed from
54905         modules/unistr/u8-mbtouc.
54906         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
54907         * lib/unistr.h: Update.
54908         * lib/striconveh.c: Update.
54909         * modules/striconveh: Update.
54910         * lib/linebreak.c: Update.
54911         * modules/linebreak: Update.
54912         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
54913         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
54914         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
54915         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
54916         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
54917         * lib/unistr.h: Update.
54918         * lib/striconveh.c: Update.
54919         * modules/striconveh: Update.
54920         * lib/unistr/u8-to-u16.c: Update.
54921         * modules/unistr/u8-to-u16: Update.
54922         * lib/unistr/u8-to-u32.c: Update.
54923         * modules/unistr/u8-to-u32: Update.
54924
54925 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54926
54927         Sync from Libtool.
54928         * lib/argz.c: Do not include strings.h nor memory.h, include
54929         string.h unconditionally.  Patch by Simon Josefsson.
54930
54931 2007-01-27  Bruno Haible  <bruno@clisp.org>
54932
54933         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
54934         from gl_HEADER_STRING_H_BODY.
54935         (gl_HEADER_STRING_H_BODY): Require it.
54936         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
54937         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54938         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54939         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54940         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54941         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
54942         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54943         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54944         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
54945         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54946         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54947         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
54948         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54949         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54950         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54951
54952 2007-01-27  Bruno Haible  <bruno@clisp.org>
54953
54954         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
54955         check_PROGRAMS into noinst_PROGRAMS.
54956         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
54957         check_PROGRAMS in this case.
54958         (func_import): Set for_test to false.
54959         (func_create_testdir): Set for_test to true.
54960
54961 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54962             Bruno Haible  <bruno@clisp.org>
54963
54964         * modules/strcasestr (Files): Remove lib/strcasestr.h.
54965         (Depends-on): Add string.
54966         (Includes): Use <string.h> instead of strcasestr.h.
54967         * modules/string (Makefile.am): Also substitute the value of
54968         REPLACE_STRCASESTR.
54969         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
54970         assume strcasestr is declared in <string.h> not <strings.h>. Also
54971         set REPLACE_STRCASESTR.
54972         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
54973         REPLACE_STRCASESTR.
54974         * lib/strcasestr.h: Remove file.
54975         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
54976         * lib/string_.h (strcasestr): New declaration.
54977
54978 2007-01-27  Bruno Haible  <bruno@clisp.org>
54979
54980         * lib/string_.h: Use 'extern'.
54981
54982 2007-01-27  Jim Meyering  <jim@meyering.net>
54983
54984         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
54985         of set-but-not-used local, "q".
54986
54987         * lib/mempcpy.c: Include <config.h> before <string.h>.
54988         This fixes a compilation error on HP-UX, due to the system's
54989         "restrict"-using mempcpy prototype.
54990
54991 2007-01-26  Bruno Haible  <bruno@clisp.org>
54992
54993         Small optimization.
54994         * lib/javacomp.c: Include c-strstr.h.
54995          (is_envjavac_gcj): Use c_strstr instead of strstr.
54996         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
54997
54998 2007-01-26  Bruno Haible  <bruno@clisp.org>
54999
55000         * MODULES.html.sh (Unicode string functions): Add the new modules.
55001
55002         * modules/uniconv/u32-strconv-to-locale: New file.
55003         * lib/uniconv/u32-strconv-to-locale.c: New file.
55004
55005         * modules/uniconv/u16-strconv-to-locale: New file.
55006         * lib/uniconv/u16-strconv-to-locale.c: New file.
55007
55008         * modules/uniconv/u8-strconv-to-locale: New file.
55009         * lib/uniconv/u8-strconv-to-locale.c: New file.
55010
55011         * modules/uniconv/u32-strconv-from-locale: New file.
55012         * lib/uniconv/u32-strconv-from-locale.c: New file.
55013
55014         * modules/uniconv/u16-strconv-from-locale: New file.
55015         * lib/uniconv/u16-strconv-from-locale.c: New file.
55016
55017         * modules/uniconv/u8-strconv-from-locale: New file.
55018         * lib/uniconv/u8-strconv-from-locale.c: New file.
55019
55020         * modules/uniconv/u32-strconv-to-enc: New file.
55021         * lib/uniconv/u32-strconv-to-enc.c: New file.
55022         * modules/uniconv/u32-strconv-to-enc-tests: New file.
55023         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
55024
55025         * modules/uniconv/u16-strconv-to-enc: New file.
55026         * lib/uniconv/u16-strconv-to-enc.c: New file.
55027         * lib/uniconv/u-strconv-to-enc.h: New file.
55028         * modules/uniconv/u16-strconv-to-enc-tests: New file.
55029         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
55030
55031         * modules/uniconv/u8-strconv-to-enc: New file.
55032         * lib/uniconv/u8-strconv-to-enc.c: New file.
55033         * modules/uniconv/u8-strconv-to-enc-tests: New file.
55034         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
55035
55036         * modules/uniconv/u32-strconv-from-enc: New file.
55037         * lib/uniconv/u32-strconv-from-enc.c: New file.
55038         * modules/uniconv/u32-strconv-from-enc-tests: New file.
55039         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
55040
55041         * modules/uniconv/u16-strconv-from-enc: New file.
55042         * lib/uniconv/u16-strconv-from-enc.c: New file.
55043         * modules/uniconv/u16-strconv-from-enc-tests: New file.
55044         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
55045
55046         * modules/uniconv/u8-strconv-from-enc: New file.
55047         * lib/uniconv/u8-strconv-from-enc.c: New file.
55048         * lib/uniconv/u-strconv-from-enc.h: New file.
55049         * modules/uniconv/u8-strconv-from-enc-tests: New file.
55050         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
55051
55052         * modules/uniconv/u32-conv-from-enc: New file.
55053         * lib/uniconv/u32-conv-from-enc.c: New file.
55054         * modules/uniconv/u32-conv-from-enc-tests: New file.
55055         * tests/uniconv/test-u32-conv-from-enc.c: New file.
55056
55057         * modules/uniconv/u16-conv-from-enc: New file.
55058         * lib/uniconv/u16-conv-from-enc.c: New file.
55059         * lib/uniconv/u-conv-from-enc.h: New file.
55060         * modules/uniconv/u16-conv-from-enc-tests: New file.
55061         * tests/uniconv/test-u16-conv-from-enc.c: New file.
55062
55063         * modules/uniconv/u8-conv-from-enc: New file.
55064         * lib/uniconv/u8-conv-from-enc.c: New file.
55065         * modules/uniconv/u8-conv-from-enc-tests: New file.
55066         * tests/uniconv/test-u8-conv-from-enc.c: New file.
55067
55068         * modules/uniconv/base: New file.
55069         * lib/uniconv.h: New file.
55070
55071 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55072
55073         * doc/gnulib-tool.texi (Initial import): Update to match current
55074         behavior with strdup module.
55075         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
55076         * lib/memmem.h: Remove; all uses removed.  This is now done
55077         by <string.h>.
55078         * lib/mempcpy.h: Likewise.
55079         * lib/memrchr.h: Likewise.
55080         * lib/stpcpy.h: Likewise.
55081         * lib/stpncpy.h: Likewise.
55082         * lib/strcase.h: Likewise.
55083         * lib/strchrnul.h: Likewise.
55084         * lib/strdup.h: Likewise.
55085         * lib/strndup.h: Likewise.
55086         * lib/strnlen.h: Likewise.
55087         * lib/strpbrk.h: Likewise.
55088         * lib/strsep.h: Likewise.
55089         * lib/strstr.h: Likewise.
55090         * lib/strtok_r.h: Likewise.
55091         * lib/string_.h: New file.
55092         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
55093         Rely on <string.h> instead.
55094         * lib/canon-host.c: Likewise.
55095         * lib/chdir-long.c: Likewise.
55096         * lib/concatpath.c: Likewise.
55097         * lib/exclude.c: Likewise.
55098         * lib/fchdir.c: Likewise.
55099         * lib/getaddrinfo.c: Likewise.
55100         * lib/getcwd.c: Likewise.
55101         * lib/getsubopt.c: Likewise.
55102         * lib/glob.c: Likewise.
55103         * lib/hard-locale.c: Likewise.
55104         * lib/iconvme.c: Likewise.
55105         * lib/javacomp.c: Likewise.
55106         * lib/mempcpy.c: Likewise.
55107         * lib/memrchr.c: Likewise.
55108         * lib/regex_internal.h: Likewise.
55109         * lib/stpncpy.c: Likewise.
55110         * lib/strcasecmp.c: Likewise.
55111         * lib/strchrnul.c: Likewise.
55112         * lib/strdup.c: Likewise.
55113         * lib/striconv.c: Likewise.
55114         * lib/striconveh.c: Likewise.
55115         * lib/striconveha.c: Likewise.
55116         * lib/strncasecmp.c: Likewise.
55117         * lib/strndup.c: Likewise.
55118         * lib/strnlen.c: Likewise.
55119         * lib/strsep.c: Likewise.
55120         * lib/strstr.c: Likewise.
55121         * lib/strtok_r.c: Likewise.
55122         * lib/userspec.c: Likewise.
55123         * lib/w32spawn.h: Likewise.
55124         * lib/xstrndup.c: Likewise.
55125         * lib/mountlist.c (strstr): Remove decl.
55126         * m4/string_h.m4: New file.
55127         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
55128         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
55129         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
55130         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
55131         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
55132         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
55133         Set REPLACE_STRCASECMP if necessary.
55134         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
55135         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
55136         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
55137         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
55138         HAVE_DECL_STRDUP if necessary.
55139         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
55140         since gl_FUNC_STRNDUP does that now.
55141         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
55142         Check for decl here...
55143         (gl_PREREQ_STRNLEN): ... not here.
55144         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
55145         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
55146         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
55147         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
55148         necessary.
55149         * modules/string: New file.
55150         * modules/memmem (Files): Remove special-purpose include file.
55151         (Depends-on): Add string.
55152         (Include): Include <string.h>, not the removed file.
55153         * modules/mempcpy: Likewise.
55154         * modules/memrchr: Likewise.
55155         * modules/stpcpy: Likewise.
55156         * modules/stpncpy: Likewise.
55157         * modules/strcase: Likewise.
55158         * modules/strchrnul: Likewise.
55159         * modules/strdup: Likewise.
55160         * modules/strndup: Likewise.
55161         * modules/strnlen: Likewise.
55162         * modules/strpbrk: Likewise.
55163         * modules/strsep: Likewise.
55164         * modules/strstr: Likewise.
55165         * modules/strtok_r: Likewise.
55166         * tests/test-dirname.c: Don't include "strdup.h", since
55167         <string.h> now suffices.
55168         * tests/test-memmem.c: Don't include "memmem.h", since
55169         <string.h> now suffices.
55170
55171 2007-01-25  Bruno Haible  <bruno@clisp.org>
55172
55173         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
55174         *resultp is 0.
55175
55176         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
55177         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
55178         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
55179         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
55180
55181         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
55182         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
55183         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
55184         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
55185         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
55186         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
55187
55188 2007-01-24  Bruno Haible  <bruno@clisp.org>
55189
55190         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
55191         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
55192         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55193         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55194         gl_FUNC_FTS_CORE.
55195         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55196         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55197         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55198         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55199         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55200         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55201         gl_FUNC_FCHOWNAT.
55202         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55203         gl_FUNC_STRFTIME.
55204         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55205         Reported by Ralf Wildenhues.
55206
55207 2007-01-24  Bruno Haible  <bruno@clisp.org>
55208
55209         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55210         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55211         gl_GETADDRINFO.
55212         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55213         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55214         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55215
55216 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55217
55218         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55219         Don't use 'exit'; just return from 'main'.
55220         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55221
55222         * lib/fnmatch_.h: Readjust white space and comments to match
55223         glibc, to avoid spurious diffs.
55224
55225 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55226
55227         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55228         2004-12-01 change by Jakub Jelinek, since this code won't compile
55229         if !LIBC.  Problem reported by Bob Proulx.
55230
55231 2007-01-23  Bruno Haible  <bruno@clisp.org>
55232
55233         * lib/striconveh.c: Include c-strcaseeq.h.
55234         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55235         * modules/striconveh (Depends-on): Add c-strcaseeq.
55236
55237 2007-01-23  Bruno Haible  <bruno@clisp.org>
55238
55239         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55240
55241         * modules/c-strcaseeq: New file.
55242         * lib/c-strcaseeq.h: New file.
55243
55244         * modules/streq: New file.
55245         * lib/streq.h: New file.
55246
55247 2007-01-23  Bruno Haible  <bruno@clisp.org>
55248
55249         * modules/striconveha-tests: New file.
55250         * tests/test-striconveha.c: New file.
55251
55252         * lib/striconveha.h: Include <stdbool.h>.
55253         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55254         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55255         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55256         (mem_iconveha): New function.
55257         (str_iconveha_notranslit): Renamed from str_iconveha.
55258         (str_iconveha): New function.
55259         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55260         c-strcase.
55261
55262 2007-01-23  Bruno Haible  <bruno@clisp.org>
55263
55264         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
55265         encodings without forgiving before trying any encoding with handler.
55266         (str_iconveha): Try all encodings without forgiving before trying any
55267         encoding with handler.
55268
55269 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55270
55271         Import the following changes from libc.
55272
55273         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55274
55275         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
55276
55277         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55278
55279         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
55280         normal_bracket label.
55281
55282         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
55283
55284         [BZ #361]
55285         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
55286         to normal_bracket after fetching the next character.
55287
55288 2007-01-22  Bruno Haible  <bruno@clisp.org>
55289
55290         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
55291         argument.
55292         * lib/striconveh.c (iconv_carefully_1): New function.
55293         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
55294         argument.
55295         (str_cd_iconveh): Update.
55296         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
55297         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
55298         * tests/test-striconveh.c (MAGIC): New macro.
55299         (new_offsets): New function.
55300         (main): Test call with and without offsets.
55301
55302 2007-01-22  Bruno Haible  <bruno@clisp.org>
55303
55304         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
55305         * modules/sys_select (Makefile.am): Likewise.
55306         * modules/sys_socket (Makefile.am): Likewise.
55307         * modules/sys_time (Makefile.am): Likewise.
55308
55309 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55310
55311         * modules/gettimeofday (License): Change from GPL to LGPL, since
55312         gettimeofday is a library function.
55313
55314 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55315
55316         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55317
55318 2007-01-21  Bruno Haible  <bruno@clisp.org>
55319
55320         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55321
55322 2007-01-21  Bruno Haible  <bruno@clisp.org>
55323
55324         * modules/striconveha: New file.
55325         * lib/striconveha.h: New file.
55326         * lib/striconveha.c: New file.
55327         * MODULES.html.sh (Internationalization functions): Add striconveha.
55328         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55329         string.
55330         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55331
55332 2007-01-21  Bruno Haible  <bruno@clisp.org>
55333
55334         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55335         * lib/striconveh.c (str_iconveh): Likewise.
55336
55337 2007-01-21  Bruno Haible  <bruno@clisp.org>
55338
55339         * lib/striconveh.h (mem_iconveh): New declaration.
55340         * lib/striconveh.c (mem_iconveh): New function.
55341         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55342
55343 2007-01-21  Bruno Haible  <bruno@clisp.org>
55344
55345         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55346
55347         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55348         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55349         original result buffer.
55350         (str_cd_iconveh): Update.
55351         * tests/test-striconveh.c (main): Update.
55352
55353         * lib/striconv.h (mem_cd_iconv): Change specification.
55354         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55355         result buffer.
55356         (str_cd_iconv): Update.
55357         * tests/test-striconv.c (main): Update.
55358
55359 2007-01-21  Bruno Haible  <bruno@clisp.org>
55360
55361         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55362
55363 2007-01-20  Jim Meyering  <jim@meyering.net>
55364
55365         * lib/userspec.c (parse_with_separator): If a user or group string
55366         starts with "+", skip the corresponding name-to-ID look-up, since
55367         such a look-up must fail: user and group names may not include "+".
55368
55369 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55370
55371         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55372         since we now assume the sys_time module.
55373         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55374         check for sys/time.h; no longer needed.
55375         * modules/poll (Depends-on): Depend on sys_time.
55376
55377 2007-01-18  Bruno Haible  <bruno@clisp.org>
55378
55379         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55380         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55381
55382         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55383         gettimeofday.
55384
55385         * tests/test-gettimeofday.c: Include <time.h>.
55386         (dummy): Remove variable.
55387
55388         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55389         gl_HEADER_SYS_TIME_H.
55390         (gl_HEADER_SYS_TIME_H): New macro.
55391
55392         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55393         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55394         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55395         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55396         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55397         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55398         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55399         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55400         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55401         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55402         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55403
55404         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55405         last change; it caused a compilation error when cross-compiling to
55406         Cygwin.
55407
55408 2007-01-18  Jim Meyering  <jim@meyering.net>
55409
55410         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55411         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55412         than the race-prone "test -d sys || mkdir sys".
55413         (configure.ac): Use AC_PROG_MKDIR_P.
55414         * modules/sys_select: Likewise.
55415         * modules/sys_socket: Likewise.
55416         * modules/sys_time: Likewise.
55417
55418 2007-01-18  Eric Blake  <ebb9@byu.net>
55419
55420         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55421         replace gettimeofday.
55422         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55423         name, to avoid infinite recursion.
55424
55425 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55426
55427         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55428         module sys_time.
55429         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55430         assume timespec.h defines struct timeval.
55431         * lib/settime.c: Likewise.
55432         * lib/utimens.c: Likewise.
55433         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55434         since we now assume the gettimeofday module.
55435         * lib/tempname.c (__gen_tempname): Likewise.
55436         * lib/gettimeofday.h: Remove.
55437         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55438         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55439         Include <time.h>, for 'time()'.
55440         (localtime_buffer_addr): Also use this workaround if
55441         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55442         to simplify the uses.  All uses changed.
55443         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55444         that #undef is inside {}, and 'const' follows type name consistently.
55445         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55446         (gettimeofday): Do not use the maximum possible value for
55447         tv->tv_usec, since that might break usages other than ls.c.
55448         Instead, we'll leave ls.c alone.  This undoes today's patch
55449         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55450         we've never observed the problem but might as well keep the
55451         canary.
55452         * lib/nanosleep.c: Include timespec.h first, for interface check.
55453         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55454         now assume the sys_time module.
55455         * lib/tempname.c: Likewise.
55456         * lib/timespec.h: Likewise.
55457         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55458         needed.
55459         * lib/strftime.c: Likewise.
55460         * lib/timespec.h: Likewise.
55461         * lib/posixtm.c: Include posixtm.h first, for interface check.
55462         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55463         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55464         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55465         * lib/sys_time_.h: New file.
55466         * lib/timespec.h (struct timespec): Use long int, not long.
55467         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55468         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55469         Remove obsolescent call to AC_HEADER_TIME.
55470         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55471         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55472         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55473         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
55474         Likewise.
55475         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
55476         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
55477         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
55478         into the sys_time module.  Check for gettimeofday just once.
55479         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
55480         for gettimeofday signature to just check the signature.  Merely
55481         compile it, since linking doesn't test signature.  Improve test for
55482         whether gettimeofday.o is actually needed.
55483         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
55484         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
55485         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
55486         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55487         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
55488         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
55489         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
55490         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
55491         than worrying about sys/time.h.
55492         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55493         Don't bother worrying about TIME_WITH_SYS_TIME.
55494         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55495         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
55496         * m4/sys_time_h.m4: New file.
55497         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
55498         Don't include sys/time.h.  Return from main rather than exiting.
55499         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
55500         all uses changed.
55501         * modules/gethrxtime (Depends-on): Add sys_time.
55502         * modules/gettime (Depends-on): Likewise.
55503         * modules/gettimeofday (Depends-on): Likewise.
55504         * modules/nanosleep (Depends-on): Likewise.
55505         * modules/settime (Depends-on): Likewise.
55506         * modules/tempname (Depends-on): Likewise.
55507         * modules/utimens (Depends-on): Likewise.
55508         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
55509         (Include): Change back to <sys/time.h>.
55510         (Maintainer): Add self.
55511         * modules/sys_time: New file.
55512         * modules/tempname (Depends-on): Add gettimeofday.
55513         * tests/test-gettimeofday.c: Include <sys/time.h>
55514         rather than gettimeofday.h.
55515
55516 2007-01-17  Bruno Haible  <bruno@clisp.org>
55517
55518         * gnulib-tool (func_get_license): Revert last patch. Instead, let
55519         the license default to GPL.
55520         (func_create_testdir): Don't complain if a module is LGPL and its
55521         tests module depends on GPLed modules.
55522
55523 2007-01-17  Bruno Haible  <bruno@clisp.org>
55524
55525         * lib/gettimeofday.c (gettimeofday): Add code for the case
55526         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
55527         maximum possible value for tv->tv_usec, rather than the minimum one.
55528
55529 2005-10-08  Martin Lambers  <marlam@marlam.de>
55530 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55531 2007-01-16  Bruno Haible  <bruno@clisp.org>
55532
55533         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
55534         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
55535         gl_FUNC_GETTIMEOFDAY.
55536         (Include): Add gettimeofday.h.
55537         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
55538         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
55539         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
55540         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
55541         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
55542         * lib/gettimeofday.h: New file.
55543         * lib/gettimeofday.c: Include <sys/timeb.h>.
55544         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
55545         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55546         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
55547         fall back on time().
55548
55549         * tests/test-gettimeofday.c: New file.
55550         * modules/gettimeofday-tests: New file.
55551
55552 2007-01-16  Eric Blake  <ebb9@byu.net>
55553
55554         * modules/fnmatch (Depends-on): Depend on wchar.
55555         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
55556         * m4/fnmatch.m4: Likewise.
55557         * modules/mbchar (Makefile.am): Assume <wchar.h>.
55558         * m4/mbchar.m4: Likewise.
55559         * modules/mbswidth (Depends-on): Depend on wchar.
55560         * lib/mbswidth.c: Assume <wchar.h>.
55561         * m4/mbswidth.m4: Likewise.
55562         * modules/quotearg (Depends-on): Depend on wchar.
55563         * lib/quotearg.c: Assume <wchar.h>.
55564         * m4/quotearg.m4: Likewise.
55565         * modules/regex (Depends-on): Depend on wchar.
55566         * lib/regex_internal.h: Assume <wchar.h>.
55567         * m4/regex.m4: Likewise.
55568         * modules/stdint (Depends-on): Depend on wchar.
55569         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
55570         * m4/stdint.m4: Likewise.
55571         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
55572         * modules/strftime (Depends-on): Depend on wchar.
55573         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
55574         * modules/strtol (Depends-on): Depend on wchar.
55575         * lib/strtol.c: Assume <wchar.h>.
55576         * modules/wcwidth (Depends-on): Depend on wchar.
55577         * lib/wcwidth.h: Assume <wchar.h>.
55578         * m4/wcwidth.m4: Likewise.
55579
55580 2007-01-16  Bruno Haible  <bruno@clisp.org>
55581
55582         * modules/csharpexec-script: New, created from...
55583         * modules/csharpexec: ... this.
55584
55585 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55586
55587         * modules/javaexec-script: New, created from...
55588         * modules/javaexec: ... this.
55589
55590 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55591
55592         * modules/poll (Dependencies): Add sys_select.
55593
55594 2007-01-15  Jim Meyering  <jim@meyering.net>
55595
55596         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
55597         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
55598         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
55599         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
55600
55601 2007-01-15  Bruno Haible  <bruno@clisp.org>
55602
55603         * modules/striconveh: New file.
55604         * lib/striconveh.h: New file.
55605         * lib/striconveh.c: New file.
55606         * MODULES.html.sh (Internationalization functions): Add striconveh.
55607
55608         * modules/striconveh-tests: New file.
55609         * tests/test-striconveh.c: New file.
55610
55611 2007-01-15  Bruno Haible  <bruno@clisp.org>
55612
55613         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
55614         not from GNU libiconv or GNU libc.
55615
55616 2007-01-15  Bruno Haible  <bruno@clisp.org>
55617
55618         * doc/gnulib-intro.texi (Copyright): Explain the different license
55619         terms for module descriptions, autoconf macros, tests, documentation.
55620
55621 2007-01-14  Bruno Haible  <bruno@clisp.org>
55622
55623         * modules/striconv-tests: New file.
55624         * tests/test-striconv.c: New file.
55625
55626 2007-01-14  Bruno Haible  <bruno@clisp.org>
55627
55628         * modules/iconv-tests: New file.
55629         * tests/test-iconv.c: New file.
55630
55631 2007-01-14  Bruno Haible  <bruno@clisp.org>
55632
55633         * gnulib-tool (func_get_license): For test modules, use the license of
55634         the main module.
55635
55636 2007-01-14  Bruno Haible  <bruno@clisp.org>
55637
55638         * modules/iconv (Include): Clarify that <iconv.h> can only be included
55639         if iconv is found to exist.
55640
55641 2007-01-14  Bruno Haible  <bruno@clisp.org>
55642
55643         * modules/c-ctype-tests: New file.
55644         * tests/test-c-ctype.c: New file.
55645
55646 2007-01-14  Bruno Haible  <bruno@clisp.org>
55647
55648         * modules/binary-io-tests: New file.
55649         * tests/test-binary-io.sh: New file.
55650         * tests/test-binary-io.c: New file.
55651
55652 2007-01-14  Bruno Haible  <bruno@clisp.org>
55653
55654         * modules/array-oset-tests: New file.
55655         * tests/test-array_oset.c: New file.
55656
55657 2007-01-14  Bruno Haible  <bruno@clisp.org>
55658
55659         * modules/array-list-tests: New file.
55660         * tests/test-array_list.c: New file.
55661
55662 2007-01-14  Bruno Haible  <bruno@clisp.org>
55663
55664         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
55665         and make.
55666         Reported by Simon Josefsson in
55667         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
55668
55669 2007-01-14  Bruno Haible  <bruno@clisp.org>
55670
55671         * modules/allocsa-tests: New file.
55672         * tests/test-allocsa.c: New file.
55673
55674 2007-01-14  Bruno Haible  <bruno@clisp.org>
55675
55676         * modules/fchdir (Depends-on): Add absolute-header.
55677         * modules/unistd (Depends-on): Likewise.
55678
55679 2006-12-30  Bruno Haible  <bruno@clisp.org>
55680
55681         * modules/fchdir: New file.
55682         * modules/unistd (Files): Add lib/unistd_.h.
55683         (Makefile.am): Generate unistd.h from unistd_.h.
55684         * lib/fchdir.c: New file.
55685         * lib/dirent_.h: New file.
55686         * lib/unistd_.h: New file.
55687         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
55688         * m4/fchdir.m4: New file.
55689         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
55690         (gl_HEADER_UNISTD): Invoke it.
55691         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
55692         function.
55693         * lib/backupfile.c (opendir, closedir): Undefine.
55694         * lib/chown.c (open, close): Undefine.
55695         * lib/clean-temp.c (open, close): Undefine.
55696         * lib/copy-file.c (open, close): Undefine.
55697         * lib/execute.c (open, close): Undefine.
55698         * lib/fsusage.c (open, close): Undefine.
55699         * lib/gc-gnulib.c (open, close): Undefine.
55700         * lib/getcwd.c (opendir, closedir): Undefine.
55701         * lib/glob.c (opendir, closedir): Undefine.
55702         * lib/javacomp.c (open, close): Undefine.
55703         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
55704         * lib/openat-proc.c (open, close): Undefine.
55705         * lib/pagealign_alloc.c (open, close): Undefine.
55706         * lib/pipe.c (open, close): Undefine.
55707         * lib/progreloc.c (open, close): Undefine.
55708         * lib/savedir.c (opendir, closedir): Undefine.
55709         * lib/utime.c (open, close): Undefine.
55710         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
55711
55712 2007-01-10  Bruno Haible  <bruno@clisp.org>
55713
55714         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
55715
55716 2007-01-12  Eric Blake  <ebb9@byu.net>
55717
55718         Provide a robust <wchar.h>.  Further simplifications are now
55719         possible in other modules, but not included here.
55720         * modules/wchar: New module.
55721         * m4/wchar.m4: New file.
55722         * lib/wchar_.h: Likewise.
55723         * modules/mbchar (Depends-on): Depend on wchar, as the first use
55724         of the new module.
55725         * MODULES.html.sh (Extended multibyte and wide character utilities):
55726         New section.
55727
55728 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
55729
55730         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
55731         to a reasonable default for memory allocation.
55732         (xreadlink): Don't allocate a huge buffer, to work around a buggy
55733         file system that reports garbage st_size values for symlinks.
55734         Problem reported by Liyang Hu.
55735
55736 2007-01-11  Simon Josefsson  <simon@josefsson.org>
55737
55738         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
55739         Emacs .#* auto-save files).
55740
55741 2007-01-11  Bruno Haible  <bruno@clisp.org>
55742
55743         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
55744         directory.
55745
55746 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55747
55748         Use @...@ consistently in lib/wctype_.h.
55749         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
55750         on it being set to 1 or 0.
55751         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
55752         go back to AC_SUBSTing it.
55753         * modules/wctype (Makefile.am): Undo previous change.
55754
55755 2007-01-10  Eric Blake  <ebb9@byu.net>
55756
55757         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
55758         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
55759         * modules/wctype (Makefile.am): Likewise.
55760         Reported by Chris McGuire.
55761
55762 2007-01-10  Jim Meyering  <jim@meyering.net>
55763
55764         fts.c: a small readability/maintainability improvement
55765         * lib/fts.c (fts_read): Make this code slightly more readable and
55766         maintainable by hoisting the "sp->fts_cur = p" assignments to
55767         immediately follow the statements that set P.  Derived from
55768         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
55769
55770 2007-01-10  Eric Blake  <ebb9@byu.net>
55771
55772         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
55773         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
55774         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55775         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
55776         Reported by Chris McGuire.
55777
55778 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55779
55780         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
55781         in sed script.
55782
55783 2007-01-09  Bruno Haible  <bruno@clisp.org>
55784
55785         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
55786         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
55787         variables.
55788         (func_module): Use them.
55789
55790 2007-01-09  Bruno Haible  <bruno@clisp.org>
55791
55792         * modules/unistr/base: New file.
55793         * lib/unistr.h: New file.
55794
55795         * modules/unistr/u8-to-u16: New file.
55796         * lib/unistr/u8-to-u16.c: New file.
55797
55798         * modules/unistr/u8-to-u32: New file.
55799         * lib/unistr/u8-to-u32.c: New file.
55800
55801         * modules/unistr/u16-to-u8: New file.
55802         * lib/unistr/u16-to-u8.c: New file.
55803
55804         * modules/unistr/u16-to-u32: New file.
55805         * lib/unistr/u16-to-u32.c: New file.
55806
55807         * modules/unistr/u32-to-u8: New file.
55808         * lib/unistr/u32-to-u8.c: New file.
55809
55810         * modules/unistr/u32-to-u16: New file.
55811         * lib/unistr/u32-to-u16.c: New file.
55812
55813         * modules/unistr/u8-check: New file.
55814         * modules/unistr/u16-check: New file.
55815         * modules/unistr/u32-check: New file.
55816         * lib/unistr/u8-check.c: New file.
55817         * lib/unistr/u16-check.c: New file.
55818         * lib/unistr/u32-check.c: New file.
55819
55820         * modules/unistr/u8-chr: New file.
55821         * modules/unistr/u16-chr: New file.
55822         * modules/unistr/u32-chr: New file.
55823         * lib/unistr/u8-chr.c: New file.
55824         * lib/unistr/u16-chr.c: New file.
55825         * lib/unistr/u32-chr.c: New file.
55826
55827         * modules/unistr/u8-cmp: New file.
55828         * modules/unistr/u16-cmp: New file.
55829         * modules/unistr/u32-cmp: New file.
55830         * lib/unistr/u8-cmp.c: New file.
55831         * lib/unistr/u16-cmp.c: New file.
55832         * lib/unistr/u32-cmp.c: New file.
55833
55834         * modules/unistr/u8-cpy: New file.
55835         * modules/unistr/u16-cpy: New file.
55836         * modules/unistr/u32-cpy: New file.
55837         * lib/unistr/u8-cpy.c: New file.
55838         * lib/unistr/u16-cpy.c: New file.
55839         * lib/unistr/u32-cpy.c: New file.
55840         * lib/unistr/u-cpy.h: New file.
55841
55842         * modules/unistr/u8-cpy-alloc: New file.
55843         * modules/unistr/u16-cpy-alloc: New file.
55844         * modules/unistr/u32-cpy-alloc: New file.
55845         * lib/unistr/u8-cpy-alloc.c: New file.
55846         * lib/unistr/u16-cpy-alloc.c: New file.
55847         * lib/unistr/u32-cpy-alloc.c: New file.
55848         * lib/unistr/u-cpy-alloc.h: New file.
55849
55850         * modules/unistr/u8-endswith: New file.
55851         * modules/unistr/u16-endswith: New file.
55852         * modules/unistr/u32-endswith: New file.
55853         * lib/unistr/u8-endswith.c: New file.
55854         * lib/unistr/u16-endswith.c: New file.
55855         * lib/unistr/u32-endswith.c: New file.
55856         * lib/unistr/u-endswith.h: New file.
55857
55858         * modules/unistr/u8-mblen: New file.
55859         * modules/unistr/u16-mblen: New file.
55860         * modules/unistr/u32-mblen: New file.
55861         * lib/unistr/u8-mblen.c: New file.
55862         * lib/unistr/u16-mblen.c: New file.
55863         * lib/unistr/u32-mblen.c: New file.
55864
55865         * modules/unistr/u8-mbtouc: New file.
55866         * modules/unistr/u16-mbtouc: New file.
55867         * modules/unistr/u32-mbtouc: New file.
55868         * lib/unistr/u8-mbtouc.c: New file.
55869         * lib/unistr/u16-mbtouc.c: New file.
55870         * lib/unistr/u32-mbtouc.c: New file.
55871
55872         * modules/unistr/u8-mbtouc-safe: New file.
55873         * modules/unistr/u16-mbtouc-safe: New file.
55874         * modules/unistr/u32-mbtouc-safe: New file.
55875         * lib/unistr/u8-mbtouc-safe.c: New file.
55876         * lib/unistr/u16-mbtouc-safe.c: New file.
55877         * lib/unistr/u32-mbtouc-safe.c: New file.
55878
55879         * modules/unistr/u8-move: New file.
55880         * modules/unistr/u16-move: New file.
55881         * modules/unistr/u32-move: New file.
55882         * lib/unistr/u8-move.c: New file.
55883         * lib/unistr/u16-move.c: New file.
55884         * lib/unistr/u32-move.c: New file.
55885         * lib/unistr/u-move.h: New file.
55886
55887         * modules/unistr/u8-next: New file.
55888         * modules/unistr/u16-next: New file.
55889         * modules/unistr/u32-next: New file.
55890         * lib/unistr/u8-next.c: New file.
55891         * lib/unistr/u16-next.c: New file.
55892         * lib/unistr/u32-next.c: New file.
55893
55894         * modules/unistr/u8-prev: New file.
55895         * modules/unistr/u16-prev: New file.
55896         * modules/unistr/u32-prev: New file.
55897         * lib/unistr/u8-prev.c: New file.
55898         * lib/unistr/u16-prev.c: New file.
55899         * lib/unistr/u32-prev.c: New file.
55900
55901         * modules/unistr/u8-set: New file.
55902         * modules/unistr/u16-set: New file.
55903         * modules/unistr/u32-set: New file.
55904         * lib/unistr/u8-set.c: New file.
55905         * lib/unistr/u16-set.c: New file.
55906         * lib/unistr/u32-set.c: New file.
55907         * lib/unistr/u-set.h: New file.
55908
55909         * modules/unistr/u8-startswith: New file.
55910         * modules/unistr/u16-startswith: New file.
55911         * modules/unistr/u32-startswith: New file.
55912         * lib/unistr/u8-startswith.c: New file.
55913         * lib/unistr/u16-startswith.c: New file.
55914         * lib/unistr/u32-startswith.c: New file.
55915         * lib/unistr/u-startswith.h: New file.
55916
55917         * modules/unistr/u8-stpcpy: New file.
55918         * modules/unistr/u16-stpcpy: New file.
55919         * modules/unistr/u32-stpcpy: New file.
55920         * lib/unistr/u8-stpcpy.c: New file.
55921         * lib/unistr/u16-stpcpy.c: New file.
55922         * lib/unistr/u32-stpcpy.c: New file.
55923         * lib/unistr/u-stpcpy.h: New file.
55924
55925         * modules/unistr/u8-stpncpy: New file.
55926         * modules/unistr/u16-stpncpy: New file.
55927         * modules/unistr/u32-stpncpy: New file.
55928         * lib/unistr/u8-stpncpy.c: New file.
55929         * lib/unistr/u16-stpncpy.c: New file.
55930         * lib/unistr/u32-stpncpy.c: New file.
55931         * lib/unistr/u-stpncpy.h: New file.
55932
55933         * modules/unistr/u8-strcat: New file.
55934         * modules/unistr/u16-strcat: New file.
55935         * modules/unistr/u32-strcat: New file.
55936         * lib/unistr/u8-strcat.c: New file.
55937         * lib/unistr/u16-strcat.c: New file.
55938         * lib/unistr/u32-strcat.c: New file.
55939         * lib/unistr/u-strcat.h: New file.
55940
55941         * modules/unistr/u8-strchr: New file.
55942         * modules/unistr/u16-strchr: New file.
55943         * modules/unistr/u32-strchr: New file.
55944         * lib/unistr/u8-strchr.c: New file.
55945         * lib/unistr/u16-strchr.c: New file.
55946         * lib/unistr/u32-strchr.c: New file.
55947
55948         * modules/unistr/u8-strcmp: New file.
55949         * modules/unistr/u16-strcmp: New file.
55950         * modules/unistr/u32-strcmp: New file.
55951         * lib/unistr/u8-strcmp.c: New file.
55952         * lib/unistr/u16-strcmp.c: New file.
55953         * lib/unistr/u32-strcmp.c: New file.
55954
55955         * modules/unistr/u8-strcpy: New file.
55956         * modules/unistr/u16-strcpy: New file.
55957         * modules/unistr/u32-strcpy: New file.
55958         * lib/unistr/u8-strcpy.c: New file.
55959         * lib/unistr/u16-strcpy.c: New file.
55960         * lib/unistr/u32-strcpy.c: New file.
55961         * lib/unistr/u-strcpy.h: New file.
55962
55963         * modules/unistr/u8-strcspn: New file.
55964         * modules/unistr/u16-strcspn: New file.
55965         * modules/unistr/u32-strcspn: New file.
55966         * lib/unistr/u8-strcspn.c: New file.
55967         * lib/unistr/u16-strcspn.c: New file.
55968         * lib/unistr/u32-strcspn.c: New file.
55969         * lib/unistr/u-strcspn.h: New file.
55970
55971         * modules/unistr/u8-strdup: New file.
55972         * modules/unistr/u16-strdup: New file.
55973         * modules/unistr/u32-strdup: New file.
55974         * lib/unistr/u8-strdup.c: New file.
55975         * lib/unistr/u16-strdup.c: New file.
55976         * lib/unistr/u32-strdup.c: New file.
55977         * lib/unistr/u-strdup.h: New file.
55978
55979         * modules/unistr/u8-strlen: New file.
55980         * modules/unistr/u16-strlen: New file.
55981         * modules/unistr/u32-strlen: New file.
55982         * lib/unistr/u8-strlen.c: New file.
55983         * lib/unistr/u16-strlen.c: New file.
55984         * lib/unistr/u32-strlen.c: New file.
55985         * lib/unistr/u-strlen.h: New file.
55986
55987         * modules/unistr/u8-strmblen: New file.
55988         * modules/unistr/u16-strmblen: New file.
55989         * modules/unistr/u32-strmblen: New file.
55990         * lib/unistr/u8-strmblen.c: New file.
55991         * lib/unistr/u16-strmblen.c: New file.
55992         * lib/unistr/u32-strmblen.c: New file.
55993
55994         * modules/unistr/u8-strmbtouc: New file.
55995         * modules/unistr/u16-strmbtouc: New file.
55996         * modules/unistr/u32-strmbtouc: New file.
55997         * lib/unistr/u8-strmbtouc.c: New file.
55998         * lib/unistr/u16-strmbtouc.c: New file.
55999         * lib/unistr/u32-strmbtouc.c: New file.
56000
56001         * modules/unistr/u8-strncat: New file.
56002         * modules/unistr/u16-strncat: New file.
56003         * modules/unistr/u32-strncat: New file.
56004         * lib/unistr/u8-strncat.c: New file.
56005         * lib/unistr/u16-strncat.c: New file.
56006         * lib/unistr/u32-strncat.c: New file.
56007         * lib/unistr/u-strncat.h: New file.
56008
56009         * modules/unistr/u8-strncmp: New file.
56010         * modules/unistr/u16-strncmp: New file.
56011         * modules/unistr/u32-strncmp: New file.
56012         * lib/unistr/u8-strncmp.c: New file.
56013         * lib/unistr/u16-strncmp.c: New file.
56014         * lib/unistr/u32-strncmp.c: New file.
56015
56016         * modules/unistr/u8-strncpy: New file.
56017         * modules/unistr/u16-strncpy: New file.
56018         * modules/unistr/u32-strncpy: New file.
56019         * lib/unistr/u8-strncpy.c: New file.
56020         * lib/unistr/u16-strncpy.c: New file.
56021         * lib/unistr/u32-strncpy.c: New file.
56022         * lib/unistr/u-strncpy.h: New file.
56023
56024         * modules/unistr/u8-strnlen: New file.
56025         * modules/unistr/u16-strnlen: New file.
56026         * modules/unistr/u32-strnlen: New file.
56027         * lib/unistr/u8-strnlen.c: New file.
56028         * lib/unistr/u16-strnlen.c: New file.
56029         * lib/unistr/u32-strnlen.c: New file.
56030         * lib/unistr/u-strnlen.h: New file.
56031
56032         * modules/unistr/u8-strpbrk: New file.
56033         * modules/unistr/u16-strpbrk: New file.
56034         * modules/unistr/u32-strpbrk: New file.
56035         * lib/unistr/u8-strpbrk.c: New file.
56036         * lib/unistr/u16-strpbrk.c: New file.
56037         * lib/unistr/u32-strpbrk.c: New file.
56038         * lib/unistr/u-strpbrk.h: New file.
56039
56040         * modules/unistr/u8-strrchr: New file.
56041         * modules/unistr/u16-strrchr: New file.
56042         * modules/unistr/u32-strrchr: New file.
56043         * lib/unistr/u8-strrchr.c: New file.
56044         * lib/unistr/u16-strrchr.c: New file.
56045         * lib/unistr/u32-strrchr.c: New file.
56046
56047         * modules/unistr/u8-strspn: New file.
56048         * modules/unistr/u16-strspn: New file.
56049         * modules/unistr/u32-strspn: New file.
56050         * lib/unistr/u8-strspn.c: New file.
56051         * lib/unistr/u16-strspn.c: New file.
56052         * lib/unistr/u32-strspn.c: New file.
56053         * lib/unistr/u-strspn.h: New file.
56054
56055         * modules/unistr/u8-strstr: New file.
56056         * modules/unistr/u16-strstr: New file.
56057         * modules/unistr/u32-strstr: New file.
56058         * lib/unistr/u8-strstr.c: New file.
56059         * lib/unistr/u16-strstr.c: New file.
56060         * lib/unistr/u32-strstr.c: New file.
56061         * lib/unistr/u-strstr.h: New file.
56062
56063         * modules/unistr/u8-strtok: New file.
56064         * modules/unistr/u16-strtok: New file.
56065         * modules/unistr/u32-strtok: New file.
56066         * lib/unistr/u8-strtok.c: New file.
56067         * lib/unistr/u16-strtok.c: New file.
56068         * lib/unistr/u32-strtok.c: New file.
56069         * lib/unistr/u-strtok.h: New file.
56070
56071         * modules/unistr/u8-uctomb: New file.
56072         * modules/unistr/u16-uctomb: New file.
56073         * modules/unistr/u32-uctomb: New file.
56074         * lib/unistr/u8-uctomb.c: New file.
56075         * lib/unistr/u16-uctomb.c: New file.
56076         * lib/unistr/u32-uctomb.c: New file.
56077
56078         * MODULES.html.sh (Unicode string functions): Add the new modules.
56079
56080 2007-01-08  Bruno Haible  <bruno@clisp.org>
56081
56082         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
56083         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
56084         subdirectories.
56085
56086 2007-01-08  Karl Berry  <karl@gnu.org>
56087
56088         * doc/error.texi: mention that main() fns must set program_name
56089         when progname is used.
56090
56091 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
56092
56093         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
56094         WCTYPE_H is empty, for the benefit of builds from non-distclean
56095         directories.  Problem reported by Eric Blake in
56096         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
56097
56098 2007-01-08  Bruno Haible  <bruno@clisp.org>
56099
56100         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
56101         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
56102         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
56103         PROVIDE_CANONICALIZE_FILENAME_MODE.
56104         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
56105
56106 2007-01-08  Bruno Haible  <bruno@clisp.org>
56107
56108         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
56109         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
56110         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
56111         * lib/fts.c: Likewise.
56112         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
56113
56114 2006-12-25  Bruno Haible  <bruno@clisp.org>
56115
56116         * modules/utf8-ucs4-safe: New file.
56117         * lib/utf8-ucs4-safe.h: New file.
56118         * lib/unistr/utf8-ucs4-safe.c: New file.
56119
56120         * modules/utf16-ucs4-safe: New file.
56121         * lib/utf16-ucs4-safe.h: New file.
56122         * lib/unistr/utf16-ucs4-safe.c: New file.
56123
56124         * MODULES.html.sh (Unicode string functions): Add the new modules.
56125
56126 2007-01-08  Bruno Haible  <bruno@clisp.org>
56127
56128         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
56129         (Depends-on): Add unitypes.
56130         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56131         (u8_mbtouc_aux): Move out to separate file.
56132         (u8_mbtouc): Use ucs4_t, uint8_t types.
56133         * lib/unistr/utf8-ucs4.c: New file.
56134
56135         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
56136         (Depends-on): Add unitypes.
56137         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56138         (u16_mbtouc_aux): Move out to separate file.
56139         (u16_mbtouc): Use ucs4_t, uint16_t types.
56140         * lib/unistr/utf16-ucs4.c: New file.
56141
56142         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56143         (Depends-on): Add unitypes.
56144         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
56145         (u8_uctomb_aux): Move out to separate file.
56146         (u8_uctomb): Use ucs4_t, uint8_t types.
56147         * lib/unistr/ucs4-utf8.c: New file.
56148
56149         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
56150         (Depends-on): Add unitypes.
56151         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
56152         (u16_uctomb_aux): Move out to separate file.
56153         (u16_uctomb): Use ucs4_t, uint16_t types.
56154         * lib/unistr/ucs4-utf16.c: New file.
56155
56156 2006-12-25  Bruno Haible  <bruno@clisp.org>
56157
56158         * modules/unitypes: New file.
56159         * lib/unitypes.h: New file.
56160         * MODULES.html.sh (func_all_modules): New section "Unicode string
56161         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
56162         this section. Add unitypes.
56163
56164 2007-01-08  Bruno Haible  <bruno@clisp.org>
56165
56166         Avoid variable names that conflict with those from libtool.
56167         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
56168         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
56169         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
56170         library_names_spec to acl_library_names_spec, hardcode_* to
56171         acl_hardcode_*.
56172         Reported by Ralf Wildenhues.
56173
56174 2007-01-08  Bruno Haible  <bruno@clisp.org>
56175
56176         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
56177         definition.
56178         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56179         definition.
56180         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
56181         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
56182         definition.
56183         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
56184         definition.
56185         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
56186         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
56187         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
56188         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
56189         definition.
56190         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
56191         definition.
56192         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56193         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56194         GC_USE_<algorithm>.
56195         * lib/gc-libgcrypt.c: Likewise.
56196         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56197         * modules/gc-arctwo (configure.ac): Likewise.
56198         * modules/gc-des (configure.ac): Likewise.
56199         * modules/gc-hmac-md5 (configure.ac): Likewise.
56200         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56201         * modules/gc-md2 (configure.ac): Likewise.
56202         * modules/gc-md4 (configure.ac): Likewise.
56203         * modules/gc-md5 (configure.ac): Likewise.
56204         * modules/gc-random (configure.ac): Likewise.
56205         * modules/gc-rijndael (configure.ac): Likewise.
56206         * modules/gc-sha1 (configure.ac): Likewise.
56207
56208 2007-01-08  Bruno Haible  <bruno@clisp.org>
56209
56210         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56211         macro definition.
56212         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56213         definition.
56214         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56215         definition.
56216         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56217         * modules/fcntl-safer (configure.ac): Likewise.
56218         * modules/fopen-safer (configure.ac): Likewise.
56219         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56220         GNULIB_FWRITEERROR macro definition.
56221
56222 2007-01-08  Bruno Haible  <bruno@clisp.org>
56223
56224         * m4/gnulib-common.m4: New file.
56225         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56226         (func_get_filelist): Add m4/gnulib-common.m4.
56227
56228 2007-01-08  Bruno Haible  <bruno@clisp.org>
56229
56230         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56231         command.
56232
56233 2007-01-08  Jim Meyering  <jim@meyering.net>
56234
56235         Use a more robust test for a "can't happen" condition.
56236         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56237         narrowed the st_size value.  Presuming the "can't happen" condition
56238         is true, that narrowing could conceivably convert an invalid st_size
56239         value into a valid one.  Instead, use a change based on Matthew
56240         Woehlke's original patch.
56241
56242         Slight readability improvement: use an assert-like macro
56243         in place of literal "abort ()" uses.
56244         * lib/fts.c (fts_assert): Define.
56245         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56246         Use this macro instead of a bare 'abort'.
56247
56248 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56249
56250         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56251         simply work around them.
56252         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56253         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56254         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56255         declaring.
56256         Don't bother to define as macros, since the standard doesn't require it.
56257         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56258         longer worry about IRIX 5.3.
56259         (HAVE_WCTYPE_CTMP_BUG): Remove.
56260
56261 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56262
56263         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
56264         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
56265         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56266         Problems reported by Georg Schwarz for IRIX 5.3.
56267
56268         * gnulib-tool (autoconf_minversion): Take the maximum version number
56269         found, not the minimum.  Problem reported by James Youngman.
56270
56271 2007-01-03  Karl Berry  <karl@gnu.org>
56272
56273         * doc/error.texi: new file, explaining interaction with progname.
56274         * doc/gnulib.texi: include it.  Update copyright.
56275
56276 2007-01-03  Simon Josefsson  <simon@josefsson.org>
56277
56278         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
56279         AC_CANONICAL_HOST, to improve autobuild outputs.
56280
56281 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
56282             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56283
56284         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
56285         sockets, server sockets, and other file descriptors.  Count errors
56286         to compute the return value.  Reorder the code a bit to be easier
56287         to follow.  Don't set event bits that were not requested (except
56288         POLLERR and POLLHUP).
56289
56290 2007-01-01  Bruno Haible  <bruno@clisp.org>
56291
56292         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
56293
56294 2007-01-03  Jim Meyering  <jim@meyering.net>
56295
56296         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
56297
56298 2007-01-02  Bruno Haible  <bruno@clisp.org>
56299
56300         * modules/settime (Include): Require timespec.h.
56301         * modules/nanosleep (Include): Likewise.
56302
56303 2007-01-01  Bruno Haible  <bruno@clisp.org>
56304
56305         * gnulib-tool (func_emit_copyright_notice): Bump year.
56306         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
56307
56308 2007-01-01  Bruno Haible  <bruno@clisp.org>
56309
56310         Improve support for OpenBSD.
56311         * build-aux/config.rpath (libname_spec): Export.
56312         (library_names_spec): New variable. Export.
56313         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
56314         library_names_spec from the config.rpath output. Locate shared library
56315         through the name pattern in library_names_spec.
56316
56317 2007-01-01  Eric Blake  <ebb9@byu.net>
56318
56319         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
56320
56321 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56322
56323         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56324         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56325         assume the C locale, and avoid an "eval" that could cause trouble.
56326         Problem with SORT reported by Bob Proulx.
56327
56328         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56329         Define.  Trivial patch from Henning Nielsen Lund, originally
56330         sent to bug-grep@gnu.org today.
56331
56332 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56333
56334         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56335         struct stat.  Problem reported by Henning Nielsen Lund.
56336         * lib/acl.c: Include acl.h first, to check interface.  Don't
56337         bother to include sys/types.h and sys/stat.h again.
56338
56339 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56340
56341         Import the following change from libc; problem reported by
56342         Sven Verdoolaege.
56343
56344         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56345
56346         [BZ #1373]
56347         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56348
56349 2006-12-28  Jim Meyering  <jim@meyering.net>
56350
56351         * build-aux/announce-gen: Do not assume that the package
56352         builds any of tar.gz, tar.bz2, and .xdelta files.
56353         Suggestion from Simon Josefsson.
56354
56355 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56356
56357         * modules/announce-gen: New file.
56358
56359 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56360
56361         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56362         handles its gotchas now.
56363         * lib/mbswidth.c: Likewise.
56364         * lib/wcwidth.h: Likewise.
56365         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56366         and iswcntrl; the wctype module does this stuff now.
56367         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56368         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56369         * modules/mbchar (Depends-on): Add wctype.
56370         * modules/mbswidth (Depends-on): Likewise.
56371         * modules/wcwidth (Depends-on): Likewise.
56372
56373 2006-12-27  Eric Blake  <ebb9@byu.net>
56374
56375         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56376         module uses more than what <wctype.h> is required to provide.
56377
56378 2006-12-26  Eric Blake  <ebb9@byu.net>
56379
56380         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56381
56382 2006-12-26  Eric Blake  <ebb9@byu.net>
56383
56384         * modules/absolute-header: New module.
56385         * modules/fcntl (Depends-on): Depend on it.
56386         * modules/inttypes (Depends-on): Likewise.
56387         * modules/stdint (Depends-on): Likewise.
56388         * modules/sys_stat (Depends-on): Likewise.
56389         * modules/wctype (Depends-on): Likewise.
56390         * MODULES.html.sh (Support for building libraries and
56391         executables): Document it.
56392
56393 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56394
56395         * gnulib-tool (SED): Remove, undoing previous change.
56396         The problem was that it broke coreutils on Solaris, because
56397         "sed --posix" leaked into a makefile.
56398         (sed): New alias, if 'alias' and GNU sed.
56399
56400 2006-12-24  Jim Meyering  <jim@meyering.net>
56401
56402         Work around an fchownat bug in glibc-2.4:
56403         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56404         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56405         in spite of the -P option.
56406         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56407         New macros.
56408         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56409         * modules/openat (Files): Add lib/fchownat.c.
56410         * lib/openat.c (fchownat): Don't define here.  Move to...
56411         * lib/fchownat.c: ...this new file.
56412
56413 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56414
56415         Fix bug reported by Bruno Haible in
56416         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56417         where quotearg.c didn't compile on Mac OS X 10.2 because it
56418         lacks <wchar.h> and wint_t.
56419         * lib/wctype_.h (__wctype_wint_t): New type.
56420         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56421         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56422         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56423         Arg is now of type __wctype_wint_t, not wint_t.
56424         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56425         substitute HAVE_WINT_T.
56426         * modules/wctype (Files): Add m4/wint_t.m4.
56427         (wctype.h): Substitute HAVE_WINT_T.
56428
56429 2006-12-23  Bruno Haible  <bruno@clisp.org>
56430
56431         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56432
56433 2006-12-23  Bruno Haible  <bruno@clisp.org>
56434
56435         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56436         S_ISLNK.
56437         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56438         mingw.
56439
56440 2006-12-22  Bruno Haible  <bruno@clisp.org>
56441
56442         * lib/copy-file.c: Include acl.h.
56443         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56444         Close the file descriptors only after being done with copy_acl.
56445         * modules/copy-file (Depends-on): Add acl.
56446
56447 2006-12-22  Bruno Haible  <bruno@clisp.org>
56448
56449         * gnulib-tool (SED): New variable.
56450         Use $SED instead of sed everywhere.
56451
56452 2006-12-22  Bruno Haible  <bruno@clisp.org>
56453
56454         * modules/no-c++: New file.
56455         * m4/no-c++.m4: New file.
56456         * MODULES.html.sh (Support for building libraries and executables):
56457         Add no-c++.
56458
56459 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56460
56461         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56462         Include <limits.h>, and use its INT_MAX to rewrite the
56463         j loop so that it does not overflow 'int'.  Problem reported by
56464         Ralf Wildenhues in
56465         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56466         Play it safe by shifting left by 1 rather than multiplying by 2,
56467         as GCC is less likely to optimize this away when the value
56468         is signed (when it assumes overflow leads to undefined behavior).
56469         Also, don't assume time_t uses two's complement.
56470
56471 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56472
56473         * MODULES.html.sh: New module wctype.
56474         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
56475         * lib/fnmatch.c: Don't bother to include <wchar.h> before
56476         <wctype.h>, since the new wctype module should fix this.
56477         * lib/quotearg.c: Include <wctype.h> unconditionally, since
56478         the wctype module should arrange for it.
56479         * lib/regex_internal.h: Likewise.
56480         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
56481         since the wctype module should handle this now.
56482         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
56483         * modules/fnmatch (Depends-on): Add wctype.
56484         * modules/quotearg (Depends-on): Likewise.
56485         * modules/regex (Depends-on): Likewise.
56486
56487 2006-12-19  Bruno Haible  <bruno@clisp.org>
56488
56489         * lib/strdup.h [C++]: Wrap definitions in extern "C".
56490         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
56491
56492 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56493
56494         * modules/savewd (Depends-on): Fix dependency on fcntl.
56495
56496 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56497
56498         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
56499         conforms to C99, rather than relying on the user's environment
56500         setting of STDINT_H.
56501
56502 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56503         and Eric Blake  <ebb9@byu.net>
56504
56505         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
56506         This is more consistent with the other defines here.
56507         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
56508         Port to z/OS.  Problem reported by Paul Gilmartin.
56509         Change local vars to use gl_ prefix rather than ac_.
56510         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
56511         with other defines.
56512         * modules/double-slash-root: New module.
56513         * modules/dirname (Files): Remove m4/double-slash-root.m4.
56514         (Depends-on): Add double-slash-root.
56515         * MODULES.html.sh (File system functions): Mention new module.
56516
56517 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
56518
56519         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
56520         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
56521         This is for the benefit of gzip, which doesn't do i18n.
56522
56523 2006-12-12  Jim Meyering  <jim@meyering.net>
56524
56525         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
56526         Reported by Andreas Schwab <schwab@suse.de>.
56527
56528 2006-12-12  Bruno Haible  <bruno@clisp.org>
56529
56530         Merge these changes.
56531         2006-09-05  Bruno Haible  <bruno@clisp.org>
56532         * lib/iconvme.c (iconv_string): No need to save and restore errno when
56533         iconv_alloc succeeded.
56534         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
56535         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
56536         test for " && dest " at the end - dest is always != NULL there. Call
56537         iconv with 4xNULL arguments initially, to reset the state. Call iconv
56538         with 2xNULL arguments, also to flush the state storage. Handle the
56539         IRIX iconv behaviour. Realloc the final result, to throw away unused
56540         memory.
56541
56542 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
56543
56544         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
56545         and fchmodat unconditionally, since glibc 2.4 has them.
56546         Problem reported by Arkadiusz Miskiewicz.
56547
56548 2006-12-10  Bruno Haible  <bruno@clisp.org>
56549
56550         * gnulib-tool (func_import): Show the include files only for those
56551         modules that are copied and specified.
56552         Reported by Karl Berry.
56553
56554 2006-12-08  Jim Meyering  <jim@meyering.net>
56555
56556         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
56557         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
56558
56559         * build-aux/announce-gen: Add two new options, both optional:
56560         --bootstrap-tools=TOOL_LIST
56561               a comma-separated list of tools, e.g.,
56562               autoconf,automake,bison,gnulib
56563         --gnulib-snapshot-date=DATE
56564               if gnulib is in the bootstrap tool list,
56565               then report this as the snapshot date.
56566               If not specified, use the current date/time.
56567               If you specify a date here, be sure it's UTC.
56568
56569 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56570
56571         * tests/test-argp-2.sh: Fix test to match actual output.
56572         (func_compare): Fix sed script to be portable.
56573
56574 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
56575
56576         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
56577         workaround for this case.  It is not autoconfigured now; offhand
56578         it's hard to see how to autoconfigure it.
56579
56580 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56581
56582         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
56583         a directory that is about to be chowned.  Such a directory's
56584         initial file permissions should permit the owner only and this
56585         should not be changed until after the chown, since the group and
56586         other bits would be incorrect if they granted permission before
56587         the chown.
56588
56589         Fix porting problem for iswctype reported by Georg Schwarz in:
56590         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
56591         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
56592         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
56593         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
56594         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56595
56596 2006-12-03  Jim Meyering  <jim@meyering.net>
56597
56598         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
56599         p->fts_statp may not yet be defined.
56600         (fts_read): Instead, set it in the caller, once p->fts_statp is
56601         sure to be defined, and corresponds to a top-level directory.
56602         This bug made du -x fail.  Here's the coreutils test case:
56603         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
56604         Reported by Mike Frysinger.
56605
56606 2006-12-01  Jim Meyering  <jim@meyering.net>
56607
56608         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
56609         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
56610         Reported by Simon Josefsson.
56611
56612 2006-11-30  Jim Meyering  <jim@meyering.net>
56613
56614         * m4/warning.m4: Use the all-permissive copyright notice
56615         recommended by RMS (rather than LGPL).
56616         * m4/vararrays.m4: Likewise.
56617         * m4/flexmember.m4: Likewise.
56618
56619 2006-11-29  Bruno Haible  <bruno@clisp.org>
56620
56621         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56622         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
56623         using +=.
56624         Reported by Simon Josefsson <simon@josefsson.org>.
56625
56626 2006-11-28  James Youngman <jay@gnu.org>
56627
56628         * README: Advise users that they might find the bug-gnulib@gnu.org
56629         and autotools-announce@gnu.org mailing lists useful.
56630
56631 2006-11-28  Bruno Haible  <bruno@clisp.org>
56632
56633         * m4/ptrdiff_max.m4: Remove file.
56634
56635 2006-11-21  Bruno Haible  <bruno@clisp.org>
56636
56637         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
56638         _AC_COMPUTE_INT.
56639         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56640         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
56641         _AC_COMPUTE_INT.
56642         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56643         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
56644         _AC_COMPUTE_INT.
56645         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56646
56647 2006-11-28  Jim Meyering  <jim@meyering.net>
56648
56649         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
56650         warning from "gcc -Wshadow" about shadowing the builtin.
56651
56652 2006-11-27  Bruno Haible  <bruno@clisp.org>
56653
56654         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
56655         _AC_COMPUTE_INT.
56656         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56657
56658 2006-11-27  Bruno Haible  <bruno@clisp.org>
56659             Paul Eggert  <eggert@cs.ucla.edu>
56660
56661         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
56662
56663 2006-11-26  Bruno Haible  <bruno@clisp.org>
56664
56665         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56666         noinst_LTLIBRARIES.
56667
56668 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
56669             Bruno Haible  <bruno@clisp.org>
56670
56671         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
56672         if compiling with "gcc -ansi".
56673
56674 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
56675
56676         Fix some incompatibilities with gcc -ansi -pedantic.
56677         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
56678         if compiling pedantically with GCC, unless it's C99 or later.
56679         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
56680         it mishandles gcc -ansi -pedantic as well.
56681         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
56682         if gcc -pedantic.
56683         * lib/regexec.c (check_node_accept_bytes): Don't use auto
56684         initializers for struct if -pedantic, unless it's C99 or later.
56685
56686 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
56687
56688         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
56689         Don't close an fd more than once. Identical atimes indicate
56690         success, not failure.
56691
56692 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
56693
56694         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
56695
56696 2006-11-23  Jim Meyering  <jim@meyering.net>
56697
56698         * build-aux/announce-gen: New file.  From coreutils.
56699
56700 2006-11-22  Jim Meyering  <jim@meyering.net>
56701
56702         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
56703         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
56704         (fts_read): Use a temporary to narrow the overused st_size member
56705         before using it in a switch statement.  Reported by Matthew Woehlke.
56706
56707         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
56708         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56709
56710 2006-11-20  Bruno Haible  <bruno@clisp.org>
56711
56712         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
56713         changequote instead of pairs of brackets.
56714         Reported by Andreas Schwab <schwab@suse.de>.
56715
56716 2006-11-21  Jim Meyering  <jim@meyering.net>
56717
56718         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
56719         so as to remain compatible with older compilers.
56720         Patch from Michael Deutschmann.
56721
56722 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56723
56724         * MODULES.html.sh (File system functions): Add openat.
56725
56726         * lib/openat.h (rpl_fstatat): New macro, if
56727         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
56728         (fstatat): Define to rpl_fstatat under the same conditions,
56729         unless COMPILING_FSTATAT.
56730         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
56731         seems to have the bug.
56732         * lib/fstatat.c: New file.
56733         * modules/openat (Files): Add it.
56734
56735 2006-11-20  Bruno Haible  <bruno@clisp.org>
56736
56737         * Makefile: New file.
56738
56739 2006-11-20  Jim Meyering  <jim@meyering.net>
56740
56741         The beginnings of syntax-related checks for gnulib.
56742         * lib/Makefile: New file.
56743         * lib/t-idcache: New script.  Ensure that the two halves of
56744         idcache.c stay in sync.
56745
56746         * lib/idcache.c: Adjust comments in user- and group- portions to
56747         be more accurate, and to be consistent with one another.
56748
56749 2006-11-20  Jim Meyering  <jim@meyering.net>
56750
56751         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
56752         continue using the flexible array member (thus, this module performs
56753         half as many malloc calls), with the addition that...
56754         (getgroup, getuser): Consistently record a non-match via an empty
56755         "name" string, and map an empty string match to a NULL return value.
56756         * modules/idcache (Depends-on): Re-add flexmember.
56757
56758         * lib/idcache.c (getuser): Remove all uses of the register keyword.
56759         (getuidbyname, getgroup, getgidbyname): Likewise.
56760
56761         Use cleaner syntax: NULL rather than 0.
56762         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
56763
56764 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56765
56766         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
56767         It mishandled the case where the group was missing.
56768         Problem reported by Greg Schafer.
56769         * modules/idcache: Likewise.
56770
56771 2006-11-18  Jim Meyering  <jim@meyering.net>
56772
56773         * check-module (%exempt_header): Add exception for some
56774         conditionally-included headers.
56775
56776         * modules/i-ring (Depends-on): Add verify.
56777         (License): Change to LGPL.
56778
56779 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56780
56781         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
56782         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
56783         and inttostr.h.  Use snprintf rather than uinttostr, so that
56784         LGPLed code doesn't depend on GPLed.
56785
56786 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56787
56788         * modules/inline (License): Change from GPL to LGPL.
56789
56790 2006-11-17  Jim Meyering  <jim@meyering.net>
56791
56792         * modules/d-type (License): Switch to LGPL.
56793
56794 2006-11-15  Bruno Haible  <bruno@clisp.org>
56795
56796         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
56797
56798 2006-11-15  Eric Blake  <ebb9@byu.net>
56799
56800         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
56801         the module dependency.
56802
56803 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56804             Bruno Haible  <bruno@clisp.org>
56805
56806         * gnulib-tool (func_create_testdir): Add license consistency check.
56807
56808 2006-11-15  Eric Blake  <ebb9@byu.net>
56809
56810         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
56811         random "(cached)" in configure output.
56812
56813 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56814
56815         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
56816         test for conforming inttypes.h is both announced and cached.
56817
56818         * MODULES.html.sh (seen_modules, seen_files): New variables.
56819         (func_module): Rewrite to use a few less gnulib-tool and sed
56820         invocations.  Avoid a couple of quadratic algorithms for ...
56821         (missed_modules, missed_files): ... these, with ...
56822         (func_append, func_tmpdir): ... these new functions, from
56823         gnulib-tool.  Analogously, install traps for cleanup.
56824
56825         * tests/test-gc.c (main): Remove unused variables.
56826         * tests/test-read-file.c: Include stdlib.h, for 'free'.
56827
56828 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
56829
56830         * modules/inttostr (License): Change to LGPL.
56831
56832 2006-11-14  Eric Blake  <ebb9@byu.net>
56833
56834         * modules/tempname (License): Change to LGPL.
56835
56836 2006-11-14  Eric Blake  <ebb9@byu.net>
56837
56838         * doc/functions.texi (Function Portability): *printf functions on
56839         Cygwin now understand all POSIX size specifiers.
56840
56841 2006-11-14  Bruno Haible  <bruno@clisp.org>
56842
56843         * modules/c-ctype (License): Change to LGPL.
56844
56845 2006-11-12  Bruno Haible  <bruno@clisp.org>
56846
56847         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56848         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
56849         for GNOME libraries, for which the include files are installed in
56850         subdirectories of $prefix/include.
56851
56852 2006-11-12  Bruno Haible  <bruno@clisp.org>
56853
56854         * m4/lib-link.m4: Require at least autoconf-2.54.
56855         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
56856         name to underscores for the --with option.
56857
56858 2006-11-13  Bruno Haible  <bruno@clisp.org>
56859
56860         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
56861         the tests directory.
56862         Reported by Ralf Wildenhues.
56863
56864 2006-11-13  Bruno Haible  <bruno@clisp.org>
56865
56866         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
56867         (func_emit_initmacro_end): Undo the override here.
56868         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
56869         Works around the famous automake error in coreutils.
56870
56871 2006-11-13  Eric Blake  <ebb9@byu.net>
56872
56873         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
56874         element, not its node.
56875
56876 2006-11-12  Bruno Haible  <bruno@clisp.org>
56877
56878         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
56879         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
56880
56881 2006-11-12  Bruno Haible  <bruno@clisp.org>
56882
56883         * gnulib-tool: New option --local-symlink.
56884         (func_usage): Document it.
56885         (lsymbolic): New variable.
56886         (func_import, func_create_testdir): If --symlink was not specified,
56887         test whether --local-symlink was specified and the file comes from
56888         the local_gnulib_dir.
56889
56890 2006-11-12  Bruno Haible  <bruno@clisp.org>
56891
56892         * gnulib-tool (func_ln): New function.
56893         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
56894
56895 2006-11-12  Bruno Haible  <bruno@clisp.org>
56896
56897         Finish support for source files in subdirectories.
56898         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
56899         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
56900         AUTOMAKE_OPTIONS.
56901         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
56902
56903 2006-11-12  Bruno Haible  <bruno@clisp.org>
56904
56905         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56906         EXTRA_lib_SOURCES augmentation.
56907         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
56908
56909 2006-11-12  Jim Meyering  <jim@meyering.net>
56910
56911         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
56912         file descriptors.  This also averts a failure on systems with
56913         native openat support when a traversed directory lacks "x" access.
56914         * lib/fts_.h: Include "i-ring.h"
56915         (struct FTS) [fts_fd_ring]: New member.
56916         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
56917         (FCHDIR): Add parentheses.
56918         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
56919         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
56920         When descending, rather than simply closing the previous
56921         fts_cwd_fd value, push that file descriptor onto the ring.
56922         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
56923         (fts_open): Initialize the new fd_ring member.
56924         (fts_close): Clear the ring.
56925         (fts_safe_changedir): When possible, use our new fd_ring to skip
56926         the diropen and fstat and dev/ino comparison that would normally
56927         accompany a virtual `chdir ("..")'.
56928
56929         * modules/fts (Depends-on): Add i-ring.
56930         * modules/i-ring: New module.
56931         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
56932         * m4/i-ring.m4: New file.
56933
56934 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56935
56936         * gnulib-tool (func_create_testdir): Fix replacement of
56937         `build-aux' in configure.ac.  Run autotools in gltests
56938         subdirectory.
56939         (func_create_testdir, func_create_megatestdir, test): There is
56940         no need for '--force' in most autotool invocations in a new
56941         tree.  Actually fail the whole test if any of the tools, or the
56942         configure or make stages fail.
56943
56944         Sync from Automake.
56945         * build-aux/gnupload: Revert last change.  Add pointer to upload
56946         instructions of the GNU Maintenance Instructions.
56947         Suggestion by Karl Berry.
56948
56949 2006-11-10  Jim Meyering  <jim@meyering.net>
56950
56951         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
56952
56953 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56954
56955         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
56956         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
56957         (bind_textdomain_codeset) [! ENABLE_NLS]:
56958         Evaluate all the arguments.  That way, callers get compatible behavior
56959         if the arguments have side effects.  Also, it avoids some GCC
56960         diagnostics in some cases; Joel E. Denny reported problems when Bison
56961         was configured with --enable-gcc-warnigs.
56962
56963 2006-11-10  Jim Meyering  <jim@meyering.net>
56964
56965         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
56966         relevant options in CFLAGS (like -O, -fno-inline) are taken into
56967         account.
56968
56969 2006-11-10  Jim Meyering  <jim@meyering.net>
56970
56971         * modules/inline: New file/module.
56972         * modules/xalloc (Files): Remove m4/inline.m4.
56973         (Depends-on): Add inline, instead.
56974         * modules/oset: Likewise.
56975         * modules/list: Likewise.
56976
56977 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56978
56979         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
56980         Problem reported by Matthew Woehlke.
56981
56982 2006-11-09  Bruno Haible  <bruno@clisp.org>
56983
56984         * lib/tempname.c (gen_tempname): Remove variant that invokes
56985         __gen_tempname.
56986         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
56987         __gen_tempname.
56988
56989 2006-11-08  Bruno Haible  <bruno@clisp.org>
56990
56991         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
56992         to 'yes' instead of 'cross-compiling'.
56993
56994 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
56995
56996         * lib/quotearg.h (quotearg_free): New decl.
56997         * lib/quotearg.c (quotearg_free): New function.
56998         (slot0, nslots, slotvec0, slotvec):
56999         Now file-scope so that quotearg_free can get at them.
57000
57001 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57002
57003         Sync from Automake.
57004         * build-aux/gnupload: Add missing 'gnu' to example URL.
57005         Report by Karl Berry.
57006
57007 2006-11-08  Bruno Haible  <bruno@clisp.org>
57008
57009         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
57010         Suggested by Paul Eggert.
57011
57012 2006-11-08  Jim Meyering  <jim@meyering.net>
57013
57014         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
57015         It's already included if !_LIBC.
57016         (fts_safe_changedir): Add a comment.
57017
57018 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57019
57020         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
57021         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
57022         Matthew Woehlke.
57023
57024         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
57025         definitions up, to avoid colliding with change below.
57026         (static_inline) [HAVE_INLINE]: New macro.
57027         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
57028         Provide extern decls when !HAVE_INLINE.  Do not define unless
57029         static_inline is defined, either by us or by xmalloc.c.  Use
57030         static_inline rather than static inline.
57031         (XCALLOC): Optimize sizeof(T) = 1 case.
57032         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
57033
57034 2006-11-07  Bruno Haible  <bruno@clisp.org>
57035
57036         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
57037         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
57038         AC_C_INLINE.
57039         * modules/xalloc (Files): Add m4/inline.m4.
57040
57041 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57042
57043         * README: Fix typo.
57044         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
57045         (Miscellanous Notes): ...from this.
57046
57047 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57048
57049         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
57050         Mention that offsetof should be used instead of sizeof.
57051         From Bruno Haible.
57052
57053 2006-11-07  Bruno Haible  <bruno@clisp.org>
57054
57055         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
57056
57057 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57058
57059         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57060         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
57061         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57062         (gl_tree_add_before, gl_tree_add_after):
57063         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
57064         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
57065         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57066         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
57067         (gl_linked_add_after, gl_linked_add_at): Likewise.
57068         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
57069         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57070         (gl_tree_add_before, gl_tree_add_after): Likewise.
57071         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
57072         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
57073         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57074
57075 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57076
57077         * lib/gl_oset.h: Use C comment style, not C++ comment style.
57078
57079 2006-11-06  Bruno Haible  <bruno@clisp.org>
57080
57081         * m4/inline.m4: New file.
57082         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
57083         * modules/list (Files): Add m4/inline.m4.
57084         * modules/oset (Files): Likewise.
57085
57086 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57087
57088         * lib/idcache.c: Include <stddef.h>, for offsetof.
57089         (struct userid.name): Change from char * to a flexible array member.
57090         All uses changed.
57091         * modules/idcache (Depends-on): Add flexmember.
57092
57093         * MODULES.html.sh (Core language properties): New module flexmember.
57094         * modules/flexmember, m4/flexmember.m4: New files.
57095
57096         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
57097         inline functions that are identical with the old xnmalloc_inline,
57098         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
57099         that we can avoid some unnecessary integer multiplications and
57100         divisions in the common case where the element size is known at
57101         compile time.
57102         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
57103         needed.
57104         (xnboundedmalloc): Remove.
57105         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
57106         arguments, for consistency with rest of this header.
57107         (xcharalloc): Rewrite using XNMALLOC.
57108         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
57109         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
57110         versions have been moved to lib/xalloc.h and renamed to be the
57111         non-*_inline versions.
57112         (xmalloc, xrealloc): Implement without reference to the xnmalloc
57113         and xnrealloc functions, since those functions are now inline and
57114         now call us.
57115         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
57116         renaming described above.
57117         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
57118         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
57119         captures the dependency in AC_C_INLINE.
57120
57121         New module canonicalize-lgpl, proposed by Charles Wilson in
57122         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
57123         with a few small changes afterwards.
57124         * MODULES.html.sh (File system functions): New module
57125         canonicalize-lgpl.
57126         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
57127         and canonicalize_file_name.
57128         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
57129         * modules/canonicalize-lgpl: New files.
57130
57131 2006-11-05  Bruno Haible  <bruno@clisp.org>
57132
57133         * gnulib-tool (func_import, func_create_testdir): Create directories
57134         also for files in subdirectories of lib/.
57135
57136 2006-11-05  Bruno Haible  <bruno@clisp.org>
57137
57138         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
57139         ANSI C compliant.
57140
57141 2006-11-03  Bruno Haible  <bruno@clisp.org>
57142
57143         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57144         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
57145         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
57146         (xnboundedmalloc): New inline function.
57147         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
57148         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
57149         xmalloc.
57150         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
57151         xmalloc.
57152         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
57153         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
57154         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
57155         xmalloc.
57156         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57157         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
57158         xmalloc.
57159         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
57160         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57161         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
57162         xmalloc.
57163         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57164         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
57165         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57166         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
57167         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
57168         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
57169         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
57170
57171 2006-11-03  Bruno Haible  <bruno@clisp.org>
57172
57173         * lib/c-ctype.h [C++]: Define functions without name mangling.
57174         * lib/fwriteerror.h [C++]: Likewise.
57175         * lib/gcd.h [C++]: Likewise.
57176         * lib/linebreak.h [C++]: Likewise.
57177
57178 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57179
57180         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
57181         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
57182         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
57183         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57184         Check for functions and headers just once.
57185         Check for declaration of canonicalize_file_name.
57186         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
57187
57188 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57189
57190         * gnulib-tool (func_import): Fix typo in actioncmd.
57191
57192 2006-11-02  Bruno Haible  <bruno@clisp.org>
57193
57194         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57195         newline sequence in the Makefile.am snippet as a space, like "make"
57196         does.
57197         Reported by Roger Persson <perrog@gmail.com>.
57198
57199 2006-11-01  Bruno Haible  <bruno@clisp.org>
57200
57201         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57202         already declared in <string.h>.
57203         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57204
57205 2006-11-01  Bruno Haible  <bruno@clisp.org>
57206
57207         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57208         * lib/strcase.h: Include <string.h>.
57209         (strcasecmp): Define to rpl_strcasecmp here.
57210
57211 2006-11-01  Bruno Haible  <bruno@clisp.org>
57212
57213         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57214
57215 2006-11-01  Eric Blake  <ebb9@byu.net>
57216
57217         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57218
57219         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57220
57221 2006-10-29  Bruno Haible  <bruno@clisp.org>
57222
57223         Make it compile in C++ mode.
57224         * lib/full-write.c (full_rw): Add a cast.
57225
57226 2006-11-01  Bruno Haible  <bruno@clisp.org>
57227
57228         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57229         be POSIX compliant.
57230         Reported by Roger Persson <perrog@gmail.com>.
57231
57232 2006-11-01  Eric Blake  <ebb9@byu.net>
57233
57234         * lib/getopt_.h: Fix comments.
57235
57236 2006-10-31  Eric Blake  <ebb9@byu.net>
57237
57238         * modules/tmpdir (Depends-on): Add sys_stat.
57239         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57240         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57241         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57242         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57243         tempname.
57244
57245 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57246
57247         Avoid some C++ diagnostics reported by Bruno Haible.
57248         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57249         xmalloc.
57250         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57251         (struct slotvec): Move to top level.
57252         (quotearg_n_options): Rewrite to avoid xmalloc.
57253         * lib/xalloc.h (xcharalloc): New function.
57254         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57255         [defined __cplusplus]: Add function template that provides result
57256         type propagation.  This part of the change is from Bruno Haible.
57257
57258 2006-10-29  Bruno Haible  <bruno@clisp.org>
57259
57260         Make it compile in C++ mode.
57261         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57262         * lib/strnlen1.c (strnlen1): Cast memchr result.
57263         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
57264         * lib/clean-temp.c (string_equals, string_hash): Add casts.
57265         (create_temp_dir): Rename local variable 'template'.
57266         (compile_csharp_using_sscli): Add cast.
57267         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
57268         * lib/findprog.c (find_in_path): Likewise.
57269         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
57270         * lib/wait-process.c (register_slave_subprocess): Likewise.
57271
57272 2006-10-22  Bruno Haible  <bruno@clisp.org>
57273
57274         * modules/tsearch: New file.
57275         * lib/tsearch.h: New file.
57276         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
57277         * m4/tsearch.m4: New file.
57278         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
57279
57280 2006-10-29  Eric Blake  <ebb9@byu.net>
57281
57282         * lib/arcfour.c: Assume config.h.
57283         * lib/arctwo.c: Likewise.
57284         * lib/base64.c: Likewise.
57285         * lib/check-version.c: Likewise.
57286         * lib/crc.c: Likewise.
57287         * lib/des.c: Likewise.
57288         * lib/gc-gnulib.c: Likewise.
57289         * lib/gc-libgcrypt.c: Likewise.
57290         * lib/gc-pbkdf2-sha1.c: Likewise.
57291         * lib/getaddrinfo.c: Likewise.
57292         * lib/getdelim.c: Likewise.
57293         * lib/getline.c: Likewise.
57294         * lib/hmac-md5.c: Likewise.
57295         * lib/hmac-sha1.c: Likewise.
57296         * lib/iconvme.c: Likewise.
57297         * lib/md2.c: Likewise.
57298         * lib/md4.c: Likewise.
57299         * lib/memxor.c: Likewise.
57300         * lib/read-file.c: Likewise.
57301         * lib/readline.c: Likewise.
57302         * lib/rijndael-alg-fst.c: Likewise.
57303         * lib/rijndael-api-fst.c: Likewise.
57304         * lib/xgetdomainname.c: Likewise.
57305
57306 2006-10-28  Eric Blake  <ebb9@byu.net>
57307
57308         * lib/xstrndup.c: Assume config.h.
57309
57310 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57311
57312         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
57313         stat-macros.h is now for our own macros, whereas stat_h is for
57314         macros in the <sys/stat.h> name space.
57315         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57316         (STAT_MACROS_H): Remove.
57317         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
57318         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
57319         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
57320         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57321         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57322         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57323         Move these macros to ...
57324         * lib/stat_.h: here.  Don't include stat-macros.h.
57325         * lib/canonicalize.c: Don't include stat-macros.h.
57326         * lib/chown.c: Likewise.
57327         * lib/euidaccess.c: Likewise.
57328         * lib/file-type.c: Likewise.
57329         * lib/filemode.c: Likewise.
57330         * lib/glob.c: Likewise.
57331         * lib/isapipe.c: Likewise.
57332         * lib/lchown.c: Likewise.
57333         * lib/lstat.c: Likewise.
57334         * lib/mkdir-p.c: Likewise.
57335         * lib/rmdir.c: Likewise.
57336         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57337         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57338         unless mkdir isn't declared, to speed up 'configure'.
57339         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57340         would define all the S_* symbols.
57341         * modules/canonicalize (Depends-on):
57342         Depend on sys_stat, not stat-macros.
57343         * modules/chown: Likewise.
57344         * modules/euidaccess: Likewise.
57345         * modules/filemode: Likewise.
57346         * modules/file-type: Likewise.
57347         * modules/glob: Likewise.
57348         * modules/isapipe: Likewise.
57349         * modules/lchown: Likewise.
57350         * modules/lstat: Likewise.
57351         * modules/mkancesdirs: Likewise.
57352         * modules/rmdir: Likewise.
57353         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57354         * modules/modechange: Likewise.
57355         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57356         (configure.ac): Remove gl_STAT_MACROS.
57357         * modules/sys_stat (Depends-on): Remove stat-macros.
57358
57359 2006-10-27  Bruno Haible  <bruno@clisp.org>
57360
57361         * m4/signed.m4: Remove file.
57362         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57363         invocation.
57364         * modules/vasnprintf (Files): Remove m4/signed.m4.
57365
57366 2006-10-27  Bruno Haible  <bruno@clisp.org>
57367
57368         Update to GNU gettext 0.16.
57369         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57370         m4/inttypes-h.m4, m4/signed.m4.
57371         * m4/gettext.m4: Update to GNU gettext 0.16.
57372         * m4/intl.m4: New file, from GNU gettext.
57373         * m4/intldir.m4: New file, from GNU gettext.
57374         * config/srclist.txt: Update
57375
57376 2006-10-27  Eric Blake  <ebb9@byu.net>
57377
57378         * MODULES.html.sh: Document tempname.
57379         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57380         dependencies.
57381         (Files): Move lib/tempname.c...
57382         * modules/tempname: ...to this new module.
57383         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57384         (gl_PREREQ_TEMPNAME): Move...
57385         * m4/tempname.m4: ...to this new file.
57386         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57387         * modules/sys_stat (Depends-on): Add stat-macros.
57388         * lib/stat_.h (includes): Pick up stat macros.
57389         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57390         if stat macros are broken.
57391         * lib/tempname.c (includes): No need to include "stat-macros.h".
57392         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57393         (direxists, __path_search) [!_LIBC]: Don't compile these in
57394         gnulib; the tmpdir module covers that.
57395         * lib/tempname.h: New file.
57396
57397 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57398
57399         * COPYING: Explain how gnulib-tool converts licence headers.
57400         Almost all wording by Eric Blake.
57401
57402 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57403
57404         * lib/mbchar.h (is_basic_table): Make read-only.
57405         * lib/mbchar.c (is_basic_table): Likewise.
57406         Reported by John Darrington.
57407
57408 2006-10-25  Bruno Haible  <bruno@clisp.org>
57409
57410         * lib/progname.h (set_program_name): Undefine before defining.
57411
57412 2006-10-25  Bruno Haible  <bruno@clisp.org>
57413
57414         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57415         false for non-gcc C++ compilers.
57416         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57417
57418 2006-10-24  Bruno Haible  <bruno@clisp.org>
57419
57420         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57421         iconv implementations like Irix iconv.
57422
57423 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57424
57425         * modules/vararrays: New file.
57426         * m4/vararrays.m4: New file, taken from diffutils.
57427         * MODULES.html.sh: New module vararrays.
57428
57429 2006-10-24  Karl Berry  <karl@gnu.org>
57430
57431         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57432         Don't call GNU Unix.
57433
57434 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57435
57436         * users.txt: Add Libtool.
57437
57438         Sync from Libtool:
57439
57440         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57441
57442         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57443         to gnulib's policy of including config.h unconditionally.
57444
57445 2006-10-24  Bruno Haible  <bruno@clisp.org>
57446
57447         * modules/wcwidth (Files): Add m4/wint_t.m4.
57448         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57449         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57450
57451 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57452
57453         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57454         to pacify GCC with some -W flags enabled.  Problem reported by
57455         Bruno Haible.
57456
57457 2006-10-24  Jim Meyering  <jim@meyering.net>
57458
57459         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57460         Reported by Karl Berry.
57461
57462 2006-10-23  Bruno Haible  <bruno@clisp.org>
57463
57464         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57465
57466 2006-10-24  Bruno Haible  <bruno@clisp.org>
57467
57468         * lib/gl_list.h: Use C comment style, not C++ comment style.
57469
57470 2006-10-23  Eric Blake  <ebb9@byu.net>
57471
57472         * lib/getaddrinfo.c (includes): Add missing include.
57473
57474 2006-10-23  Bruno Haible  <bruno@clisp.org>
57475             Paul Eggert  <eggert@cs.ucla.edu>
57476
57477         Ability to rename obstack_free.
57478         * lib/obstack.h (__obstack_free): New macro. Declare instead of
57479         obstack_free.
57480         (obstack_free): Invoke the __obstack_free macro.
57481         * lib/obstack.c (obstack_free): Use __obstack_free macro.
57482
57483 2006-10-23  Bruno Haible  <bruno@clisp.org>
57484             Paul Eggert  <eggert@cs.ucla.edu>
57485
57486         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
57487         __argc, __argv from the declaration. (They are defined as macros on
57488         mingw.)
57489
57490 2006-10-22  Bruno Haible  <bruno@clisp.org>
57491
57492         * doc/gnulib-intro.texi: New file.
57493         * doc/gnulib.texi: Include it.
57494
57495 2006-10-21  Bruno Haible  <bruno@clisp.org>
57496
57497         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
57498         "Introduction", "Miscellanous Notes", "Particular Modules".
57499
57500 2006-10-21  Bruno Haible  <bruno@clisp.org>
57501
57502         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57503         Change mostlyclean-local rule to avoid sh syntax error from bash
57504         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
57505
57506 2006-10-23  Jim Meyering  <jim@meyering.net>
57507
57508         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
57509         in place of snprintf.
57510
57511         * modules/inttostr (Files): Add lib/uinttostr.c.
57512         * lib/uinttostr.c (inttostr): New file/function.
57513         * lib/inttostr.h (uinttostr): Declare.
57514         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
57515         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57516         Add uinttostr.
57517         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
57518
57519 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57520
57521         * lib/canonicalize.c (ELOOP): Define if not already defined.
57522         Problem reported by Bruno Haible in
57523         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
57524
57525 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57526
57527         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
57528         Problem reported by Perry Smith and Ville Laurikari.
57529
57530         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
57531         uses.
57532
57533 2006-10-19  Bruno Haible  <bruno@clisp.org>
57534
57535         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
57536         for mingw.
57537
57538 2006-10-19  Bruno Haible  <bruno@clisp.org>
57539
57540         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
57541         Needed for mingw.
57542
57543 2006-10-19  Bruno Haible  <bruno@clisp.org>
57544
57545         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
57546
57547 2006-10-19  Bruno Haible  <bruno@clisp.org>
57548
57549         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
57550         it.
57551
57552 2006-10-19  Bruno Haible  <bruno@clisp.org>
57553
57554         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
57555         invocation.
57556
57557 2006-10-19  Bruno Haible  <bruno@clisp.org>
57558
57559         * gnulib-tool (func_create_testdir): Don't include ftruncate and
57560         mountlist by default.
57561
57562 2006-10-16  Bruno Haible  <bruno@clisp.org>
57563
57564         * lib/c-strstr.c: Include c-strstr.h.
57565
57566 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57567
57568         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
57569         in a slash.
57570
57571 2006-10-18  Bruno Haible  <bruno@clisp.org>
57572
57573         * lib/lock.h [C++]: Wrap definitions in extern "C".
57574
57575 2006-10-18  Bruno Haible  <bruno@clisp.org>
57576
57577         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
57578         gl_LIBOBJS list.
57579
57580 2006-10-18  Bruno Haible  <bruno@clisp.org>
57581
57582         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
57583
57584 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
57585
57586         * lib/xstrtol.h: Include gettext.h.
57587         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
57588         Problem reported by Eric Blake.
57589         * modules/xstrtol (Depends-on): Add gettext-h.
57590
57591 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
57592
57593         * lib/strftime.c (advance): New macro.
57594         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
57595         incomplete type, so you can't add 0 to it.  Problem and patch
57596         reported by Eelco Dolstra for dietlibc.
57597
57598 2006-10-18  Jim Meyering  <jim@meyering.net>
57599
57600         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
57601         type for a local, and rename it: s/up/user_proc/.
57602
57603 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57604
57605         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
57606         READ_UTMP_USER_PROCESS.
57607         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
57608
57609 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57610
57611         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
57612         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
57613
57614 2006-10-17  Eric Blake  <ebb9@byu.net>
57615
57616         * lib/sigprocmask.c (sigprocmask): Fix typo.
57617
57618         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
57619
57620         * modules/clean-temp (Makefile.am): Don't add to make output...
57621         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
57622         config.h.
57623
57624 2006-10-17  Bruno Haible  <bruno@clisp.org>
57625
57626         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
57627         differently if DEFAULT_TEXT_DOMAIN is set.
57628
57629 2006-10-16  Bruno Haible  <bruno@clisp.org>
57630
57631         * lib/clean-temp.c: Include fwriteerror.h.
57632
57633 2006-10-16  Bruno Haible  <bruno@clisp.org>
57634
57635         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
57636
57637 2006-10-16  Bruno Haible  <bruno@clisp.org>
57638
57639         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
57640         * lib/sigprocmask.h: Include <sys/types.h>.
57641         (sigset_t): Use the system's definition if present.
57642
57643 2006-10-17  Eric Blake  <ebb9@byu.net>
57644
57645         * lib/xvasprintf.c (includes): Assume config.h.
57646         * lib/xasprintf.c (includes): Likewise.
57647
57648 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57649
57650         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
57651         at least as wide as intmax_t.
57652
57653 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
57654
57655         (Imported from Automake.)
57656         * build-aux/gnupload: Update to version 1.1 of directive file.
57657
57658 2006-10-16  Eric Blake  <ebb9@byu.net>
57659
57660         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
57661         match Automake 1.10a.
57662
57663 2006-10-14  Bruno Haible  <bruno@clisp.org>
57664
57665         * modules/sigprocmask: New file.
57666         * lib/sigprocmask.h: New file.
57667         * lib/sigprocmask.c: New file.
57668         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
57669         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
57670         request sigprocmask.o.
57671         (gl_PREREQ_SIGPROCMASK): New macro.
57672         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
57673         (Depends-on): Add sigprocmask.
57674         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
57675         gt_SIGNALBLOCKING. Test for 'raise' only once.
57676         * lib/fatal-signal.c: Include sigprocmask.h.
57677         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
57678         unblock_fatal_signals): Define always.
57679         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57680         sigprocmask.
57681
57682 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57683
57684         Sync from Automake.
57685         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
57686         which incorrectly sets the mode of an existing destination
57687         directory.  In some cases the unpatched install-sh could do the
57688         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
57689         system.  We hope this is rare in practice, but it's clearly worth
57690         fixing.  Problem reported by Alex Unleashed in
57691         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
57692         Also, don't bother to check for -m bugs unless we're using -m;
57693         suggested by Stepan Kasal.
57694
57695 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57696
57697         Sync from Automake.
57698         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
57699         `-c' flag, so they appear at the same position as in %FASTDEP%
57700         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
57701         which ignores unknown options only after the first non-option.
57702         Bug report against M4 by Nelson H. F. Beebe.
57703
57704 2006-10-13  Jim Meyering  <jim@meyering.net>
57705
57706         Fix a bug in yesterday's change.
57707         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
57708         p->fts_statp->st_dev would be used uninitialized.
57709         Ensures that we always call fts_stat on the very first entry.
57710         Miklos Szeredi reported that find -xdev stopped working.
57711
57712 2006-10-12  Bruno Haible  <bruno@clisp.org>
57713
57714         * gnulib-tool (func_get_automake_snippet): Append an automatically
57715         computed EXTRA_DIST augmentation.
57716         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
57717         * modules/alloca-opt (Makefile.am): Likewise.
57718         * modules/allocsa (Makefile.am): Likewise.
57719         * modules/arcfour (Makefile.am): Likewise.
57720         * modules/arctwo (Makefile.am): Likewise.
57721         * modules/argmatch (Makefile.am): Likewise.
57722         * modules/argz (Makefile.am): Likewise.
57723         * modules/atexit (Makefile.am): Likewise.
57724         * modules/backupfile (Makefile.am): Likewise.
57725         * modules/byteswap (Makefile.am): Likewise.
57726         * modules/c-strtod (Makefile.am): Likewise.
57727         * modules/c-strtold (Makefile.am): Likewise.
57728         * modules/calloc (Makefile.am): Likewise.
57729         * modules/canon-host (Makefile.am): Likewise.
57730         * modules/canonicalize (Makefile.am): Likewise.
57731         * modules/chdir-long (Makefile.am): Likewise.
57732         * modules/chdir-safer (Makefile.am): Likewise.
57733         * modules/check-version (Makefile.am): Likewise.
57734         * modules/chown (Makefile.am): Likewise.
57735         * modules/cloexec (Makefile.am): Likewise.
57736         * modules/close-stream (Makefile.am): Likewise.
57737         * modules/closeout (Makefile.am): Likewise.
57738         * modules/crc (Makefile.am): Likewise.
57739         * modules/csharpexec (Makefile.am): Likewise.
57740         * modules/cycle-check (Makefile.am): Likewise.
57741         * modules/des (Makefile.am): Likewise.
57742         * modules/dev-ino (Makefile.am): Likewise.
57743         * modules/dirfd (Makefile.am): Likewise.
57744         * modules/dirname (Makefile.am): Likewise.
57745         * modules/dup2 (Makefile.am): Likewise.
57746         * modules/eealloc (Makefile.am): Likewise.
57747         * modules/error (Makefile.am): Likewise.
57748         * modules/euidaccess (Makefile.am): Likewise.
57749         * modules/exclude (Makefile.am): Likewise.
57750         * modules/exitfail (Makefile.am): Likewise.
57751         * modules/fcntl-safer (Makefile.am): Likewise.
57752         * modules/fcntl (Makefile.am): Likewise.
57753         * modules/file-type (Makefile.am): Likewise.
57754         * modules/fileblocks (Makefile.am): Likewise.
57755         * modules/filemode (Makefile.am): Likewise.
57756         * modules/filenamecat (Makefile.am): Likewise.
57757         * modules/fnmatch (Makefile.am): Likewise.
57758         * modules/fopen-safer (Makefile.am): Likewise.
57759         * modules/fpending (Makefile.am): Likewise.
57760         * modules/fprintftime (Makefile.am): Likewise.
57761         * modules/free (Makefile.am): Likewise.
57762         * modules/fsusage (Makefile.am): Likewise.
57763         * modules/ftruncate (Makefile.am): Likewise.
57764         * modules/fts (Makefile.am): Likewise.
57765         * modules/gc-arcfour (Makefile.am): Likewise.
57766         * modules/gc-des (Makefile.am): Likewise.
57767         * modules/gc-hmac-md5 (Makefile.am): Likewise.
57768         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
57769         * modules/gc-md4 (Makefile.am): Likewise.
57770         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57771         * modules/gc-sha1 (Makefile.am): Likewise.
57772         * modules/gc (Makefile.am): Likewise.
57773         * modules/getaddrinfo (Makefile.am): Likewise.
57774         * modules/getcwd (Makefile.am): Likewise.
57775         * modules/getdelim (Makefile.am): Likewise.
57776         * modules/getdomainname (Makefile.am): Likewise.
57777         * modules/getgroups (Makefile.am): Likewise.
57778         * modules/gethostname (Makefile.am): Likewise.
57779         * modules/gethrxtime (Makefile.am): Likewise.
57780         * modules/getline (Makefile.am): Likewise.
57781         * modules/getloadavg (Makefile.am): Likewise.
57782         * modules/getlogin_r (Makefile.am): Likewise.
57783         * modules/getndelim2 (Makefile.am): Likewise.
57784         * modules/getopt (Makefile.am): Likewise.
57785         * modules/getpagesize (Makefile.am): Likewise.
57786         * modules/getpass-gnu (Makefile.am): Likewise.
57787         * modules/getpass (Makefile.am): Likewise.
57788         * modules/getsubopt (Makefile.am): Likewise.
57789         * modules/gettime (Makefile.am): Likewise.
57790         * modules/gettimeofday (Makefile.am): Likewise.
57791         * modules/getugroups (Makefile.am): Likewise.
57792         * modules/getusershell (Makefile.am): Likewise.
57793         * modules/glob (Makefile.am): Likewise.
57794         * modules/group-member (Makefile.am): Likewise.
57795         * modules/hard-locale (Makefile.am): Likewise.
57796         * modules/hash (Makefile.am): Likewise.
57797         * modules/hmac-md5 (Makefile.am): Likewise.
57798         * modules/hmac-sha1 (Makefile.am): Likewise.
57799         * modules/human (Makefile.am): Likewise.
57800         * modules/idcache (Makefile.am): Likewise.
57801         * modules/imaxabs (Makefile.am): Likewise.
57802         * modules/imaxdiv (Makefile.am): Likewise.
57803         * modules/inet_ntop (Makefile.am): Likewise.
57804         * modules/inet_pton (Makefile.am): Likewise.
57805         * modules/intprops (Makefile.am): Likewise.
57806         * modules/inttostr (Makefile.am): Likewise.
57807         * modules/inttypes (Makefile.am): Likewise.
57808         * modules/isapipe (Makefile.am): Likewise.
57809         * modules/javaversion (Makefile.am): Likewise.
57810         * modules/lchmod (Makefile.am): Likewise.
57811         * modules/lchown (Makefile.am): Likewise.
57812         * modules/localcharset (Makefile.am): Likewise.
57813         * modules/long-options (Makefile.am): Likewise.
57814         * modules/lstat (Makefile.am): Likewise.
57815         * modules/malloc (Makefile.am): Likewise.
57816         * modules/mathl (Makefile.am): Likewise.
57817         * modules/mbchar (Makefile.am): Likewise.
57818         * modules/md2 (Makefile.am): Likewise.
57819         * modules/md4 (Makefile.am): Likewise.
57820         * modules/md5 (Makefile.am): Likewise.
57821         * modules/memcasecmp (Makefile.am): Likewise.
57822         * modules/memchr (Makefile.am): Likewise.
57823         * modules/memcmp (Makefile.am): Likewise.
57824         * modules/memcoll (Makefile.am): Likewise.
57825         * modules/memcpy (Makefile.am): Likewise.
57826         * modules/memmem (Makefile.am): Likewise.
57827         * modules/memmove (Makefile.am): Likewise.
57828         * modules/mempcpy (Makefile.am): Likewise.
57829         * modules/memrchr (Makefile.am): Likewise.
57830         * modules/memset (Makefile.am): Likewise.
57831         * modules/memxor (Makefile.am): Likewise.
57832         * modules/mkancesdirs (Makefile.am): Likewise.
57833         * modules/mkdir-p (Makefile.am): Likewise.
57834         * modules/mkdir (Makefile.am): Likewise.
57835         * modules/mkdtemp (Makefile.am): Likewise.
57836         * modules/mkstemp (Makefile.am): Likewise.
57837         * modules/mktime (Makefile.am): Likewise.
57838         * modules/modechange (Makefile.am): Likewise.
57839         * modules/mountlist (Makefile.am): Likewise.
57840         * modules/nanosleep (Makefile.am): Likewise.
57841         * modules/obstack (Makefile.am): Likewise.
57842         * modules/openat (Makefile.am): Likewise.
57843         * modules/pagealign_alloc (Makefile.am): Likewise.
57844         * modules/pathmax (Makefile.am): Likewise.
57845         * modules/physmem (Makefile.am): Likewise.
57846         * modules/poll (Makefile.am): Likewise.
57847         * modules/posixtm (Makefile.am): Likewise.
57848         * modules/posixver (Makefile.am): Likewise.
57849         * modules/putenv (Makefile.am): Likewise.
57850         * modules/quote (Makefile.am): Likewise.
57851         * modules/quotearg (Makefile.am): Likewise.
57852         * modules/raise (Makefile.am): Likewise.
57853         * modules/read-file (Makefile.am): Likewise.
57854         * modules/readline (Makefile.am): Likewise.
57855         * modules/readlink (Makefile.am): Likewise.
57856         * modules/readtokens (Makefile.am): Likewise.
57857         * modules/readutmp (Makefile.am): Likewise.
57858         * modules/realloc (Makefile.am): Likewise.
57859         * modules/regex (Makefile.am): Likewise.
57860         * modules/rename-dest-slash (Makefile.am): Likewise.
57861         * modules/rename (Makefile.am): Likewise.
57862         * modules/rijndael (Makefile.am): Likewise.
57863         * modules/rmdir (Makefile.am): Likewise.
57864         * modules/rpmatch (Makefile.am): Likewise.
57865         * modules/safe-read (Makefile.am): Likewise.
57866         * modules/safe-write (Makefile.am): Likewise.
57867         * modules/same-inode (Makefile.am): Likewise.
57868         * modules/same (Makefile.am): Likewise.
57869         * modules/save-cwd (Makefile.am): Likewise.
57870         * modules/savedir (Makefile.am): Likewise.
57871         * modules/setenv (Makefile.am): Likewise.
57872         * modules/settime (Makefile.am): Likewise.
57873         * modules/sha1 (Makefile.am): Likewise.
57874         * modules/sig2str (Makefile.am): Likewise.
57875         * modules/snprintf (Makefile.am): Likewise.
57876         * modules/stat-macros (Makefile.am): Likewise.
57877         * modules/stat-time (Makefile.am): Likewise.
57878         * modules/stdbool (Makefile.am): Likewise.
57879         * modules/stdint (Makefile.am): Likewise.
57880         * modules/stdlib-safer (Makefile.am): Likewise.
57881         * modules/stpcpy (Makefile.am): Likewise.
57882         * modules/stpncpy (Makefile.am): Likewise.
57883         * modules/strcase (Makefile.am): Likewise.
57884         * modules/strcasestr (Makefile.am): Likewise.
57885         * modules/strchrnul (Makefile.am): Likewise.
57886         * modules/strcspn (Makefile.am): Likewise.
57887         * modules/strdup (Makefile.am): Likewise.
57888         * modules/strerror (Makefile.am): Likewise.
57889         * modules/strftime (Makefile.am): Likewise.
57890         * modules/strndup (Makefile.am): Likewise.
57891         * modules/strnlen (Makefile.am): Likewise.
57892         * modules/strpbrk (Makefile.am): Likewise.
57893         * modules/strsep (Makefile.am): Likewise.
57894         * modules/strstr (Makefile.am): Likewise.
57895         * modules/strtod (Makefile.am): Likewise.
57896         * modules/strtoimax (Makefile.am): Likewise.
57897         * modules/strtok_r (Makefile.am): Likewise.
57898         * modules/strtol (Makefile.am): Likewise.
57899         * modules/strtoll (Makefile.am): Likewise.
57900         * modules/strtoul (Makefile.am): Likewise.
57901         * modules/strtoull (Makefile.am): Likewise.
57902         * modules/strtoumax (Makefile.am): Likewise.
57903         * modules/strverscmp (Makefile.am): Likewise.
57904         * modules/sys_socket (Makefile.am): Likewise.
57905         * modules/sys_stat (Makefile.am): Likewise.
57906         * modules/sysexits (Makefile.am): Likewise.
57907         * modules/time_r (Makefile.am): Likewise.
57908         * modules/timegm (Makefile.am): Likewise.
57909         * modules/timespec (Makefile.am): Likewise.
57910         * modules/tmpfile-safer (Makefile.am): Likewise.
57911         * modules/trim (Makefile.am): Likewise.
57912         * modules/unistd-safer (Makefile.am): Likewise.
57913         * modules/unlinkdir (Makefile.am): Likewise.
57914         * modules/unlocked-io (Makefile.am): Likewise.
57915         * modules/userspec (Makefile.am): Likewise.
57916         * modules/utime (Makefile.am): Likewise.
57917         * modules/utimecmp (Makefile.am): Likewise.
57918         * modules/utimens (Makefile.am): Likewise.
57919         * modules/vasnprintf (Makefile.am): Likewise.
57920         * modules/vasprintf (Makefile.am): Likewise.
57921         * modules/vsnprintf (Makefile.am): Likewise.
57922         * modules/xalloc (Makefile.am): Likewise.
57923         * modules/xgetcwd (Makefile.am): Likewise.
57924         * modules/xnanosleep (Makefile.am): Likewise.
57925         * modules/xreadlink (Makefile.am): Likewise.
57926         * modules/xstrtod (Makefile.am): Likewise.
57927         * modules/xstrtol (Makefile.am): Likewise.
57928         * modules/xstrtold (Makefile.am): Likewise.
57929         * modules/yesno (Makefile.am): Likewise.
57930         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
57931
57932 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57933
57934         * modules/error (Makefile.am): Distribute files through
57935         EXTRA_DIST, not lib_SOURCES.
57936
57937 2006-10-12  Eric Blake  <ebb9@byu.net>
57938
57939         * modules/error (Makefile.am): Distribute files in /lib.
57940         * modules/obstack (Makefile.am): Likewise.
57941
57942 2006-10-12  Bruno Haible  <bruno@clisp.org>
57943
57944         * modules/acl (Makefile.am): Distribute all files in lib/ through
57945         EXTRA_DIST.
57946         * modules/arcfour (Makefile.am): Likewise.
57947         * modules/arctwo (Makefile.am): Likewise.
57948         * modules/argmatch (Makefile.am): Likewise.
57949         * modules/argz (Makefile.am): Likewise.
57950         * modules/atexit (Makefile.am): Likewise.
57951         * modules/backupfile (Makefile.am): Likewise.
57952         * modules/c-strtod (Makefile.am): Likewise.
57953         * modules/c-strtold (Makefile.am): Likewise.
57954         * modules/calloc (Makefile.am): Likewise.
57955         * modules/canon-host (Makefile.am): Likewise.
57956         * modules/canonicalize (Makefile.am): Likewise.
57957         * modules/chdir-long (Makefile.am): Likewise.
57958         * modules/chdir-safer (Makefile.am): Likewise.
57959         * modules/check-version (Makefile.am): Likewise.
57960         * modules/chown (Makefile.am): Likewise.
57961         * modules/cloexec (Makefile.am): Likewise.
57962         * modules/close-stream (Makefile.am): Likewise.
57963         * modules/closeout (Makefile.am): Likewise.
57964         * modules/crc (Makefile.am): Likewise.
57965         * modules/cycle-check (Makefile.am): Likewise.
57966         * modules/des (Makefile.am): Likewise.
57967         * modules/dirfd (Makefile.am): Likewise.
57968         * modules/dirname (Makefile.am): Likewise.
57969         * modules/dup2 (Makefile.am): Likewise.
57970         * modules/euidaccess (Makefile.am): Likewise.
57971         * modules/exclude (Makefile.am): Likewise.
57972         * modules/exitfail (Makefile.am): Likewise.
57973         * modules/fcntl-safer (Makefile.am): Likewise.
57974         * modules/file-type (Makefile.am): Likewise.
57975         * modules/fileblocks (Makefile.am): Likewise.
57976         * modules/filemode (Makefile.am): Likewise.
57977         * modules/filenamecat (Makefile.am): Likewise.
57978         * modules/fnmatch (Makefile.am): Likewise.
57979         * modules/fopen-safer (Makefile.am): Likewise.
57980         * modules/fpending (Makefile.am): Likewise.
57981         * modules/fprintftime (Makefile.am): Likewise.
57982         * modules/free (Makefile.am): Likewise.
57983         * modules/fsusage (Makefile.am): Likewise.
57984         * modules/ftruncate (Makefile.am): Likewise.
57985         * modules/fts (Makefile.am): Likewise.
57986         * modules/gc (Makefile.am): Likewise.
57987         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57988         * modules/getaddrinfo (Makefile.am): Likewise.
57989         * modules/getcwd (Makefile.am): Likewise.
57990         * modules/getdelim (Makefile.am): Likewise.
57991         * modules/getdomainname (Makefile.am): Likewise.
57992         * modules/getgroups (Makefile.am): Likewise.
57993         * modules/gethostname (Makefile.am): Likewise.
57994         * modules/gethrxtime (Makefile.am): Likewise.
57995         * modules/getline (Makefile.am): Likewise.
57996         * modules/getloadavg (Makefile.am): Likewise.
57997         * modules/getlogin_r (Makefile.am): Likewise.
57998         * modules/getopt (Makefile.am): Likewise.
57999         * modules/getpass (Makefile.am): Likewise.
58000         * modules/getpass-gnu (Makefile.am): Likewise.
58001         * modules/getsubopt (Makefile.am): Likewise.
58002         * modules/gettime (Makefile.am): Likewise.
58003         * modules/gettimeofday (Makefile.am): Likewise.
58004         * modules/getugroups (Makefile.am): Likewise.
58005         * modules/getusershell (Makefile.am): Likewise.
58006         * modules/glob (Makefile.am): Likewise.
58007         * modules/group-member (Makefile.am): Likewise.
58008         * modules/hard-locale (Makefile.am): Likewise.
58009         * modules/hash (Makefile.am): Likewise.
58010         * modules/hmac-md5 (Makefile.am): Likewise.
58011         * modules/hmac-sha1 (Makefile.am): Likewise.
58012         * modules/human (Makefile.am): Likewise.
58013         * modules/idcache (Makefile.am): Likewise.
58014         * modules/imaxabs (Makefile.am): Likewise.
58015         * modules/imaxdiv (Makefile.am): Likewise.
58016         * modules/inet_ntop (Makefile.am): Likewise.
58017         * modules/inet_pton (Makefile.am): Likewise.
58018         * modules/inttostr (Makefile.am): Likewise.
58019         * modules/isapipe (Makefile.am): Likewise.
58020         * modules/lchown (Makefile.am): Likewise.
58021         * modules/long-options (Makefile.am): Likewise.
58022         * modules/lstat (Makefile.am): Likewise.
58023         * modules/malloc (Makefile.am): Likewise.
58024         * modules/mathl (Makefile.am): Likewise.
58025         * modules/mbchar (Makefile.am): Likewise.
58026         * modules/md2 (Makefile.am): Likewise.
58027         * modules/md4 (Makefile.am): Likewise.
58028         * modules/md5 (Makefile.am): Likewise.
58029         * modules/memcasecmp (Makefile.am): Likewise.
58030         * modules/memchr (Makefile.am): Likewise.
58031         * modules/memcmp (Makefile.am): Likewise.
58032         * modules/memcoll (Makefile.am): Likewise.
58033         * modules/memcpy (Makefile.am): Likewise.
58034         * modules/memmem (Makefile.am): Likewise.
58035         * modules/memmove (Makefile.am): Likewise.
58036         * modules/mempcpy (Makefile.am): Likewise.
58037         * modules/memrchr (Makefile.am): Likewise.
58038         * modules/memset (Makefile.am): Likewise.
58039         * modules/memxor (Makefile.am): Likewise.
58040         * modules/mkancesdirs (Makefile.am): Likewise.
58041         * modules/mkdir (Makefile.am): Likewise.
58042         * modules/mkdir-p (Makefile.am): Likewise.
58043         * modules/mkdtemp (Makefile.am): Likewise.
58044         * modules/mkstemp (Makefile.am): Likewise.
58045         * modules/mktime (Makefile.am): Likewise.
58046         * modules/modechange (Makefile.am): Likewise.
58047         * modules/mountlist (Makefile.am): Likewise.
58048         * modules/nanosleep (Makefile.am): Likewise.
58049         * modules/openat (Makefile.am): Likewise.
58050         * modules/pagealign_alloc (Makefile.am): Likewise.
58051         * modules/physmem (Makefile.am): Likewise.
58052         * modules/poll (Makefile.am): Likewise.
58053         * modules/posixtm (Makefile.am): Likewise.
58054         * modules/posixver (Makefile.am): Likewise.
58055         * modules/putenv (Makefile.am): Likewise.
58056         * modules/quote (Makefile.am): Likewise.
58057         * modules/quotearg (Makefile.am): Likewise.
58058         * modules/raise (Makefile.am): Likewise.
58059         * modules/read-file (Makefile.am): Likewise.
58060         * modules/readline (Makefile.am): Likewise.
58061         * modules/readlink (Makefile.am): Likewise.
58062         * modules/readtokens (Makefile.am): Likewise.
58063         * modules/readutmp (Makefile.am): Likewise.
58064         * modules/realloc (Makefile.am): Likewise.
58065         * modules/regex (Makefile.am): Likewise.
58066         * modules/rename (Makefile.am): Likewise.
58067         * modules/rename-dest-slash (Makefile.am): Likewise.
58068         * modules/rijndael (Makefile.am): Likewise.
58069         * modules/rmdir (Makefile.am): Likewise.
58070         * modules/rpmatch (Makefile.am): Likewise.
58071         * modules/safe-read (Makefile.am): Likewise.
58072         * modules/safe-write (Makefile.am): Likewise.
58073         * modules/same (Makefile.am): Likewise.
58074         * modules/save-cwd (Makefile.am): Likewise.
58075         * modules/savedir (Makefile.am): Likewise.
58076         * modules/setenv (Makefile.am): Likewise.
58077         * modules/settime (Makefile.am): Likewise.
58078         * modules/sha1 (Makefile.am): Likewise.
58079         * modules/sig2str (Makefile.am): Likewise.
58080         * modules/snprintf (Makefile.am): Likewise.
58081         * modules/stdlib-safer (Makefile.am): Likewise.
58082         * modules/stpcpy (Makefile.am): Likewise.
58083         * modules/stpncpy (Makefile.am): Likewise.
58084         * modules/strcase (Makefile.am): Likewise.
58085         * modules/strcasestr (Makefile.am): Likewise.
58086         * modules/strchrnul (Makefile.am): Likewise.
58087         * modules/strcspn (Makefile.am): Likewise.
58088         * modules/strdup (Makefile.am): Likewise.
58089         * modules/strerror (Makefile.am): Likewise.
58090         * modules/strftime (Makefile.am): Likewise.
58091         * modules/strndup (Makefile.am): Likewise.
58092         * modules/strnlen (Makefile.am): Likewise.
58093         * modules/strpbrk (Makefile.am): Likewise.
58094         * modules/strsep (Makefile.am): Likewise.
58095         * modules/strstr (Makefile.am): Likewise.
58096         * modules/strtod (Makefile.am): Likewise.
58097         * modules/strtoimax (Makefile.am): Likewise.
58098         * modules/strtok_r (Makefile.am): Likewise.
58099         * modules/strtol (Makefile.am): Likewise.
58100         * modules/strtoll (Makefile.am): Likewise.
58101         * modules/strtoul (Makefile.am): Likewise.
58102         * modules/strtoull (Makefile.am): Likewise.
58103         * modules/strtoumax (Makefile.am): Likewise.
58104         * modules/strverscmp (Makefile.am): Likewise.
58105         * modules/time_r (Makefile.am): Likewise.
58106         * modules/timegm (Makefile.am): Likewise.
58107         * modules/tmpfile-safer (Makefile.am): Likewise.
58108         * modules/unistd-safer (Makefile.am): Likewise.
58109         * modules/unlinkdir (Makefile.am): Likewise.
58110         * modules/userspec (Makefile.am): Likewise.
58111         * modules/utime (Makefile.am): Likewise.
58112         * modules/utimecmp (Makefile.am): Likewise.
58113         * modules/utimens (Makefile.am): Likewise.
58114         * modules/vasnprintf (Makefile.am): Likewise.
58115         * modules/vasprintf (Makefile.am): Likewise.
58116         * modules/vsnprintf (Makefile.am): Likewise.
58117         * modules/xalloc (Makefile.am): Likewise.
58118         * modules/xgetcwd (Makefile.am): Likewise.
58119         * modules/xnanosleep (Makefile.am): Likewise.
58120         * modules/xreadlink (Makefile.am): Likewise.
58121         * modules/xstrtod (Makefile.am): Likewise.
58122         * modules/xstrtol (Makefile.am): Likewise.
58123         * modules/xstrtold (Makefile.am): Likewise.
58124         * modules/yesno (Makefile.am): Likewise.
58125
58126 2006-10-12  Jim Meyering  <jim@meyering.net>
58127
58128         * m4/getloadavg.m4: Revert the change below.
58129
58130         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
58131         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
58132         fail with a symlink, which is what coreutils' ./bootstrap now
58133         creates by default.
58134
58135 2006-10-12  Bruno Haible  <bruno@clisp.org>
58136
58137         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
58138         mingw.
58139         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
58140         MSVC and mingw explicitly.
58141
58142 2006-10-11  Simon Josefsson  <jas@extundo.com>
58143             Bruno Haible  <bruno@clisp.org>
58144
58145         Add support for multiple gnulib-tool invocations in the scope of a
58146         single configure.ac file.
58147         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
58148         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
58149         with the same contents as the _LIBADD variable.
58150         (func_emit_initmacro_start, func_emit_initmacro_end,
58151         func_emit_initmacro_done): New functions.
58152         (func_import, func_create_testdir): Invoke them. Allow the identifiers
58153         gl_LIBOBJS and gl_LTLIBOBJS.
58154
58155 2006-10-11  Bruno Haible  <bruno@clisp.org>
58156
58157         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
58158         (func_create_testdir): Don't create po/Makefile.am, don't invoke
58159         autoreconf. Instead, invoke autopoint explicitly but move back the
58160         *.m4 files from gnulib.
58161
58162 2006-10-11  Bruno Haible  <bruno@clisp.org>
58163
58164         * gnulib-tool (func_usage): Make module names after --create-testdir
58165         optional.
58166         (func_create_testdir): If no module was specified, use nearly all
58167         modules.
58168
58169 2006-10-12  Jim Meyering  <jim@meyering.net>
58170
58171         Big performance improvement for fts-based tools that use FTS_NOSTAT.
58172         Avoid spurious inode-mismatch problems on non-POSIX file systems.
58173         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
58174         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
58175         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
58176         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
58177         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
58178         (fts_set_stat_required): New function.
58179         (fts_open): Defer the calls to fts_stat, if possible or requested.
58180         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
58181         into fts_stat itself.
58182         (fts_read): Perform any required (deferred) fts_stat call.
58183         (fts_build): Likewise, for the directory we're about to open and read.
58184         In the readdir loop, carefully decide whether each entry will require
58185         an eventual call to fts_stat, using dirent.d_type info if available.
58186         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
58187         a command line argument into this function.  Update all callers.
58188         Map a return value of FTS_DOT to FTS_D for a command line argument.
58189         * modules/fts (Depends-on): Add d-type.  Alphabetize.
58190         Thanks to Miklos Szeredi for his tenacity and for the initial
58191         bug report about "find" failing on a FUSE-based file system.
58192
58193         * lib/fts.c (fts_open): Use consistent indentation.
58194
58195 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58196
58197         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58198         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58199         reported by Jim Meyering.  All uses of cache variables renamed
58200         to match Autoconf's.
58201         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58202         the other one.
58203
58204         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58205         Fix misspelling in diagnostic.
58206
58207 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58208
58209         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58210         defined.  Problem reported by Matthew Woehlke.
58211
58212         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58213         Add support for Tandem NonStop R series.
58214         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58215         Use new macro.
58216
58217         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58218         (has_trailing_slash): Omit size arg; all callers changed.
58219         Omit 'inline', since it doesn't help performance and we'd
58220         need to configure it.
58221         Don't count //, ///, etc. as having a trailing slash.
58222         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58223         (rpl_rename_dest_slash): On failure, use rename's errno rather
58224         than (in some cases) an incorrect or junk errno.
58225         Simplify code by removing need to compute length; this does
58226         cause it to make two passes instead of one over the file name,
58227         but it's worth it.
58228
58229         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58230         change, since Autoconf's version may no longer be appropriate now
58231         that we are using CVS Autoconf's version.  Add support for Tandem.
58232
58233 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58234             Bruno Haible  <bruno@clisp.org>
58235
58236         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58237         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58238         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58239         gl_AC_TYPE_LONG_LONG.
58240
58241         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58242         instead of HAVE_LONG_LONG.
58243         * lib/printf-args.c (printf_fetchargs): Likewise.
58244         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58245         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58246         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58247         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58248         gl_AC_TYPE_LONG_LONG.
58249
58250 2006-10-11  Bruno Haible  <bruno@clisp.org>
58251
58252         * m4/longlong.m4: Add comments.
58253         * m4/ulonglong.m4: Likewise.
58254
58255 2006-10-10  Bruno Haible  <bruno@clisp.org>
58256
58257         Make it possible to #define stpcpy, strdup to aliases.
58258         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58259         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58260
58261 2006-10-10  Bruno Haible  <bruno@clisp.org>
58262
58263         Make it possible to #define gcd to an alias.
58264         * lib/gcd.c: Include config.h.
58265
58266 2006-10-10  Bruno Haible  <bruno@clisp.org>
58267
58268         Make it possible to #define c_isascii to an alias.
58269         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
58270         defined. Undefine the macros before defining them, to avoid gcc
58271         warnings.
58272         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
58273         define NO_C_CTYPE_MACROS early.
58274
58275 2006-10-10  Bruno Haible  <bruno@clisp.org>
58276
58277         Make it possible to #define set_program_name to an alias.
58278         * lib/progname.c: Don't undefine set_program_name; instead, undefine
58279         ENABLE_RELOCATABLE early.
58280
58281 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58282
58283         Port to Tandem NSK OSS, which has 64-bit signed int but at most
58284         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
58285         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
58286         More generally, don't assume that 64-bit signed int is available
58287         if unsigned int is, and vice versa.
58288         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
58289         unsigned symbols, not on their signed counterparts.
58290         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
58291         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
58292         (UINT64_C, UINTMAX_C):
58293         Likewise.
58294         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
58295         unsigned counterparts.
58296         (Have_long_long, Unsigned): New macros.
58297         (Int): Renamed from INT.
58298         (strtoimax): Use the new macros.
58299         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
58300         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
58301         * modules/inttypes (inttypes.h): Substitute
58302         HAVE_UNSIGNED_LONG_LONG_INT.
58303         * modules/stdint (stdint.h): Likewise.
58304         (Files): Add m4/ulonglong.m4.
58305
58306 2006-10-10  Bruno Haible  <bruno@clisp.org>
58307
58308         Fix a gcc -Wshadow warning.
58309         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
58310         to 'bucket'.
58311         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
58312         gl_linked_indexof_from_to): Likewise.
58313         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
58314         Likewise.
58315         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58316         Likewise.
58317         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
58318         Reported by Eric Blake.
58319
58320 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58321
58322         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58323         for NetBSD.  Problem reported by Bruno Haible.
58324
58325 2006-10-09  Jim Meyering  <jim@meyering.net>
58326
58327         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58328         Patch from Bruno Haible.
58329
58330 2006-10-09  Jim Meyering  <jim@meyering.net>
58331
58332         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58333         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58334         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58335
58336 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58337
58338         Don't include <config.h> twice; this doesn't work in some cases,
58339         e.g., when config.h has "#define intmax_t long long int" and
58340         we include <config.h>, <inttypes.h>, <config.h> in that order.
58341         Problem reported by Matthew Woehlke in:
58342         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58343         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58344         * lib/fts-cycle.c: Don't include config.h.
58345         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58346         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58347         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58348         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58349         inttypes.h.
58350         * lib/xstrtoumax.c: Likewise.
58351         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58352         __strtol and the like, so that this module is more like its siblings.
58353         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58354         Remove; no longer needed now that we assume gnulib inttypes.h.
58355
58356 2006-10-08  Bruno Haible  <bruno@clisp.org>
58357
58358         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58359         option.
58360
58361 2006-10-07  Jim Meyering  <jim@meyering.net>
58362
58363         * modules/inttypes (inttypes.h): Revert what seems to have been
58364         an inadvertent part of today's change: use "|", not "/" in the
58365         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58366
58367 2006-10-07  Bruno Haible  <bruno@clisp.org>
58368
58369         * modules/sublist: New file.
58370
58371 2006-10-07  Bruno Haible  <bruno@clisp.org>
58372
58373         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58374         * modules/argz (argz.h): Likewise.
58375         * modules/arpa_inet (arpa/inet.h): Likewise.
58376         * modules/byteswap (byteswap.h): Likewise.
58377         * modules/configmake (configmake.h): Likewise.
58378         * modules/fcntl (fcntl.h): Likewise.
58379         * modules/fnmatch (fnmatch.h): Likewise.
58380         * modules/getopt (getopt.h): Likewise.
58381         * modules/glob (glob.h): Likewise.
58382         * modules/inttypes (inttypes.h): Likewise.
58383         * modules/netinet_in (netinet/in.h): Likewise.
58384         * modules/poll (poll.h): Likewise.
58385         * modules/stdbool (stdbool.h): Likewise.
58386         * modules/stdint (stdint.h): Likewise.
58387         * modules/sys_select (sys/select.h): Likewise.
58388         * modules/sys_socket (sys/socket.h): Likewise.
58389         * modules/sys_stat (sys/stat.h): Likewise.
58390         * modules/sysexits (sysexits.h): Likewise.
58391         * modules/unistd (unistd.h): Likewise.
58392         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58393         Add a "DO NOT EDIT" comment to the generated file.
58394         (func_import): Likewise for gnulib-comp.m4.
58395
58396 2006-10-07  Bruno Haible  <bruno@clisp.org>
58397
58398         * lib/gl_sublist.h: New file.
58399         * lib/gl_sublist.c: New file.
58400
58401 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58402
58403         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58404         name (relative to the original working directory) and the file
58405         name component (relative to the temporary working directory).  All
58406         callers changed.
58407         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58408         * lib/mkdir-p.c (make_dir_parents): Likewise.
58409         * lib/mkdir-p.h (make_dir_parents): Likewise.
58410
58411 2006-10-06  Eric Blake  <ebb9@byu.net>
58412
58413         Define several macros for use by the clean-temp module.
58414         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58415         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58416         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58417
58418         * lib/clean-temp.h (close_stream_temp): New declaration.
58419         * lib/clean-temp.c (includes): Pull in headers according to what
58420         other modules are in use.
58421         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58422
58423 2006-10-06  Bruno Haible  <bruno@clisp.org>
58424
58425         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58426         instead of fopen, fwriteerror.
58427
58428 2006-10-06  Bruno Haible  <bruno@clisp.org>
58429
58430         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58431         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58432         int.
58433         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58434         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58435         Return an error indicator.
58436         Suggested by Eric Blake.
58437
58438 2006-10-06  Bruno Haible  <bruno@clisp.org>
58439
58440         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58441         Reported by Eric Blake.
58442
58443 2006-10-06  Bruno Haible  <bruno@clisp.org>
58444
58445         * modules/closeout (Description): Mention stderr too.
58446
58447 2006-10-06  Bruno Haible  <bruno@clisp.org>
58448         and Paul Eggert  <eggert@cs.ucla.edu>
58449
58450         * lib/closeout.c (close_stdout): Also close stderr.
58451         * lib/closeout.h: Update comment.
58452
58453 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58454
58455         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58456         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58457         * lib/dirchownmod.c: Include lchown.h.
58458         * lib/lchown.c: Don't include files that lchown.h now includes.
58459         Don't declare chown, since lchown.h now does that.
58460         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58461         (lchown): Define to rpl_chown if lchown is declared but
58462         does not exist.  Declare using a prototype if lchown is not
58463         declared.  Add a copyright notice.
58464         * lib/mkstemp.h: Include <unistd.h>.
58465         * lib/openat.c: Include lchown.h.
58466
58467         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58468         we now test for that separately.
58469         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58470         rather than O_NOFOLLOW, when testing whether it's possible to
58471         avoid a race condition reliably.
58472         * lib/savewd.c (savewd_chdir): Likewise.
58473
58474         Remove macros that are no longer needed now that stdint.h is
58475         reliable.
58476         * lib/fsusage.c (UINTMAX_MAX): Remove.
58477         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
58478         * lib/utimecmp.c (SIZE_MAX): Remove.
58479
58480         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
58481
58482         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
58483         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
58484         O_NOATIME works.
58485
58486 2006-10-05  Bruno Haible  <bruno@clisp.org>
58487
58488         * lib/gl_list.h (gl_sortedlist_search_from_to,
58489         gl_sortedlist_indexof_from_to): New declarations.
58490         (gl_list_implementation): New fields sortedlist_search_from_to,
58491         sortedlist_indexof_from_to.
58492         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
58493         inline functions.
58494         * lib/gl_list.c (gl_sortedlist_search_from_to,
58495         gl_sortedlist_indexof_from_to): New functions.
58496         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
58497         function.
58498         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
58499         (gl_array_sortedlist_search_from_to): New function.
58500         (gl_array_list_implementation): Update.
58501         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
58502         function.
58503         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
58504         (gl_carray_sortedlist_search_from_to): New function.
58505         (gl_carray_list_implementation): Update.
58506         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
58507         gl_linked_sortedlist_indexof_from_to): New functions.
58508         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58509         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58510         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
58511         gl_tree_sortedlist_indexof_from_to): New functions.
58512         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58513         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58514         Update.
58515         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58516         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
58517         Update.
58518
58519 2006-10-05  Bruno Haible  <bruno@clisp.org>
58520
58521         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
58522         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
58523         (struct gl_list_implementation): Add fields search_from_to,
58524         indexof_from_to. Remove fields search, indexof.
58525         (gl_list_search): Use the search_from_to method.
58526         (gl_list_search_from, gl_list_search_from_to): New functions.
58527         (gl_list_indexof): Use the indexof_from_to method.
58528         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58529         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
58530         (gl_list_search_from, gl_list_search_from_to): New functions.
58531         (gl_list_indexof): Use the indexof_from_to method.
58532         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58533         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
58534         gl_array_indexof. Add start_index, end_index arguments.
58535         (gl_array_search_from_to): Renamed from gl_array_search. Add
58536         start_index, end_index arguments.
58537         (gl_array_remove, gl_array_list_implementation): Update.
58538         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
58539         gl_carray_indexof. Add start_index, end_index arguments.
58540         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
58541         start_index, end_index arguments.
58542         (gl_carray_remove, gl_carray_list_implementation): Update.
58543         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
58544         gl_linked_search. Add start_index, end_index arguments.
58545         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
58546         start_index, end_index arguments.
58547         (gl_linked_remove): Update.
58548         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58549         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58550         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
58551         field to 'size_t'.
58552         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
58553         gl_tree_search. Add start_index, end_index arguments.
58554         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58555         start_index, end_index arguments.
58556         (gl_tree_remove): Update.
58557         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58558         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58559         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
58560         function.
58561         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
58562         gl_tree_search. Add start_index, end_index arguments.
58563         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58564         start_index, end_index arguments.
58565         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58566         Update.
58567         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58568
58569 2006-10-05  Bruno Haible  <bruno@clisp.org>
58570
58571         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
58572
58573         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
58574         fwriteerror_temp): New declarations.
58575         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
58576         (descriptors): New variable.
58577         (cleanup): First, close the descriptors.
58578         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
58579         fclose_temp, fwriteerror_temp): New functions.
58580
58581 2006-10-04  Jim Meyering  <jim@meyering.net>
58582
58583         * lib/fts.c (fts_open): Tiny comment change.
58584
58585 2006-10-04  Bruno Haible  <bruno@clisp.org>
58586
58587         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
58588         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
58589         gl_LOCK_BODY.
58590         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
58591         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
58592         gl_LOCK_EARLY_BODY.
58593         (gl_LOCK): Require gl_LOCK_BODY.
58594
58595 2006-10-04  Bruno Haible  <bruno@clisp.org>
58596
58597         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
58598         (gl_oset_search_atleast): New declaration.
58599         (struct gl_oset_implementation): Add field 'search_atleast'.
58600         (gl_oset_search_atleast): New inline function.
58601         * lib/gl_oset.c (gl_oset_search_atleast): New function.
58602         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
58603         (gl_array_oset_implementation): Update.
58604         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
58605         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
58606         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
58607
58608 2006-10-04  Bruno Haible  <bruno@clisp.org>
58609
58610         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
58611
58612 2006-10-03  Bruno Haible  <bruno@clisp.org>
58613
58614         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
58615         from gl_avltreehash_list_implementation.
58616
58617 2006-10-03  Bruno Haible  <bruno@clisp.org>
58618
58619         * lib/gl_oset.c (gl_oset_add): Fix return type.
58620
58621 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
58622
58623         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
58624
58625 2006-10-02  Eric Blake  <ebb9@byu.net>
58626
58627         * modules/strnlen (Depends-on): Add extensions.
58628
58629 2006-10-02  Eric Blake  <ebb9@byu.net>
58630
58631         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
58632         definition in 2.60+.
58633
58634 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
58635
58636         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
58637         checks.
58638
58639 2006-10-02  Bruno Haible  <bruno@clisp.org>
58640
58641         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
58642         to the AUTOMAKE_OPTIONS.
58643         Reported by Jim Meyering.
58644
58645 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58646
58647         Work around bug in Solaris 10 /proc file system:
58648         /proc/self/fd/NNN/.. isn't the parent directory of
58649         the directory whose file descriptor is NNN.  This needs to
58650         be worked around at run time, not compile time, since a
58651         program might be built on Solaris 8, where things work, and
58652         run on Solaris 10.
58653         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
58654         to use the following interface instead:
58655         (OPENAT_BUFFER_SIZE): New macro.
58656         (openat_proc_name): New function.
58657         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
58658         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
58659         Likewise.
58660         * lib/openat-proc.c: New file.
58661         * modules/openat (Files): Add lib/openat-proc.c.
58662         (Depends-on): Add same-inode, stdbool.
58663         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
58664
58665 2006-09-29  Bruno Haible  <bruno@clisp.org>
58666
58667         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
58668         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
58669         argument. Set stdout_closed before testing for ferror, not after.
58670         (fwriteerror, fwriteerror_no_ebadf): New functions.
58671
58672 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58673
58674         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
58675
58676 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
58677
58678         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
58679         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
58680
58681 2006-09-28  Jim Meyering  <jim@meyering.net>
58682
58683         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
58684         Include <unistd.h>.
58685
58686 2006-09-28  Bruno Haible  <bruno@clisp.org>
58687
58688         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
58689         * modules/linkedhash-list (Depends-on): Likewise.
58690         * modules/rbtreehash-list (Depends-on): Likewise.
58691
58692 2006-09-28  Bruno Haible  <bruno@clisp.org>
58693
58694         * lib/strndup.h: Simplify the redefinition of strndup.
58695         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
58696         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
58697
58698 2006-09-28  Bruno Haible  <bruno@clisp.org>
58699
58700         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
58701         * lib/gl_linkedhash_list.c: Likewise.
58702         * lib/gl_rbtreehash_list.c: Likewise.
58703
58704 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58705
58706         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
58707         getaddrinfo.
58708
58709         * lib/__fpending.h: Don't include <stdio_ext.h> unless
58710         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
58711         it causes <stdio_ext.h> to cause a compile-time error.
58712         Problem reported by Nelson H. F. Beebe.
58713         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
58714         of HAVE_DECL___PENDING.
58715
58716         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
58717         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
58718         declaration.
58719
58720 2006-09-27  Jim Meyering  <jim@meyering.net>
58721
58722         This file could end up with a definition for a function
58723         named __strndup, rather than rpl_strndup on a system with
58724         incomplete weak_alias support.
58725         * lib/strndup.c (strndup): Rename from __strndup.
58726         Remove #defines that used to map __strndup to strndup.
58727         Don't use K&R prototypes.
58728         Remove LIBC-related code, since this file is not sync'd with glibc.
58729         * lib/strndup.h: Revamp, accordingly.
58730         * m4/strndup.m4: Modernize.
58731
58732 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58733
58734         * modules/savewd (Depends-on): Add 'raise'.
58735         * lib/savewd.c: Include <signal.h>, for 'raise'.
58736
58737 2006-09-26  Jim Meyering  <jim@meyering.net>
58738
58739         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
58740         when we detect Darwin 8.7.0's acl_get_file bug.
58741         Rearrange to perform the new (below) run-test while $LIBS
58742         contains any acl-related library.  Set USE_ACL at the end.
58743         (gl_ACL_GET_FILE): New function.
58744
58745 2006-09-26  Eric Blake  <ebb9@byu.net>
58746
58747         * lib/verror.c: Include <config.h> unconditionally.
58748
58749 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
58750
58751         * modules/clock-time (Maintainer): Add self.
58752         * modules/getlogin_r (Depends-on): Add extensions.
58753
58754 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58755
58756         * modules/clock-time: New module.
58757         * modules/nanosleep (Depends-on): Add clock-time.
58758         * modules/gethrxtime (Depends-on): Likewise.
58759         * modules/gettime (Depends-on): Likewise.
58760         * modules/settime (Depends-on): Likewise.
58761
58762         * modules/fts-lgpl: Depend on openat.
58763         * modules/mkancesdirs: Depend on savewd.
58764         * modules/mkdir-p: Likewise.
58765
58766 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58767
58768         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
58769
58770         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
58771         `gl_have_arbitrary_file_name_length_limit' to
58772         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
58773         actually works between configure runs.
58774
58775 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58776             Bruno Haible  <bruno@clisp.org>
58777
58778         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
58779
58780 2006-09-25  Jim Meyering  <jim@meyering.net>
58781
58782         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
58783         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
58784
58785 2006-09-25  Eric Blake  <ebb9@byu.net>
58786
58787         * gnulib-tool (func_import, func_create_testdir): Fix typos in
58788         exec's in 2006-09-18 patch when shuffling fds.
58789
58790 2006-09-25  Bruno Haible  <bruno@clisp.org>
58791
58792         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
58793         Reported by Jim Meyering.
58794
58795 2006-09-24  Jim Meyering  <jim@meyering.net>
58796
58797         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
58798         compare a pointer against a literal "0".  That caused failures with
58799         at least HP-UX's hpcc.
58800
58801 2006-09-22  Simon Josefsson  <jas@extundo.com>
58802
58803         * modules/gc-sha1:
58804         * modules/gc-md4:
58805         * modules/gc-hmac-sha1:
58806         * modules/gc-hmac-md5:
58807         * modules/gc-des:
58808         * modules/gc-arcfour: Distribute more files.
58809
58810 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58811
58812         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
58813         (gl_linked_iterator_from_to): Initialize struct completely.
58814         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
58815         (gl_tree_iterator_from_to): Likewise
58816         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
58817         * lib/gl_array_list.c [lint] (gl_array_iterator)
58818         (gl_array_iterator_from_to): Likewise.
58819         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
58820         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
58821         (gl_carray_iterator_from_to): Likewise.
58822
58823         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
58824         * lib/md4.c (md4_process_block): Remove unused variable.
58825         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
58826         parentheses for clarity.
58827
58828 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58829
58830         * modules/bison-i18n (Depends-on): Add gettext.
58831
58832 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58833
58834         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
58835         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58836         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
58837         also add missing comma that caused broken test.
58838         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
58839         stdlib.h, for `abort'.
58840         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
58841         variables.
58842         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
58843         include unistd.h if present, for `rmdir'.
58844         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
58845         variables.
58846         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
58847         in the process include standard headers for prototypes.
58848         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
58849         gets declared on GNU/Linux.
58850         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
58851         unistd.h, for `rmdir'.
58852         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
58853
58854         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
58855         always true.
58856         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
58857
58858         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
58859
58860 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58861
58862         * gnulib-tool (func_version): Create output all at once.  This
58863         may help avoid triggering unnecessary SIGPIPEs, and at any
58864         rate it doesn't hurt.
58865
58866 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58867             Bruno Haible  <bruno@clisp.org>
58868
58869         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
58870         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58871         * m4/signed.m4 (bh_C_SIGNED): Likewise.
58872
58873         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
58874         (gl_FUNC_VASPRINTF): Invoke it.
58875
58876 2006-09-22  Bruno Haible  <bruno@clisp.org>
58877
58878         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
58879         getloadavg.c as first argument.
58880
58881 2006-09-22  Bruno Haible  <bruno@clisp.org>
58882
58883         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
58884         at the beginning of the gl_INIT macro.
58885         * modules/getloadavg (configure.ac): Pass $gl_source_base to
58886         gl_GETLOADAVG.
58887
58888 2006-09-22  Bruno Haible  <bruno@clisp.org>
58889
58890         * gnulib-tool (func_create_megatestdir): Don't include the config-h
58891         module.
58892         Suggested by Ralf Wildenhues.
58893
58894 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58895
58896         Import this patch from libc:
58897
58898         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
58899
58900         * lib/regex_internal.c (re_string_reconstruct): Handle
58901         offset < pstr->valid_raw_len && pstr->offsets_needed case.
58902         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
58903         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
58904         re_string_context_at.
58905
58906         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
58907         now requires it.
58908         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
58909         gl_REGEX now does it for us.
58910         (gl_REGEX): Add test taken from
58911         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
58912
58913         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
58914         Check that large offsets work.  Modernize Autoconf usages.
58915         Prefer "yes" to mean a good thing rather than a bad.
58916         Don't put "#define mkstemp" in config.h, as this might interfere
58917         with standard system headers that "#define mkstemp mkstemp64".
58918
58919         * modules/mkstemp (Depends-on): Add extensions, so that
58920         mkstemp is visible on some platforms.
58921         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
58922         (Include): Change to "mkstemp.h" from <stdlib.h>.
58923         (Files): Add mkstemp.h.
58924
58925         * lib/mkstemp.h: New file, since some standard headers
58926         #define mkstemp.
58927         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
58928         Include "mkstemp.h".
58929         Make the _LIBC code resemble glibc original more,
58930         e.g., use K&R style.
58931         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
58932         (mkstemp): Remove, since mkstemp.h does this for us.
58933         * lib/stdlib--.h: Include mkstemp.h.
58934
58935         Import this patch from libc:
58936
58937         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58938
58939         * lib/tempname.c (__gen_tempname): Change attempts_min
58940         into a macro.  Use preprocessor to decide how to initialize
58941         attempts [Coverity CID 67].
58942
58943 2006-09-20  Bruno Haible  <bruno@clisp.org>
58944
58945         * lib/mkdtemp.c: Import from libc.
58946         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58947                 * sysdeps/posix/tempname.c (__gen_tempname): Change
58948                 attempts_min into a macro.  Use preprocessor to decide how to
58949                 initialize attempts [Coverity CID 67].
58950         2001-11-27  Paul Eggert  <eggert@twinsun.com>
58951                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
58952                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
58953
58954 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58955
58956         * gnulib-tool (func_exit): New function, to allow to pass the
58957         exit status portably through the trap.  Use everywhere.
58958         (--help, --version): Signal a write error.
58959         (trap): catch SIGPIPE, for write errors.
58960         Exit at the end of the trap, with the correct exit status.
58961
58962 2006-09-19  Karl Berry  <karl@gnu.org>
58963
58964         * doc/gnulib.texi: note about the license texinfo files.
58965
58966 2006-09-19  Eric Blake  <ebb9@byu.net>
58967
58968         * gnulib-tool: Avoid space-tab.
58969
58970 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58971
58972         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
58973         that prevented coreutils 6.1 from building.  Problem reported
58974         by Petter Reinholdtsen.
58975
58976 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58977
58978         * gnulib-tool (avoidlist): Fix typo that broke options like
58979         --avoid=lock that are used by coreutils bootstrap.
58980
58981 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
58982
58983         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
58984         more systematically.
58985
58986 2006-09-18  Jim Meyering  <jim@meyering.net>
58987
58988         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
58989
58990 2006-09-18  Bruno Haible  <bruno@clisp.org>
58991
58992         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
58993
58994 2006-09-18  Bruno Haible  <bruno@clisp.org>
58995
58996         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
58997         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
58998         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
58999         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
59000         * m4/gettext.m4: Require autoconf >= 2.52.
59001         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
59002         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
59003         of gl_cv_header_inttypes_h.
59004
59005 2006-09-18  Bruno Haible  <bruno@clisp.org>
59006
59007         * lib/javaversion.c: Include configmake.h.
59008
59009 2006-09-18  Bruno Haible  <bruno@clisp.org>
59010
59011         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
59012         avoid that the while loops be executed in a subshell.
59013
59014 2006-09-18  Bruno Haible  <bruno@clisp.org>
59015
59016         * MODULES.html.sh (func_module): Break long lines.
59017         Suggested by Bruce Korb <bkorb@gnu.org>.
59018
59019 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59020
59021         Speed up by a factor of 1.12.
59022         * gnulib-tool (nl): New variable.
59023         (func_import): Rewrite include directive extraction to only read each
59024         directive once.
59025
59026 2006-09-17  Bruno Haible  <bruno@clisp.org>
59027
59028         * modules/javaversion (Makefile.am): Remove DEFS setting.
59029         (Depends-on): Add configmake, for PKGDATADIR definition.
59030
59031 2006-09-17  Bruno Haible  <bruno@clisp.org>
59032
59033         * gnulib-tool (func_create_testdir): Rewrite all files at once.
59034
59035 2006-09-17  Bruno Haible  <bruno@clisp.org>
59036
59037         * gnulib-tool (func_append): New function, stolen from libtool.m4.
59038         (func_modules_transitive_closure, func_modules_add_dummy,
59039         func_modules_to_filelist, func_import, func_create_testdir,
59040         func_create_megatestdir, ...): Use it wherever possible.
59041         Suggested by Ralf Wildenhues.
59042
59043 2006-09-16  Karl Berry  <karl@gnu.org>
59044
59045         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
59046         to avoid sectioning errors.
59047         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
59048         [ifinfo]: blank line after @center-ed titles.
59049         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
59050         Spell FSF address consistently with others.
59051         (These changes approved by rms.)
59052
59053 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59054
59055         Speed up by a factor of 1.61.
59056         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
59057         already checked module names again.
59058
59059 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59060
59061         Speed up by a factor of 1.13.
59062         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
59063         for new_files, and the input to func_add_or_update.
59064
59065 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59066
59067         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
59068         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
59069
59070 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59071
59072         * modules/mkancesdirs (Depends-on): Add fcntl.
59073         * modules/savewd: New file.
59074         * MODULES.html.sh (File system functions): Add savewd.
59075
59076         * modules/configmake (Makefile.am): Add support for the
59077         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
59078
59079 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59080
59081         * m4/savewd.m4: New file.
59082
59083 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59084
59085         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
59086         (dirchownmod): New arg FD.  All callers changed.
59087         Use FD rather than opening the directory ourself, as opening is
59088         now the caller's responsibility.
59089         * lib/dirchownmod.h: Likewise.
59090         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
59091         hosts that require <sys/types.h> before <sys/stat.h>.  Include
59092         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
59093         (test_dir): Remove.
59094         (mkancesdirs): Return length of prefix of FILE that has already
59095         been made, or -2 if there is a child doing the work.  Redo
59096         algorithm so that it is O(N) rather than O(N**2).  Optimize away
59097         ".", and treat ".." specially since it might stray back into
59098         already-created areas.  Use a subprocess if necessary.  New arg
59099         WD; all users changed.  MAKE_DIR function should now return 1
59100         if it creates a directory that is not readable.  Return -2 if
59101         a child process is spun off.
59102         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
59103         Adjust signature to match code.
59104         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
59105         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
59106         all users changed.
59107         * lib/savewd.c, lib/savewd.h: New files.
59108
59109 2006-09-15  Jim Meyering  <jim@meyering.net>
59110
59111         * modules/rename-dest-slash: New module.
59112         * MODULES.html.sh (posix_compat): Add it here.
59113
59114         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
59115
59116 2006-09-15  Jim Meyering  <jim@meyering.net>
59117
59118         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
59119         file.
59120
59121         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
59122
59123 2006-09-15  Jim Meyering  <jim@meyering.net>
59124
59125         * lib/rename-dest-slash.c (has_trailing_slash): Use
59126         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
59127         (rpl_rename_dest_slash): Perform the cheaper trailing slash
59128         test before testing whether SRC is a directory.
59129         Suggestions from Bruno Haible.
59130
59131         Avoid a warning about an unused variable.
59132         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
59133         into the #ifdef block where it's used.
59134
59135         * lib/rename-dest-slash.c: New file.
59136
59137 2006-09-14  Bruno Haible  <bruno@clisp.org>
59138
59139         * lib/allocsa.c: Include <config.h> unconditionally.
59140         * lib/asnprintf.c: Likewise.
59141         * lib/asprintf.c: Likewise.
59142         * lib/c-strcasecmp.c: Likewise.
59143         * lib/c-strcasestr.c: Likewise.
59144         * lib/c-strncasecmp.c: Likewise.
59145         * lib/c-strstr.c: Likewise.
59146         * lib/classpath.c: Likewise.
59147         * lib/clean-temp.c: Likewise.
59148         * lib/concatpath.c: Likewise.
59149         * lib/copy-file.c: Likewise.
59150         * lib/csharpcomp.c: Likewise.
59151         * lib/csharpexec.c: Likewise.
59152         * lib/execute.c: Likewise.
59153         * lib/fatal-signal.c: Likewise.
59154         * lib/findprog.c: Likewise.
59155         * lib/fwriteerror.c: Likewise.
59156         * lib/gl_array_list.c: Likewise.
59157         * lib/gl_array_oset.c: Likewise.
59158         * lib/gl_avltree_list.c: Likewise.
59159         * lib/gl_avltree_oset.c: Likewise.
59160         * lib/gl_avltreehash_list.c: Likewise.
59161         * lib/gl_carray_list.c: Likewise.
59162         * lib/gl_linked_list.c: Likewise.
59163         * lib/gl_linkedhash_list.c: Likewise.
59164         * lib/gl_list.c: Likewise.
59165         * lib/gl_oset.c: Likewise.
59166         * lib/gl_rbtree_list.c: Likewise.
59167         * lib/gl_rbtree_oset.c: Likewise.
59168         * lib/gl_rbtreehash_list.c: Likewise.
59169         * lib/imaxabs.c: Likewise.
59170         * lib/imaxdiv.c: Likewise.
59171         * lib/javacomp.c: Likewise.
59172         * lib/javaexec.c: Likewise.
59173         * lib/javaversion.c: Likewise.
59174         * lib/linebreak.c: Likewise.
59175         * lib/localcharset.c: Likewise.
59176         * lib/lock.c: Likewise.
59177         * lib/mbchar.c: Likewise.
59178         * lib/mbswidth.c: Likewise.
59179         * lib/mkdtemp.c: Likewise.
59180         * lib/pipe.c: Likewise.
59181         * lib/printf-args.c: Likewise.
59182         * lib/printf-parse.c: Likewise.
59183         * lib/progname.c: Likewise.
59184         * lib/progreloc.c: Likewise.
59185         * lib/readlink.c: Likewise.
59186         * lib/sh-quote.c: Likewise.
59187         * lib/stpcpy.c: Likewise.
59188         * lib/stpncpy.c: Likewise.
59189         * lib/strcasecmp.c: Likewise.
59190         * lib/strcasestr.c: Likewise.
59191         * lib/strcspn.c: Likewise.
59192         * lib/striconv.c: Likewise.
59193         * lib/strncasecmp.c: Likewise.
59194         * lib/strnlen1.c: Likewise.
59195         * lib/strstr.c: Likewise.
59196         * lib/strtok_r.c: Likewise.
59197         * lib/tls.c: Likewise.
59198         * lib/tmpdir.c: Likewise.
59199         * lib/unicodeio.c: Likewise.
59200         * lib/unsetenv.c: Likewise.
59201         * lib/vasnprintf.c: Likewise.
59202         * lib/vasprintf.c: Likewise.
59203         * lib/wait-process.c: Likewise.
59204         * lib/xallocsa.c: Likewise.
59205         * lib/xsetenv.c: Likewise.
59206         * lib/xstriconv.c: Likewise.
59207
59208 2006-09-13  Simon Josefsson  <jas@extundo.com>
59209
59210         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59211         that internally, suggested by Ralf Wildenhues
59212         <Ralf.Wildenhues@gmx.de>.
59213
59214 2006-09-13  Simon Josefsson  <jas@extundo.com>
59215
59216         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59217         @LIBOBJS@.
59218         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59219
59220 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59221
59222         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59223         longer worry about uses that don't define HAVE_CONFIG_H.
59224         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59225         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59226         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59227         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59228         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59229         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59230         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59231         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59232         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59233         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59234         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59235         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59236         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59237         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59238         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59239         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59240         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59241         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59242         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59243         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59244         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59245         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59246         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59247         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59248         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59249         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59250         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59251         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59252         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59253         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59254         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59255         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59256         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59257         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59258         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59259         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59260         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59261         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59262         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
59263         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
59264         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
59265         Likewise.
59266
59267 2006-09-13  Eric Blake  <ebb9@byu.net>
59268
59269         * lib/getopt.c: Fix typo in last commit.
59270
59271 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59272
59273         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
59274         dgettext.
59275
59276 2006-09-12  Jim Meyering  <jim@meyering.net>
59277
59278         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
59279         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
59280         Reported by Nelson H. F. Beebe.
59281
59282 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59283
59284         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
59285         program_invocation_name and program_invocation_short_name are
59286         initialized.
59287         * lib/argp-namefrob.h: Move declarations of program_invocation_name
59288         and program_invocation_short_name to argp.h, so they are visible
59289         to user programs.
59290         * lib/argp.h: Likewise
59291
59292 2006-09-10  Bruno Haible  <bruno@clisp.org>
59293
59294         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59295         m4/inttypes_h.m4, m4/uintmax_t.m4.
59296
59297 2006-09-10  Bruno Haible  <bruno@clisp.org>
59298
59299         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
59300         gl_AC_TYPE_UINTMAX_T.
59301
59302 2006-09-10  Bruno Haible  <bruno@clisp.org>
59303
59304         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
59305
59306 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59307
59308         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
59309         convention.  Text proposed by Bruno Haible.
59310         (struct argp_option): Document the use of N_() wrappers.
59311
59312         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
59313         '\v', and translate the two parts separately, instead of feeding
59314         the whole string to gettext.  This allows to exclude
59315         '\v' from the strings visible to the translator by writing doc
59316         strings as N_("..") "\v" N_("..").
59317
59318 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
59319
59320         * config/srclist.txt: Undo latest change; the bug was fixed.
59321
59322 2006-09-09  Bruno Haible  <bruno@clisp.org>
59323
59324         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59325         assignments if building a library without libtool.
59326         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59327         in func_emit_lib_Makefile_am.
59328         (func_import): When building a static library libfoo.a, arrange to
59329         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59330         (func_create_testdir): Likewise.
59331         * modules/gc (configure.ac, Makefile.am): If building statically,
59332         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59333         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59334         * modules/striconv (configure.ac, Makefile.am): Likewise.
59335         Based on a suggestion by Ralf Wildenhues.
59336
59337 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59338
59339         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59340         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59341         Also:
59342
59343         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59344         Add year_2050_test to catch glibc bug 2821
59345         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59346
59347         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59348         Prefer #ifdef to #if.
59349
59350         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59351         Return from 'main' instead of calling 'exit'.
59352
59353 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59354
59355         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59356         returned the maximum time_t value rather than (time_t) -1.
59357         Problem originally reported by William Bardwell
59358         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59359
59360         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59361         Moved to here ...
59362         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59363         ... from here.
59364
59365 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59366
59367         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59368         2821 is fixed.
59369
59370 2006-09-08  Jim Meyering  <jim@meyering.net>
59371
59372         Don't make generated files read-only.  That would bother too many
59373         people.  However, do retain the ability to work when targets are
59374         read-only: remove the destination and temporary files before writing
59375         them (when generated via sed or echo), or by using the -f option for
59376         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59377         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59378         * modules/byteswap, modules/configmake, modules/fcntl:
59379         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59380         * modules/localcharset, modules/netinet_in, modules/poll:
59381         * modules/stdbool, modules/stdint, modules/sys_select:
59382         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59383
59384 2006-09-08  Jim Meyering  <jim@meyering.net>
59385
59386         Avoid new build failure on FreeBSD 6.0.
59387         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59388         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59389         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59390
59391 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59392
59393         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59394
59395 2006-09-07  Jim Meyering  <jim@meyering.net>
59396
59397         Fix global typo in last change: use chmod u-w, not chmod u-x.
59398         Spotted by Paul Eggert and Bruce Korb.
59399         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59400         * modules/byteswap, modules/configmake, modules/fcntl:
59401         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59402         * modules/localcharset, modules/netinet_in, modules/poll:
59403         * modules/stdbool, modules/stdint, modules/sys_select:
59404         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59405
59406 2006-09-06  Jim Meyering  <jim@meyering.net>
59407
59408         Make generated files be read-only.
59409         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59410         Ensure that each generated file is now read-only.
59411         * modules/argz: Likewise.
59412         * modules/arpa_inet: Likewise.
59413         * modules/byteswap: Likewise.
59414         * modules/configmake: Likewise.
59415         * modules/fcntl: Likewise.
59416         * modules/fnmatch: Likewise.
59417         * modules/getopt: Likewise.
59418         * modules/glob: Likewise.
59419         * modules/inttypes: Likewise.
59420         * modules/netinet_in: Likewise.
59421         * modules/poll: Likewise.
59422         * modules/stdbool: Likewise.
59423         * modules/stdint: Likewise.
59424         * modules/sys_select: Likewise.
59425         * modules/sys_socket: Likewise.
59426         * modules/sys_stat: Likewise.
59427         * modules/sysexits: Likewise.
59428         * modules/localcharset: Same as above, but continue using temporary
59429         file named "t-$@" (why different?) rather than the "$@-t" used
59430         everywhere else.
59431
59432         * modules/sysexits (Makefile.am): Replace literal occurrences
59433         of "sysexit.h" more readable, and more consistent, "$@".
59434
59435 2006-09-06  Bruno Haible  <bruno@clisp.org>
59436
59437         * modules/striconv: New file.
59438         * modules/xstriconv: New file.
59439         * MODULES.html.sh (Internationalization functions): Add striconv,
59440         xstriconv.
59441
59442 2006-09-06  Bruno Haible  <bruno@clisp.org>
59443
59444         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59445         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59446         not using libtool correctly.
59447
59448 2006-09-06  Bruno Haible  <bruno@clisp.org>
59449
59450         * lib/striconv.h: New file.
59451         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59452         iconvstring.c.
59453         * lib/xstriconv.h: New file.
59454         * lib/xstriconv.c: New file.
59455
59456 2006-09-06  Bruno Haible  <bruno@clisp.org>
59457
59458         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59459         lib_..._LDFLAGS.
59460
59461 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59462
59463         * lib/argz_.h: Sync from Libtool.
59464
59465         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59466                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59467
59468         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59469
59470 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59471
59472         * modules/trim: New file.
59473
59474 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59475
59476         * lib/trim.h: New file.
59477         * lib/trim.c: New file.
59478
59479 2006-09-05  Bruno Haible  <bruno@clisp.org>
59480
59481         * MODULES.html.sh (String handling): Add trim.
59482
59483 2006-09-04  Karl Berry  <karl@gnu.org>
59484
59485         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
59486         until next release.
59487
59488 2006-09-03  Bruno Haible  <bruno@clisp.org>
59489
59490         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
59491         correctly.
59492
59493 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59494
59495         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
59496         not gl_GETLOADAVG.  Omit unneeded semicolons.
59497         Problems reported by Ralf Wildenhues in
59498         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59499         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
59500         at the end, which is the usual gnulib style.
59501
59502         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
59503         of doing all the work ourselves.
59504         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
59505         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
59506
59507 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59508
59509         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
59510         Problem reported by Ralf Wildenhues in
59511         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59512
59513         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
59514         HAVE_STRUCT_STATFS_F_FSTYPENAME.
59515
59516 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59517
59518         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
59519         yesterday's patch by changing test -n to test -z.
59520
59521 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59522
59523         * modules/getloadavg (Files): Add m4/getloadavg.m4.
59524         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
59525         the former is now obsolescent.
59526
59527         * modules/chdir-long (Depends-on): Add fcntl.
59528
59529 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59530
59531         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
59532         obsolescent, and programs should use gnulib instead.
59533         * m4/getloadavg.m4: New file, with contents taken from Autoconf
59534         but with prefixes changed.
59535
59536 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59537
59538         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
59539         or stdbool.h, because they might not exist while configuring.
59540
59541         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
59542         Don't include unistd.h or limits.h; not needed, since chdir-long.h
59543         does that for us.
59544         (O_DIRECTORY): Remove.
59545
59546 2006-08-31  Eric Blake  <ebb9@byu.net>
59547
59548         * gnulib-tool: Don't let emacs change spaces to TAB.
59549
59550 2006-08-31  Bruno Haible  <bruno@clisp.org>
59551
59552         * gnulib-tool: When calling func_import more than once, do it in a
59553         subshell.
59554         Reported by Eric Blake <ebb9@byu.net>.
59555
59556 2006-08-31  Bruno Haible  <bruno@clisp.org>
59557
59558         * gnulib-tool (nl): Remove variable.
59559         (sed_transform_lib_file): Use more robust test for config-h module.
59560         (func_import): Fix typo in 2006-08-25 patch.
59561
59562 2006-08-31  Bruno Haible  <bruno@clisp.org>
59563
59564         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
59565         specified, augment Makefile.am variables instead of assigning them.
59566
59567 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59568
59569         Work around a bug in both the Linux and SunOS 64-bit kernels:
59570         nanosleep mishandles sleeps for longer than 2**31 seconds.
59571         Problem reported by Frank v Waveren in
59572         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59573         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
59574         Check for nanosleep bug.
59575         (LIB_NANOSLEEP): Append clock_gettime library if needed.
59576
59577 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59578
59579         Work around a bug in both the Linux and SunOS 64-bit kernels:
59580         nanosleep mishandles sleeps for longer than 2**31 seconds.
59581         Problem reported by Frank v Waveren in
59582         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59583         * lib/nanosleep.c (BILLION): New constant.
59584         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
59585         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
59586         implementation.
59587
59588 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59589
59590         * modules/nanosleep (Depends-on): Add gettime.
59591
59592 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59593         and Simon Josefsson  <jas@extundo.com>
59594         and Oskar Liljeblad  <oskar@osk.mine.nu>
59595
59596         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
59597         * gnulib-tool (func_import): New license type 'unmodifiable license
59598         text'.
59599         * modules/fdl: Use it.  Longer description.
59600         * module/gpl, module/lgpl: New files.
59601
59602 2006-08-30  Jim Meyering  <jim@meyering.net>
59603
59604         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
59605         shadowing the parameter.
59606
59607 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59608
59609         Sync from Libtool:
59610
59611         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59612
59613         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
59614         sharing with gnulib.  Report by Eric Blake.
59615
59616 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59617
59618         * modules/isapipe: New file.
59619         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
59620
59621 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59622
59623         * modules/configmake (Makefile.am): Add a comment, and omit
59624         the CONFIGMAKE_ prefix from generated macro names.  Suggested
59625         by Bruno Haible.
59626
59627 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59628
59629         * m4/isapipe.m4: New file.
59630
59631 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59632
59633         * lib/isapipe.c, lib/isapipe.h: New files.
59634
59635 2006-08-29  Jim Meyering  <jim@meyering.net>
59636
59637         * modules/configmake (Makefile.am): Make configmake.h depend on
59638         Makefile.  Otherwise, a stale configmake.h could hang around.
59639
59640 2006-08-29  Eric Blake  <ebb9@byu.net>
59641
59642         * lib/error.c (error_at_line, print_errno_message): Match libc, after
59643         resolution of upstream bug 3044.
59644
59645 2006-08-29  Bruno Haible  <bruno@clisp.org>
59646
59647         * modules/localcharset (Depends-on): Add configmake.
59648         (Makefile.am): Remove setting of LIBDIR through DEFS.
59649
59650 2006-08-29  Bruno Haible  <bruno@clisp.org>
59651
59652         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
59653         defined.
59654
59655 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59656
59657         * modules/fcntl: New file.
59658         * modules/chdir-safer (Depends-on): Add fcntl.
59659         * modules/fts: Likewise.
59660         * modules/mkdir-p: Likewise.
59661
59662         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
59663         This undoes the most recent change, since we're now addressing the
59664         problem in a different way.
59665
59666         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
59667         into output, since the output might be called Makefile.am even
59668         if $makefile_name is something different.
59669         (func_import): Use $makefile_am rather than
59670         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
59671         empty.
59672
59673         * modules/inttypes (Files): Add m4/inttypes-h.m4.
59674
59675 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59676
59677         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
59678         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
59679         recent change to stdint.m4, since we're now addressing the problem in a
59680         different way.
59681
59682 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59683
59684         * m4/fcntl_h.m4: New file.
59685
59686 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59687
59688         * lib/fcntl_.h: New file.
59689         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
59690         the fcntl module.
59691         * lib/dirchownmod.c: Likewise.
59692         * lib/fts.c: Likewise.
59693
59694         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
59695         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
59696         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
59697         just before including <inttypes.h>, to avoid circular inclusion.
59698
59699 2006-08-28  Jim Meyering  <jim@meyering.net>
59700
59701         * doc/visibility.texi: Actually read and correct the grammar of the
59702         sentence affected by yesterday's change.
59703
59704 2006-08-28  Eric Blake  <ebb9@byu.net>
59705
59706         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
59707         needs wrapper.
59708
59709 2006-08-28  Eric Blake  <ebb9@byu.net>
59710
59711         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
59712
59713 2006-08-28  Eric Blake  <ebb9@byu.net>
59714
59715         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
59716
59717 2006-08-28  Bruno Haible  <bruno@clisp.org>
59718
59719         * modules/c-strstr: New file, from GNU gettext.
59720         * MODULES.html.sh (String handling): Add c-strstr.
59721
59722 2006-08-28  Bruno Haible  <bruno@clisp.org>
59723
59724         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
59725         macros.
59726         Reported by Eric Blake.
59727
59728 2006-08-28  Bruno Haible  <bruno@clisp.org>
59729
59730         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
59731         (VASNPRINTF): Return a string of length > INT_MAX without failing.
59732         * lib/vasprintf.c: Include errno.h, limits.h.
59733         (EOVERFLOW): New fallback definition.
59734         (vasprintf): Test here whether the string length is > INT_MAX.
59735         * lib/vsnprintf.c: Include errno.h, limits.h.
59736         (EOVERFLOW): New fallback definition.
59737         (vsnprintf): Fix bug when generated string was too long for the buffer.
59738         Test here whether the string length is > INT_MAX.
59739
59740 2006-08-28  Bruno Haible  <bruno@clisp.org>
59741
59742         * lib/inttypes_.h (SCNX*): Remove definitions.
59743         Reported by Eric Blake.
59744
59745 2006-08-28  Bruno Haible  <bruno@clisp.org>
59746
59747         * lib/c-strstr.h: New file, from GNU gettext.
59748         * lib/c-strstr.c: New file, from GNU gettext.
59749
59750 2006-08-28  Bruno Haible  <bruno@clisp.org>
59751
59752         * gnulib-tool: Reorder some statements.
59753
59754 2006-08-28  Bruno Haible  <bruno@clisp.org>
59755
59756         * gnulib-tool: New option --makefile-name.
59757         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
59758         $makefile_name.
59759         (func_import): Write $makefile_name to the cache file, and read it from
59760         there unless explicitly specified. Use $makefile_name as file name
59761         instead of Makefile.am. Adjust the recommendations accordingly.
59762
59763 2006-08-28  Bruno Haible  <bruno@clisp.org>
59764
59765         * gnulib-tool (func_verify_module): Check against misapplying patch.
59766
59767 2006-08-28  Bruno Haible  <bruno@clisp.org>
59768
59769         * gnulib-tool (func_relativize, func_relconcat): New functions.
59770         Give an error if --local-dir is given with --update.
59771         Remove trailing slashes from $local_gnulib_dir.
59772         (func_import): Store the relativized $local_gnulib_dir in
59773         gnulib-cache.m4, and read it from there if not specified explicitly.
59774
59775 2006-08-28  Bruno Haible  <bruno@clisp.org>
59776
59777         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
59778         is the current directory. Respect also $local_gnulib_dir.
59779
59780 2006-08-28  Bruno Haible  <bruno@clisp.org>
59781             Simon Josefsson  <jas@extundo.com>
59782
59783         BeOS portability.
59784         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
59785
59786 2006-08-27  Jim Meyering  <jim@meyering.net>
59787
59788         * doc/visibility.texi: Remove duplicate word: "pointer".
59789
59790 2006-08-26  Bruno Haible  <bruno@clisp.org>
59791
59792         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
59793         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
59794         (Makefile.am): Create inttypes.h from inttypes_.h.
59795         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
59796
59797         * modules/imaxabs: New file.
59798
59799         * modules/imaxdiv: New file.
59800
59801 2006-08-26  Bruno Haible  <bruno@clisp.org>
59802
59803         * m4/inttypes.m4: New file.
59804         * m4/_inttypes_h.m4: Remove file.
59805         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
59806         PRI_MACROS_BROKEN.
59807         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
59808
59809         * m4/imaxabs.m4: New file.
59810
59811         * m4/imaxdiv.m4: New file.
59812
59813 2006-08-26  Bruno Haible  <bruno@clisp.org>
59814
59815         * lib/inttypes_.h: New file.
59816         * lib/inttypes.h: Remove file.
59817         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
59818
59819         * lib/imaxabs.c: New file.
59820
59821         * lib/imaxdiv.c: New file.
59822
59823 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59824
59825         New config-h module, so that "make" output needn't be cluttered
59826         by -DHAVE_CONFIG_H.
59827         * MODULES.html.sh (Support for building libraries and executables):
59828         Add config-h.
59829         * modules/config-h: New file.
59830         * gnulib-tool (nl, sed_transform_lib_file): New vars.
59831         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
59832         the config-h module is used.
59833
59834         New configmake module, so that "make" output needn't be cluttered
59835         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
59836         * MODULES.html.sh (Support for building libraries and executables):
59837         Add configmake.
59838         * modules/configmake: New file.
59839
59840 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59841
59842         * m4/config-h.m4: New file.
59843
59844 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59845
59846         * config/srclist.txt: Add elisp-comp.
59847
59848 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59849
59850         * MODULES.html.sh (Support for building libraries and executables):
59851         Add elisp-comp.
59852         * build-aux/elisp-comp: New file.
59853         * modules/elisp-comp: New file.
59854
59855 2006-08-24  Bruno Haible  <bruno@clisp.org>
59856
59857         * gnulib-tool (func_create_testdir): Use non-default values of
59858         sourcebase and m4base.
59859
59860 2006-08-24  Bruno Haible  <bruno@clisp.org>
59861
59862         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
59863         HTML structure.
59864
59865 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59866
59867         * modules/openat (Depends-on): Add lchown.
59868
59869 2006-08-23  Bruno Haible  <bruno@clisp.org>
59870
59871         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
59872         of gl_LOCK_EARLY instead of gl_LOCK.
59873
59874 2006-08-23  Bruno Haible  <bruno@clisp.org>
59875
59876         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
59877         on OSF/1 to no.
59878         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
59879
59880 2006-08-23  Bruno Haible  <bruno@clisp.org>
59881
59882         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
59883         as unusable.
59884
59885         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
59886         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
59887         (gl_LOCK): New macro.
59888
59889 2006-08-22  Simon Josefsson  <jas@extundo.com>
59890
59891         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
59892         to md5 module.
59893
59894 2006-08-22  Simon Josefsson  <jas@extundo.com>
59895
59896         * MODULES.html.sh: Add "Support for maintaining and release
59897         projects".
59898
59899         * build-aux/gnupload: New file, from coreutils.
59900
59901 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59902
59903         Avoid the need for AC_LIBSOURCES in m4 macros.
59904         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
59905         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
59906         * modules/check-version (EXTRA_DIST): Add check-version.h.
59907         * modules/crc (EXTRA_DIST): Add crc.h.
59908         * modules/des (EXTRA_DIST): Add des.h.
59909         * modules/gc (EXTRA_DIST): Add gc.h.
59910         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
59911         * modules/getline (EXTRA_DIST): Add getline.h.
59912         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
59913         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
59914         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
59915         * modules/md2 (EXTRA_DIST): Add md2.h.
59916         * modules/md4 (EXTRA_DIST): Add md4.h.
59917         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
59918         * modules/read-file (EXTRA_DIST): Add read-file.h.
59919         * modules/readline (EXTRA_DIST): Add readline.h.
59920         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
59921         rijndael-api-fst.h.
59922
59923 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59924
59925         * m4/rijndael.m4 (gl_ARCFOUR):
59926         * m4/arctwo.m4 (gl_ARCTWO):
59927         * m4/check-version.m4 (gl_CHECK_VERSION):
59928         * m4/crc.m4 (gl_CRC):
59929         * m4/des.m4 (gl_DES):
59930         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
59931         * m4/gc.m4 (gl_GC):
59932         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
59933         * m4/getline.m4 (gl_FUNC_GETLINE):
59934         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
59935         * m4/hmac-md5.m4 (gl_HMAC_MD5):
59936         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
59937         * m4/md2.m4 (gl_MD2):
59938         * m4/md4.m4 (gl_MD4):
59939         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
59940         * m4/read-file.m4 (gl_FUNC_READ_FILE):
59941         * m4/readline.m4 (gl_FUNC_READLINE):
59942         * m4/rijndael.m4 (gl_RIJNDAEL):
59943         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59944         to get the necessary .h files and whatnot.
59945
59946 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59947
59948         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
59949         gnulib rather than the other way around.
59950         * config/srclistvars.sh (COREUTILS): Remove.
59951
59952 2006-08-22  Jim Meyering  <jim@meyering.net>
59953
59954         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
59955
59956         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
59957
59958 2006-08-22  Eric Blake  <ebb9@byu.net>
59959
59960         * modules/regexprops-generic: New file.
59961         * MODULES.html.sh (Support for building documentation): List it.
59962
59963 2006-08-22  Eric Blake  <ebb9@byu.net>
59964
59965         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
59966         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
59967         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
59968         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
59969
59970 2006-08-22  Bruno Haible  <bruno@clisp.org>
59971
59972         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
59973         and lib_LTLIBRARIES like the other lib_* variables.
59974
59975 2006-08-22  Bruno Haible  <bruno@clisp.org>
59976
59977         * build-aux/x-to-1.in: New file, from GNU gettext.
59978
59979 2006-08-22  Bruno Haible  <bruno@clisp.org>
59980
59981         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
59982         <utmpx.h> exists.
59983
59984 2006-08-22  Bruno Haible  <bruno@clisp.org>
59985
59986         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
59987         <utmpx.h> exists.
59988
59989 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59990
59991         BeOS portability.
59992         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
59993         exist.
59994         Problem reported by Bruno Haible.
59995
59996 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59997
59998         Avoid the need for AC_LIBSOURCES in m4 macros.
59999         * modules/acl (EXTRA_DIST): Add acl.h.
60000         * modules/argmatch (Files): Add m4/argmatch.m4.
60001         (configure.ac): Add gl_ARGMATCH.
60002         (EXTRA_DIST): Renamed from lib_SOURCES, for
60003         consistency with the other modules.  Remove argmatch.c.
60004         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
60005         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
60006         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
60007         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
60008         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
60009         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
60010         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
60011         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
60012         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
60013         * modules/closeout (EXTRA_DIST): Add closeout.h.
60014         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
60015         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
60016         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
60017         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
60018         dirname.h; remove basename.c and stripslash.c.
60019         * modules/exclude (EXTRA_DIST): Add exclude.h.
60020         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
60021         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
60022         * modules/file-type (EXTRA_DIST): Add file-type.h.
60023         * modules/filemode (EXTRA_DIST): Add filemode.h.
60024         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
60025         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60026         * modules/fpending (EXTRA_DIST): Add __fpending.h.
60027         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
60028         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
60029         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
60030         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
60031         * modules/getdate (EXTRA_DIST): Add getdate.c.
60032         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
60033         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
60034         * modules/getpass (EXTRA_DIST): Add getpass.h.
60035         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
60036         * modules/group-member (EXTRA_DIST): Add group-member.h.
60037         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
60038         * modules/hash (EXTRA_DIST): Add hash.h.
60039         * modules/human (EXTRA_DIST): Add human.h.
60040         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
60041         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
60042         * modules/lchown (EXTRA_DIST): Add lchown.h.
60043         * modules/long-options (EXTRA_DIST): Add long-options.h.
60044         * modules/lstat (EXTRA_DIST): Add lstat.h.
60045         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
60046         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
60047         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
60048         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
60049         * modules/memxor (EXTRA_DIST): Add memxor.h.
60050         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
60051         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
60052         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
60053         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
60054         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
60055         * modules/physmem (EXTRA_DIST): Add physmem.h.
60056         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
60057         * modules/posixver (EXTRA_DIST): Add posixver.h.
60058         * modules/quote (EXTRA_DIST): Add quote.h.
60059         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
60060         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
60061         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
60062         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
60063         regex_internal.h regexec.c.
60064         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
60065         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
60066         * modules/same (EXTRA_DIST): Add same.h.
60067         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
60068         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
60069         * modules/savedir (EXTRA_DIST): Add savedir.h.
60070         * modules/sha1 (EXTRA_DIST): Add sha1.h.
60071         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
60072         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
60073         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
60074         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
60075         * modules/strdup (EXTRA_DIST): Add strdup.h.
60076         * modules/strftime (EXTRA_DIST): Add strftime.h.
60077         * modules/strndup (EXTRA_DIST): Add strndup.h.
60078         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
60079         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
60080         * modules/time_r (EXTRA_DIST): Add time_r.h.
60081         * modules/timespec (EXTRA_DIST): Add timespec.h.
60082         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60083         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
60084         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
60085         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
60086         * modules/userspec (EXTRA_DIST): Add userspec.h.
60087         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
60088         * modules/utimens (EXTRA_DIST): Add utimens.h.
60089         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
60090         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
60091         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
60092         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
60093         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
60094         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
60095         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
60096         * modules/yesno (EXTRA_DIST): Add yesno.h.
60097
60098 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60099
60100         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
60101
60102         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
60103         * m4/dev-ino.m4, same-inode.m4: Remove.
60104
60105         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
60106         * m4/acl.m4 (AC_FUNC_ACL):
60107         * m4/backupfile.m4 (gl_BACKUPFILE):
60108         * m4/c-strtod.m4 (gl_C99_STRTOLD):
60109         * m4/canon-host.m4 (gl_CANON_HOST):
60110         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60111         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
60112         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
60113         * m4/cloexec.m4 (gl_CLOEXEC):
60114         * m4/close-stream.m4 (gl_CLOSE_STREAM):
60115         * m4/closeout.m4 (gl_CLOSEOUT):
60116         * m4/dirfd.m4 (gl_FUNC_DIRFD):
60117         * m4/dirname.m4 (gl_DIRNAME):
60118         * m4/exclude.m4 (gl_EXCLUDE):
60119         * m4/exitfail.m4 (gl_EXITFAIL):
60120         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
60121         * m4/file-type.m4 (gl_FILE_TYPE):
60122         * m4/filemode.m4 (gl_FILEMODE):
60123         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
60124         * m4/fpending.m4 (gl_FUNC_FPENDING):
60125         * m4/fprintftime.m4 (gl_FPRINTFTIME):
60126         * m4/fts.m4 (gl_FUNC_FTS):
60127         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
60128         * m4/getdate.m4 (gl_GETDATE):
60129         * m4/gethrxtime.m4 (gl_GETHRXTIME):
60130         * m4/getpagesize.m4 (gl_GETPAGESIZE):
60131         * m4/getpass.m4 (gl_FUNC_GETPASS):
60132         * m4/gettime.m4 (gl_GETTIME):
60133         * m4/getugroups.m4 (gl_GETUGROUPS):
60134         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
60135         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
60136         * m4/hard-locale.m4 (gl_HARD_LOCALE):
60137         * m4/hash.m4 (gl_HASH):
60138         * m4/idcache.m4 (gl_IDCACHE):
60139         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
60140         * m4/lchown.m4 (gl_FUNC_LCHOWN):
60141         * m4/long-options.m4 (gl_LONG_OPTIONS):
60142         * m4/lstat.m4 (gl_FUNC_LSTAT):
60143         * m4/md5.m4 (gl_MD5):
60144         * m4/memcasecmp.m4 (gl_MEMCASECMP):
60145         * m4/memcoll.m4 (gl_MEMCOLL):
60146         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
60147         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
60148         * m4/memxor.m4 (gl_MEMXOR):
60149         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
60150         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
60151         * m4/modechange.m4 (gl_MODECHANGE):
60152         * m4/mountlist.m4 (gl_MOUNTLIST):
60153         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60154         * m4/openat.m4 (gl_FUNC_OPENAT):
60155         * m4/pathmax.m4 (gl_PATHMAX):
60156         * m4/physmem.m4 (gl_PHYSMEM):
60157         * m4/posixtm.m4 (gl_POSIXTM):
60158         * m4/posixver.m4 (gl_POSIXVER):
60159         * m4/quote.m4 (gl_QUOTE):
60160         * m4/quotearg.m4 (gl_QUOTEARG):
60161         * m4/readtokens.m4 (gl_READTOKENS):
60162         * m4/readutmp.m4 (gl_READUTMP):
60163         * m4/regex.m4 (gl_REGEX):
60164         * m4/safe-read.m4 (gl_SAFE_READ):
60165         * m4/safe-write.m4 (gl_SAFE_WRITE):
60166         * m4/same.m4 (gl_SAME):
60167         * m4/save-cwd.m4 (gl_SAVE_CWD):
60168         * m4/savedir.m4 (gl_SAVEDIR):
60169         * m4/settime.m4 (gl_SETTIME):
60170         * m4/sha1.m4 (gl_SHA1):
60171         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
60172         * m4/stat-macros.m4 (gl_STAT_MACROS):
60173         * m4/stat-time.m4 (gl_STAT_TIME):
60174         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
60175         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
60176         * m4/strdup.m4 (gl_FUNC_STRDUP):
60177         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
60178         * m4/strndup.m4 (gl_FUNC_STRNDUP):
60179         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
60180         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
60181         * m4/time_r.m4 (gl_TIME_R):
60182         * m4/timespec.m4 (gl_TIMESPEC):
60183         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
60184         * m4/unlinkdir.m4 (gl_UNLINKDIR):
60185         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
60186         * m4/userspec.m4 (gl_USERSPEC):
60187         * m4/utimecmp.m4 (gl_UTIMECMP):
60188         * m4/utimens.m4 (gl_UTIMENS):
60189         * m4/xalloc.m4 (gl_XALLOC):
60190         * m4/xgetcwd.m4 (gl_XGETCWD):
60191         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
60192         * m4/xreadlink.m4 (gl_XREADLINK):
60193         * m4/xstrtod.m4 (gl_XSTRTOD):
60194         * m4/yesno.m4 (gl_YESNO):
60195         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60196         to get the necessary .h files and whatnot.
60197
60198 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60199             Bruno Haible  <bruno@clisp.org>
60200
60201         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60202         /bin/sh understanding of '!' conditional negation.
60203
60204 2006-08-21  Jim Meyering  <jim@meyering.net>
60205
60206         * modules/openat (Depends-on): Really alphabetize.
60207
60208         * modules/acl (Depends-on): Add error and quote.
60209
60210         * check-module (find_included_lib_files): Add at-func.c to the
60211         ok-to-include-more-than-once white list.
60212
60213         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60214
60215 2006-08-21  Bruno Haible  <bruno@clisp.org>
60216
60217         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60218         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60219         Reported by Martin Lambers <marlam@marlam.de>.
60220
60221 2006-08-21  Bruno Haible  <bruno@clisp.org>
60222
60223         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60224         specify an installation location, don't emit a noinst_LIBRARIES or
60225         noinst_LTLIBRARIES assignment.
60226
60227 2006-08-21  Bruno Haible  <bruno@clisp.org>
60228
60229         BeOS portability.
60230         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60231         BeOS has mbrtowc() but no <wctype.h>.
60232
60233 2006-08-21  Bruno Haible  <bruno@clisp.org>
60234
60235         BeOS portability.
60236         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60237         exist.
60238
60239 2006-08-21  Bruno Haible  <bruno@clisp.org>
60240
60241         BeOS portability.
60242         * lib/mbchar.h: Include <wctype.h> only if it exists.
60243
60244 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60245
60246         Remove files that are no longer needed by their respective modules.
60247         * m4/obstack.m4: Remove.
60248         * m4/strerror_r.m4: Remove.
60249         * m4/uint32_t.m4: Remove.
60250         * m4/uintptr_t.m4: Remove.
60251         * m4/ullong_max.m4: Remove.
60252         * m4/xstrtoimax.m4: Remove.
60253         * m4/xstrtoumax.m4: Remove.
60254
60255         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60256         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60257         dependencies now capture this.
60258
60259         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60260         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60261         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60262         * m4/human.m4 (gl_HUMAN): Likewise.
60263         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
60264         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
60265
60266         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
60267
60268         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
60269         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
60270         stdint.
60271         * m4/human.m4 (gl_HUMAN): Likewise.
60272         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
60273         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
60274         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60275         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60276         * m4/xstrtol (gl_XSTRTOL): Likewise.
60277
60278         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
60279         AC_TYPE_LONG_LONG_INT.
60280         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60281         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
60282         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
60283         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60284
60285         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
60286         on stdbool.
60287
60288         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
60289         (gl_PREREQ_XSTRTOUL): Remove.
60290
60291         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
60292
60293         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
60294         mode.
60295
60296 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60297
60298         Add and change modules to make it easier for coreutils to use
60299         gnulib-tool.
60300         * modules/backupfile (Files): Remove m4/d-ino.m4.
60301         (Depends-on): Add d-ino.
60302         * modules/cycle-check (Depends-on): Add stdint.
60303         (lib_SOURCES): Add cycle-check.h.
60304         * modules/d-ino: New module.
60305         * modules/d-type: New module.
60306         * modules/error (Files): Remove m4/strerror_r.m4.
60307         * modules/filemode (Files): Add m4/st_dm_mode.m4.
60308         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60309         m4/inttypes_h.m4, m4/uintmax_t.m4.
60310         (Depends-on): Add stdint.
60311         (lib_SOURCES): Add fsusage.h.
60312         * modules/getcwd (Files): Remove d-ino.m4.
60313         (Depends-on): Add d-ino.
60314         * modules/getndelim2 (Depends-on): Add stdint.
60315         * modules/glob (Files): Remove m4/d-type.m4.
60316         (Depends-on): Add d-type.
60317         * modules/host-os: New module.
60318         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
60319         m4/inttypes_h.m4, m4/uintmax_t.m4.
60320         * Depends-on: Add stdint.
60321         (lib_SOURCES): Add human.h.
60322         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60323         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60324         m4/uintmax_t.m4, m4/ulonglong.m4.
60325         (Depends-on): Add stdint.
60326         (EXTRA_DIST): Add inttostr.h.
60327         * modules/lchmod: New module.
60328         * modules/link-follow: New module.
60329         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60330         (Depends-on): Add lchmod.
60331         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60332         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60333         (Depends-on): Add stdint.
60334         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60335         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60336         (Depends-on): Add stdint.
60337         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60338         * modules/perl: New module.
60339         * modules/regex (Depends-on): Add stdint.
60340         * modules/rmdir-errno: New module.
60341         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60342         m4/intmax_t.m4.
60343         (Depends-on): Add stdint.
60344         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60345         m4/uintmax_t.m4.
60346         (Depends-on): Add stdint.
60347         * modules/unlink-busy: New module.
60348         * modules/utimecmp (Depends-on): Add stdint.
60349         * modules/uptime: New module.
60350         * modules/winsz-ioctl: New module.
60351         * modules/winsz-termios: New module.
60352         * modules/xnanosleep (Depends-on): Add nanosleep.
60353         * modules/ullong_max: Remove.
60354         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60355         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60356         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60357         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60358         (Depends-on): Add inttypes.
60359         (lib_SOURCES): Add xstrtol.h.
60360         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60361         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60362         * MODULES.html.sh: Move 'assert' into the assert section.
60363         Move 'dummy' into the linking section.
60364         Remove ullong_max.
60365         Add section for compatibility checks for POSIX:2001 functions,
60366         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60367         winsz-ioctl, and winsz-termios into it.
60368         Add lchmod.
60369         Add top-level Misc section and put host-os, perl, and uptime
60370         into it.
60371
60372 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60373
60374         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60375         now assume the stdint module.  Do not include inttypes.h.
60376         * lib/fsusage.h: Likewise.
60377         * lib/getndelim2.c: Likewise.
60378         * lib/human.h: Likewise.
60379         * lib/inttostr.h: Likewise.
60380         * lib/obstack.c: Likewise.
60381         * lib/regex_internal.h: Likewise.
60382         * lib/tempname.c: Likewise.
60383         * lib/utimecmp.c: Likewise.
60384         * lib/xstrtol.h: Likewise.
60385
60386         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60387
60388         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60389         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60390         * lib/xtime.h: Likewise.
60391
60392 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60393
60394         * modules/openat (Files): Add lib/fchmodat.c.
60395         Fixes problem reported by Jay Youngman.
60396
60397 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60398
60399         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60400         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60401
60402 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60403             Bruno Haible  <bruno@clisp.org>
60404
60405         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60406         and is a script that invokes bison. Tighten the code. Add comments.
60407
60408 2006-08-18  Jim Meyering  <jim@meyering.net>
60409
60410         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60411         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60412         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60413         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60414
60415 2006-08-18  Bruno Haible  <bruno@clisp.org>
60416
60417         * modules/bison-i18n: New file.
60418         * MODULES.html.sh (Internationalization functions): Add it.
60419
60420 2006-08-18  Bruno Haible  <bruno@clisp.org>
60421
60422         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60423         sys/statvfs.h. When getmntinfo was found, check its declaration and
60424         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60425
60426 2006-08-18  Bruno Haible  <bruno@clisp.org>
60427
60428         * m4/bison-i18n.m4: New file, from bison.
60429
60430 2006-08-18  Bruno Haible  <bruno@clisp.org>
60431
60432         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60433         (ME_DUMMY): Treat "kernfs" as a dummy.
60434         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60435
60436 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60437
60438         Update from coreutils.
60439
60440         2006-08-15  Jim Meyering  <jim@meyering.net>
60441
60442         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60443
60444         2006-01-17  Jim Meyering  <jim@meyering.net>
60445
60446         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60447
60448         2006-01-11  Jim Meyering  <jim@meyering.net>
60449
60450         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60451         Check for the lchmod function.
60452
60453 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60454
60455         Update from coreutils.
60456
60457         * lib/__fpending.h: Add copyright notice.
60458         * lib/fprintftime.h: Likewise.
60459         * lib/savedir.c: Use (C) in copyright notice.
60460         * lib/savedir.h: Likewise.
60461
60462         2006-08-15  Jim Meyering  <jim@meyering.net>
60463
60464         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60465         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60466         in support of the EXPECTED_ERRNO macro.
60467         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60468         definitions.  Instead, define the appropriate symbols and include
60469         "at-func.c".
60470         * lib/mkdirat.c (mkdirat): Likewise.
60471         * lib/fchmodat.c (fchmodat): Likewise.
60472         (ENOSYS): Remove definition.
60473         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
60474         it.  Don't include "unistd--.h" -- it wasn't ever used.
60475
60476         2006-01-17  Jim Meyering  <jim@meyering.net>
60477
60478         Rewrite fts.c not to change the current working directory,
60479         by using openat, fstatat, fdopendir, etc..
60480
60481         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
60482         (HAVE_OPENAT_SUPPORT): Define.
60483         [_LIBC] (fchdir): Don't undef or define; no longer used.
60484         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
60485         Now, this `function' always succeeds, and consumes its file descriptor
60486         parameter -- so callers must not close such FDs.  Update callers.
60487         (diropen_fd, opendirat, cwd_advance_fd): New functions.
60488         (diropen): Add parameter, SP.  Adjust all callers.
60489         Implement using diropen_fd, rather than open.
60490         (fts_open): Initialize new member, fts_cwd_fd.
60491         Remove fts_rft-setting code.
60492         (fts_close): Close fts_cwd_fd, if necessary.
60493         (__opendir2): Define in terms of opendir or opendirat,
60494         depending on whether the FST_NOCHDIR flag is set.
60495         (fts_build): Since fts_safe_changedir consumes its FD, and since
60496         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
60497         and close the dup'd file descriptor upon failure.
60498         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
60499         (fts_safe_changedir): Tweak semantics to reflect that this function
60500         now calls cwd_advance_fd and hence consumes its FD argument.
60501         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
60502         [struct FTS] (fts_rft): Remove now-unused member.
60503         [struct FTS] (fts_cycle.state): Improve comment.
60504
60505         * lib/openat.c (openat_needs_fchdir): New function.
60506         * lib/openat.h (openat_needs_fchdir): Declare it.
60507
60508 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60509
60510         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
60511         Problem and fix reported by Pádraig Brady in
60512         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
60513
60514 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60515
60516         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
60517
60518 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60519
60520         * lib/memcoll.c (memcoll): Optimize for the common case where the
60521         arguments are bytewise equal.
60522
60523 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         * doc/regexprops-generic.texi: Add a copyright notice.
60526
60527 2006-08-15  Bruno Haible  <bruno@clisp.org>
60528
60529         * modules/tmpdir (License): Change to LGPL.
60530
60531 2006-08-15  Bruno Haible  <bruno@clisp.org>
60532
60533         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
60534         module.
60535
60536 2006-08-14  Simon Josefsson  <jas@extundo.com>
60537
60538         * config/srclist.txt: Add gnupload.
60539
60540 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60541
60542         Change copyright notice from LGPL 2 to GPL 2, since that's the
60543         standard form used in the gnulib repository.
60544         * tests/test-lock.c: Likewise.
60545         * tests/test-stdint.c: Likewise.
60546         * tests/test-tls.c: Likewise.
60547
60548         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
60549         prelude-manager.  User shorter URLs for GNU projects, without '?'.
60550         Add copyright notice.
60551
60552         * check-module: Add copyright notice.  Output a copyright
60553         notice if "--version" is specified.
60554         * modules/COPYING: New file.
60555         * tests/test-getaddrinfo.c: Add copyright notice.
60556         * tests/test-verify.c: Likewise.
60557
60558 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60559
60560         Change copyright notice from LGPL 2 to GPL 2, since that's the
60561         standard form used in the gnulib repository.
60562         * lib/lock.c: LGPL -> GPL.
60563         * lib/lock.h: Likewise.
60564         * lib/strnlen1.c: Likewise.
60565         * lib/strnlen1.h: Likewise.
60566         * lib/tls.c: Likewise.
60567         * lib/tls.h: Likewise.
60568         * lib/tmpdir.c: Likewise.
60569
60570         * lib/TODO: Remove; this belongs only in coreutils.
60571
60572 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60573
60574         Add copyright notices to long-enough files that lack them, since
60575         otherwise the files aren't clearly free.  Use the same notice that
60576         getdate.texi already uses.
60577         * doc/alloca-opt.texi: Add copyright notice.
60578         * doc/alloca.texi: Likewise.
60579         * doc/ctime.texi: Likewise.
60580         * doc/functions.texi: Likewise.
60581         * doc/gcd.texi: Likewise.
60582         * doc/gnulib-tool.texi: Likewise.
60583         * doc/inet_ntoa.texi: Likewise.
60584         * doc/visibility.texi: Likewise.
60585
60586         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
60587         * doc/quote.texi: Add copyright notice.
60588
60589         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
60590         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
60591         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
60592         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
60593         is now obsolete, and give a pointer to the Sun list.
60594         Add copyright notice.
60595
60596 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60597
60598         * config/srclistvars.sh: Add copyright notice.
60599
60600 2006-08-14  Eric Blake  <ebb9@byu.net>
60601
60602         Import the following change from libc:
60603
60604         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
60605
60606         Upstream bug 2997.
60607         * lib/misc/error.c: Add space between program name and message if file
60608         name is missing.
60609
60610 2006-08-12  Karl Berry  <karl@gnu.org>
60611
60612         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
60613         remove, these originate in gnulib now.
60614
60615 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60616
60617         * doc/Makefile (standards.info standards.html standards.dvi):
60618         Also depend on make-stds.texi.
60619
60620 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60621
60622         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
60623         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
60624
60625         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
60626         in wchar_t.  Problem reported by Eric Blake.
60627
60628         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
60629         LEN is smaller than SIZE.  Suggested by Bruno Haible.
60630         Also, help the compiler to keep LEN in a register.
60631
60632 2006-08-11  Eric Blake  <ebb9@byu.net>
60633
60634         * users.txt: Sort.  Add tar.
60635
60636 2006-08-11  Bruno Haible  <bruno@clisp.org>
60637
60638         * users.txt: New file.
60639
60640 2006-08-11  Bruno Haible  <bruno@clisp.org>
60641
60642         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
60643         before <wchar.h>. Needed for OSF/1 and BSD/OS.
60644
60645 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60646
60647         * modules/snprintf (Depends-on): Remove minmax.
60648         (Maintainer): Add self and Bruno.
60649
60650 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60651
60652         * lib/.cppi-disable: Add snprintf.h, socket_.h.
60653         * lib/snprintf.c: Include <errno.h> and <limits.h>.
60654         (EOVERFLOW): Define if the system does not.
60655         Do not include "minmax.h"; it wasn't used.
60656         (snprintf): Don't assume size_t promotes to an unsigned type.
60657         Fix bug when generated string was too long for the buffer: the
60658         buffer's contents are supposed to be the initial prefix of the
60659         output.  Don't assume vasnprintf returns EOVERFLOW if the size
60660         exceeds INT_MAX; do the check ourselves.
60661
60662         Import the following changes from libc:
60663
60664         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
60665
60666         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
60667         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
60668         set wc to the byte which couldn't be converted.
60669         (re_string_reconstruct): Don't clear valid_raw_len before calling
60670         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
60671         tip_context using re_string_context_at.
60672
60673         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
60674
60675         * lib/posix/regex.h: g++ still cannot handled [restrict].
60676
60677         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
60678
60679         * lib/posix/regex.h: Remove special handling for VMS.
60680
60681 2006-08-10  Jim Meyering  <jim@meyering.net>
60682
60683         * modules/same-inode: New module.
60684         * modules/dev-ino: New module.
60685         * modules/cycle-check: Depend on these modules, rather than simply
60686         including their .h files.
60687         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
60688         required via m4/cycle-check.m4.
60689         * modules/same: Depend on new same-inode module, rather than
60690         including same-inode.h.
60691         * modules/chdir-safer: New file.
60692
60693         * modules/chown (Depends-on): Add stat-macros.
60694
60695 2006-08-10  Jim Meyering  <jim@meyering.net>
60696
60697         * m4/cycle-check.m4: New file.
60698         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
60699         * m4/dev-ino.m4, m4/same-inode.m4: New files.
60700
60701 2006-08-10  Eric Blake  <ebb9@byu.net>
60702
60703         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
60704         in from original proposal.
60705
60706 2006-08-10  Eric Blake  <ebb9@byu.net>
60707         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60708
60709         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
60710         namespace.
60711
60712 2006-08-10  Bruno Haible  <bruno@clisp.org>
60713
60714         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
60715         as well.
60716
60717 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60718
60719         Sync from coreutils.
60720
60721         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
60722
60723         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
60724         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
60725
60726 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60727
60728         * modules/restrict: Remove; no longer needed now that we assume
60729         Autoconf 2.59 or later.
60730         * MODULES.html.sh: Remove 'restrict'.
60731         * modules/argp (Depends-on): Remove 'restrict'.
60732         * modules/base64 (Depends-on): Likewise.
60733         * modules/gc (Depends-on): Likewise.
60734         * modules/getaddrinfo (Depends-on): Likewise.
60735         * modules/glob (Depends-on): Likewise.
60736         * modules/inet_ntop (Depends-on): Likewise.
60737         * modules/inet_pton (Depends-on): Likewise.
60738         * modules/memxor (Depends-on): Likewise.
60739         * modules/regex (Depends-on): Likewise.
60740         * modules/strtok_r (Depends-on): Likewise.
60741         * modules/time_r (Depends-on): Likewise.
60742
60743 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60744
60745         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
60746         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
60747         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60748         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
60749         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60750         * m4/memxor.m4 (gl_MEMXOR): Likewise.
60751         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
60752         gl_C_RESTRICT replaced by AC_C_RESTRICT.
60753
60754         Merge from coreutils.
60755         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
60756         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
60757         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60758         * m4/time_r.m4 (gl_TIME_R): Likewise.
60759
60760 2006-08-09  Karl Berry  <karl@gnu.org>
60761
60762         * config/srclist.txt: no more gettext-tools, per Bruno.
60763
60764 2006-08-08  Eric Blake  <ebb9@byu.net>
60765
60766         * modules/verror: New module.
60767         * MODULES.html.sh: Document it.
60768
60769 2006-08-08  Eric Blake  <ebb9@byu.net>
60770
60771         * lib/verror.h, lib/verror.c: New files.
60772
60773 2006-08-08  Eric Blake  <ebb9@byu.net>
60774
60775         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
60776         verror_at_line output complies with GNU Coding Standards even when
60777         file is NULL.
60778
60779 2006-08-07  Bruno Haible  <bruno@clisp.org>
60780
60781         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
60782         versions of AIX.
60783         Reported by Ralf Wildenhues.
60784
60785 2006-08-07  Bruno Haible  <bruno@clisp.org>
60786
60787         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
60788         in an AC_DEFUN. Needed so that the autoconf snippets can use
60789         AC_REQUIRE.
60790
60791 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60792
60793         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60794         Initialize pkgdata_DATA.
60795         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
60796         overriding it.
60797
60798 2006-08-06  Eric Blake  <ebb9@byu.net>
60799
60800         * lib/error.h: Fold in some upstream changes from glibc.
60801         * lib/error.c: Likewise.
60802
60803 2006-08-04  Bruno Haible  <bruno@clisp.org>
60804
60805         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60806         Make the mostlyclean-local rule depend on mostlyclean-generic.
60807         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
60808
60809 2006-07-31  Bruno Haible  <bruno@clisp.org>
60810
60811         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
60812         <stdlib.h>, <string.h>.
60813
60814 2006-07-30  Bruno Haible  <bruno@clisp.org>
60815
60816         * modules/readlink (License): Change to LGPL.
60817
60818 2006-07-30  Bruno Haible  <bruno@clisp.org>
60819
60820         * modules/javaversion (Makefile.am): Distribute javaversion.java and
60821         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
60822         set PKGDATADIR to point to it.
60823
60824 2006-07-30  Bruno Haible  <bruno@clisp.org>
60825
60826         * modules/csharpexec (configure.ac): Comment out macro invocation.
60827         * modules/javaexec (configure.ac): Likewise.
60828         * modules/javacomp-script (configure.ac): Likewise.
60829
60830         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
60831
60832 2006-07-30  Bruno Haible  <bruno@clisp.org>
60833
60834         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
60835         linked-list.
60836
60837 2006-07-30  Bruno Haible  <bruno@clisp.org>
60838
60839         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
60840
60841 2006-07-30  Bruno Haible  <bruno@clisp.org>
60842
60843         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60844         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
60845         get removed.
60846
60847 2006-07-29  Bruno Haible  <bruno@clisp.org>
60848
60849         Make it possible for gnulib-tool to work with locally modified or
60850         augmented gnulib repositories.
60851         * gnulib-tool (func_usage): Document --local-dir option.
60852         (local_gnulib_dir): New variable.
60853         Handle --local-dir option.
60854         (func_lookup_file): New function.
60855         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
60856         (func_get_description, func_get_filelist, func_get_description,
60857         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
60858         func_get_automake_snippet, func_get_include_directive,
60859         func_get_license, func_get_maintainer): Use func_lookup_file.
60860         (func_import, func_create_testdir): Use func_lookup_file.
60861
60862 2006-07-29  Bruno Haible  <bruno@clisp.org>
60863
60864         * modules/setenv (Depends-on): Add unistd.
60865
60866 2006-07-29  Bruno Haible  <bruno@clisp.org>
60867
60868         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
60869
60870 2006-07-29  Bruno Haible  <bruno@clisp.org>
60871
60872         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
60873
60874 2006-07-29  Bruno Haible  <bruno@clisp.org>
60875
60876         * gnulib-tool (import, update): If there is no Makefile.am, look at
60877         aclocal.m4, instead of bailing out.
60878
60879 2006-07-29  Bruno Haible  <bruno@clisp.org>
60880
60881         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
60882         Categorize the options by when they are useful.
60883
60884 2006-07-29  Bruno Haible  <bruno@clisp.org>
60885
60886         * gnulib-tool (func_usage): Document option --no-libtool.
60887         Handle option --no-libtool.
60888         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
60889         for changed semantics of $libtool variable.
60890         (func_import): Likewise. If libtool is not used, show this through
60891         an option --no-libtool.
60892         (func_create_testdir): Update.
60893
60894 2006-07-29  Bruno Haible  <bruno@clisp.org>
60895
60896         * gnulib-tool (func_import): Extend error message about missing
60897         --doc-base.
60898
60899 2006-07-29  Bruno Haible  <bruno@clisp.org>
60900
60901         * gnulib-tool (func_import): Don't create the $docbase directory if
60902         there is no file to store there.
60903
60904 2006-07-29  Bruno Haible  <bruno@clisp.org>
60905
60906         * gnulib-tool (autoconf_minversion): If a --dir option is given and
60907         relevant, look for configure.ac there, not in the current directory.
60908         Also use a simple search for AC_PREREQ, not "autoconf --trace".
60909
60910 2006-07-29  Bruno Haible  <bruno@clisp.org>
60911
60912         * gnulib-tool (SORT): New variable.
60913         (func_usage): Undocument --assume-autoconf option.
60914         Remove --assume-autoconf option handling.
60915         (autoconf_minversion): Determine from the contents of configure.ac.
60916         (func_import): Remove autoconf_minversion handling.
60917         Suggested by Eric Blake.
60918
60919 2006-07-29  Bruno Haible  <bruno@clisp.org>
60920
60921         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
60922
60923 2006-07-29  Bruno Haible  <bruno@clisp.org>
60924
60925         * config/srclist.txt (*setenv.[ch]): Remove rules.
60926
60927 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60928
60929         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
60930
60931 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60932
60933         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
60934         arpa/inet.h.
60935
60936 2006-07-28  Simon Josefsson  <jas@extundo.com>
60937
60938         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
60939         * modules/inet_pton (Depends-on): Likewise.
60940
60941 2006-07-28  Simon Josefsson  <jas@extundo.com>
60942
60943         * m4/netinet_in_h.m4: New file.
60944
60945 2006-07-28  Simon Josefsson  <jas@extundo.com>
60946
60947         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
60948         #include's.
60949
60950 2006-07-28  Simon Josefsson  <jas@extundo.com>
60951
60952         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
60953         #include's.
60954
60955 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
60956
60957         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
60958         setgid on directories only if they set these bits.
60959         * lib/modechange.h: Remove obsolete comment about masks.
60960
60961 2006-07-28  Eric Blake  <ebb9@byu.net>
60962
60963         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
60964         macro expansion.
60965
60966 2006-07-28  Bruno Haible  <bruno@clisp.org>
60967
60968         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
60969
60970 2006-07-28  Bruno Haible  <bruno@clisp.org>
60971
60972         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
60973
60974 2006-07-28  Bruno Haible  <bruno@clisp.org>
60975
60976         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60977         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60978         Define fallbacks.
60979         Avoids link error on FreeBSD 4.x.
60980         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60981
60982         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
60983         encoding.
60984         * lib/mbswidth.c (iswcntrl): Likewise.
60985
60986 2006-07-27  Bruno Haible  <bruno@clisp.org>
60987
60988         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
60989         test.
60990
60991 2006-07-27  Bruno Haible  <bruno@clisp.org>
60992
60993         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
60994         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
60995         defined.
60996
60997 2006-07-26  Eric Blake  <ebb9@byu.net>
60998
60999         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
61000
61001 2006-07-26  Eric Blake  <ebb9@byu.net>
61002
61003         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
61004         like mingw that lack mkstemp.
61005         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
61006         avoid compilation warning on mingw.
61007
61008 2006-07-26  Bruno Haible  <bruno@clisp.org>
61009
61010         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
61011         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
61012         INT_FAST*_MIN, INTPTR_MIN.
61013
61014 2006-07-25  Bruno Haible  <bruno@clisp.org>
61015
61016         * modules/version-etc (Depends-on): Add stdarg.
61017
61018 2006-07-25  Bruno Haible  <bruno@clisp.org>
61019
61020         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
61021         complex commands.
61022
61023 2006-07-25  Bruno Haible  <bruno@clisp.org>
61024
61025         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
61026         defined in <stdarg.h> or config.h.
61027
61028 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61029
61030         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
61031         (gl_STDIO_SAFER): Remove.
61032
61033 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61034
61035         * MODULES.html.sh (File stream based Input/Output):
61036         Add fopen-safer, tmpfile-safer; remove stdio-safer.
61037         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
61038         * modules/fopen-safer, modules/tmpfile-safer: New files.
61039         * modules/stdio-safer: Remove.
61040
61041 2006-07-24  Bruno Haible  <bruno@clisp.org>
61042
61043         * modules/tmpdir: New file.
61044         * MODULES.html.sh (File system functions): Add it.
61045
61046 2006-07-24  Bruno Haible  <bruno@clisp.org>
61047
61048         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
61049         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
61050
61051 2006-07-24  Bruno Haible  <bruno@clisp.org>
61052
61053         * modules/clean-temp: New file.
61054
61055 2006-07-24  Bruno Haible  <bruno@clisp.org>
61056
61057         * m4/tmpdir.m4: New file, from GNU gettext.
61058
61059 2006-07-24  Bruno Haible  <bruno@clisp.org>
61060
61061         * lib/tmpdir.h: New file, from GNU gettext.
61062         * lib/tmpdir.c: New file, from GNU gettext.
61063
61064 2006-07-24  Bruno Haible  <bruno@clisp.org>
61065
61066         * lib/clean-temp.h: New file, from GNU gettext.
61067         * lib/clean-temp.c: New file, from GNU gettext.
61068
61069 2006-07-23  Eric Blake  <ebb9@byu.net>
61070
61071         * modules/stdio-safer (Files): Add tmpfile-safer.c.
61072         (Depends-on): Add binary-io.
61073
61074 2006-07-23  Eric Blake  <ebb9@byu.net>
61075
61076         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
61077
61078 2006-07-23  Eric Blake  <ebb9@byu.net>
61079
61080         * lib/tmpfile-safer.c: New file.
61081         * lib/stdio-safer.h (fopen_safer): Add prototype.
61082         * lib/stdio--.h (tmpfile): Make safer.
61083
61084 2006-07-23  Bruno Haible  <bruno@clisp.org>
61085
61086         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
61087         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
61088         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
61089         gl_linked_remove_at): Use it.
61090
61091 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61092         and Simon Josefsson <jas@extundo.com>
61093
61094         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
61095
61096         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
61097
61098 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61099
61100         * modules/close-stream: New file.
61101         * modules/closeout (Description): Make it clear that it exits
61102         with a diagnostic on error.
61103         (Depends-on): Add close-stream.  Remove fpending, stdbool.
61104         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
61105
61106 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61107
61108         * m4/close-stream.m4: New file.
61109
61110 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61111
61112         * lib/close-stream.c, lib/close-stream.h: New files.
61113
61114 2006-07-22  Bruno Haible  <bruno@clisp.org>
61115
61116         Merge from GNU gettext 0.15.
61117
61118         2006-05-01  Bruno Haible  <bruno@clisp.org>
61119
61120                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
61121
61122         2006-07-22  Bruno Haible  <bruno@clisp.org>
61123
61124                 * modules/javaversion: New file.
61125                 * MODULES.html.sh (Java): Add javaversion.
61126
61127         2006-03-12  Bruno Haible  <bruno@clisp.org>
61128
61129                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
61130
61131         2005-12-04  Bruno Haible  <bruno@clisp.org>
61132
61133                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
61134                 (untested).
61135
61136         2006-06-21  Bruno Haible  <bruno@clisp.org>
61137
61138                 Avoid warnings from recent versions of mcs.
61139                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
61140                 -o, -L, -r any more. Use options documented since mcs-1.0
61141                 instead. Similarly for -g.
61142
61143         2005-12-04  Bruno Haible  <bruno@clisp.org>
61144
61145                 * build-aux/csharpcomp.sh.in: Suffix for resources is
61146                 .resources, not .resource.
61147
61148         2005-07-09  Bruno Haible  <bruno@clisp.org>
61149
61150                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
61151                 add a .dll suffix.
61152                 Reported by Mark Junker <mjscod@gmx.de>.
61153
61154         2006-07-22  Bruno Haible  <bruno@clisp.org>
61155
61156                 * modules/gettext: Upgrade to gettext-0.15.
61157                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
61158                 m4/visibility.m4.
61159                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
61160
61161 2006-07-22  Bruno Haible  <bruno@clisp.org>
61162
61163         Merge from GNU gettext 0.15.
61164
61165         2006-03-25  Bruno Haible  <bruno@clisp.org>
61166
61167                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
61168
61169         2006-07-21  Bruno Haible  <bruno@clisp.org>
61170
61171                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
61172                 "1.1".
61173
61174         2006-05-09  Bruno Haible  <bruno@clisp.org>
61175
61176                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
61177                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
61178                 for the conftestver execution.
61179
61180         2006-05-01  Bruno Haible  <bruno@clisp.org>
61181
61182                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
61183                 optional target-version argument. Verify that the compiler
61184                 groks source of the specified source-version, or add -source
61185                 option as necessary. Verify that the compiler produces
61186                 bytecode in the specified target-version, or add -target and
61187                 -source options as necessary. Make the result of the test
61188                 available as variable CONF_JAVAC. Also log error output in
61189                 config.log.
61190
61191         2006-03-11  Bruno Haible  <bruno@clisp.org>
61192
61193                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61194
61195         2006-05-09  Bruno Haible  <bruno@clisp.org>
61196
61197                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61198                 CLASSPATH_SEPARATOR to a semicolon.
61199
61200         2006-03-12  Bruno Haible  <bruno@clisp.org>
61201
61202                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61203                 available as variable CONF_JAVA, for subsequent autoconf
61204                 tests. Also log error output in config.log.
61205
61206         2006-07-19  Bruno Haible  <bruno@clisp.org>
61207
61208                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61209                 that getline works on glibc2 systems. Needed to avoid trouble
61210                 in relocatable.c.
61211                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61212
61213         2005-12-04  Bruno Haible  <bruno@clisp.org>
61214
61215                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61216                 launcher (untested).
61217
61218         2005-12-04  Bruno Haible  <bruno@clisp.org>
61219
61220                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61221
61222         2006-07-22  Bruno Haible  <bruno@clisp.org>
61223
61224                 * gettext.m4: Update from GNU gettext-0.15.
61225                 * nls.m4: Likewise.
61226                 * po.m4: Likewise.
61227                 * inttypes-pri.m4: Likewise.
61228                 * inttypes-h.m4: Renamed from inttypes.m4.
61229                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61230
61231 2006-07-22  Bruno Haible  <bruno@clisp.org>
61232
61233         Merge from GNU gettext 0.15.
61234
61235         2005-07-05  Bruno Haible  <bruno@clisp.org>
61236
61237                 * printf-args.c (printf_fetchargs): Work around broken
61238                 definition of wint_t on mingw.
61239
61240         2005-02-12  Bruno Haible  <bruno@clisp.org>
61241
61242                 * xallocsa.h: Add extern "C" for C++.
61243
61244         2006-05-17  Bruno Haible  <bruno@clisp.org>
61245
61246                 Cygwin portability.
61247                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61248
61249         2006-04-30  Bruno Haible  <bruno@clisp.org>
61250
61251                 * progreloc.c: Include <mach-o/dyld.h> if available.
61252                 (find_executable): Use _NSGetExecutablePath when possible.
61253
61254         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61255
61256                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61257                 function.
61258
61259         2005-12-29  Bruno Haible  <bruno@clisp.org>
61260
61261                 * progreloc.c (set_program_name_and_installdir): Fix
61262                 compilation error.
61263
61264         2005-12-04  Bruno Haible  <bruno@clisp.org>
61265
61266                 Cygwin portability.
61267                 * progreloc.c: Include <windows.h> also on Cygwin.
61268                 (find_executable): Add support for Cygwin.
61269                 (set_program_name_and_installdir): Handle also platforms with
61270                 nonempty EXEEXT.
61271
61272         2006-07-11  Bruno Haible  <bruno@clisp.org>
61273
61274                 * javacomp.c: Fix a comment.
61275                 Reported by Jim Meyering.
61276
61277         2006-04-30  Bruno Haible  <bruno@clisp.org>
61278
61279                 * javacomp.h (compile_java_class): Add source_version,
61280                 target_version arguments.
61281                 * javacomp.c: Rewritten to choose only a compiler that
61282                 respects the specified source_version and target_version.
61283
61284         2006-06-27  Bruno Haible  <bruno@clisp.org>
61285
61286                 Assume correct S_ISDIR macro.
61287                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
61288
61289         2006-07-22  Bruno Haible  <bruno@clisp.org>
61290
61291                 * javaversion.h: New file, from GNU gettext.
61292                 * javaversion.c: New file, from GNU gettext.
61293                 * javaversion.java: New file, from GNU gettext.
61294                 * javaversion.class: New file, from GNU gettext.
61295
61296         2006-05-17  Bruno Haible  <bruno@clisp.org>
61297
61298                 Cygwin portability.
61299                 * javaexec.c (execute_java_class): Test for jview program
61300                 also on Cygwin.
61301
61302         2006-04-09  Bruno Haible  <bruno@clisp.org>
61303
61304                 * fatal-signal.c: Don't include string.h.
61305                 (at_fatal_signal): Use a copying loop instead of memcpy.
61306
61307         2005-12-04  Bruno Haible  <bruno@clisp.org>
61308
61309                 * csharpexec.c: Add support for 'clix' launcher (untested).
61310                 (execute_csharp_using_sscli): New function.
61311                 (execute_csharp_program): Call it.
61312
61313         2006-06-21  Bruno Haible  <bruno@clisp.org>
61314
61315                 Avoid warnings from recent versions of mcs.
61316                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61317                 -o, -L, -r any more. Use options documented since mcs-1.0
61318                 instead. Similarly for -g.
61319
61320         2005-07-09  Bruno Haible  <bruno@clisp.org>
61321
61322                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61323                 add a .dll suffix.
61324                 Reported by Mark Junker <mjscod@gmx.de>.
61325
61326         2006-06-17  Bruno Haible  <bruno@clisp.org>
61327
61328                 * config.charset: Update for NetBSD 3.0.
61329
61330         2006-05-17  Bruno Haible  <bruno@clisp.org>
61331
61332                 Cygwin portability.
61333                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61334
61335         2006-05-16  Bruno Haible  <bruno@clisp.org>
61336
61337                 * localcharset.c [CYGWIN]: Include <windows.h>.
61338                 (get_charset_aliases): For Cygwin, return the same CPxxx
61339                 aliases list as under WIN32.
61340                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61341                 the environment variables. Fall back to GetACP().
61342
61343         2006-04-05  Bruno Haible  <bruno@clisp.org>
61344
61345                 * config.charset: Update Juan Manuel Guerrero's address.
61346
61347         2005-02-12  Bruno Haible  <bruno@clisp.org>
61348
61349                 * allocsa.h: Add extern "C" for C++.
61350
61351         2005-02-10  Bruno Haible  <bruno@clisp.org>
61352
61353                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61354                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61355
61356         2006-07-22  Bruno Haible  <bruno@clisp.org>
61357
61358                 * gettext.h: Update to GNU gettext-0.15.
61359
61360 2006-07-22  Bruno Haible  <bruno@clisp.org>
61361
61362         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61363         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61364         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61365
61366 2006-07-21  Eric Blake  <ebb9@byu.net>
61367
61368         * modules/stdlib-safer: New file.
61369         * MODULES.html.sh (File stream based Input/Output): Add
61370         stdlib-safer.
61371
61372 2006-07-21  Eric Blake  <ebb9@byu.net>
61373
61374         * lib/stdlib-safer.h: New file from coreutils, required by
61375         stdlib--.h.
61376
61377 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61378
61379         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61380
61381 2006-07-20  Bruno Haible  <bruno@clisp.org>
61382
61383         * gnulib-tool: Recognize new option --assume-autoconf.
61384         (autoconf_minversion): New variable.
61385         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61386
61387 2006-07-20  Bruno Haible  <bruno@clisp.org>
61388
61389         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61390
61391 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61392
61393         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61394         Reindent and repaginate.
61395
61396 2006-07-19  Derek Price  <derek@ximbiot.com>
61397
61398         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61399         Correct grammar.
61400
61401 2006-07-17  Bruno Haible  <bruno@clisp.org>
61402
61403         * modules/list: New file.
61404         * modules/array-list: New file.
61405         * modules/carray-list, modules/carray-list-tests: New files.
61406         * modules/linked-list, modules/linked-list-tests: New files.
61407         * modules/avltree-list, modules/avltree-list-tests: New files.
61408         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61409         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61410         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61411         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61412         * modules/oset: New file.
61413         * modules/array-oset: New file.
61414         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61415         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61416         * tests/test-carray_list.c: New file.
61417         * tests/test-linked_list.c: New file.
61418         * tests/test-avltree_list.c: New file.
61419         * tests/test-rbtree_list.c: New file.
61420         * tests/test-linkedhash_list.c: New file.
61421         * tests/test-avltreehash_list.c: New file.
61422         * tests/test-rbtreehash_list.c: New file.
61423         * tests/test-avltree_oset.c: New file.
61424         * tests/test-rbtree_oset.c: New file.
61425         * MODULES.html.sh (Container data structures): New section.
61426
61427 2006-07-17  Bruno Haible  <bruno@clisp.org>
61428
61429         * m4/gl_list.m4: New file.
61430
61431 2006-07-17  Bruno Haible  <bruno@clisp.org>
61432
61433         * lib/gl_list.h: New file.
61434         * lib/gl_list.c: New file.
61435         * lib/gl_array_list.h: New file.
61436         * lib/gl_array_list.c: New file.
61437         * lib/gl_carray_list.h: New file.
61438         * lib/gl_carray_list.c: New file.
61439         * lib/gl_linked_list.h: New file.
61440         * lib/gl_linked_list.c: New file.
61441         * lib/gl_anylinked_list1.h: New file.
61442         * lib/gl_anylinked_list2.h: New file.
61443         * lib/gl_avltree_list.h: New file.
61444         * lib/gl_avltree_list.c: New file.
61445         * lib/gl_anyavltree_list1.h: New file.
61446         * lib/gl_anyavltree_list2.h: New file.
61447         * lib/gl_rbtree_list.h: New file.
61448         * lib/gl_rbtree_list.c: New file.
61449         * lib/gl_anyrbtree_list1.h: New file.
61450         * lib/gl_anyrbtree_list2.h: New file.
61451         * lib/gl_anytree_list1.h: New file.
61452         * lib/gl_anytree_list2.h: New file.
61453         * lib/gl_linkedhash_list.h: New file.
61454         * lib/gl_linkedhash_list.c: New file.
61455         * lib/gl_anyhash_list1.h: New file.
61456         * lib/gl_anyhash_list2.h: New file.
61457         * lib/gl_avltreehash_list.h: New file.
61458         * lib/gl_avltreehash_list.c: New file.
61459         * lib/gl_rbtreehash_list.h: New file.
61460         * lib/gl_rbtreehash_list.c: New file.
61461         * lib/gl_anytreehash_list1.h: New file.
61462         * lib/gl_anytreehash_list2.h: New file.
61463
61464         * lib/gl_oset.h: New file.
61465         * lib/gl_oset.c: New file.
61466         * lib/gl_array_oset.h: New file.
61467         * lib/gl_array_oset.c: New file.
61468         * lib/gl_avltree_oset.h: New file.
61469         * lib/gl_avltree_oset.c: New file.
61470         * lib/gl_rbtree_oset.h: New file.
61471         * lib/gl_rbtree_oset.c: New file.
61472         * lib/gl_anytree_oset.h: New file.
61473
61474 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61475
61476         * m4/mkancesdirs.m4: New file.
61477         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
61478         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
61479         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
61480         it.
61481
61482 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61483
61484         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
61485         * lib/mkancesdirs.h: New files.
61486         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
61487         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
61488         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
61489         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
61490         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
61491         callers changed.  Revamp internals significantly, by not
61492         attempting to create directories that are temporarily more
61493         permissive than the final results.  Do not attempt to use
61494         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
61495         This removes some race conditions, fixes some bugs, and simplifies
61496         things.  Use new dirchownmod function to do owner and mode changes.
61497         * lib/mkdir-p.h: Likewise.
61498         * lib/modechange.c (octal_to_mode): New function.
61499         (struct mode_change): New member mentioned.
61500         (make_node_op_equals): New arg mentioned.  All callers changed.
61501         (mode_compile): Keep track of which mode bits the user has explicitly
61502         mentioned.
61503         (mode_adjust): New arg DIR, so that we implement the X op correctly.
61504         New arg PMODE_BITS, to keep track of which mode bits the user
61505         mentioned; it treats S_ISUID and S_ISGID speciall.
61506         All callers changed.
61507         * lib/modechange.h: Likewise.
61508
61509 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61510
61511         * MODULES.html.sh: Add mkancestors.
61512         * modules/mkancesdirs: New module.
61513         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
61514         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
61515         The chdir-safer and afs files are now orphans; I'll remove them
61516         unless someone speaks up.
61517         Add lib/dirchownmod.c, lib/dirchownmod.h.
61518         (Depends-on): Remove alloca, chown, save-cwd, dirname.
61519         Add lchown, mkancesdirs.
61520         (Maintainer): Add self.
61521
61522 2006-07-15  Karl Berry  <karl@gnu.org>
61523
61524         * gnulib-tool: help message wording/arrangement.
61525
61526 2006-07-14  Simon Josefsson  <jas@extundo.com>
61527
61528         * doc/gnulib.texi (Libtool and Windows): New section.
61529
61530 2006-07-12  Simon Josefsson  <jas@extundo.com>
61531
61532         * modules/gendocs (License): Fix license, approved by Karl.
61533
61534 2006-07-12  Eric Blake  <ebb9@byu.net>
61535
61536         * MODULES.html.sh: Add gendocs.
61537
61538 2006-07-11  Eric Blake  <ebb9@byu.net>
61539
61540         * modules/fdl: New module, to install doc/fdl.texi.
61541         * MODULES.html.sh: Add new section for documentation modules.
61542         * gnulib-tool: Avoid space-tab.
61543         (--doc-base): New option, to manage files from doc.
61544
61545 2006-07-11  Eric Blake  <ebb9@byu.net>
61546
61547         * m4/absolute-header.m4: Fix comments to match recent change.
61548
61549 2006-07-11  Eric Blake  <ebb9@byu.net>
61550
61551         * gnulib-tool: List --doc-base before --tests-base.
61552
61553 2006-07-11  Derek R. Price  <derek@ximbiot.com>
61554
61555         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
61556
61557 2006-07-11  Bruno Haible  <bruno@clisp.org>
61558
61559         * README: Mention where to put documentation.
61560
61561 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61562
61563         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
61564
61565 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61566
61567         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
61568         to stdint.m4.
61569
61570 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61571
61572         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
61573         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
61574         "no/such/file/stdint.h" when there is no such file, so that
61575         the resulting C code can be parsed by dodgy compilers.
61576         Problems reported by Bob Proulx.
61577
61578 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61579
61580         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
61581         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61582         macros into the GNU _D_EXACT_NAMLEN.
61583         * lib/savedir.c:  Likewise.
61584         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
61585
61586 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61587         and Paul Eggert  <eggert@cs.ucla.edu>
61588
61589         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
61590         * m4/savedir.m4:
61591         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61592         macros into the GNU _D_EXACT_NAMLEN.
61593
61594 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61595
61596         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
61597         around the absolute name, to work around a problem with the HP-UX
61598         11.23 native C compiler, reported by Bob Proulx.
61599
61600 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61601
61602         * doc/maintain.texi, make-stds.texi: Sync from
61603         <http://savannah.gnu.org/projects/gnustandards>.
61604
61605 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61606
61607         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
61608
61609 2006-07-09  Jim Meyering  <jim@meyering.net>
61610
61611         * m4/glob.m4: Remove a doubled word in a comment.
61612
61613 2006-07-09  Jim Meyering  <jim@meyering.net>
61614
61615         * lib/argp-pv.c: Remove a doubled word in a comment.
61616         * lib/check-version.c (check_version): Likewise.
61617         * lib/javacomp.c (compile_java_class): Likewise.
61618
61619 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61620
61621         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
61622         for the benefit of people using Autoconf 2.60.  If you want to
61623         support older Autoconf versions you can copy m4/onceonly_2_57.m4
61624         (or m4/onceonly.m4, if pre-2.57) manually.
61625
61626 2006-07-08  Jim Meyering  <jim@meyering.net>
61627
61628         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
61629         comment.
61630         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
61631         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
61632         comment.
61633
61634 2006-07-08  Jim Meyering  <jim@meyering.net>
61635
61636         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
61637
61638 2006-07-07  Simon Josefsson  <jas@extundo.com>
61639
61640         * tests/test-crc.c: Change expected crc value, the test vector
61641         were probably computed using the old broken crc.c?
61642
61643 2006-07-06  Simon Josefsson  <jas@extundo.com>
61644
61645         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
61646         now the canonical place for the M4 file).
61647
61648         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
61649         from the sys_socket dependency now.
61650
61651         * modules/inet_pton (Files): Ditto.
61652
61653         * modules/inet_ntop (Files): Ditto.
61654
61655 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61656
61657         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
61658         not gl_PREREQ_GETUSERSHELL.
61659
61660 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61661
61662         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
61663         with only one argument, for Autoconf 2.60.
61664         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
61665         expand to nothing, so add a shell command to avoid syntax error.
61666         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61667
61668 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61669
61670         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
61671
61672 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61673
61674         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
61675         no longer needed.  Check for isblank decl.
61676         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
61677         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
61678         of existence.
61679
61680 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61681
61682         * lib/getloadavg.c: Use __VMS, not VMS.
61683         * lib/getopt.c: Likewise.
61684         * lib/getpagesize.h: Likewise.
61685         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
61686         and probably does not work.
61687
61688 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61689
61690         * lib/.cppi-disable: Add wcwidth.
61691         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
61692         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
61693         (ISGRAPH): Remove.  All uses changed to isgraph.
61694         (FOLD) [!defined _LIBC]: Remove special case.
61695         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
61696         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
61697         HAVE_ISBLANK.
61698         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
61699         case.
61700
61701 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61702
61703         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
61704         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
61705         brackets.  Other minor changes to suppress some compiler
61706         warnings.
61707
61708 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61709         and Paul Eggert  <eggert@cs.ucla.edu>
61710
61711         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
61712         of invoking obsolescent AC_HEADER_DIRENT macro.
61713         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61714         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
61715         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61716         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
61717         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
61718         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61719         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
61720         * m4/readdir.m4: Remove; no longer needed.
61721
61722 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61723         and Paul Eggert  <eggert@cs.ucla.edu>
61724
61725         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
61726         Don't worry about this obsolete case any more.
61727         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
61728         directories.
61729         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
61730         worry about this obsolete case any more.
61731         * lib/fts.c: Likewise.
61732         * lib/getcwd.c: Likewise.
61733         * lib/glob.h: Likewise.
61734         * lib/savedir.c: Likewise.
61735
61736 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61737
61738         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
61739         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
61740         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
61741         needed.
61742         All uses removed.
61743         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61744         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61745         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
61746         needed.
61747         * m4/getdate.m4 (gl_GETDATE): Likewise.
61748         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61749         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61750         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61751         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61752         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61753         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61754         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
61755         needed.
61756
61757 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61758
61759         * lib/memcasecmp.c: Include <limits.h>.
61760         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
61761         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
61762         Don't assume isdigit succeeds only on '0' through '9'.
61763
61764 2006-07-05  Eric Blake  <ebb9@byu.net>
61765
61766         * modules/getaddrinfo (Depends-on): Add snprintf.
61767
61768 2006-07-05  Eric Blake  <ebb9@byu.net>
61769
61770         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
61771         to avoid 'header present but could not be compiled' on cygwin.
61772
61773 2006-07-05  Eric Blake  <ebb9@byu.net>
61774
61775         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
61776         missing from netdb.h.
61777         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
61778
61779 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61780
61781         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
61782         no longer needed.
61783         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
61784         * m4/getdate.m4 (gl_GETDATE): Likewise.
61785         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61786         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61787         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61788         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61789         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61790
61791 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61792
61793         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
61794         All uses of is_space replaced by isspace.
61795         * lib/exit.h: Don't talk about STDC_HEADERS.
61796         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
61797         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
61798         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
61799         replaced by isprint etc.
61800         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
61801         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61802         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
61803         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
61804         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
61805         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61806
61807 2006-07-05  Bruno Haible  <bruno@clisp.org>
61808
61809         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
61810         the function exists, before testing against AIX.
61811         Reported by Martin Lambers <marlam@marlam.de>.
61812
61813 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61814
61815         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
61816         From Mark D. Baushke.
61817
61818 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61819
61820         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
61821         to the absolute name, not just one, to bypass Sun C 5.8's
61822         "warning: #include of /usr/include/... may be non-portable".
61823
61824 2006-07-04  Eric Blake  <ebb9@byu.net>
61825
61826         * modules/dirname-tests: New test module.
61827         * tests/test-dirname.c: New file, replacing dirname.c
61828         TEST_DIRNAME section that was recently deleted.
61829
61830 2006-07-04  Bruno Haible  <bruno@clisp.org>
61831
61832         Assume ANSI C header files and <ctype.h> functions.
61833         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
61834         (mbsnwidth): Use isprint, iscntrl instead.
61835
61836 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61837
61838         Merge from coreutils.
61839         * MODULES.html.sh: Add xstrtold.
61840         * modules/xstrtold: New file.
61841         * modules/cycle-check (Files): Add lib/same-inode.h.
61842         * modules/dirname (Files): Add m4/double-slash-root.m4.
61843         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
61844         * modules/mkdir-p (Files): Add lib/same-inode.h.
61845         * modules/same (Files): Add lib/same-inode.h.
61846
61847 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61848
61849         * m4/absolute-header.m4: Renamed from full-header-path.m4.
61850         This is to keep the terminology clean; POSIX talks about
61851         "absolute pathnames", not "full pathnames", but the GNU
61852         Coding Standards say to use "path" for something else;
61853         so use "absolute" to keep both sides happy.
61854         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
61855         Set gl_absolute_header, not gl_full_header_path.
61856         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
61857         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
61858         All uses changed.
61859
61860         Merge from coreutils.
61861
61862         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61863
61864         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
61865         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
61866         want to require the building of c-strtod.o.
61867         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
61868         needs -lm directly.
61869         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
61870
61871         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61872
61873         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
61874         --as-needed option if available.  Problem reported by Albert Chin in
61875         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
61876         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
61877         cc merely issues a bunch of annoying warnings for --as-needed
61878         (this problem was reported by Bob Proulx).  Also, try linking with
61879         -lm to detect a bug in binutils 2.16 (this problem was reported
61880         by Ralf Wildenhues).
61881
61882         2006-06-18  Jim Meyering  <jim@meyering.net>
61883
61884         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
61885         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
61886         macro.
61887         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
61888         also check for glibc-2.4's abort-inducing bug.
61889
61890         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
61891         Low-probability clean-up should be to use rmdir to get rid of
61892         the just-created directory, not unlink.
61893
61894         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
61895         configure fail, and request a bug report to inform us about it.
61896         Add a comment that, barring reports to the contrary, in 2007 we'll
61897         assume ftruncate is universally available.
61898
61899         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61900
61901         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
61902
61903         2006-03-12  Jim Meyering  <jim@meyering.net>
61904
61905         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
61906         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
61907         * m4/same.m4 (gl_SAME): Likewise.
61908         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
61909
61910         2006-03-11  Eric Blake  <ebb9@byu.net>
61911
61912         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
61913         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
61914         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
61915         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
61916
61917 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61918
61919         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
61920         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
61921         reported by Mark D. Baushke, one in
61922         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
61923
61924         Merge from coreutils.
61925
61926         * lib/.cppi-disable: Add stdint_.h.
61927         * lib/.cvsignore: Add stdint.h.
61928
61929         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61930
61931         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
61932         both double and long double versions.
61933         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
61934         * lib/xstrtold.c: New file.
61935         * lib/xstrtod.h (xstrtold): New decl.
61936
61937         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61938
61939         * lib/filemode.c (setst): Remove.
61940         (strmode): Rewrite to avoid setst.  This makes the code shorter,
61941         (arguably) clearer, and the generated code is a bit smaller on my
61942         Debian GNU/Linux stable x86 host.
61943
61944         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61945
61946         * lib/filemode.c: Include "filemode.h" first, to test the interface.
61947         Assume that filemode.h includes sys/types.h and sys/stat.h.
61948         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
61949         (ftypelet): Reorder to put common cases first, for efficiency.
61950         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
61951         to do 'M'.
61952         (strmode): Renamed from mode_string, and now stores 12 bytes instead
61953         of 10, for compatibility with FreeBSD.  All callers changed.
61954         (filemodestring): Now stores 12 bytes instead of 10, and sets file
61955         types that can't be deduced solely from st_mode.  First arg is now a
61956         const pointer.
61957         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
61958         (strmode): Renamed from mode_string.
61959         (filemodestring): New decl.
61960         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
61961         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
61962         needed.
61963         (S_ISPORT, S_ISWHT): New macros, if not already defined.
61964
61965         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
61966
61967         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
61968         fsusage.h now does that.  Include fsusage.h first, to test interface.
61969         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
61970         at most one method (the old code could have generated decls that
61971         didn't conform to C89, not that this was ever exercised).
61972         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
61973
61974         2006-03-19  Jim Meyering  <jim@meyering.net>
61975
61976         Work even in a chroot where d_ino values for entries in "/"
61977         don't match the stat.st_ino values for the same names.
61978         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
61979         number, iterate through all entries again, using lstat instead.
61980         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
61981         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
61982
61983         * lib/getcwd.c (__getcwd): Clarify a comment.
61984         Use memcpy in place of a call to strcpy.
61985
61986         2006-03-12  Jim Meyering  <jim@meyering.net>
61987
61988         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
61989         matches that of the current directory (which we're about to chdir ".."
61990         out of), then save the dev-ino of the parent, instead.
61991
61992         * lib/same-inode.h (SAME_INODE): New file/macro.
61993         * lib/chdir-safer.c (SAME_INODE): Remove definition.
61994         Include "same-inode.h", instead.
61995         * lib/same.c: Likewise.
61996         * lib/cycle-check.h: Include "same-inode.h".
61997         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
61998         * lib/cycle-check.c (SAME_INODE): Remove definition.
61999         * lib/root-dev-ino.h: Include "same-inode.h".
62000
62001         2006-03-11  Eric Blake  <ebb9@byu.net>
62002
62003         * lib/same.c (same_name): s/base_name/last_component/
62004         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
62005         * lib/filenamecat.c (file_name_concat): Likewise.
62006
62007         2006-03-11  Eric Blake  <ebb9@byu.net>,
62008                     Paul Eggert  <eggert@cs.ucla.edu>
62009
62010         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
62011         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
62012         drive prefix.
62013         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
62014         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
62015         (last_component): New method.
62016         * lib/dirname.c (dir_len): Determine when drive letters need a
62017         subsequent slash.  Preserve // when it is special.
62018         (dir_name): Don't append dot when drive letter is absolute.
62019         [TEST_DIRNAME]: Move into a full-blown gnulib test.
62020         * lib/basename.c (base_name): New semantics - malloc the result.
62021         Preserve // when it is special.  Preserve relative files that look
62022         like drive letters.
62023         (base_len): Preserve // when it is special.
62024         (last_component): New method, similar to old base_name semantics.
62025         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
62026         base_name.  Strip redundant slashes from ///.
62027
62028 2006-07-03  Jim Meyering  <jim@meyering.net>
62029
62030         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
62031         macro is used before the first cycle_check call.
62032
62033 2006-07-03  Eric Blake  <ebb9@byu.net>
62034
62035         * modules/dirname (Depends-on): Add xstrndup.
62036
62037 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62038
62039         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
62040         test cases, so that config.log is a bit easier to follow.
62041
62042 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62043
62044         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
62045         both are 64 bits, since this seems to be the tradition, and this
62046         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
62047         we ever run into a host that prefers long long to long in this
62048         case, we'll need another configure-time test.  Problem reported by
62049         Jim Meyering.
62050
62051 2006-07-02  Eric Blake  <ebb9@byu.net>
62052
62053         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
62054
62055 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62056
62057         * modules/inttypes (Depends-on): No longer depends on stdint.
62058         * modules/stdint (Description): Say more about assumptions.
62059         Say that the fast types might differ.  Say macros are used.
62060         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
62061         (Makefile.am): Revise list of substituted symbols to match
62062         new stdint.m4.
62063         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
62064         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
62065         * tests/test-stdint.c (verify_same_types)
62066         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
62067         the code conforms to C99/C89.
62068         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
62069         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
62070
62071 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62072
62073         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
62074         but fix a bug, by requiring at least 64 bits.
62075         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62076         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
62077         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
62078         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62079
62080         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
62081         changes.  Make 2.59 a prerequisite.  Check and substitute for
62082         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
62083         inttypes.h.  Do not use special include files; just use the
62084         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
62085         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
62086         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
62087         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
62088         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
62089         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
62090         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
62091         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
62092         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
62093         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
62094         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
62095         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
62096         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
62097         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
62098         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
62099         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
62100         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
62101         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
62102         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
62103         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
62104         WINT_MAX.  Check for C99 conformance more strictly, by detecting
62105         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
62106         not check for things that C99 does not require, e.g., int8_t.  If
62107         a test isn't needed unless <stdint.h> isn't working, and is
62108         unlikely to be needed for any other reason, then don't do it
62109         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
62110         size_t, since we assume C89 freestanding at least.  Do not check
62111         for sig_atomic_t, wchar_t, or wint_t, since the code now does
62112         the right thing even if the types are not defined.  Instead use:
62113         (gl_STDINT_TYPE_PROPERTIES): New macro.
62114         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
62115         testing whether <sys/types.h> clashes, as Autoconf does this for
62116         us now.  All uses removed.
62117         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
62118         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
62119         (gl_CHECK_TYPE_SAME):
62120         Remove; no longer needed.
62121         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
62122         exists, since we'll return 0 anyway in that case.
62123         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
62124
62125 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62126
62127         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
62128         possible collision with system files.
62129         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
62130         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
62131         WCHAR_MIN and WCHAR_MAX in this case.
62132         (<stddef.h>): Do not include; no longer needed.
62133         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
62134         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
62135         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
62136         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
62137         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
62138         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
62139         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
62140         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
62141         !defined(__c99))]: Include in this case too, since it's harmless
62142         now.
62143         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
62144         dangerous to do so.
62145         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
62146         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
62147         (_STDINT_MIN, _STDINT_MAX): New macros.
62148         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
62149         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
62150         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
62151         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
62152         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
62153         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
62154         macros, not typedefs; this simplifies things quite a bit.
62155         Use long int for all types narrower than int64_t.
62156         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
62157         Define in terms of long long int or int64_t or long int,
62158         not int64_t or int32_t.  This saves some compile-time testing.
62159         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
62160         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
62161         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
62162         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
62163         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
62164         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
62165         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
62166         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
62167         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
62168         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
62169         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62170         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62171         undef any previous version and define our own version, for
62172         simplicity and consistency with the new macros for types.
62173         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62174         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62175         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
62176         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
62177         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
62178         @WINT_T_SUFFIX@ to keep things simple here.
62179         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
62180         Simplify by assuming typical 8/16/32/64 host, since we're
62181         already doing that elsewhere anyway.
62182         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
62183         and assume long long int is 64 bits if available.  This
62184         speeds up 'configure'.
62185
62186 2006-07-01  Eric Blake  <ebb9@byu.net>
62187
62188         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
62189         Reported by Andreas Buening.
62190
62191 2006-07-01  Eric Blake  <ebb9@byu.net>
62192
62193         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62194
62195 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62196
62197         * lib/getaddrinfo.c: fixed typo
62198
62199 2006-06-29  Jim Meyering  <jim@meyering.net>
62200
62201         * modules/strftime (Maintainer): Add my name, since with the
62202         FPRINTFTIME changes strftime.c has forked from glibc.
62203
62204 2006-06-29  Eric Blake  <ebb9@byu.net>
62205
62206         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62207
62208 2006-06-29  Eric Blake  <ebb9@byu.net>
62209
62210         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62211
62212 2006-06-29  Eric Blake  <ebb9@byu.net>
62213
62214         * lib/stat_.h: New file.
62215
62216 2006-06-29  Eric Blake  <ebb9@byu.net>
62217
62218         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62219         unused static function.
62220
62221 2006-06-29  Eric Blake  <ebb9@byu.net>
62222
62223         * doc/functions.texi (Function Portability): Document missing lstat
62224         on mingw.
62225
62226 2006-06-29  Eric Blake  <ebb9@byu.net>
62227
62228         * MODULES.html.sh: Add sys_stat.
62229         * modules/sys_stat: New module.
62230         * modules/mkstemp (Depends-on): Add sys_stat.
62231
62232 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62233
62234         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62235
62236 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62237
62238         * m4/c-bs-a.m4: Removed.
62239
62240 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62241
62242         * lib/strftime.c: Assume strftime() exists.
62243
62244 2006-06-29  Derek Price  <derek@ximbiot.com>
62245
62246         * modules/c-bs-a: Removed - \a is C89.
62247         * MODULES.html.sh: Remove c-bs-a.
62248
62249 2006-06-29  Bruno Haible  <bruno@clisp.org>
62250
62251         * modules/wcwidth (License): Change to LGPL.
62252
62253 2006-06-28  Simon Josefsson  <jas@extundo.com>
62254
62255         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62256         on _WIN32.
62257
62258         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62259         getnameinfo.
62260
62261 2006-06-28  Simon Josefsson  <jas@extundo.com>
62262
62263         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
62264
62265 2006-06-28  Simon Josefsson  <jas@extundo.com>
62266
62267         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
62268         functions there.  It will succeed on Windows XP, but on Windows
62269         2000 and (presumably) earlier, it will fail, and use the internal
62270         re-implementation.
62271         (use_win32_p): New function.
62272         (getaddrinfo): Use strtoul on servname, to support numeric ports.
62273         Support AI_NUMERICSERV to disable getservbyname.
62274         (getnameinfo): New function, only supports
62275         NI_NUMERICHOST|NI_NUMERICSERV for now.
62276
62277         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
62278         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
62279         getnameinfo.
62280
62281 2006-06-28  Eric Blake  <ebb9@byu.net>
62282
62283         * modules/wcwidth: New file.
62284         * modules/mbchar (Depends-on): Add wcwidth.
62285         * modules/mbswidth (Depends-on): Add wcwidth.
62286         * MODULES.html.sh: Add wcwidth.
62287
62288 2006-06-28  Eric Blake  <ebb9@byu.net>
62289
62290         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
62291         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
62292
62293 2006-06-28  Eric Blake  <ebb9@byu.net>
62294
62295         * lib/xvasprintf.h: Fix comments.
62296
62297 2006-06-28  Eric Blake  <ebb9@byu.net>
62298
62299         * lib/mbchar.h (wcwidth): Include wcwidth.h.
62300         * lib/mbswidth.c (wcwidth): Move from here...
62301         * lib/wcwidth.h: ...to this new file.
62302
62303 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62304
62305         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
62306
62307         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
62308         it's obsolete.
62309         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
62310
62311 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62312
62313         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
62314         Autoconf 2.60 says this stuff was obsolete.
62315
62316 2006-06-28  Bruno Haible  <bruno@clisp.org>
62317
62318         * modules/wcwidth (Files): Add m4/wchar_t.m4.
62319
62320 2006-06-28  Bruno Haible  <bruno@clisp.org>
62321
62322         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62323         gt_TYPE_WCHAR_T.
62324
62325 2006-06-28  Bruno Haible  <bruno@clisp.org>
62326
62327         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62328         declaration for wcwidth.
62329         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62330
62331 2006-06-28  Bruno Haible  <bruno@clisp.org>
62332
62333         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62334         (mkdir): Define using _mkdir.
62335
62336 2006-06-28  Bruno Haible  <bruno@clisp.org>
62337
62338         * lib/getaddrinfo.h: Fix POSIX URL.
62339         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62340         _WIN32.
62341         (use_win32_p): Make static.
62342         (getaddrinfo): Reject service name if it is empty or does not consist
62343         solely of decimal digits, or if its value is > 65535.
62344         (getnameinfo): Remove useless casts.
62345
62346 2006-06-27  Simon Josefsson  <jas@extundo.com>
62347
62348         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62349         Eggert and Martin Lambers.
62350
62351 2006-06-27  Simon Josefsson  <jas@extundo.com>
62352
62353         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62354         Eggert and Martin Lambers.
62355
62356 2006-06-27  Bruno Haible  <bruno@clisp.org>
62357
62358         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62359         result to 0, not to empty.
62360         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62361
62362 2006-06-27  Bruno Haible  <bruno@clisp.org>
62363
62364         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62365
62366 2006-06-26  Simon Josefsson  <jas@extundo.com>
62367
62368         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62369         present.
62370
62371 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62372
62373         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62374         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62375         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62376
62377 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62378
62379         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62380
62381 2006-06-26  Bruno Haible  <bruno@clisp.org>
62382
62383         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62384
62385 2006-06-26  Bruno Haible  <bruno@clisp.org>
62386
62387         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62388
62389 2006-06-26  Bruno Haible  <bruno@clisp.org>
62390
62391         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62392         SGI C compiler in pre-C99 mode.
62393         Suggested by Mark D. Baushke and Larry Jones.
62394
62395 2006-06-26  Bruno Haible  <bruno@clisp.org>
62396
62397         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62398         WCHAR_MAX.
62399         Reported by Mark D. Baushke and Larry Jones.
62400
62401 2006-06-26  Bruno Haible  <bruno@clisp.org>
62402
62403         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62404         in pre-C99 mode.
62405         Suggested by Mark D. Baushke and Larry Jones.
62406
62407 2006-06-23  Simon Josefsson  <jas@extundo.com>
62408             Bruno Haible  <bruno@clisp.org>
62409
62410         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62411         Emit mostlyclean-local rule.
62412         (func_emit_tests_Makefile_am): Likewise.
62413         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62414
62415 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62416
62417         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62418
62419 2006-06-23  Bruno Haible  <bruno@clisp.org>
62420
62421         * tests/test-stdint.c: Update to match ISO C 99 Technical
62422         Corrigendum 1.
62423
62424 2006-06-23  Bruno Haible  <bruno@clisp.org>
62425
62426         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62427
62428 2006-06-23  Bruno Haible  <bruno@clisp.org>
62429
62430         * lib/stdint_.h: Treat IRIX like OpenBSD.
62431
62432 2006-06-23  Bruno Haible  <bruno@clisp.org>
62433
62434         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62435         ISO C 99 Technical Corrigendum 1.
62436
62437 2006-06-22  Simon Josefsson  <jas@extundo.com>
62438
62439         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62440         MinGW.
62441
62442 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62443
62444         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62445         needed.  Some compiler complained about some of them.  Problem reported
62446         by Larry Jones in
62447         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62448
62449 2006-06-21  Simon Josefsson  <jas@extundo.com>
62450
62451         * tests/test-getaddrinfo.c: New file.
62452
62453         * modules/getaddrinfo-tests: New file.
62454
62455         * MODULES.html.sh: Add inet_pton.
62456
62457         * modules/inet_pton: New file.
62458
62459 2006-06-21  Simon Josefsson  <jas@extundo.com>
62460
62461         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62462         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62463         of using the (limited) gnulib implementation on Windows XP.
62464
62465         * m4/inet_pton.m4: New file.
62466
62467 2006-06-21  Simon Josefsson  <jas@extundo.com>
62468
62469         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62470         variable.
62471
62472         * lib/socket_.h: Don't define WINVER.
62473
62474         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
62475         slightly modified to work in gnulib.
62476
62477 2006-06-21  Simon Josefsson  <jas@extundo.com>
62478
62479         * doc/gnulib.texi (Windows sockets): Add.
62480
62481 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62482
62483         * lib/read-file.c (fread_file): Start with buffer allocation of
62484         0 bytes rather than 1 byte; this simplifies the code.
62485         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
62486         code to free buffer and save/restore errno.
62487         (internal_read_file): Remove unused local.
62488
62489 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62490
62491         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
62492         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
62493         Problem reported by Denis Excoffier in
62494         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
62495
62496 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62497
62498         * modules/sys_socket, modules/socklen: Include sys/types since
62499         FreeBSD 4.x's sys/socket.h needs it.
62500
62501 2006-06-19  Simon Josefsson  <jas@extundo.com>
62502
62503         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
62504
62505 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62506
62507         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
62508
62509 2006-06-19  Bruno Haible  <bruno@clisp.org>
62510
62511         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
62512         and FULL_PATH_INTTYPES_H in angle brackets.
62513         Reported by Mark D. Baushke <mdb@gnu.org>.
62514
62515 2006-06-17  Eric Blake  <ebb9@byu.net>
62516
62517         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
62518         errno.
62519
62520 2006-06-17  Bruno Haible  <bruno@clisp.org>
62521
62522         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
62523         <sys/inttypes.h>.
62524
62525 2006-06-17  Bruno Haible  <bruno@clisp.org>
62526
62527         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
62528         whether errno is declared. Assume <errno.h> declares errno.
62529
62530 2006-06-17  Bruno Haible  <bruno@clisp.org>
62531
62532         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
62533
62534 2006-06-17  Bruno Haible  <bruno@clisp.org>
62535
62536         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
62537         problem on Solaris 2.5.1.
62538
62539 2006-06-16  Eric Blake  <ebb9@byu.net>
62540
62541         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
62542         * lib/unicodeio.c [!defined errno]: Likewise.
62543         * lib/strtol.c [!defined errno]: Likewise.
62544         * lib/strtod.c [!defined errno]: Likewise.
62545
62546 2006-06-15  Eric Blake  <ebb9@byu.net>
62547
62548         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
62549
62550 2006-06-15  Eric Blake  <ebb9@byu.net>
62551
62552         * config/srclist.txt (ssize_t.m4): Lose sync.
62553
62554 2006-06-15  Bruno Haible  <bruno@clisp.org>
62555
62556         * modules/stdint (Files): Include m4/full-header-path.m4,
62557         m4/size_max.m4, m4/wchar_t.m4.
62558         (Makefile.am): Many more substitutions.
62559         * modules/stdint-tests: New file.
62560         * tests/test-stdint.c: New file.
62561
62562 2006-06-15  Bruno Haible  <bruno@clisp.org>
62563
62564         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
62565         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
62566         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
62567         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
62568         gl_CHECK_TYPE_SAME): New macros.
62569
62570 2006-06-15  Bruno Haible  <bruno@clisp.org>
62571
62572         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
62573
62574 2006-06-15  Bruno Haible  <bruno@clisp.org>
62575
62576         * lib/stdint_.h: Rewritten to be fully auto-configured.
62577         Fixes bug on HP-UX/IA64.
62578
62579 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
62580
62581         * lib/getdate.y (__attribute__): Don't define if already defined.
62582         Problem reported by Larry Jones.
62583         * lib/utimens.c (__attribute__): Likewise.
62584
62585 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
62586
62587         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
62588         reported by Andreas Schwab.
62589
62590 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62591             Bruno Haible  <bruno@clisp.org>
62592
62593         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
62594         check for the declaration of strnlen and a run test that exposes the
62595         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
62596         rpl_strndup.
62597
62598 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62599             Bruno Haible  <bruno@clisp.org>
62600
62601         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
62602
62603 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62604
62605         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
62606         compile test, for Tru64 4.0D.
62607
62608 2006-05-28  Karl Berry  <karl@gnu.org>
62609
62610         * config/srclist.txt (printf-args.c): lose sync.
62611
62612 2006-05-26  Martin Lambers  <marlam@marlam.de>
62613
62614         * lib/getpass.c: Updates the test for the native W32 API, and adds
62615         missing includes, thus fixing compilation warnings.
62616
62617 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62618
62619         * lib/exclude.c (exclude_fnmatch): New function.
62620         (excluded_file_name): Call exclude_fnmatch.
62621         * lib/exclude.h (excluded_file_name): New prototype
62622
62623 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
62624
62625         * lib/tempname.c (small_open, large_open): New macros.
62626         (__open, __open64) [!_LIBC]: Remove.
62627         (__gen_tempname): Use small_open and large_open instead of __open
62628         and __open64.  This fixes a portability bug on HP-UX 11.11i
62629         reported by Simon Wing-Tang in
62630         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
62631
62632 2006-05-24  Bruno Haible  <bruno@clisp.org>
62633
62634         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
62635         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
62636         Reported by Thorsten Maerz <torte@netztorte.de> via
62637         Aaron Stone <aaron@serendipity.cx>.
62638
62639 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62640
62641         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
62642         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
62643         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
62644         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
62645         not really conditional on the cache.
62646         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
62647
62648 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62649
62650         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
62651         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
62652         (my_usleep): Don't mishandle maximum value.
62653
62654 2006-05-19  Jim Meyering  <jim@meyering.net>
62655
62656         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
62657
62658 2006-05-17  Bruno Haible  <bruno@clisp.org>
62659
62660         Cygwin portability.
62661         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
62662
62663 2006-05-17  Bruno Haible  <bruno@clisp.org>
62664
62665         * lib/stdint_.h: Fix recognition of Cygwin.
62666
62667 2006-05-15  Bruno Haible  <bruno@clisp.org>
62668
62669         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
62670         on libtool patch by Ralf Wildenhues.
62671
62672 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62673
62674         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
62675         test for C99 conformance; (bool) 0.5 is an integer constant
62676         expression, but (bool) -0.5 is not.  Problem reported by Fedor
62677         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
62678
62679 2006-05-11  Simon Josefsson  <jas@extundo.com>
62680
62681         * m4/xvasprintf.m4: Fix obvious typo.
62682
62683 2006-05-11  Jim Meyering  <jim@meyering.net>
62684
62685         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
62686         James Lemley.
62687
62688 2006-05-10  Simon Josefsson  <jas@extundo.com>
62689
62690         * lib/md4.c: Typo fix, update copyright years.
62691         (K1, K2): Don't use L because it turn computations into 64-bit on
62692         64-bit platforms.
62693
62694 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
62695
62696         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
62697         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
62698         unwanted sign propagation, e.g., on hosts with 64-bit int.
62699         There still are some problems with reeelly weird theoretical hosts
62700         (e.g., 33-bit int) but it's not worth worrying about now.
62701         * lib/sha1.c (rol): Likewise.
62702         (K1, K2, K3, K4): Remove unnecessary L suffix.
62703
62704 2006-05-10  Bruno Haible  <bruno@clisp.org>
62705
62706         * lib/des.c: Cast to avoid warnings.
62707
62708 2006-05-09  Bruno Haible  <bruno@clisp.org>
62709
62710         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
62711         (Depends-on): Depend also on xsize, stdarg.
62712         (configure.ac): Add gl_XVASPRINTF.
62713
62714 2006-05-09  Bruno Haible  <bruno@clisp.org>
62715
62716         * m4/xvasprintf.m4: New file.
62717
62718 2006-05-09  Bruno Haible  <bruno@clisp.org>
62719
62720         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
62721         (EOVERFLOW): Define fallback value.
62722         (xstrcat): New function.
62723         (xvasprintf): Recognize the special case of a string concatenation.
62724
62725 2006-05-08  Eric Blake  <ebb9@byu.net>
62726
62727         * gnulib-tool (func_version): Base copyright year on CVS date.
62728         (func_emit_copyright_notice): New function.
62729         (func_emit_lib_Makefile_am): Use it.
62730         (func_emit_tests_Makefile_am): Likewise.
62731         (func_import): Likewise.
62732
62733 2006-05-08  Bruno Haible  <bruno@clisp.org>
62734
62735         * modules/stdarg: New file.
62736         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
62737
62738 2006-05-08  Bruno Haible  <bruno@clisp.org>
62739
62740         * m4/stdarg.m4: New file, from GNU gettext.
62741
62742 2006-05-08  Bruno Haible  <bruno@clisp.org>
62743
62744         * config/srclist.txt (build-aux/config.rpath): different from latest
62745         release.
62746
62747 2006-05-08  Bruno Haible  <bruno@clisp.org>
62748
62749         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
62750
62751 2006-05-05  Jim Meyering  <jim@meyering.net>
62752
62753         * m4/warning.m4: New file, derived from bison's file by the same name.
62754
62755 2006-05-03  Bruno Haible  <bruno@clisp.org>
62756
62757         * lib/stdint_.h: Shorter URL.
62758         * lib/inttypes.h: Likewise.
62759
62760 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62761
62762         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
62763
62764 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62765
62766         * lib/verify.h: Document the internals better.  Most of this change
62767         was written by Bruno Haible.
62768
62769 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62770
62771         * doc/verify.texi: New file, partly based on a proposal by
62772         Bruno Haible.
62773
62774 2006-05-02  Bruno Haible  <bruno@clisp.org>
62775
62776         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
62777         test from here...
62778         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
62779
62780 2006-04-29  Bruno Haible  <bruno@clisp.org>
62781
62782         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
62783         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
62784
62785 2006-04-29  Bruno Haible  <bruno@clisp.org>
62786
62787         * gnulib-tool: Make --update option actually work.
62788
62789 2006-04-29  Bruno Haible  <bruno@clisp.org>
62790
62791         * doc/gcd.texi: New file.
62792         * doc/gnulib.texi: Include it.
62793
62794 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
62795
62796         * lib/getdate.y (get_date): When adding relative date, start with the
62797         initial time, not with the result of the first mktime call.
62798
62799 2006-04-25  Bruno Haible  <bruno@clisp.org>
62800
62801         * gnulib-tool (func_import): Output the include directives in three
62802         blocks, sorted separately.
62803         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62804
62805 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62806
62807         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
62808         to define main with arguments, for C++.  Reported by Eric Blake.
62809         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
62810         Prefer 'int main ()' to 'int main (void)', for C++.
62811         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62812         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
62813         for 'main', for C99 and C++.
62814
62815 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62816
62817         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
62818         Don't assume that exit status -1 is valid.
62819         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62820         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62821         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62822         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
62823         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
62824         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
62825         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
62826         functions can be used without declaring them, or that you can
62827         exit with status -1.
62828         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62829
62830 2006-04-24  Karl Berry  <karl@gnu.org>
62831
62832         * config/srclist.txt (longdouble.m4): sync lost.
62833
62834 2006-04-24  Eric Blake  <ebb9@byu.net>
62835
62836         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
62837
62838 2006-04-24  Bruno Haible  <bruno@clisp.org>
62839
62840         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
62841         poll() implementation in AIX.
62842         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62843
62844 2006-04-24  Bruno Haible  <bruno@clisp.org>
62845
62846         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
62847         assigned exactly once.
62848
62849 2006-04-23  Claudio Fontana  <claudio@gnu.org>
62850             Bruno Haible  <bruno@clisp.org>
62851
62852         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
62853         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
62854         for AM_CPPFLAGS.
62855
62856 2006-04-23  Bruno Haible  <bruno@clisp.org>
62857
62858         * modules/copy-file: Depend on unistd.
62859         * modules/execute: Likewise.
62860         * modules/fatal-signal: Likewise.
62861         * modules/findprog: Likewise.
62862         * modules/mkdtemp : Likewise.
62863         * modules/pipe: Likewise.
62864         * modules/wait-process: Likewise.
62865
62866 2006-04-23  Bruno Haible  <bruno@clisp.org>
62867
62868         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
62869         condition was already detected.
62870         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62871
62872 2006-04-23  Bruno Haible  <bruno@clisp.org>
62873
62874         * lib/copy-file.c: Include <unistd.h> unconditionally.
62875         * lib/execute.c: Likewise.
62876         * lib/fatal-signal.c: Likewise.
62877         * lib/findprog.c: Likewise.
62878         * lib/mkdtemp.c: Likewise.
62879         * lib/pipe.h: Likewise.
62880         * lib/pipe.c: Likewise.
62881         * lib/wait-process.h: Likewise.
62882
62883 2006-04-23  Bruno Haible  <bruno@clisp.org>
62884
62885         * gnulib-tool (func_usage): Fix --import description. Document
62886         --update.
62887         (func_import): Create temporary file in a temporary directory, if
62888         --dry-run is specified. Silence errors from 'grep' when there are no
62889         m4 files in $m4dir.
62890         (func_create_testdir): Silence errors from 'grep' when there are no
62891         m4 files in $m4dir.
62892         Reported by Karl Berry <karl@freefriends.org>.
62893
62894 2006-04-20  Bruno Haible  <bruno@clisp.org>
62895
62896         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
62897         one argument, so that the code will be portable to Autoconf 2.60.
62898         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
62899         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62900         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
62901
62902 2006-04-19  Derek Price  <derek@ximbiot.com>
62903             Eric Blake  <ebb9@byu.net>
62904
62905         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
62906         rather than "/full/path.h".  Update comment to match.  Shorten &
62907         generalize m4_translit call via AS_TR_CPP.
62908
62909 2006-04-19  Derek Price  <derek@ximbiot.com>
62910             Eric Blake  <ebb9@byu.net>
62911
62912         * lib/inttypes.h: Correct grammar in comment.
62913
62914 2006-04-18  Derek Price  <derek@ximbiot.com>
62915             Paul Eggert  <eggert@cs.ucla.edu>
62916
62917         * modules/inttypes: New file.
62918         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
62919
62920 2006-04-18  Derek Price  <derek@ximbiot.com>
62921             Paul Eggert  <eggert@cs.ucla.edu>
62922
62923         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
62924         New files.
62925
62926 2006-04-18  Derek Price  <derek@ximbiot.com>
62927             Paul Eggert  <eggert@cs.ucla.edu>
62928
62929         * lib/inttypes.h: New file.
62930         * lib/strtoimax.c: Assume <inttypes.h>.
62931
62932 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
62933
62934         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
62935         isn't mounted.  Problem reported by Kir Kolyshkin.
62936
62937 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62938
62939         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
62940         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
62941         Derek R. Price.
62942         * lib/regex.h (RE_DUP_MAX): Update comment to match current
62943         implementation.
62944
62945 2006-04-12  Eric Blake  <ebb9@byu.net>
62946
62947         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
62948         is now done automatically by the corresponding Autoconf macro.
62949
62950 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
62951
62952         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
62953         time_r.h.
62954
62955 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62956
62957         Merge regex changes from libc, removing some of our
62958         POSIX-conformance changes that were rejected and redoing them in a
62959         less-intrusive way.
62960
62961         * lib/regcomp.c (re_compile_internal, init_dfa):
62962         Length arg is now size_t, not Idx.  All uses changed.
62963         (peek_token): Forward decl now says internal_function.
62964         (__re_error_msgid, __re_error_msgid_idx):
62965         Now static rather than extern with attribute_hidden.
62966         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
62967         For some reason libc prefers K&R style defns for external functions.
62968         (regerror) [!defined _LIBC]: Likewise.
62969         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
62970         (seek_collating_symbol_entry, lookup_collation_sequence_value):
62971         (build_range_exp, build_collating_symbol):
62972         Use K&R-style defn.
62973         (re_compile_fastmap): Use '\0' to memset, not 0.
62974         (utf8_sb_map): Make the calculations more obvious.
62975         (init_dfa, parse_bracket_exp, build_charclass_op):
62976         Call calloc and cast result, as glibc does.
62977         (init_word_char, fetch_token, peek_token, peek_token_bracket):
62978         (build_range_exp, build_collating_symbol):
62979         Now internal functions.
62980
62981         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
62982
62983         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
62984         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
62985         Don't depend on VMS; depend on __VMS instead, for POSIX
62986         namespace cleanness.
62987         (regoff_t): Define to ssize_t, not long int.
62988
62989         Remove the REG_ macros named below.  Instead, make the old names
62990         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
62991         __USE_GNU_REGEX.
62992         (REG_BACKSLASH_ESCAPE_IN_LISTS):
62993         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
62994         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
62995         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
62996         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
62997         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
62998         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
62999         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
63000         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
63001         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
63002         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
63003         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
63004         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
63005         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
63006         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
63007         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
63008         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
63009         (REG_NREGS):
63010         Remove.  All uses replaced by the old RE_* names.
63011         (RE_BACKSLASH_ESCAPE_IN_LISTS):
63012         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
63013         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
63014         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
63015         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
63016         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
63017         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
63018         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
63019         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
63020         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
63021         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
63022         Don't bother having these macros be independent of each others'
63023         values, since they no longer exist in the POSIX name space.
63024
63025         Rename the following member names back to their old names,
63026         unless !__USE_GNU_REGEX.  All uses changed back.
63027         (buffer): Renamed from re_buffer.
63028         (allocated): Renamed from re_allocated.
63029         (used): Renamed from re_used.
63030         (syntax): Renamed from re_syntax.
63031         (fastmap): Renamed from re_fastmap.
63032         (translate): Renamed from re_translate.
63033         (can_be_null): Renamed from re_can_be_null.
63034         (regs_allocated): Renamed from re_regs_allocated.
63035         (fastmap_accurate): Renamed from re_fastmap_accurate.
63036         (no_sub): Renamed from re_no_sub.
63037         (not_bol): Renamed from re_not_bol.
63038         (not_eol): Renamed from re_not_eol.
63039         (newline_anchor): Renamed from re_newline_anchor.
63040         (num_regs): Renamed from rm_num_regs.
63041         (start): Renamed from rm_start.
63042         (end): Renamed from rm_end.
63043
63044         (free_state): Move up a bit.
63045
63046         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
63047         #define to be empty.
63048         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
63049         when that is what is intended.
63050         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
63051         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
63052         (MAX): New macro.
63053         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
63054         All uses changed back to re_malloc, etc.  It's now the caller's
63055         responsibility to check for overflow; all callers changed.
63056         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
63057         (re_x2nrealloc): Remove.
63058         (free_state): Remove decl.
63059
63060         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
63061         (re_set_registers, re_exec):
63062         Use K&R-style defn.
63063
63064         2006-01-31  Roland McGrath  <roland@redhat.com>
63065
63066         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
63067         Reported by Mike Frysinger <vapier@gentoo.org>.
63068
63069         2006-01-15  Andreas Jaeger  <aj@suse.de>
63070
63071         [BZ #1950]
63072         * lib/regex_internal.c (re_string_reconstruct): Adjust for
63073         build_wcs_upper_buffer change.
63074         (build_wcs_upper_buffer): Change return type.
63075
63076         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
63077
63078         * lib/regex_internal.h: Include <stdint.h> if available.
63079
63080         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
63081
63082         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
63083
63084         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63085
63086         * lib/regcomp.c: Adjust for changed secondary hash function.
63087
63088         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
63089
63090         * lib/regex.h: Pretty printing.
63091         Clean up namespace a bit.
63092
63093         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
63094
63095         * lib/regexec.c (update_cur_sifted_state, check_arrival,
63096         check_arrival_add_next_nodes): Avoid using uninitialized variable.
63097
63098         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63099                     Ulrich Drepper  <drepper@redhat.com>
63100
63101         [BZ #1302]
63102         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
63103         changed.
63104         (bitset_word_t): Renamed from bitset_word.  All uses changed.
63105
63106         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
63107
63108         [BZ #281]
63109         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
63110         * lib/regcomp.c: Remove unnecessary uses of
63111         unsigned RE_TRANSLATE_TYPE.
63112         * lib/regex_internal.h: Likewise.
63113         * lib/regex_internal.c: Likewise.
63114         * lib/regexec.c: Likewise.
63115         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
63116
63117         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
63118
63119         * lib/regexec.c (find_recover_state): Remove unnecessary
63120         initialization.
63121         (transit_state_bkref): Make DFA a const pointer.
63122         (get_subexp): Likewise.
63123         (check_arrival): Likewise.
63124         (update_cur_sifted_state): Likewise.
63125         (re_search_internal): Likewise.
63126         (prune_impossible_nodes): Likewise.
63127         (acquire_init_state_context): Likewise.
63128         (proceed_next_node): Likewise.
63129         (set_regs): Likewise.
63130         (free_fail_stack_return): Likewise.
63131         (check_arrival_expand_ecl): Mark DFA parameter as const.
63132         (check_arrival_expand_ecl_sub): Likewise.
63133         (check_subexp_limits): Likewise.
63134         (sub_epsilon_src_nodes):  Likewise.
63135         (add_epsilon_src_nodes):  Likewise.
63136         (merge_state_array): Likewise.
63137         (update_regs): Likewise.
63138         (build_trtable): Likewise.
63139         (sift_states_backward): Mark MCTX parameter as const.
63140         (build_sifted_states): Likewise.
63141         (update_cur_sifted_state): Likewise.
63142         (sift_states_mkref): Likewise.
63143         (check_arrival_expand_ecl): Mark eclosure as const.
63144         (check_dst_limits_calc_pos_1): Likewise.
63145         * lib/regex_internal.h (re_match_context_t): Make dfa a const
63146         pointer.
63147
63148         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
63149
63150         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
63151         (transit_state_sb): Likewise.
63152         (transit_state_mb): Likewise.
63153         (sift_states_iter_mb): Likewise.
63154         (check_arrival_add_next_nodes): Likewise.
63155         (check_node_accept_bytes): Change first parameter to pointer-to-const.
63156         [_LIBC] (re_search_2_stub): Use mempcpy.
63157
63158         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
63159         mbrtowc for very simple UTF-8 case.
63160
63161         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
63162         a pointer-to-const.
63163         (re_acquire_state_context): Likewise.
63164         * lib/regex_internal.h: Adjust prototypes.
63165
63166         * lib/regex.c: Prevent using C++ compilers.
63167
63168         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
63169         (re_acquire_state_context): Likewise.
63170
63171 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63172
63173         * modules/regex (Depends-on): Add ssize_t.
63174
63175 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63176
63177         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
63178         translation table.
63179
63180 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63181
63182         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
63183
63184 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
63185             Bruno Haible  <bruno@clisp.org>
63186
63187         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
63188         <sys/types.h> and <inttypes.h>.
63189
63190 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63191
63192         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63193         `__error_t_defined', so argp.h will not typedef the former.
63194
63195 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63196
63197         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63198         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63199         glibc names.  Even if glibc is changed to conform to POSIX, the
63200         traditional names will be available anyway, since regex depends on
63201         the extensions module.  Also, fix a longstanding typo in the
63202         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63203         reported by Emanuele Giaquinta.  Also, change sense of cached
63204         variable, so that the message makes sense.
63205
63206 2006-03-24  Simon Josefsson  <jas@extundo.com>
63207
63208         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63209         including some doc fixes.
63210         (base64_encode_alloc): Fix +1 bug on allocation failures.
63211
63212 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63213
63214         * lib/base64.c (base64_encode): Do not read past end of array with
63215         unsanitized input on systems with CHAR_BIT > 8.
63216
63217 2006-03-24  Eric Blake  <ebb9@byu.net>
63218
63219         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63220
63221 2006-03-22  Karl Berry  <karl@gnu.org>
63222
63223         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63224         * config/srclistvars.sh (COREUTILS): new var.
63225
63226 2006-03-17  Jim Meyering  <jim@meyering.net>
63227
63228         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63229         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63230
63231 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63232
63233         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63234         no longer needs it.  Instead, check that regoff_t is as least
63235         as wide as ptrdiff_t.
63236
63237         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63238         so that our regex.h stays compatible with the installed regex.
63239         This is helpful for installers who configure --without-included-regex.
63240         Problem reported by Emanuele Giaquinta.
63241
63242 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63243
63244         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63245         Typedef to long int, not to off_, as POSIX will likely change
63246         in that direction.
63247
63248 2006-03-15  Eric Blake  <ebb9@byu.net>
63249
63250         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63251
63252 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63253
63254         * lib/argp-help.c (validate_uparams): Fix typo
63255         * lib/argp-parse.c (argp_default_options): Consistently begin help
63256         messages with a lowercase letter.
63257
63258 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63259
63260         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63261         overrun buffers and shouldn't be used (much as gets shouldn't be
63262         used).
63263         * lib/time_r.c (asctime_r, ctime_r): Likewise.
63264
63265 2006-03-08  Simon Josefsson  <jas@extundo.com>
63266
63267         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
63268         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63269
63270 2006-03-08  Simon Josefsson  <jas@extundo.com>
63271
63272         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
63273         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63274
63275 2006-03-08  Simon Josefsson  <jas@extundo.com>
63276
63277         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
63278         signal that configure disabled the device.
63279
63280 2006-03-08  Simon Josefsson  <jas@extundo.com>
63281
63282         * build-aux/maint.mk: Fix refresh-po, to handle no translated
63283         languages.
63284
63285 2006-03-07  Simon Josefsson  <jas@extundo.com>
63286
63287         * modules/getopt (Depends-on): Add unistd.
63288
63289         * modules/unistd: New file.
63290
63291 2006-03-07  Simon Josefsson  <jas@extundo.com>
63292
63293         * modules/gc-random: New file.
63294
63295 2006-03-07  Simon Josefsson  <jas@extundo.com>
63296
63297         * m4/unistd_h.m4: New file.
63298
63299 2006-03-07  Simon Josefsson  <jas@extundo.com>
63300
63301         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
63302         test to be side-effect free by storing the result in the cache
63303         variable gl_cv_lib_readline, and moving the assignment of
63304         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
63305         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63306
63307 2006-03-07  Simon Josefsson  <jas@extundo.com>
63308
63309         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
63310         error on missing devices (the functions will return an error).
63311
63312         * m4/gc.m4: Move random stuff to gc-random.m4
63313
63314 2006-03-07  Simon Josefsson  <jas@extundo.com>
63315
63316         * lib/unistd_.h: New file.
63317
63318 2006-03-07  Simon Josefsson  <jas@extundo.com>
63319
63320         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63321
63322 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63323
63324         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63325         Problem reported by Juan Manuel Guerrero.
63326
63327 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63328
63329         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63330         the unistd module.
63331         * lib/getlogin_r.c: Likewise.
63332         * lib/getlogin_r.h: Likewise.
63333         * lib/glob.c: Likewise.
63334         * lib/pagealign_alloc.c: Likewise.
63335         * lib/unistd_.h: Remove; no longer needed.
63336
63337 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63338
63339         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63340         Add unistd.
63341         * modules/c-stack (Depends-on): Add unistd.
63342         * modules/getlogin_r: Likewise.
63343         * modules/glob: Likewise.
63344         * modules/pagealign_alloc: Likewise.
63345         * modules/unistd (Files): Remove lib/unistd_.h.
63346         (EXTRA_DIST): Remove.
63347         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63348         need unistd_.h.
63349         (MOSTLYCLEANFILES): Remove unistd.h-t.
63350
63351 2006-03-03  Simon Josefsson  <jas@extundo.com>
63352
63353         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63354
63355 2006-03-03  Simon Josefsson  <jas@extundo.com>
63356
63357         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63358         libidn and bison.
63359
63360 2006-03-03  Simon Josefsson  <jas@extundo.com>
63361
63362         * build-aux/maint.mk: Add indent target.
63363
63364 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63365
63366         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63367         our replacement poll.h in any case, to avoid a differing
63368         declaration from a system header.  Seen on AIX.
63369
63370 2006-03-01  Simon Josefsson  <jas@extundo.com>
63371
63372         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63373         <kasal@ucw.cz>.
63374
63375 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63376
63377         * modules/gettime (Depends-on): Add extensions module.
63378         * modules/nanosleep (Depends-on): Likewise.
63379         * modules/settime (Depends-on): Likewise.
63380
63381 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63382
63383         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63384         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63385         pedantically.
63386         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63387         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63388
63389         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63390         not "==".  Reported by Ralf Wildenhues.
63391
63392 2006-03-01  Karl Berry  <karl@gnu.org>
63393
63394         * doc/Copyright/request-*: new files, synced from gnuorg.
63395
63396 2006-03-01  Karl Berry  <karl@gnu.org>
63397
63398         * config/srclist.txt (Copyright/*): new entries.
63399
63400 2006-02-28  Simon Josefsson  <jas@extundo.com>
63401
63402         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63403
63404 2006-02-27  Simon Josefsson  <jas@extundo.com>
63405
63406         * lib/base64.h: Indent #define's.  From Jim Meyering
63407         <jim@meyering.net>.
63408
63409 2006-02-27  Jim Meyering  <jim@meyering.net>
63410
63411         Revert the change of 2006-02-24, so these files can continue
63412         to be sync'd from gettext.
63413         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63414         of `config.h'.
63415
63416 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63417
63418         * modules/intprops: New file.
63419         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63420         Add intprops.
63421         * modules/getloadavg (Files): Remove lib/intprops.h.
63422         (Depends-on): Add intprops.
63423         * modules/human: Likewise.
63424         * modules/inttostr: Likewise.
63425         * modules/openat: Likewise.
63426         * modules/sig2str: Likewise.
63427         * modules/userspec: Likewise.
63428         * modules/utimecmp: Likewise.
63429         * modules/xnanosleep: Likewise.
63430         * modules/xstrtol: Likewise.
63431
63432 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63433
63434         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63435         * modules/lock-tests (TESTS): Use $(EXEEXT).
63436         * modules/tls-tests: Likewise.
63437         * modules/argp-tests: Likewise.
63438         (check_PROGRAMS): New var, replacing...
63439         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63440
63441 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63442
63443         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63444         `config.h'.
63445
63446 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63447
63448         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63449
63450 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63451
63452         Sync from coreutils.
63453         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63454         gl_CHDIR_SAFER.
63455
63456 2006-02-22  Jim Meyering  <jim@meyering.net>
63457
63458         Sync from coreutils.
63459         * m4/chdir-safer.m4: New file.
63460
63461 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63462
63463         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63464         AT_FDCWD exceeds INT_MAX.
63465         * lib/openat.h (AT_FDCWD): Likewise.
63466
63467 2006-02-17  Eric Blake  <address@hidden>
63468
63469         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63470
63471 2006-02-16  Simon Josefsson  <jas@extundo.com>
63472
63473         * modules/getaddrinfo (Depends-on): Add sys_socket.
63474
63475 2006-02-15  Simon Josefsson  <jas@extundo.com>
63476
63477         * build-aux/maint.mk: Add dsyntax-check rule.
63478
63479 2006-02-15  Eric Blake  <ebb9@byu.net>
63480
63481         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
63482         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
63483         'present but cannot compile' warnings on cygwin.
63484         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
63485         use ws2tcpip.h if sys/socket.h works.
63486         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
63487         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
63488
63489 2006-02-14  Simon Josefsson  <jas@extundo.com>
63490
63491         * modules/maintainer-makefile (Files): Rename.
63492
63493         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
63494         and (the local) Makefile.cfg to maint-cfg.mk.
63495
63496         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
63497         to the latter.
63498
63499         * modules/maintainer-makefile: New module.
63500
63501         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
63502         severaly stripped to make it possible to build it up from scratch
63503         with reliable tests.
63504
63505         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
63506         fixes to permit overriding the default actions when configure and
63507         makefile are not available.
63508
63509 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63510
63511         Sync from coreutils.
63512         * modules/lstat (Depends-on): Don't depend on xalloc.
63513         (License): Change from GPL to LGPL, since this is now simply a
63514         replacement for a libc function.
63515
63516 2006-02-14  Jim Meyering  <jim@meyering.net>
63517
63518         Sync from coreutils.
63519
63520         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
63521         failure on deficient systems, and simplify gnulib lgpl dependencies.
63522         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
63523         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
63524
63525         * lib/xalloc-die.c: Remove unused definition of N_.
63526
63527 2006-02-14  Jim Meyering  <jim@meyering.net>
63528
63529         Sync from coreutils.
63530         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
63531         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
63532         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
63533         double-quote uses of that variable, to accommodate the rare case in
63534         which getmntent is available in none of the libraries checked.  This
63535         happens at least on FreeBSD 5.0.
63536
63537 2006-02-13  Simon Josefsson  <jas@extundo.com>
63538
63539         * gnulib-tool (Usage): Fix --import, from
63540         karl@freefriends.org (Karl Berry).
63541
63542 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63543
63544         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
63545
63546 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
63547
63548         * lib/argp-namefrob.h: Restore changes accidentally lost during the
63549         "autoupdate" on 2005-12-12.
63550
63551 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63552
63553         * modules/closeout (Depends-on): Remove atexit.
63554
63555 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63556
63557         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
63558         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
63559
63560 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63561
63562         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
63563         __EXTENSIONS__ if this causes compilation to fail.  Problem
63564         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
63565         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
63566
63567 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
63568
63569         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
63570         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
63571         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
63572         All uses changed.
63573
63574 2006-01-26  Simon Josefsson  <jas@extundo.com>
63575
63576         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
63577         prototype is visible on mingw32.
63578
63579         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
63580         for mingw32.
63581
63582         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
63583         mingw32).
63584
63585 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63586
63587         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
63588         attempt to open for write; this always fails, at least on POSIX
63589         hosts.  This reinstates the 2006-01-09 change, which was
63590         inadvertently removed.
63591
63592 2006-01-26  Bruno Haible  <bruno@clisp.org>
63593
63594         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
63595         Reported by Paul Eggert.
63596
63597 2006-01-26  Bruno Haible  <bruno@clisp.org>
63598             Paul Eggert  <eggert@cs.ucla.edu>
63599
63600         * lib/stdbool_.h (_Bool)
63601         [(! (defined __cplusplus || defined __BEOS__)
63602           && !defined __GNUC__
63603           && !(defined __HP_cc || defined __xlc__
63604                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
63605                || defined __sgi))]:
63606         #define to signed char in these cases too; this simplifies
63607         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
63608         etc., separately) and makes it more conservative.
63609
63610 2006-01-25  Simon Josefsson  <jas@extundo.com>
63611
63612         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
63613         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
63614         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
63615
63616 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63617
63618         * lib/argp-namefrob.h: Bugfix. Remove stray #
63619
63620 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63621
63622         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
63623         so that we test the test.
63624         Check for yet another HP-UX cc bug involving *bool |= bool.
63625
63626 2006-01-25  Karl Berry  <karl@gnu.org>
63627
63628         * config/srclist.txt (vasnprintf.c): sync lost.
63629
63630 2006-01-25  Jim Meyering  <jim@meyering.net>
63631
63632         Sync from the stable (b5) branch of coreutils:
63633
63634         * lib/fts.c (fts_children): Don't let close() clobber errno from
63635         failed fchdir().
63636
63637         * lib/fts.c (fts_stat): When following a symlink-to-directory,
63638         don't necessarily interpret stat-fails+lstat-succeeds as indicating
63639         a dangling symlink.  That can also happen at least for ELOOP.
63640         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
63641         FYI, this bug predates the inclusion of fts.c in coreutils.
63642
63643         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
63644         in their own block, so pre-c99 compilers don't object.
63645
63646         Avoid the double-free (first in fts_read, second in fts_close) that
63647         would occur when an `active' directory is made inaccessible (e.g.,
63648         via chmod a-x) during a traversal.
63649         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63650         before returning.  Reproduce this failure by
63651         mkdir -p a/b; cd a; chmod a-x . b
63652         Reported by Stavros Passas.
63653
63654 2006-01-25  Jim Meyering  <jim@meyering.net>
63655
63656         * lib/fileblocks.c: Remove more useless parentheses.
63657         * lib/readutmp.h: Likewise.
63658
63659 2006-01-25  Bruno Haible  <bruno@clisp.org>
63660
63661         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
63662         warnings.
63663         Reported by Paul Eggert.
63664
63665 2006-01-25  Bruno Haible  <bruno@clisp.org>
63666
63667         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
63668         rid of a trap command. For Solaris sh.
63669         Reported by Mark D. Baushke <mdb@gnu.org>.
63670
63671 2006-01-24  Simon Josefsson  <jas@extundo.com>
63672
63673         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
63674         Bruno.
63675
63676 2006-01-24  Karl Berry  <karl@gnu.org>
63677
63678         * config/srclist.txt (argp-namefrob.h): sync lost.
63679
63680 2006-01-24  Jim Meyering  <jim@meyering.net>
63681
63682         * modules/openat (Files): Add lib/intprops.h.
63683         From Mark D. Baushke.
63684
63685 2006-01-24  Jim Meyering  <jim@meyering.net>
63686
63687         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
63688         Reported by Mark D. Baushke.
63689
63690 2006-01-24  Jim Meyering  <jim@meyering.net>
63691
63692         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
63693
63694 2006-01-24  Bruno Haible  <bruno@clisp.org>
63695
63696         * modules/strnlen (Maintainer): Change from glibc to all.
63697
63698 2006-01-24  Bruno Haible  <bruno@clisp.org>
63699
63700         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
63701         Patch by Paul Eggert.
63702
63703 2006-01-24  Bruno Haible  <bruno@clisp.org>
63704
63705         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
63706         already has it.
63707         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
63708         2005-11-26.
63709
63710         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
63711         'signed char' to avoid problems with the built-in _Bool type.
63712         Reported by Paul Eggert on 2005-11-26.
63713
63714 2006-01-24  Bruno Haible  <bruno@clisp.org>
63715
63716         * gnulib-tool (func_import): Avoid constructing complicated sed
63717         expressions inside backquote.
63718         Report and solution by Mark D. Baushke <mdb@gnu.org>.
63719
63720 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
63721
63722         These changes imported from libc.
63723         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
63724         test and two separate function calls.
63725         * lib/strndup.c (__strndup): Add libc_hidden_def.
63726
63727 2006-01-23  Simon Josefsson  <jas@extundo.com>
63728
63729         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
63730         Remove the test_*_SOURCES variable: automake infers it by default.
63731         * modules/tls-tests: Likewise.
63732
63733 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63734
63735         Work around porting bugs reported by Dieter in
63736         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
63737         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
63738         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
63739         Include "getopt.h" first, to check interface.
63740         (getenv): Declare only if defined HAVE_DECL_GETENV &&
63741         !HAVE_DECL_GETENV.
63742         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
63743         (__strndup): Revert to K&R-style function dfns, the glibc style.
63744         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
63745         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
63746         Include strnlen.h first, to get prototype properly.
63747         (strnlen): Renamed from __strnlen.
63748         Remove weak alias.
63749
63750 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63751
63752         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
63753
63754 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63755
63756         * config/srclist.txt: Adjust to reflect glibc reorganization.
63757         This affects only comments.
63758
63759 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63760
63761          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
63762          Reported by Bruce Korb <bkorb@gnu.org>.
63763
63764 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63765
63766         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
63767         to pacify gcc -Wswitch-default.
63768
63769 2006-01-22  Bruno Haible  <bruno@clisp.org>
63770
63771         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
63772         temporary buffer for sprintf, take into account the precision also
63773         for 'd', 'i', 'u', 'o', 'x', 'X'.
63774
63775 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63776
63777         * modules/argp-tests: New module
63778         * tests/test-argp.c: New file
63779         * tests/test-argp-2.sh: New file
63780
63781 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63782
63783         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
63784         (__argp_base_name): Removed
63785         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
63786         typo.
63787         (__argp_base_name): Provide macro definition or extern declaration
63788         depending on the configuration
63789
63790 2006-01-20  Simon Josefsson  <jas@extundo.com>
63791
63792         * modules/inet_ntop (Depends-on): Depend on sys_socket.
63793
63794 2006-01-20  Simon Josefsson  <jas@extundo.com>
63795
63796         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
63797
63798 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63799
63800         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
63801         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
63802         Suggested by Bruno Haible.
63803
63804 2006-01-20  Karl Berry  <karl@gnu.org>
63805
63806         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
63807         until changes propagate, I guess.
63808
63809 2006-01-19  Simon Josefsson  <jas@extundo.com>
63810
63811         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
63812
63813 2006-01-19  Simon Josefsson  <jas@extundo.com>
63814
63815         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
63816
63817 2006-01-19  Simon Josefsson  <jas@extundo.com>
63818
63819         * gnulib-tool: Set check_PROGRAMS.
63820
63821         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63822         modules/des-tests, modules/gc-arcfour-tests,
63823         modules/gc-arctwo-tests, modules/gc-des-tests,
63824         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63825         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63826         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63827         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63828         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63829         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
63830         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
63831         test_*_SOURCES.
63832
63833 2006-01-18  Simon Josefsson  <jas@extundo.com>
63834
63835         * modules/socklen (Depends-on): Depend on sys_socket.
63836
63837 2006-01-18  Simon Josefsson  <jas@extundo.com>
63838
63839         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63840         modules/des-tests, modules/gc-arcfour-tests,
63841         modules/gc-arctwo-tests, modules/gc-des-tests,
63842         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63843         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63844         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63845         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63846         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63847         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
63848         $(EXEEXT) to automake TESTS variable, for mingw32.
63849
63850 2006-01-17  Simon Josefsson  <jas@extundo.com>
63851
63852         * modules/socklen (Include): Need sys/socket.h.
63853
63854 2006-01-17  Bruno Haible  <bruno@clisp.org>
63855
63856         * modules/ssize_t (Include): Add <sys/types.h>.
63857
63858 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
63859
63860         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
63861         it's not portable and it doesn't work with cross-compiles.
63862         Problem reported by Bruno Haible.  Fix missing-$ typo in
63863         'test "gl_cv_ignore_unused_libraries" ...' that prevented
63864         -zignore from being used with Sun's C compiler.
63865
63866 2006-01-12  Simon Josefsson  <jas@extundo.com>
63867
63868         * lib/base64.c: Fix warning, reported by Bruno Haible
63869         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
63870
63871 2006-01-12  Bruno Haible  <bruno@clisp.org>
63872
63873         * modules/ldd: New file.
63874         * build-aux/ldd.sh.in: New file.
63875         * MODULES.html.sh (Support for building libraries and executables): Add
63876         ldd.
63877
63878 2006-01-12  Bruno Haible  <bruno@clisp.org>
63879
63880         * m4/ldd.m4: New file.
63881
63882 2006-01-12  Bruno Haible  <bruno@clisp.org>
63883
63884         * gnulib-tool (func_import, func_create_testdir): Don't go into an
63885         endless loop while replacing $auxdir with build-aux.
63886
63887 2006-01-11  Simon Josefsson  <jas@extundo.com>
63888
63889         * lib/stdint_.h (SIZE_MAX): Add missing (.
63890
63891 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
63892
63893         Sync from coreutils.
63894         * lib/md5.c: Fix commentary typos.
63895         (alignof, UNALIGNED_P): No need for a GCC-specific version.
63896         * lib/md5.h (__attribute__): Remove; unused.
63897         * lib/sha1.c: Fix commentary to match md5 better.
63898         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
63899         so that we don't need to worry about alignment.  All uses changed.
63900         This merges the 2005-10-28 md5 change into sha1.
63901
63902 2006-01-11  Jim Meyering  <jim@meyering.net>
63903
63904         Sync from coreutils.
63905         * lib/md5.c (OP): Fix spacing.
63906
63907 2006-01-11  Bruno Haible  <bruno@clisp.org>
63908
63909         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63910         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
63911         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
63912
63913 2006-01-11  Bruno Haible  <bruno@clisp.org>
63914
63915         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63916         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
63917         the "early" section as well.
63918
63919 2006-01-11  Bruno Haible  <bruno@clisp.org>
63920
63921         Avoid "ar: no archive members specified" error on MacOS X.
63922         * gnulib-tool (func_modules_add_dummy): New function.
63923         (func_import, func_create_testdir): Invoke it.
63924
63925 2006-01-11  Bruno Haible  <bruno@clisp.org>
63926
63927         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
63928         with $auxdir in AC_CONFIG_FILES statements.
63929
63930 2006-01-11  Bruno Haible  <bruno@clisp.org>
63931
63932         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63933         Initialize also noinst_HEADERS to empty.
63934
63935 2006-01-11  Bruno Haible  <bruno@clisp.org>
63936
63937         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
63938         variables.
63939         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
63940         autoreconf.
63941
63942 2006-01-11  Bruno Haible  <bruno@clisp.org>
63943
63944         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
63945         overridable by the user.
63946         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63947
63948 2006-01-10  Simon Josefsson  <jas@extundo.com>
63949
63950         * modules/sys_socket: New file.
63951
63952 2006-01-10  Simon Josefsson  <jas@extundo.com>
63953
63954         * m4/sys_socket_h.m4: New file.
63955
63956 2006-01-10  Simon Josefsson  <jas@extundo.com>
63957
63958         * lib/socket_.h: New file.
63959
63960 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63961
63962         * modules/readutmp (Maintainer): Add myself.
63963
63964 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63965
63966         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
63967         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
63968         People who are still concerned with buggy memcmp implementations
63969         can invoke gl_FUNC_MEMCMP themselves.
63970
63971 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63972
63973         * lib/regex_internal.h (BITSET_WORD_BITS):
63974         Work around a bug in 64-bit PGC (before version 6.1-2), where the
63975         preprocessor mishandles large unsigned values as if they were signed.
63976         Problem reported by Claudio Fontana in
63977         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
63978
63979 2006-01-10  Jim Meyering  <jim@meyering.net>
63980
63981         Avoid the double-free (first in fts_read, second in fts_close) that
63982         would occur when an `active' directory is made inaccessible (e.g.,
63983         via chmod a-x) during a traversal.
63984         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63985         before returning.  Reproduce this failure by
63986         mkdir -p a/b; cd a; chmod a-x . b
63987         Reported by Stavros Passas.
63988
63989         Sync from coreutils.
63990         * lib/sha1.c: Tweak grammar in a comment.
63991
63992 2006-01-10  Jim Meyering  <jim@meyering.net>
63993
63994         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
63995         Patch by Joerg Sonnenberger.
63996
63997 2006-01-10  Bruno Haible  <bruno@clisp.org>
63998
63999         * modules/readutmp: Depend on module free.
64000         * modules/strtok_r: Depend on module restrict.
64001
64002 2006-01-10  Bruno Haible  <bruno@clisp.org>
64003
64004         * modules/gettext (configure.ac): Add an invocation of
64005         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
64006
64007 2006-01-10  Bruno Haible  <bruno@clisp.org>
64008
64009         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
64010         Reported by Werner Lemberg <wl@gnu.org>.
64011
64012 2006-01-10  Bruno Haible  <bruno@clisp.org>
64013
64014         * lib/localcharset.c: Update from GNU gettext.
64015
64016 2006-01-10  Bruno Haible  <bruno@clisp.org>
64017
64018         * lib/argp.h (__const): Remove macro. Use const instead.
64019         * lib/argp-fmtstream.h (__const): Likewise.
64020         * lib/glob_.h (__const): Remove macro.
64021         * lib/glob-libc.h: Use const instead of __const.
64022
64023 2006-01-10  Bruno Haible  <bruno@clisp.org>
64024
64025         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
64026         variable.
64027         Needed to avoid an automake error regarding the 'gettext' module.
64028
64029 2006-01-09  Simon Josefsson  <jas@extundo.com>
64030
64031         * modules/inet_ntop (Depends-on): Add restrict.
64032
64033 2006-01-09  Simon Josefsson  <jas@extundo.com>
64034
64035         * modules/gc-rijndael-tests (License): Put under LGPL.
64036
64037         * modules/gc-des-tests (License): Likewise.
64038
64039         * modules/gc-arcfour-tests (License): Likewise.
64040
64041         * modules/gc-arctwo-tests (License): Likewise.
64042
64043         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
64044
64045         * modules/gc-hmac-sha1-tests (Files): Likewise.
64046
64047         * modules/gc-hmac-md5-tests (License): Likewise.
64048
64049         * modules/gc-sha1-tests (License): Likewise.
64050
64051         * modules/gc-md5-tests (License): Likewise.
64052
64053         * modules/gc-md4-tests (License): Likewise.
64054
64055         * modules/gc-md2-tests (License): Likewise.
64056
64057         * modules/gc-tests (License): Likewise.
64058
64059         * modules/des-tests (License): Likewise.
64060
64061         * modules/md4-tests (License): Likewise.
64062
64063         * modules/md2-tests (License): Likewise.
64064
64065 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64066
64067         Sync from coreutils:
64068
64069         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
64070         * modules/lib-ignore: New file.
64071         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
64072         chdir-safer.m4, lchmod.m4.
64073         * modules/openat: Add mkdirat.c, openat-priv.h.
64074
64075 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64076
64077         Sync from coreutils.
64078         * m4/lib-ignore.m4: New file.
64079         * m4/lchmod.m4: New file.
64080
64081 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64082
64083         Sync from coreutils.
64084         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
64085         for write access: POSIX says that must fail.
64086         * lib/fts.c (diropen): Likewise.
64087         * lib/save-cwd.c (save_cwd): Likewise.
64088         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
64089         well, for minor improvements on hosts that lack O_DIRECTORY.
64090         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
64091         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
64092         Fall back on chown if open failed with EACCES.
64093
64094         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
64095         Report an error at compile-time if only a 1-second nominal clock
64096         resolution is found.
64097
64098         * lib/lchmod.h: New file.
64099         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
64100         (make_dir_parents): Use lchown rather than chown, and
64101         lchmod rather than chmod.
64102
64103         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
64104         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
64105         "proc" reported by n0dalus.
64106
64107         * lib/mountlist.c: Include <limits.h>.
64108         (dev_from_mount_options)
64109         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
64110         New function.  It no longer assumes "dev=" has the System V meaning
64111         on Linux (since it doesn't).  It also parses "dev=" more carefully.
64112         (read_file_system_list)
64113         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
64114         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
64115         dev= in that case.
64116
64117         * lib/posixtm.h (PDS_PRE_2000): New macro.
64118         * lib/posixtm.c (year): Arg is now syntax_bits rather than
64119         allow_century.  All usages changed.  Reject dates outside the range
64120         1969-1999 if PDS_PRE_2000 is used.
64121
64122 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64123
64124         Sync from coreutils.
64125         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
64126         (Time of day items): Mention the possibility of leap seconds.
64127         Problem reported by Dr. David Alan Gilbert.
64128
64129 2006-01-09  Jim Meyering  <jim@meyering.net>
64130
64131         Sync from coreutils.
64132
64133         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
64134
64135         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
64136
64137         * lib/modechange.c (mode_compile): Reject an invalid mode string
64138         that starts with an octal digit.  From Andreas Gruenbacher.
64139
64140         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
64141         and dup to open_safer and dup_safer, respectively.
64142         (openat_permissive): Fix typo in comment.
64143
64144         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
64145         "gettext.h"; either no longer needed or are guaranteed by openat.h.
64146         (_): Remove; no longer needed.
64147         (openat): Renamed from rpl_openat; no need for rpl_openat
64148         since openat.h renames openat for us.
64149         Replace most of the body with a call to openat_permissive,
64150         to avoid duplicate code.
64151         Port to (probably hypothetical) environments were mode_t is
64152         wider than int.
64153         (openat_permissive): Require mode arg, so that we can check
64154         types better.  Put it just after flags.  Change cwd failure
64155         indicator from pointer-to-bool to pointer-to-errno-value.
64156         All callers changed.
64157         Invoke openat_save_fail and/or openat_restore_fail if
64158         cwd_errno is null, so that openat can call us.
64159         (openat_permissive, fdopendir, fstatat, unlinkat):
64160         Simplify errno handling to avoid some duplicate code,
64161         as it's OK to set errno on success.
64162         * lib/openat.h: Revamp code so that function macros depend on
64163         __OPENAT_PREFIX only, not also on AT_FDCWD.
64164         (openat_ro): Remove.  Caller changed to use openat_permissive.
64165         (openat_permissive): Now a macro, if not a function.
64166         (openat_restore_fail, openat_save_fail): Now always functions,
64167         since mkdirat needs them even if __OPENAT_PREFIX is defined.
64168
64169         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
64170         and openat.c.
64171         * lib/mkdirat.c: Include openat-priv.h.
64172         Remove definitions of macros defined therein.
64173         * lib/openat.c: Likewise.
64174
64175         * lib/mkdirat.c (mkdirat): New file and function.
64176         * lib/openat.h (mkdirat): Declare.
64177
64178         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
64179
64180         * lib/openat.h (openat_permissive): Declare.
64181         (openat_ro): Define.
64182
64183         * lib/openat.c (EXPECTED_ERRNO): New macro.
64184         (openat_permissive): New function -- used in remove.c rewrite.
64185         (all functions): Set errno just before returning, only if there
64186         was an actual failure.
64187         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
64188
64189         Emulate openat-family functions using Linux's procfs, if possible.
64190         Idea and some code based on Ulrich Drepper's glibc changes.
64191
64192         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64193         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64194         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64195         before falling back on save_cwd and restore_cwd.
64196         (fdopendir, fstatat, unlinkat): Likewise.
64197
64198         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64199         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64200
64201         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64202         as second argument to va_arg.  Otherwise, some versions of gcc
64203         warn that `if this code is reached, the program will abort'.
64204
64205 2006-01-09  Jim Meyering  <jim@meyering.net>
64206
64207         Sync from coreutils.
64208         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64209         Require openat-priv.h.
64210
64211 2006-01-09  Bruno Haible  <bruno@clisp.org>
64212
64213         * modules/strnlen (Include): Use strnlen.h.
64214
64215 2006-01-09  Bruno Haible  <bruno@clisp.org>
64216
64217         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64218
64219 2006-01-09  Bruno Haible  <bruno@clisp.org>
64220
64221         * lib/sysexit_.h (EX_OK): New macro.
64222         Suggested by Martin Lambers <marlam@marlam.de>.
64223
64224 2006-01-09  Bruno Haible  <bruno@clisp.org>
64225
64226         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64227         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64228
64229 2006-01-09  Bruno Haible  <bruno@clisp.org>
64230
64231         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64232         numbers.
64233
64234 2006-01-09  Bruno Haible  <bruno@clisp.org>
64235
64236         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64237         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64238         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64239         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64240
64241 2006-01-09  Bruno Haible  <bruno@clisp.org>
64242
64243         * build-aux/javacomp.sh.in: New file, moved from lib/.
64244         * modules/javacomp-script (Files): Update.
64245         (configure.ac): Add AC_CONFIG_FILES invocation.
64246         (EXTRA_DIST): Remove variable.
64247
64248         * build-aux/javaexec.sh.in: New file, moved from lib/.
64249         * modules/javaexec (Files): Update.
64250         (configure.ac): Add AC_CONFIG_FILES invocation.
64251         (EXTRA_DIST): Remove javaexec.sh.in.
64252
64253         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64254         * modules/csharpcomp-script (Files): Update.
64255         (configure.ac): Add AC_CONFIG_FILES invocation.
64256         (EXTRA_DIST): Remove variable.
64257
64258         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64259         * modules/csharpexec (Files): Update.
64260         (configure.ac): Add AC_CONFIG_FILES invocation.
64261         (EXTRA_DIST): Remove csharpexec.sh.in.
64262
64263 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64264
64265         Sync from coreutils.
64266
64267         Add POSIX ACL support
64268         * lib/acl.h (copy_acl, set_acl): Add declarations.
64269         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
64270         systems other than Linux.
64271         (chmod_or_fchmod): New function: use fchmod when possible,
64272         and chmod otherwise.
64273         (file_has_acl): Add a POSIX ACL implementation, with a
64274         Linux-specific subcase.
64275         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
64276         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
64277         acls are unsupported.
64278         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
64279         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
64280         are unsupported.
64281
64282 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64283
64284         Sync from coreutils.
64285         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
64286
64287 2006-01-07  Bruno Haible  <bruno@clisp.org>
64288
64289         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
64290         gl_EARLY.
64291
64292 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64293
64294         * lib/strftime.c (tzname): Don't declare if it is already #defined.
64295         Problem reported for Mingw by Mark Junker.
64296
64297 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64298
64299         * README: Gnulib normally doesn't generate a tarball.
64300
64301 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
64302
64303         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
64304         long int, not int, for nanosecond counts, so that people who are
64305         used to POSIX struct timespec won't be surprised.  Reported by Jim
64306         Meyering.
64307
64308 2005-12-28  Bruno Haible  <bruno@clisp.org>
64309
64310         * build-aux/config.rpath: Update from GNU gettext.
64311
64312 2005-12-16  Jim Meyering  <jim@meyering.net>
64313
64314         * modules/fprintftime: New module.
64315         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64316
64317 2005-12-16  Jim Meyering  <jim@meyering.net>
64318
64319         * m4/fprintftime.m4: New file.
64320
64321 2005-12-16  Jim Meyering  <jim@meyering.net>
64322
64323         * lib/fprintftime.c, lib/fprintftime.h: New files.
64324
64325 2005-12-15  Simon Josefsson  <jas@extundo.com>
64326
64327         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64328         new m4/socklen.m4.
64329
64330 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64331
64332         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64333         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64334
64335 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64336
64337         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64338         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64339         struct uparams is valid. Fall back to the default values if it is
64340         not.
64341
64342 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64343
64344         * modules/argp (Files): Add argp-pin.c
64345         (Depends-on): dirname
64346         (lib_SOURCES): Add argp-pin.c
64347
64348 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64349
64350         * m4/argp.m4:  Check if program_invocation_name and
64351         program_invocation_short_name are declared and define appropriate
64352         macros if they are not.
64353
64354 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64355
64356         * lib/argp-help.c (__argp_base_name): New function
64357         (__argp_short_program_name): Rewrite using __argp_base_name
64358         * lib/argp-namefrob.h: Define program_invocation_name and
64359         program_invocation_short_name if requested
64360         (__argp_base_name): Add prototype
64361         * lib/argp-parse.c (argp_def): Use gettext wrappers
64362         (argp_default_parser): Use __argp_base_name
64363         * lib/argp-pin.c: New file. Defines program_invocation_name and
64364         program_invocation_short_name on systems that lack them.
64365
64366 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64367
64368         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64369         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64370         porting problem reported by Georg Schwarz in
64371         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64372
64373 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64374
64375         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64376         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64377         porting problem reported by Georg Schwarz in
64378         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64379
64380 2005-12-05  Bruno Haible  <bruno@clisp.org>
64381
64382         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64383         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64384         Reported by Mark Junker <mjscod@gmx.de>.
64385
64386 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64387
64388         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64389         Use implementation from Albert Chin, with some
64390         comments/corrections by Stepan Kasal and myself.
64391
64392 2005-12-02  Bruno Haible  <bruno@clisp.org>
64393
64394         * gnulib-tool (func_import): Accept GPLed build tool modules when
64395         --lgpl is given.
64396         * modules/csharpcomp-script: New file.
64397         * modules/csharpcomp: Depend on it.
64398         * modules/javacomp-script: New file.
64399         * modules/javacomp: Depend on it.
64400         Suggested by Simon Josefsson.
64401
64402 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64403
64404         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64405         statement, to work around an HP-UX 10.20 compiler bug reported by
64406         Peter O'Gorman.
64407
64408 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64409
64410         * modules/savedir (Depends-on): Add openat.
64411
64412 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64413
64414         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64415         (uintmax_t) [defined uintmax_t]: Do not declare.
64416         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64417         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64418         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64419         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64420         sake of portability to weird hosts that C allows (though we don't
64421         know of any practical examples).
64422
64423         * lib/savedir.h (fdsavedir): New decl.
64424         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64425         contains most of the former guts of savedir.
64426         (savedir): Use savedirstream.
64427         Include "openat.h".
64428
64429 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64430
64431         * modules/obstack (Files): Add m4/ulonglong.m4.
64432         Problem reported by Davide Angelocola.
64433
64434 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64435
64436         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64437         coreutils no longer futzes with rounding modes.
64438
64439 2005-11-14  Jim Meyering  <jim@meyering.net>
64440
64441         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64442         replacement of mkstemp.
64443
64444 2005-11-10  Simon Josefsson  <jas@extundo.com>
64445
64446         * lib/readline.c: Remove EOL.
64447
64448 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64449
64450         * modules/gethrxtime (Depends-on): Add gettime.
64451
64452 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64453
64454         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64455         or gettimeofday; no longer needed.
64456
64457 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64458
64459         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64460         time business.
64461         (gethrxtime) [! (HAVE_NANOUPTIME
64462         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64463         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64464         our own approximation.
64465
64466 2005-11-08  Eric Blake  <ebb9@byu.net>
64467
64468         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64469
64470 2005-11-08  Eric Blake  <ebb9@byu.net>
64471
64472         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64473
64474 2005-11-04  Bruno Haible  <bruno@clisp.org>
64475
64476         * gnulib-tool: Implement --update mode.
64477
64478 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64479
64480         Fix porting problem reported by Theodoros V. Kalamatianos.
64481         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
64482         Don't assume that futimes failing means we must fail.
64483
64484 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64485
64486         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
64487         variables to suggest the intended function of the PATH_MAX check.
64488
64489 2005-10-30  Kean Johnston  <jkj@sco.com>
64490
64491         Trivial changes to support SCO systems.
64492         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
64493         as PATH_MAX.
64494         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
64495         where __ptr is null when no I/O is pending.
64496
64497 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64498
64499         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
64500         leave errno alone.  Problem reported by Dmitry V. Levin.
64501
64502 2005-10-28  Simon Josefsson  <jas@extundo.com>
64503
64504         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
64505         Test more.
64506
64507         * tests/test-gc-md2.c, tests/test-md2.c: New files.
64508
64509         * modules/md2, modules/md2-tests: New files.
64510
64511 2005-10-28  Simon Josefsson  <jas@extundo.com>
64512
64513         * m4/inet_ntop.m4: More tests.
64514
64515         * m4/gc-md2.m4, md2.m4: New file.
64516
64517 2005-10-28  Simon Josefsson  <jas@extundo.com>
64518
64519         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
64520         "restrict" keywords, as per POSIX.  Protect the function
64521         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
64522         Don't use K&R prototypes.  Check the sprintf return values.
64523         Re-define EAFNOSUPPORT if not present.  Indent.
64524
64525         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
64526         suggested by Bruno Haible <bruno@clisp.org>.
64527
64528         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
64529
64530         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
64531
64532         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
64533         libgcrypt).
64534
64535         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
64536
64537         * lib/md2.h, lib/md2.c: New files.
64538
64539 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
64540
64541         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
64542         errno alone.  Problem reported by Frederic Jolliton.
64543
64544 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64545
64546         * modules/verify (License): Change from GPL to LGPL.  This is a
64547         tiny module and there are apparently near-equivalents that are
64548         under the BSD license.
64549
64550 2005-10-24  Simon Josefsson  <jas@extundo.com>
64551
64552         * modules/sha1: Relicense to LGPL.
64553
64554 2005-10-24  Simon Josefsson  <jas@extundo.com>
64555
64556         * lib/md4.h: Shrink buffer size, now that we changed the type.
64557
64558 2005-10-23  Simon Josefsson  <jas@extundo.com>
64559
64560         * gnulib-tool (func_import): Fix --tests-base.
64561
64562 2005-10-22  Simon Josefsson  <jas@extundo.com>
64563
64564         * modules/arcfour (Depends-on): Need stdint.
64565
64566 2005-10-22  Simon Josefsson  <jas@extundo.com>
64567
64568         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
64569         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
64570
64571 2005-10-22  Simon Josefsson  <jas@extundo.com>
64572
64573         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
64574         suggested by Bruno Haible <bruno@clisp.org>.
64575
64576 2005-10-22  Simon Josefsson  <jas@extundo.com>
64577
64578         * lib/crc.h: Include stddef.h, for size_t.
64579
64580 2005-10-22  Simon Josefsson  <jas@extundo.com>
64581
64582         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
64583         arcfour_context struct (simplify test vector testing in GNU
64584         Shishi).
64585
64586 2005-10-21  Simon Josefsson  <jas@extundo.com>
64587
64588         * modules/des, modules/des-tests: New files.
64589
64590         * modules/gc-des, modules/gc-des-tests: New files.
64591
64592         * tests/test-des.c, tests/test-gc-des.c: New file.
64593
64594 2005-10-21  Simon Josefsson  <jas@extundo.com>
64595
64596         * modules/arctwo, modules/arctwo-tests: New files.
64597
64598         * tests/test-arctwo.c: New file.
64599
64600         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
64601
64602         * tests/test-gc-arctwo.c: New file.
64603
64604 2005-10-21  Simon Josefsson  <jas@extundo.com>
64605
64606         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
64607         Bruno Haible <bruno@clisp.org>.
64608
64609         * m4/gc-des.m4: New file.
64610
64611 2005-10-21  Simon Josefsson  <jas@extundo.com>
64612
64613         * m4/arctwo.m4: New file.
64614
64615         * m4/gc-arctwo.m4: New file.
64616
64617 2005-10-21  Simon Josefsson  <jas@extundo.com>
64618
64619         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
64620         block.
64621
64622 2005-10-21  Simon Josefsson  <jas@extundo.com>
64623
64624         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
64625         <bruno@clisp.org>.
64626
64627         * lib/hmac-sha1.c (hmac_sha1): Likewise.
64628
64629         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
64630         Bruno Haible <bruno@clisp.org>.
64631
64632         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
64633         <bruno@clisp.org>.
64634
64635 2005-10-21  Simon Josefsson  <jas@extundo.com>
64636
64637         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
64638
64639 2005-10-21  Simon Josefsson  <jas@extundo.com>
64640
64641         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
64642
64643 2005-10-21  Simon Josefsson  <jas@extundo.com>
64644
64645         * lib/des.h, lib/des.c: New files.
64646
64647         * lib/gc-gnulib.c: Support DES.c
64648
64649 2005-10-21  Simon Josefsson  <jas@extundo.com>
64650
64651         * lib/arctwo.h, lib/arctwo.c: New files.
64652
64653         * lib/gc-gnulib.c: Support ARCTWO.
64654
64655 2005-10-21  Simon Josefsson  <jas@extundo.com>
64656
64657         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
64658         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64659
64660 2005-10-21  Simon Josefsson  <jas@extundo.com>
64661
64662         * gnulib-tool (func_import, func_create_testdir): Define automake
64663         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
64664         Makefile.am snippet),
64665         suggested by Bruno Haible <bruno@clisp.org>.
64666
64667         * modules/gc (Makefile.am): Use it.
64668
64669 2005-10-21  Bruno Haible  <bruno@clisp.org>
64670
64671         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
64672         patch.
64673
64674 2005-10-19  Simon Josefsson  <jas@extundo.com>
64675
64676         * tests/test-gc-rijndael.c: New file.
64677
64678         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
64679
64680 2005-10-19  Simon Josefsson  <jas@extundo.com>
64681
64682         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
64683         interface too.
64684
64685 2005-10-19  Simon Josefsson  <jas@extundo.com>
64686
64687         * tests/test-gc-arcfour.c: New file.
64688
64689         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
64690
64691 2005-10-19  Simon Josefsson  <jas@extundo.com>
64692
64693         * modules/gc-md4, modules/gc-md4-tests: New file.
64694
64695         * tests/test-gc-md4.c: New file.
64696
64697 2005-10-19  Simon Josefsson  <jas@extundo.com>
64698
64699         * m4/gc-md4.m4: New file.
64700
64701 2005-10-19  Simon Josefsson  <jas@extundo.com>
64702
64703         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
64704         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
64705         <kasal@ucw.cz>.
64706
64707 2005-10-19  Simon Josefsson  <jas@extundo.com>
64708
64709         * m4/gc-arcfour.m4: New file.
64710
64711         * m4/gc-rijndael.m4: New file.
64712
64713 2005-10-19  Simon Josefsson  <jas@extundo.com>
64714
64715         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
64716
64717 2005-10-19  Simon Josefsson  <jas@extundo.com>
64718
64719         * lib/gc-gnulib.c: Support ARCFOUR.
64720
64721 2005-10-19  Simon Josefsson  <jas@extundo.com>
64722
64723         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
64724         support.
64725
64726         * lib/gc.h: Add ECB enum type.
64727
64728         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
64729
64730 2005-10-18  Simon Josefsson  <jas@extundo.com>
64731
64732         * tests/test-md5.c: New file.
64733
64734         * modules/md5-tests: New file.
64735
64736 2005-10-18  Simon Josefsson  <jas@extundo.com>
64737
64738         * tests/test-md4.c: New file.
64739
64740         * modules/md4, modules/md4-tests: New files.
64741
64742 2005-10-18  Simon Josefsson  <jas@extundo.com>
64743
64744         * m4/md4.m4: New file.
64745
64746 2005-10-18  Simon Josefsson  <jas@extundo.com>
64747
64748         * lib/md4.h, lib/md4.c: New files, based on md5.?.
64749
64750 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
64751
64752         * gnulib-tool (func_create_testdir): Omit the second check whether
64753         BUILT_SOURCES in nonempty.
64754
64755 2005-10-17  Simon Josefsson  <jas@extundo.com>
64756
64757         * tests/test-rijndael.c: New file.
64758
64759 2005-10-17  Simon Josefsson  <jas@extundo.com>
64760
64761         * modules/sha1: Depend on stdint instead of md5.
64762
64763         * modules/md5: Depend on stdint, remove uint32_t.
64764
64765 2005-10-17  Simon Josefsson  <jas@extundo.com>
64766
64767         * modules/gc-sha1-tests: New file.
64768
64769         * tests/test-gc-sha1.c: New file.
64770
64771 2005-10-17  Simon Josefsson  <jas@extundo.com>
64772
64773         * m4/md5.m4: Remove call to uint32_t.m4.
64774
64775 2005-10-17  Simon Josefsson  <jas@extundo.com>
64776
64777         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
64778
64779         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
64780         md5.h.
64781
64782         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
64783
64784         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
64785
64786 2005-10-17  Simon Josefsson  <jas@extundo.com>
64787
64788         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
64789
64790 2005-10-17  Simon Josefsson  <jas@extundo.com>
64791
64792         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
64793
64794 2005-10-17  Simon Josefsson  <jas@extundo.com>
64795
64796         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
64797
64798         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
64799
64800 2005-10-17  Bruno Haible  <bruno@clisp.org>
64801
64802         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
64803         that it can also be used in a test.
64804
64805 2005-10-16  Bruno Haible  <bruno@clisp.org>
64806
64807         * gnulib-tool (func_emit_tests_Makefile_am): Also define
64808         TESTS_ENVIRONMENT, so that individual tests can augment it.
64809
64810         * gnulib-tool (func_create_testdir): Use an intermediate target for
64811         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
64812         macros, like $(ALLOCA_H), which cannot be passed through the command
64813         line.
64814
64815 2005-10-15  Simon Josefsson  <jas@extundo.com>
64816
64817         * modules/rijndael-tests: New file.
64818
64819         * modules/rijndael: New file.
64820
64821 2005-10-15  Simon Josefsson  <jas@extundo.com>
64822
64823         * m4/rijndael.m4: New file.
64824
64825 2005-10-15  Simon Josefsson  <jas@extundo.com>
64826
64827         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
64828
64829         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
64830
64831 2005-10-14  Simon Josefsson  <jas@extundo.com>
64832
64833         * tests/test-arcfour.c: New file.
64834
64835         * modules/arcfour, modules/arcfour-tests: New files.
64836
64837 2005-10-14  Simon Josefsson  <jas@extundo.com>
64838
64839         * m4/arcfour.m4: New file.
64840
64841 2005-10-14  Simon Josefsson  <jas@extundo.com>
64842
64843         * lib/arcfour.h, lib/arcfour.c: New files.
64844
64845 2005-10-14  Roland McGrath  <roland@redhat.com>
64846
64847         Import from libc.  [BZ #1331]
64848         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
64849         macro argument.
64850         Reported by Matej Vela <vela@debian.org>.
64851
64852 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64853
64854         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
64855         include <wchar.h>; no longer needed.
64856
64857 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64858
64859         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
64860
64861 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
64862         and  Ulrich Drepper  <drepper@redhat.com>
64863
64864         Import from libc.
64865         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
64866         instead of inline stream orientation test and two separate
64867         function calls.  Pay no attention to USE_IN_LIBIO.
64868
64869 2005-10-13  Simon Josefsson  <jas@extundo.com>
64870
64871         * modules/gc-hmac-md5-tests: New file.
64872
64873         * tests/test-gc-hmac-sha1.c: New file.
64874
64875         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
64876
64877         * modules/gc-hmac-md5-tests: New file.
64878
64879         * tests/test-gc-md5.c: New file.
64880
64881         * modules/gc-md5-tests: New file.
64882
64883 2005-10-13  Simon Josefsson  <jas@extundo.com>
64884
64885         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
64886         Move memory allocation outside of loop.
64887
64888 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64889
64890         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
64891         intermediate directory is in a read-only file system.  Problem
64892         reported by Eric Blake.
64893
64894 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
64895
64896         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
64897
64898 2005-10-12  Simon Josefsson  <jas@extundo.com>
64899
64900         * tests/test-hmac-sha1.c: New file.
64901
64902         * modules/hmac-sha1-tests: New file.
64903
64904         * modules/hmac-sha1: New file.
64905
64906 2005-10-12  Simon Josefsson  <jas@extundo.com>
64907
64908         * modules/gc-sha1: New file.
64909
64910 2005-10-12  Simon Josefsson  <jas@extundo.com>
64911
64912         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
64913
64914         * tests/test-gc-pbkdf2-sha1.c: New file.
64915
64916 2005-10-12  Simon Josefsson  <jas@extundo.com>
64917
64918         * modules/gc-md5, modules/gc-hmac-md5: New files.
64919
64920         * modules/gc (Files): Remove md5, memxor and hmac files.
64921
64922 2005-10-12  Simon Josefsson  <jas@extundo.com>
64923
64924         * m4/gc-pbkdf2-sha1.m4: New file.
64925
64926         * m4/gc-hmac-sha1.m4: New file.
64927
64928         * m4/gc-sha1: New file.
64929
64930         * m4/hmac-sha1.m4: New file.
64931
64932 2005-10-12  Simon Josefsson  <jas@extundo.com>
64933
64934         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
64935
64936         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
64937
64938 2005-10-12  Simon Josefsson  <jas@extundo.com>
64939
64940         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
64941         suggested by Bruno Haible <bruno@clisp.org>.
64942
64943 2005-10-12  Simon Josefsson  <jas@extundo.com>
64944
64945         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
64946
64947 2005-10-12  Simon Josefsson  <jas@extundo.com>
64948
64949         * lib/gc-pbkdf2-sha1.c: New file.
64950
64951         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
64952
64953 2005-10-12  Simon Josefsson  <jas@extundo.com>
64954
64955         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
64956
64957         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
64958
64959 2005-10-12  Simon Josefsson  <jas@extundo.com>
64960
64961         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
64962         GC_USE_HMAC_MD5, respectively.
64963
64964         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
64965         (gc_md5): Fix typo.
64966
64967         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
64968
64969         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
64970
64971         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
64972
64973 2005-10-12  Bruno Haible  <bruno@clisp.org>
64974
64975         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
64976         Reported by Stepan Kasal <kasal@ucw.cz>.
64977
64978 2005-10-11  Simon Josefsson  <jas@extundo.com>
64979
64980         * tests/test-crc.c: New file.
64981
64982         * modules/crc, modules/crc-tests: New files.
64983
64984 2005-10-11  Simon Josefsson  <jas@extundo.com>
64985
64986         * m4/crc.m4: New file.
64987
64988 2005-10-11  Simon Josefsson  <jas@extundo.com>
64989
64990         * lib/gc.h: Add gc_hash and gc_hash_buffer.
64991
64992         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
64993
64994         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
64995
64996 2005-10-11  Simon Josefsson  <jas@extundo.com>
64997
64998         * lib/crc.h, lib/crc.c: New files.
64999
65000         * lib/gc.h (gc_hash_buffer): Add doc.
65001
65002 2005-10-11  Bruno Haible  <bruno@clisp.org>
65003
65004         * modules/c-strcasestr: New file.
65005         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
65006
65007 2005-10-11  Bruno Haible  <bruno@clisp.org>
65008
65009         * modules/c-strcase: New file.
65010         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
65011
65012 2005-10-11  Bruno Haible  <bruno@clisp.org>
65013
65014         * lib/strcasecmp.c: Include limits.h.
65015         (strcasecmp): Avoid integer overflow on exotic platforms.
65016         * lib/strncasecmp.c: Include limits.h.
65017         (strncasecmp): Avoid integer overflow on exotic platforms.
65018         Reported by Paul Eggert.
65019
65020 2005-10-11  Bruno Haible  <bruno@clisp.org>
65021
65022         * lib/c-strcasestr.h: New file, from GNU gettext.
65023         * lib/c-strcasestr.c: New file, from GNU gettext.
65024
65025 2005-10-11  Bruno Haible  <bruno@clisp.org>
65026
65027         * lib/c-strcase.h: New file, from GNU gettext.
65028         * lib/c-strcasecmp.c: New file, from GNU gettext.
65029         * lib/c-strncasecmp.c: New file, from GNU gettext.
65030
65031 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65032
65033         * modules/mempcpy (License): GPL -> LGPL.
65034         * modules/strchrnul (License): Likewise.
65035         * modules/sysexits (License): Likewise.
65036
65037 2005-10-08  Simon Josefsson  <jas@extundo.com>
65038
65039         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
65040
65041 2005-10-07  Simon Josefsson  <jas@extundo.com>
65042
65043         * m4/memxor.m4: Remove gl_C_RESTRICT call.
65044
65045 2005-10-06  Simon Josefsson  <jas@extundo.com>
65046
65047         * tests/test-hmac-md5.c: New file.
65048
65049         * modules/hmac-md5-tests: New file.
65050
65051         * modules/hmac-md5: New file.
65052
65053 2005-10-06  Simon Josefsson  <jas@extundo.com>
65054
65055         * m4/hmac-md5.m4: New file.
65056
65057         * m4/memxor.m4: Require gl_C_RESTRICT.
65058
65059 2005-10-06  Simon Josefsson  <jas@extundo.com>
65060
65061         * lib/memxor.c (memxor): Avoid casts and warnings.
65062
65063 2005-10-06  Simon Josefsson  <jas@extundo.com>
65064
65065         * lib/hmac-md5.c: New file.
65066
65067         * lib/hmac.h: New file.
65068
65069 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65070
65071         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
65072         promotes to int, not unsigned int, to catch the AIX 5.3
65073         compiler bug.
65074
65075 2005-10-05  Simon Josefsson  <jas@extundo.com>
65076
65077         * modules/memxor: New file.
65078
65079         * modules/iconv (Files): Move config.rpath to havelib, it is used
65080         there.
65081
65082         * modules/havelib (Files): Add config.rpath.
65083
65084 2005-10-05  Simon Josefsson  <jas@extundo.com>
65085
65086         * m4/memxor.m4: New file.
65087
65088 2005-10-05  Simon Josefsson  <jas@extundo.com>
65089
65090         * lib/memxor.c (memxor): Fix compiler error.
65091
65092         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
65093         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
65094
65095         * lib/memxor.h, lib/memxor.c: New files.
65096
65097         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
65098         we assume all systems have it, suggested by Jim Meyering
65099         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
65100         any systems lack sys/socket.h; mingw32 is known to lack it, but we
65101         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
65102         same reasons.
65103
65104 2005-10-05  Simon Josefsson  <jas@extundo.com>
65105
65106         * config/srclist.txt: Add glibc bug 1423 for md5.h.
65107
65108 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65109
65110         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
65111         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
65112         needed, since the source code now assumes these .h files.
65113
65114 2005-10-05  Derek Price  <derek@ximbiot.com>
65115
65116         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
65117
65118 2005-10-05  Bruno Haible  <bruno@clisp.org>
65119
65120         * modules/stdint (License): Change to LGPL.
65121
65122 2005-10-04  Simon Josefsson  <jas@extundo.com>
65123
65124         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
65125         D. Baushke" <mdb@gnu.org>.
65126
65127 2005-10-04  Bruno Haible  <bruno@clisp.org>
65128
65129         * lib/verify.h (verify_true): Provide alternative definition for C++.
65130
65131 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65132
65133         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
65134         (SSIZE_MAX): New macro, if not already defined.
65135         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
65136         than 2 GiB.
65137
65138 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65139
65140         Sync from coreutils.
65141         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
65142         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
65143         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
65144         ULLONG_MAX doesn't work with 2.7.2.1.
65145
65146 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65147
65148         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
65149         From Ben Pfaff.
65150
65151         * modules/exclude (Depends-on): Depend on verify.
65152         * modules/strtoimax (Depends-on): Likewise.
65153         * modules/utimecmp (Depends-on): Likewise.
65154
65155 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65156
65157         * lib/exclude.c: Include verify.h.
65158         (verify): Remove.  All callers changed to use verify.h's version.
65159         * lib/strtoimax.c: Likewise.
65160         * lib/utimecmp.c: Likewis.e
65161
65162         Sync from coreutils.
65163         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
65164         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
65165         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
65166         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
65167         bother returning ENOSYS if settimeofday or stime fails; just let
65168         them return whatever errno they want to return.
65169         * lib/utimens.c: Include unistd.h, for dup2.
65170         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
65171         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
65172
65173 2005-10-02  Jim Meyering  <jim@meyering.net>
65174
65175         Sync from coreutils.
65176         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
65177         from glibc-2.2.5 that fails for read-only files.
65178
65179 2005-10-02  Jim Meyering  <jim@meyering.net>
65180
65181         Sync from coreutils.
65182         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
65183         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
65184         `#if HAVE_CONFIG_H'.
65185         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
65186         Remove AT_FDCWD test.
65187         Do not consume the fd unless successful.
65188         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
65189         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
65190         block, so that we don't even try to compile it if settimeofday is
65191         available.  This works around a compilation failure on OSF1 V5.1,
65192         due to stime requiring a `long int*' while tv_sec is `int'.
65193
65194 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65195
65196         Sync from coreutils.
65197         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65198         against `yes', rather than just testing for nonempty.
65199
65200 2005-10-01  Simon Josefsson  <jas@extundo.com>
65201
65202         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65203         and Darwin.
65204
65205         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65206         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65207         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65208         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65209         Check if struct addrinfo is declared.
65210
65211 2005-10-01  Simon Josefsson  <jas@extundo.com>
65212
65213         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65214         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65215         AI_* and EAI_* definitions.  Protect function declarations.
65216
65217 2005-10-01  Jim Meyering  <jim@meyering.net>
65218
65219         Sync from coreutils.
65220
65221         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65222         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65223         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65224         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65225         in the inet and nsl libraries.  Required on Solaris 5.7.
65226
65227 2005-10-01  Jim Meyering  <jim@meyering.net>
65228
65229         Sync from coreutils.
65230         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65231         in the inet and nsl libraries.  Required on Solaris 5.7.
65232
65233 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65234
65235         * lib/getdelim.c (getdelim): Remove unused variables.
65236
65237 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65238
65239         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65240         so that the code works even with ancient cpp.  Portability problem
65241         with GCC 2.7.2.1 reported by Thomas M.Ott.
65242
65243 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65244
65245         * modules/regex (Depends-on): Add strcase.
65246
65247         * modules/gethostname (Licence): Change from GPL to LGPL, since
65248         gethostname.c is a trivial implementation of a standard library
65249         function.
65250         * modules/poll (License): Change from GPL to LGPL, since it's
65251         derived from LGPL code.
65252
65253 2005-09-27  Jim Meyering  <jim@meyering.net>
65254
65255         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65256         HAVE_CONFIG_H.
65257
65258         * lib/intprops.h (signed_type_or_expr__): Define.
65259         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65260         for unsigned types.
65261
65262 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65263
65264         * lib/verify.h (verify_expr): Remove, replacing with:
65265         (verify_true): New macro that returns true instead of void.
65266         (verify_type__): Remove.
65267         (verify): Use verify_true rather than verify_type__.
65268
65269 2005-09-26  Bruno Haible  <bruno@clisp.org>
65270
65271         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
65272         is necessary.
65273         (lib_SOURCES): Remove mbchar.c.
65274         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
65275         (Files): Add m4/mbrtowc.m4.
65276         * modules/mbiter: Likewise.
65277         * modules/mbuiter: Likewise.
65278
65279 2005-09-26  Bruno Haible  <bruno@clisp.org>
65280
65281         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
65282         compile mbchar.c if they are not both present.
65283         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
65284         * m4/mbiter.m4 (gl_MBITER): Likewise.
65285         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
65286         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
65287         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
65288
65289 2005-09-25  Jim Meyering  <jim@meyering.net>
65290
65291         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
65292         also uses socklen_t.
65293
65294 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
65295
65296         * lib/utimens.c (ENOSYS): Define if not already defined.
65297         (futimens): Support having a null PATH if the file descriptor
65298         is nonnegative.
65299
65300         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
65301         Remove.
65302         (__attribute): Define to empty unless GCC 3.1 or later.
65303         This works around a core dump on OpenBSD 3.4, which has GCC
65304         2.95.3, which dumps core when given __attribute__(()).  It also
65305         simplifies other tests, since we really don't want to bother with
65306         worrying about which ancient version of GCC supported what.
65307         Original problem reported by Yoann Vandoorselaere, with part of
65308         the fix suggested by Derek Price.
65309
65310 2005-09-24  Jim Meyering  <jim@meyering.net>
65311
65312         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
65313         so we can once again use a positive bitfield width of 1 -- now we
65314         don't have to explain why we were using a bitfield width of 2.
65315
65316 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65317
65318         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
65319         and similarly for the other external symbols.  Problem reported
65320         by James Gallager.
65321
65322         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65323         bug reported by Jim Meyering.
65324
65325         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65326         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65327         not needed, since socklen is a prerequisite module.
65328
65329 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65330
65331         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65332         Problem reported by Eric Blake.
65333         (getaddrinfo): Initialize se so that it's not garbage.
65334         Redo internal storage allocation so that it doesn't make unportable
65335         assumptions about alignment.
65336         Fix a memory leak.
65337
65338         * lib/utimens.c (futimens): Use futimesat if available.
65339         Prefer it to futimes since it doesn't have the futimes bug.
65340
65341         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65342         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65343         Instead, declare a function that returns a pointer to an array,
65344         and use verify_type__ to declare the size of the array.
65345         Problem and germ of a solution reported by Bruno Haible.
65346         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65347         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65348
65349 2005-09-23  Jim Meyering  <jim@meyering.net>
65350
65351         Sync from coreutils.
65352         Correct build failure (socklen_t not defined) on at least
65353         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65354         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65355
65356 2005-09-23  Jim Meyering  <jim@meyering.net>
65357
65358         * modules/getaddrinfo (Depends-on): Add socklen.
65359
65360 2005-09-23  Bruno Haible  <bruno@clisp.org>
65361
65362         * tests/test-verify.c: New file.
65363
65364 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65365
65366         Sync from coreutils.
65367
65368         * modules/argmatch (Depends-on): Add verify.
65369         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65370         unistd-safer.
65371         * modules/save-cwd (Depends-on): Likewise.
65372
65373         * modules/openat (Files): Add lib/openat-die.c.
65374         (Depends-on): Remove error, exitfail.
65375         Add dirname.
65376
65377         * modules/verify: New file.
65378         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65379         with "verify" module.
65380
65381 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65382
65383         Sync from coreutils.
65384
65385         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65386         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65387         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65388         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65389         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65390         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65391         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65392         Don't bother checking for string.h, stdlib.h, unistd.h.
65393         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65394         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65395         module's job.
65396         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65397         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65398
65399         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65400         (gl_GETDATE): Use it.
65401
65402         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65403
65404 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65405
65406         Sync from coreutils.
65407
65408         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65409         stat-time.h.
65410         * lib/argmatch.h: Include verify.h
65411         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65412         (ARGMATCH_ASSERT): Remove; unused.
65413         * lib/canonicalize.c: Assume STDC_HEADERS.
65414         * lib/exclude.c: Include "strcase.h".
65415         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65416         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65417         and stdio-safer.h.
65418         (getusershell): Call fopen, not fopen_safer.
65419         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65420         Do not include unistd-safer.h.
65421         (save_cwd): Don't call fd_safer; no longer needed
65422         now that we include fcntl--.h.
65423
65424         * lib/getdate.y (relative_time): New type.
65425         (RELATIVE_TIME_0): New constant.
65426         (parser_control): Use relative_time instead of doing it ourselves.
65427         (%union): Add new relative_time rel member.
65428         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65429         Now typeless.
65430         (relunit, relunit_snumber): Now of type rel.
65431         (zone, rel, relunit, get_date): Adjust to above changes.
65432
65433         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65434         Do not include unistd-safer.h.
65435         (getloadavg): Don't call fd_safer; no longer needed
65436         now that we include fcntl--.h.
65437
65438         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65439         (make_dir_parents): Treat ENOSYS like EEXIST.
65440
65441         Improve quality of diagnostics on restore_cwd failure.
65442         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65443         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65444         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65445         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65446         each time through the loop.  Do not diagnose restore_cwd failure;
65447         that is the caller's job (and perhaps the caller does not care).
65448
65449         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65450         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65451         If the file already exists but is not a directory, don't bother
65452         to try to make its parents.
65453         Close potential file descriptor leak if we can't chdir("/") (!).
65454         Don't always return true if chdir($PWD) fails; return true only
65455         if the requested action was done successfully (except for the
65456         chdir($PWD)).
65457         Don't log final directory unless we actually made it.
65458         Refactor to avoid duplicate code to fix up permissions.
65459         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65460
65461         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65462         to make it a bit faster and (I hope) clearer.
65463         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65464         Fix bug in formats like %2N.
65465
65466         * lib/verify.h: New file.
65467
65468 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65469
65470         Sync from coreutils.
65471         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65472
65473 2005-09-22  Jim Meyering  <jim@meyering.net>
65474
65475         Sync from coreutils.
65476
65477         * m4/lstat.m4 (gl_FUNC_LSTAT):
65478         Use AC_LIBSOURCES to require lstat.c and lstat.h.
65479         Remove obsolete comment.
65480         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
65481         * m4/xstrtod.m4: Likewise.
65482
65483         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
65484
65485 2005-09-22  Jim Meyering  <jim@meyering.net>
65486
65487         Sync from coreutils.
65488
65489         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
65490
65491         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
65492         the .tm_year member, since otherwise gcc-4.0 would now warn about
65493         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
65494
65495         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
65496         order to avoid an unsuppressible warning from gcc on 64-bit systems.
65497
65498         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
65499         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
65500         when run in a time zone for which daylight savings time is in effect
65501         for the starting date.
65502
65503         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
65504         stop us from restricting permissions of just-created absolute-named
65505         directories.
65506         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
65507         to restore initial working directory.
65508         * lib/mkdir-p.c (make_dir_parents): New parameter:
65509         different_working_dir, to tell caller if/when we change the working
65510         directory and are unable to return to the initial one.
65511         * lib/mkdir-p.h (make_dir_parents): Update prototype.
65512         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
65513         `return false'.  This fixes a bug introduced on 2004-07-30.
65514
65515         * lib/openat.c (fdopendir): Be sure to close the supplied
65516         file descriptor before returning.  This makes our replacement
65517         implementation a little closer to Solaris's, where fdopendir
65518         ties the file descriptor to the returned DIR* pointer.
65519         * lib/openat.c (unlinkat): New function.
65520         * lib/openat.h (unlinkat): Add prototype.
65521         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
65522         (openat_restore_fail): Rename from openat_restore_die.
65523         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
65524
65525         Provide an alternative to exiting immediately upon save_cwd or
65526         restore_cwd failure.  Now, an application can arrange e.g.,
65527         to perform a longjump in that case.
65528         * lib/openat.c: Include dirname.h.
65529         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
65530         (rpl_openat, fdopendir, fstatat): Call openat_save_die
65531         and openat_restore_die rather than calling error directly.
65532         Don't include "error.h" or "exitfail.h"; they're no longer needed.
65533
65534         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
65535         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
65536         define.
65537
65538         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
65539         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
65540                             int utc, int nanoseconds);
65541         Background:
65542         date should not have to allocate a megabyte of virtual memory to
65543         handle a format argument like +%1048575T.  When implemented with
65544         strftime, it must allocate such a buffer, use strftime to fill it
65545         in, print it, then free it.
65546         With fprintftime, it simply prints everything and exits.
65547         With no need for memory allocation, that's one fewer way to fail.
65548         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
65549         optional field width, not before, so we accept %9:z, not %:9z.
65550         (my_strftime): Be sure to use L_('x') for literals.
65551
65552         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
65553         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
65554         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
65555         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
65556         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
65557         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
65558         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
65559         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
65560         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
65561         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
65562         * lib/xgethostname.c, lib/xreadlink.c:
65563         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
65564
65565         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
65566         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
65567         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
65568         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65569         and don't include <sys/file.h>).
65570
65571 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
65572
65573         Sync from coreutils.
65574
65575         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
65576         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
65577         [!LDAV_DONE]: Avoid unused variable warning.
65578
65579 2005-09-21  Bruno Haible  <bruno@clisp.org>
65580
65581         * lib/unicodeio.h (unicode_to_mb): New declaration.
65582
65583 2005-09-20  Derek Price  <derek@ximbiot.com>
65584
65585         * lib/getaddrinfo.c: Don't include <netdb.h> included from
65586         getaddrinfo.h.
65587
65588 2005-09-20  Bruno Haible  <bruno@clisp.org>
65589
65590         * gnulib-tool: Remove trailing slashes from the values specified for
65591         --source-base, --m4-base, --tests-base, --aux-dir.
65592         Suggested by Simon Josefsson <jas@extundo.com>.
65593
65594 2005-09-20  Bruno Haible  <bruno@clisp.org>
65595
65596         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
65597         func_modules_to_filelist, func_import, func_create_testdir): Make all
65598         sorting results locale-independent, so that gnulib-cache.m4 doesn't
65599         change when gnulib-tool is invoked in a different locale.
65600
65601 2005-09-19  Simon Josefsson  <jas@extundo.com>
65602
65603         * m4/socklen.m4: Fix typo.
65604
65605 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65606
65607         Use a consistent style for including <config.h>.
65608         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
65609         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
65610         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
65611         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
65612         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
65613         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
65614         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
65615         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
65616         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
65617         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
65618         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
65619         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
65620         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
65621         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
65622         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
65623         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
65624         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
65625         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
65626         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
65627         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
65628         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
65629         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
65630         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
65631         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
65632         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
65633         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
65634         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
65635         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
65636         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
65637         lib/xstrtoumax.c, lib/yesno.c:
65638         Standardize inclusion of config.h.
65639         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
65640         lib/inttostr.h:  Removed inclusion of config.h from header files.
65641         * lib/inttostr.c:  Adjusted in-tree users.
65642         * lib/timespec.h: Remove superfluous warning to include config.h.
65643         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
65644         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
65645         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
65646         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
65647         config.h with HAVE_CONFIG_H.
65648
65649 2005-09-19  Jim Meyering  <jim@meyering.net>
65650
65651         * modules/pathmax (License): Change to LGPL.
65652
65653 2005-09-19  Derek Price  <derek@ximbiot.com>
65654
65655         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
65656
65657 2005-09-19  Bruno Haible  <bruno@clisp.org>
65658
65659         * gnulib-tool (import): Provide default for --tests-base.
65660
65661 2005-09-19  Bruno Haible  <bruno@clisp.org>
65662
65663         * doc/quote.texi: New file, extracted from gnulib.texi.
65664         * doc/ctime.texi: New file, extracted from gnulib.texi.
65665         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
65666         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
65667         * doc/gnulib.texi: Include them.
65668
65669 2005-09-18  Bruno Haible  <bruno@clisp.org>
65670
65671         Portability fix.
65672         * gnulib-tool (func_readlink): New function.
65673         (func_ln_if_changed): Use it.
65674
65675 2005-09-18  Bruno Haible  <bruno@clisp.org>
65676
65677         * gnulib-tool: Support --with-tests also with --import.
65678         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
65679         (func_import): Use variables $testsbase and $inctests. Emit a
65680         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
65681         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
65682         SUBDIRS += $testsdir.
65683         (func_create_testdir): Update.
65684
65685 2005-09-18  Bruno Haible  <bruno@clisp.org>
65686
65687         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
65688         instead of $dry_run.
65689         (func_cp_if_changed, func_mv_if_changed): Remove functions.
65690         (func_ln_if_changed): Don't handle dry-run here.
65691         (func_import): In dry-run mode, detect more precisely which actions
65692         would be performed, and don't use "...ing" verbs.
65693
65694 2005-09-18  Bruno Haible  <bruno@clisp.org>
65695
65696         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
65697         (func_import): Use join on two temporary files instead of three nested
65698         loops, in order to determine which files are new or old.
65699
65700 2005-09-18  Bruno Haible  <bruno@clisp.org>
65701
65702         * gnulib-tool (func_import): Comment out code that spits out the
65703         new files with --dry-run.
65704
65705 2005-09-18  Bruno Haible  <bruno@clisp.org>
65706
65707         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
65708
65709 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65710
65711         * lib/stat-time.h: New file.
65712         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
65713         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
65714         in a different way.
65715         (timespec_cmp): New function.
65716         * lib/utimecmp.c: Include stat-time.h.
65717         (SYSCALL_RESOLUTION): Depend on whether various struct stat
65718         members exist, not on the obsolescent ST_MTIM_NSEC.
65719         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
65720
65721 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65722
65723         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
65724
65725 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65726
65727         * MODULES.html.sh (File system functions): Add stat-time.
65728         * modules/stat-time: New file.
65729         * modules/timespec (Files): Remove m4/st_mtim.m4; this
65730         is now done in a different way, by the stat-time module.
65731         * modules/utimecmp (Depends-on): Add stat-time.
65732
65733 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65734
65735         * m4/st_mtim.m4: Remove.  Superseded by...
65736         * m4/stat-time.m4: New file.
65737         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
65738         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
65739
65740 2005-09-15  Derek Price  <derek@ximbiot.com>
65741
65742         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
65743
65744 2005-09-15  Derek Price  <derek@ximbiot.com>
65745
65746         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
65747         * lib/regex_internal.c: Ditto, using this...
65748         (__GNUC_PREREQ): ...new macro.
65749         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
65750         using...
65751         (__GNUC_PREREQ): ...this new macro.
65752
65753         * lib/strstr.h: Include string.h. Define strstr as a macro here.
65754
65755 2005-09-15  Derek Price  <derek@ximbiot.com>
65756             Paul Eggert  <eggert@cs.ucla.edu>
65757
65758         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
65759         changes, consolidating in...
65760         * lib/regex_internal.h: ...this file.
65761
65762 2005-09-13  Jim Meyering  <jim@meyering.net>
65763
65764         * lib/canon-host.c: Filter through gnu indent and reword comments
65765         slightly.
65766         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
65767
65768 2005-09-13  Derek Price  <derek@ximbiot.com>
65769
65770         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
65771         failure.
65772         Reported by Jim Meyering  <jim@meyering.net>.
65773
65774 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65775
65776         * lib/base64.c: Typo.
65777         (base64_encode): Put b64str in initialized data section.
65778
65779 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65780
65781         Merge glibc and coreutils changes into gnulib, plus a few
65782         extra fixes.
65783         * lib/md5.c: Use #error rather than a string.
65784         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
65785         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
65786         (__attribute__): Define to empty for non recent-GCC.
65787         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
65788         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
65789         Renamed from their non-__ counterparts, with new macros replacing
65790         them if not _LIBC.  Add __THROW attribute.
65791         (rol): Remove.
65792         (struct md5_ctx): Align buffer if using GCC.
65793         * lib/sha1.h (struct sha1_ctx): Likewise.
65794         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
65795         The old name was backwards.
65796         (NOTSWAP): Remove; not used.
65797         (rol): New macro, moved here from md5.h.
65798         (sha1_process_block): Remove a FIXME that doesn't make sense.
65799
65800 2005-09-12  Derek Price  <derek@ximbiot.com>
65801
65802         Return usable errors from canon-host.
65803         * lib/canon-host.h: New file.
65804         * lib/canon-host.c (canon_host): Wrap...
65805         (canon_host_r): ...this new function, which now relies exclusively on
65806         getaddrinfo.
65807         (ch_strerror): New function.
65808         (last_cherror): New global.
65809         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
65810         interface.
65811         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
65812         void *.
65813         (freeaddrinfo): Free ai->ai_canonname when set.
65814
65815 2005-09-12  Derek Price  <derek@ximbiot.com>
65816
65817         Make canon-host require getaddrinfo.
65818         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
65819         AC_LIBSOURCE canon-host.h.  Call...
65820         (gl_PREREQ_CANON_HOST): ...this new function, which requires
65821         gl_GETADDRINFO.
65822         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
65823
65824 2005-09-12  Derek Price  <derek@ximbiot.com>
65825
65826         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
65827         LGPL.
65828         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
65829
65830 2005-09-12  Derek Price  <derek@ximbiot.com>
65831
65832         * lib/gai_strerror.c: Include config.h when available.  Include
65833         getaddrinfo.h before other headers to test interface.
65834         Reported by Larry Jones <lawrence.jones@ugs.com>.
65835
65836 2005-09-12  Derek Price  <derek@ximbiot.com>
65837             Paul Eggert  <eggert@cs.ucla.edu>
65838
65839         * modules/glob (Files): Add glob-libc.h.
65840
65841 2005-09-12  Derek Price  <derek@ximbiot.com>
65842             Paul Eggert  <eggert@cs.ucla.edu>
65843
65844         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
65845         glob_.h, glob-libc.h.
65846         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
65847
65848 2005-09-12  Derek Price  <derek@ximbiot.com>
65849             Paul Eggert  <eggert@cs.ucla.edu>
65850
65851         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
65852         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
65853         protecting things that should be done only in gnulib contexts.
65854         * lib/glob_.h: New file, containing only the glob things needed for
65855         gnulib.
65856         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
65857         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
65858         (glob, globfree, glob_pattern_p): Now defined simply in terms of
65859         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
65860         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
65861         and to respect the namespace rules better.
65862
65863 2005-09-08  Simon Josefsson  <jas@extundo.com>
65864
65865         * modules/socklen: New file.
65866
65867 2005-09-08  Simon Josefsson  <jas@extundo.com>
65868
65869         * m4/socklen.m4: New file.
65870
65871 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65872
65873         * modules/utimens (Files): Add m4/utimbuf.m4, since
65874         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
65875         Reported by Sergey Poznyakoff.
65876
65877 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65878
65879         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
65880         definitions, since that's the preferred style in glibc.
65881         Fix a minor spacing issue, and update copyright notice to match
65882         glibc's.
65883
65884 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65885
65886         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
65887
65888 2005-09-06  Simon Josefsson  <jas@extundo.com>
65889
65890         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
65891         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
65892
65893 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65894
65895         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
65896         warning.
65897
65898 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65899
65900         * config/srclist.txt: Add glibc bug 1302.
65901
65902 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
65903
65904         Change bitset word type from unsigned int to unsigned long int,
65905         as this has better performance on typical 64-bit hosts.
65906         Port bitset code to hosts with unusual word sizes.
65907         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
65908         (build_collating_symbol):
65909         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
65910         argument is a bitset.  This is merely a style issue, but it makes
65911         it clearer that an entire array is expected.
65912         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
65913         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
65914         Port to the case where bitset_word is not the same as unsigned int.
65915         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65916         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
65917         Likewise.
65918         * lib/regexec.c (check_dst_limits_calc_pos_1,
65919         check_subexp_matching_top):
65920         (build_trtable, group_nodes_into_DFAstates):
65921         Likewise.
65922         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
65923         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
65924         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
65925         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
65926         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
65927         * lib/regcomp.c (optimize_subexps, lower_subexp):
65928         Work even if bitset_word has holes in its bitwise representation.
65929         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
65930         * lib/regexec.c (check_dst_limits_calc_pos_1,
65931         check_subexp_matching_top):
65932         Likewise.
65933         * lib/regex_internal.c (re_string_reconstruct):
65934         Don't assume UCHAR_MAX == 255.
65935         * lib/regex_internal.h (bitset_set_all): Likewise.
65936         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
65937         All uses changed.
65938         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
65939         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
65940         All uses changed.
65941         (BITSET_WORD_MAX): New macro.
65942         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
65943         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
65944         (bitset_empty, bitset_copy):
65945         Prefer sizeof (bitset) to multiplying it out ourselves.
65946         (bitset_not_merge): Remove; unused.
65947         (bitset_contain): Return bool, not unsigned int with one bit on.
65948         All callers changed.
65949         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
65950         alignment than re_node_set; do this by defining a new internal
65951         type struct dests_alloc and using it to allocate memory.
65952
65953 2005-09-05  Bruno Haible  <bruno@clisp.org>
65954
65955         * gnulib-tool (func_import): Fix comparison in handling of symbolic
65956         links.
65957
65958 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
65959
65960         * modules/size_max (Makefile.am): Add size_max.h
65961
65962 2005-09-04  Derek Price  <derek@ximbiot.com>
65963
65964         * gnulib-tool (func_import): Fix reversed $symbolic logic.
65965
65966 2005-09-03  Simon Josefsson  <jas@extundo.com>
65967
65968         * gnulib-tool: Fix typo.
65969
65970 2005-09-03  Simon Josefsson  <jas@extundo.com>
65971
65972         * config/srclist.txt: Add glibc bug 1293.
65973
65974 2005-09-03  Derek Price  <derek@ximbiot.com>
65975
65976         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
65977         From Larry Jones <lawrence.jones@ugs.com>.
65978
65979 2005-09-02  Simon Josefsson  <jas@extundo.com>
65980
65981         * modules/socklen: New file.
65982
65983 2005-09-02  Simon Josefsson  <jas@extundo.com>
65984
65985         * modules/havelib: New module.
65986
65987         * modules/gettext, modules/iconv, modules/lock, modules/readline:
65988         Use havelib.
65989
65990 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65991
65992         Check for arithmetic overflow when calculating sizes, to prevent
65993         some buffer-overflow issues.  These patches are conservative, in the
65994         sense that when I couldn't determine whether an overflow was possible,
65995         I inserted a run-time check.
65996         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
65997         macros.
65998         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
65999         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
66000         (re_xnrealloc, re_x2nrealloc): New inline functions.
66001         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
66002         parse_bracket_exp):
66003         (build_equiv_class, build_charclass): Check for arithmetic overflow
66004         in size expression calculations.
66005         * lib/regex_internal.c (re_string_realloc_buffers):
66006         (build_wcs_upper_buffer, re_node_set_add_intersect):
66007         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
66008         (re_dfa_add_node, register_state): Likewise.
66009         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
66010         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
66011         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
66012         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
66013
66014 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66015
66016         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66017         m4/ulonglong.m4.  Problem reported by Martin Lambers.
66018
66019 2005-09-02  Bruno Haible  <bruno@clisp.org>
66020
66021         Support for lib vs. lib64 distinction on biarch platforms.
66022         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
66023         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
66024         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
66025
66026 2005-09-02  Bruno Haible  <bruno@clisp.org>
66027
66028         * gnulib-tool (import): In the other first-use case, provide defaults
66029         as well.
66030
66031 2005-09-02  Bruno Haible  <bruno@clisp.org>
66032
66033         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
66034         patches not yet found in the latest gettext release.
66035
66036 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66037
66038         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
66039         to avoid a collision with bits/local_lim.h in glibc.
66040         All uses changed.  Problem reported by Dmitry V. Levin in
66041         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
66042
66043         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
66044         bugs in int versus size_t comparisons.
66045         (re_string_context_at): Fix bug where the code assumed that
66046         Idx is signed.
66047
66048         Use bool where appropriate.
66049         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
66050         All callers changed.
66051         (calc_eclosure_iter): Likewise, for ROOT arg.
66052         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
66053         (build_charclass_op): Likewise, for NON_MATCH arg.
66054         * lib/regex_internal.c (re_string_allocate, re_string_construct):
66055         (re_string_construct_common): Likewise, for ICASE arg.
66056         * lib/regexec.c (re_search_2_stub, re_search_stub):
66057         Likewise, for RET_LEN arg.
66058         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
66059         (set_regs): Likewise, for FL_BACKTRACK arg.
66060         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
66061         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
66062         (calc_eclosure_iter, parse_bracket_exp):
66063         Use bool for internal variables that are booleans.
66064         * lib/regexec.c (re_search_internal, check_matching,
66065         proceed_next_node):
66066         (set_regs, build_sifted_states, sift_states_bkref):
66067         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
66068         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66069         (find_collation_sequence_value):
66070         Likewise.
66071         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
66072         (re_node_set_compare):
66073         Return bool, not int. All callers changed.
66074         * lib/regexec.c (check_halt_node_context, check_dst_limits):
66075         (build_trtable, check_node_accept): Likewise.
66076         * lib/regex_internal.h: Include stdbool.h.
66077
66078         Fix bugs uncovered when converting to bool.
66079         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
66080         failure instead of charging ahead blindly.
66081         * lib/regex_internal.c (register_state): Likewise.
66082         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
66083         for freeing internal storage.
66084         (group_nodes_into_DFA_states): Use unsigned int, not int, for
66085         bitset pieces used as boolean, to avoid undefined behavior
66086         on hosts that do int overflow checking.
66087
66088 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66089
66090         * config/srclist.txt: Add glibc bugs 1285-1287.
66091
66092 2005-09-01  Jim Meyering  <jim@meyering.net>
66093
66094         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
66095         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
66096         Require gl_STAT_MACROS, too.
66097
66098 2005-09-01  Bruno Haible  <bruno@clisp.org>
66099
66100         * gnulib-tool (import): In the first-use case, provide defaults.
66101
66102 2005-09-01  Bruno Haible  <bruno@clisp.org>
66103
66104         * gnulib-tool (func_import): Remove the .tmp files.
66105
66106 2005-09-01  Bruno Haible  <bruno@clisp.org>
66107
66108         * gnulib-tool (func_import): Fix handling of symbolic links.
66109
66110 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66111
66112         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
66113         old glibc regex code mishandles strings longer than 2**31 bytes.
66114         This patch fixes this when the regex code is used in gnulib
66115         (i.e., outside glibc).
66116
66117         This patch should not affect the use of the regex code inside
66118         glibc.  No doubt this problem also needs to be handled for glibc
66119         as well, but the result will be an incompatible change to the
66120         glibc ABI, and the old ABI will have to be supported too.  That
66121         can be the the subject for another patch.
66122
66123         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
66124         governing whether the rest of this patch is active.  By default,
66125         the macro is disabled and the patch has no effect.
66126         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
66127         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
66128         (struct re_pattern_buffer, re_search, re_search_2, re_match):
66129         (re_match_2, re_set_registers): Use the new types.
66130         * lib/regex_internal.h (Idx, re_hashval_t): New types.
66131         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
66132         New macros.
66133         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
66134         (re_string_context_at, bin_tree_t, re_dfastate_t):
66135         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
66136         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
66137         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
66138         (re_string_char_size_at, re_string_wchar_at):
66139         (re_string_elem_size_at):
66140         Use the new types and macros to port to 64-bit hosts.
66141         Use unsigned types for internal values, so that the code
66142         mostly works even for arrays larger than SSIZE_MAX.
66143         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
66144         (search_duplicated_node, calc_eclosure_iter, fetch_number):
66145         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66146         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
66147         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
66148         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
66149         (calc_inveclosure, parse_dup_op, build_range_exp):
66150         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
66151         (fetch_number, create_token_tree, mark_opt_subexp):
66152         Likewise.
66153         * lib/regex_internal.c (re_string_construct_common,
66154         create_ci_newstate):
66155         (create_cd_newstate, re_string_allocate, re_string_construct):
66156         (re_string_realloc_buffers, build_wcs_upper_buffer):
66157         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66158         (re_string_reconstruct, re_string_peek_byte_case):
66159         (re_string_fetch_byte_case, re_string_context_at):
66160         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66161         (re_node_set_init_copy, re_node_set_add_intersect):
66162         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66163         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66164         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66165         (re_acquire_state, re_acquire_state_context, register_state):
66166         Likewise.
66167         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
66168         search_cur_bkref_entry):
66169         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
66170         (re_search_internal, re_search_2_stub, re_search_stub)
66171         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
66172         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
66173         (update_cur_sifted_state, check_dst_limits):
66174         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66175         (check_subexp_limits, sift_states_bkref, merge_state_array):
66176         (check_subexp_matching_top, get_subexp, get_subexp_sub):
66177         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
66178         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66179         (expand_bkref_cache, check_node_accept_bytes):
66180         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
66181         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
66182         (acquire_init_state_context, check_halt_node_context):
66183         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
66184         (sift_states_backward, clean_state_log_if_needed):
66185         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
66186         (find_recover_state, transit_state_sb, transit_state_mb):
66187         (transit_state_bkref, build_trtable, match_ctx_clean):
66188         Likewise.
66189         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
66190         to work around an assumption that REG_MISSING is negative.
66191
66192         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66193         (seek_collating_symbol_entry) [defined _LIBC]:
66194         (lookup_collation_sequence_value) [defined _LIBC]:
66195         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66196         Use prototypes rather than old-style function definitions.
66197         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66198         (transit_state_sb) [0]:
66199         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66200
66201         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66202         rm_eo.
66203
66204         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66205         (optimize_subexps, lower_subexp):
66206         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66207         since the signed shift might overflow.  Use 1u<<31 instead.
66208         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66209         Likewise.
66210         * lib/regexec.c (check_dst_limits_calc_pos_1,
66211         check_subexp_matching_top): Likewise.
66212
66213         * lib/regcomp.c (optimize_subexps, lower_subexp):
66214         Use CHAR_BIT rather than 8, for clarity.
66215         * lib/regexec.c (check_dst_limits_calc_pos_1):
66216         (check_subexp_matching_top): Likewise.
66217         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66218         have to worry about portability issues when shifting it left.
66219         Remove no-longer-needed test for table_size > 0.
66220         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66221         in a word, as the resulting behavior is undefined.
66222         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66223         in one case, a <= should have been an <, and in another case the
66224         whole test was missing.
66225         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66226         the standard name CHAR_BIT.
66227         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66228         this is not true on one's complement and signed-magnitude hosts.
66229
66230         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66231         next_last_offset.
66232         (struct re_dfa_t): Remove unused member states_alloc.
66233         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66234
66235 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66236
66237         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66238         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66239         and large-file glibc and in 32-bit large-file Solaris.
66240
66241 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66242
66243         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66244         lengths fit in regoff_t; this isn't true if regoff_t is the same
66245         width as size_t.
66246         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66247         (= START + RANGE) instead of RANGE.  This avoids overflow
66248         problems when regoff_t is the same width as size_t.
66249         All callers changed.
66250         (re_search_2_stub): Check for overflow when adding the
66251         sizes of the two strings.
66252         (re_search_stub): Check for overflow when adding START
66253         to RANGE; if it occurs, substitute the extreme value.
66254
66255 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66256
66257         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66258
66259 2005-08-31  Jim Meyering  <jim@meyering.net>
66260
66261         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66262         a pointer-to-const.
66263         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
66264         (register_state): Likewise.
66265         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
66266         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66267         (group_nodes_into_DFAstates): Likewise.
66268
66269 2005-08-31  Jim Meyering  <jim@meyering.net>
66270
66271         * check-module: Add a FIXME comment.
66272
66273 2005-08-31  Eric Blake  <ebb9@byu.net>
66274
66275         * modules/unistd-safer (Files): Add unistd--.h.
66276         * modules/stdio-safer (Files): Add stdio--.h.
66277
66278 2005-08-31  Derek Price  <derek@ximbiot.com>
66279
66280         * lib/getdelim.c (getdelim): Return EOF on EOF.
66281         Reported by Larry Jones <lawrence.jones@ugs.com>.
66282
66283 2005-08-31  Bruno Haible  <bruno@clisp.org>
66284
66285         Avoid unnecessary diffs in the generated lib/Makefile.am.
66286         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
66287         the generated files.
66288         (func_import): Don't set cmd.
66289
66290 2005-08-31  Bruno Haible  <bruno@clisp.org>
66291
66292         * lib/strstr.c: Include <stddef.h>, for NULL.
66293         * lib/strcasestr.c: Likewise.
66294         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66295
66296 2005-08-31  Bruno Haible  <bruno@clisp.org>
66297
66298         * gnulib-tool: New option --macro-prefix.
66299         (func_import): Use macro_prefix.
66300         (import): Handle option --macro-prefix.
66301
66302 2005-08-31  Bruno Haible  <bruno@clisp.org>
66303
66304         * gnulib-tool (import): Rename most ac_* variables to cached_*.
66305         Also use new variables cached_lgpl, cached_libtool.
66306
66307 2005-08-31  Bruno Haible  <bruno@clisp.org>
66308
66309         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
66310         always instantiating them.
66311
66312 2005-08-31  Bruno Haible  <bruno@clisp.org>
66313
66314         * gnulib-tool (func_import): Read the previous cached settings
66315         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66316         earlier added by gnulib but are now dropped. Warn when a gnulib file
66317         overwrites a non-gnulib file.
66318
66319 2005-08-31  Bruno Haible  <bruno@clisp.org>
66320
66321         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66322         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66323         projects that don't keep autogenerated files in CVS. Put into
66324         actioncmd only the specified modules, not the transitive closure.
66325
66326 2005-08-31  Bruno Haible  <bruno@clisp.org>
66327
66328         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66329         Create directories that shall be filled.
66330         (import): Don't look for gl_* macros in configure.ac. Recurse across
66331         all directories containing a gnulib-cache.m4 files, if meaningful.
66332
66333 2005-08-31  Bruno Haible  <bruno@clisp.org>
66334
66335         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66336         (import): Set seen_libtool when we see gl_LIBTOOL.
66337
66338 2005-08-31  Bruno Haible  <bruno@clisp.org>
66339
66340         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66341         declaration macro definitions from generated gnulib.m4.
66342
66343 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66344
66345         * lib/iconvme.h: Add prototype for iconv_alloc.
66346
66347 2005-08-29  Simon Josefsson  <jas@extundo.com>
66348
66349         * lib/iconvme.c: Fix errno.
66350
66351 2005-08-29  Bruno Haible  <bruno@clisp.org>
66352
66353         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66354         that it works when the directory contains spaces.
66355
66356 2005-08-29  Bruno Haible  <bruno@clisp.org>
66357
66358         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66359
66360 2005-08-29  Bruno Haible  <bruno@clisp.org>
66361
66362         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66363         Emit more advice.
66364
66365 2005-08-29  Bruno Haible  <bruno@clisp.org>
66366         and Stepan Kasal  <kasal@ucw.cz>
66367
66368         * check-module: If more parameters are given, check each of them
66369         separately; add more exceptions, as noted by Jim Meyering.
66370         (check_module): New procedure.
66371         (%exempt_header): Now contains all exceptions.
66372
66373 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66374
66375         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66376
66377 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66378
66379         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66380
66381 2005-08-28  Bruno Haible  <bruno@clisp.org>
66382
66383         * m4/gnulib-tool.m4: New file.
66384
66385 2005-08-27  Jim Meyering  <jim@meyering.net>
66386
66387         * modules/unistd-safer (Files): Add pipe-safer.c.
66388         * modules/fcntl-safer (Files): Add creat-safer.c.
66389
66390 2005-08-27  Jim Meyering  <jim@meyering.net>
66391
66392         * m4/stdlib-safer.m4: New file.  From coreutils.
66393         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66394         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66395         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66396         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66397         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66398
66399 2005-08-27  Jim Meyering  <jim@meyering.net>
66400
66401         * lib/fopen-safer.c: Merge minor changes from coreutils.
66402         * lib/dup-safer.c: Likewise.
66403         * lib/fd-safer.c: Likewise.
66404
66405         Merge from coreutils.
66406         * lib/stdio--.h: New file.
66407         * lib/stdlib--.h: New file.
66408         * lib/mkstemp-safer.c: New file.
66409
66410         GNU tar needs these.
66411         * lib/pipe-safer.c: New file.
66412         * lib/creat-safer.c: New file.
66413         * lib/fcntl--.h (creat): Define to creat_safer.
66414         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66415         * lib/unistd--.h (pipe): Define to pipe_safer.
66416         * lib/unistd-safer.h: Declare pipe_safer.
66417
66418 2005-08-26  Simon Josefsson  <jas@extundo.com>
66419
66420         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66421         Haible <bruno@clisp.org>.
66422
66423 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66424
66425         * lib/regex_internal.h: Remove all references to
66426         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66427         or better.
66428         (bitset_not, bitset_merge, bitset_not_merge):
66429         (bitset_mask, re_string_allocate, re_string_construct):
66430         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66431         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66432         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66433         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66434         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66435         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66436         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66437         (re_acquire_state_context):
66438         Remove unnecessary forward decls.
66439         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66440         Put __attribute at function definition,
66441         now that the function decl has been removed.
66442         * lib/regex_internal.c (re_string_peek_byte_case):
66443         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66444         Likewise.
66445
66446 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66447
66448         * m4/regex.m4: Add AC_PREREQ(2.50).
66449         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66450
66451 2005-08-25  Simon Josefsson  <jas@extundo.com>
66452
66453         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66454         __fsetlocking.
66455
66456 2005-08-25  Simon Josefsson  <jas@extundo.com>
66457
66458         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66459         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66460         GLIBC specific code.
66461
66462 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66463
66464         Make regex safe for g++.  This fixes one real bug (an "err"
66465         that should have been "*err").  g++ problem reported by
66466         Sam Steingold.
66467         * lib/regex_internal.h (re_calloc): New macro, consistent with
66468         re_malloc etc.  All callers of calloc changed to use re_calloc.
66469         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66470         not int.  All callers changed.
66471         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66472         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66473         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
66474         (find_recover_state): Change "err" to "*err"; this fixes what
66475         appears to be a real bug.
66476         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
66477         versus int.
66478
66479 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66480
66481         * modules/regex (Depends-on): Add malloc, since the code
66482         assumes that !malloc(0) means failure.
66483
66484 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66485
66486         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
66487
66488         alloca modernization/simplification for regex.
66489         * lib/regex.c: Remove portability cruft for alloca.  This no longer
66490         needs to be at the start of the file, and can be moved into
66491         regex_internal.h and simplified.
66492         * lib/regex_internal.h: Include <alloca.h>.
66493         (__libc_use_alloca) [!defined _LIBC]: New macro.
66494         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
66495         now works outside glibc.
66496
66497 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66498
66499         * config/srclist.txt: Add glibc bugs 1241, 1245.
66500
66501 2005-08-25  Jim Meyering  <jim@meyering.net>
66502
66503         * lib/open-safer.c: Include <config.h>.
66504         Otherwise, we'd lose LARGEFILE support in any file using
66505         e.g. "fcntl--.h"
66506
66507 2005-08-25  Bruno Haible  <bruno@clisp.org>
66508
66509         * m4/minmax.m4: Require autoconf 2.52.
66510         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
66511         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
66512         alternatives of translit over the alphabet.
66513         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
66514
66515 2005-08-24  Simon Josefsson  <jas@extundo.com>
66516
66517         * tests/test-getpass.c: New file.
66518
66519 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66520
66521         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
66522         for GNU regex features.
66523
66524 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66525
66526         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
66527         * lib/regex.h (regerror): Likewise.
66528
66529         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
66530         requires this.  (The code never needed it.)
66531
66532         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
66533         All uses of recently-renamed identifiers changed to use the new,
66534         POSIX-compliant names.  The code will build and run just fine
66535         without these changes, but it's better to eat our own dog food
66536         and use the standard-conforming names.
66537
66538         * lib/regex.h: Fix a multitude of POSIX name space violations.
66539         These changes have an effect only for programs that define
66540         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
66541         do not change anything for programs compiled in the normal way.
66542         Also, there is no effect on the ABI.
66543
66544         (_REGEX_SOURCE): New macro.
66545         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
66546         defined and _GNU_SOURCE is not; this fixes a name space violation.
66547
66548         Rename the following macros to obey POSIX requirements.
66549         The old names are still visible as macros if _REGEX_SOURCE is defined.
66550         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
66551         RE_BACKSLASH_ESCAPE_IN_LISTS.
66552         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
66553         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
66554         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
66555         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
66556         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
66557         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
66558         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
66559         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
66560         (REG_INTERVALS): renamed from RE_INTERVALS.
66561         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
66562         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
66563         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
66564         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
66565         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
66566         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
66567         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
66568         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
66569         RE_UNMATCHED_RIGHT_PAREN_ORD.
66570         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
66571         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
66572         (REG_DEBUG): renamed from RE_DEBUG.
66573         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
66574         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
66575         unusual, since we can't clash with the POSIX REG_ICASE.
66576         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
66577         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
66578         (REG_NO_SUB): renamed from RE_NO_SUB.
66579         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
66580         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
66581         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
66582         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
66583         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
66584         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
66585         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
66586         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
66587         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
66588         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
66589         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
66590         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
66591         RE_SYNTAX_POSIX_MINIMAL_BASIC.
66592         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
66593         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
66594         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
66595         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
66596         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
66597         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
66598         (REG_FIXED): Renamed from REGS_FIXED.
66599         (REG_NREGS): Renamed from RE_NREGS.
66600
66601         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
66602         of other REG_* macros, since POSIX says the user is allowed to
66603         #undef these macros selectively.
66604
66605         (reg_errcode_t): Update comment stating what other tables need
66606         to be consistent.
66607
66608         Rename the following enum values to obey POSIX requirements.
66609         The old names are still visible as macros.
66610         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
66611         is not defined, since GNU is supposed to be a superset of POSIX as
66612         much as possible, and since we want reg_errcode_t to be a signed
66613         type for implementation consistency.
66614         (_REG_NOERROR): Renamed from REG_NOERROR.
66615         (_REG_NOMATCH): Renamed from REG_NOMATCH.
66616         (_REG_BADPAT): Renamed from REG_BADPAT.
66617         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
66618         (_REG_ECTYPE): Renamed from REG_ECTYPE.
66619         (_REG_EESCAPE): Renamed from REG_EESCAPE.
66620         (_REG_ESUBREG): Renamed from REG_ESUBREG.
66621         (_REG_EBRACK): Renamed from REG_EBRACK.
66622         (_REG_EPAREN): Renamed from REG_EPAREN.
66623         (_REG_EBRACE): Renamed from REG_EBRACE.
66624         (_REG_BADBR): Renamed from REG_BADBR.
66625         (_REG_ERANGE): Renamed from REG_ERANGE.
66626         (_REG_ESPACE): Renamed from REG_ESPACE.
66627         (_REG_BADRPT): Renamed from REG_BADRPT.
66628         (_REG_EEND): Renamed from REG_EEND.
66629         (_REG_ESIZE): Renamed from REG_ESIZE.
66630         (_REG_ERPAREN): Renamed from REG_ERPAREN.
66631         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
66632         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
66633         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
66634         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
66635
66636         (_REG_RE_NAME, _REG_RM_NAME): New macros.
66637         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
66638         changed.  But support the old name if the new one is not defined
66639         and if _REGEX_SOURCE.
66640
66641         Change the following member names in struct re_pattern_buffer.
66642         The old names are still supported if !_REGEX_SOURCE.
66643         The new names are always supported, regardless of _REGEX_SOURCE.
66644         (re_buffer): Renamed from buffer.
66645         (re_allocated): Renamed from allocated.
66646         (re_used): Renamed from used.
66647         (re_syntax): Renamed from syntax.
66648         (re_fastmap): Renamed from fastmap.
66649         (re_translate): Renamed from translate.
66650         (re_can_be_null): Renamed from can_be_null.
66651         (re_regs_allocated): Renamed from regs_allocated.
66652         (re_fastmap_accurate): Renamed from fastmap_accurate.
66653         (re_no_sub): Renamed from no_sub.
66654         (re_not_bol): Renamed from not_bol.
66655         (re_not_eol): Renamed from not_eol.
66656         (re_newline_anchor): Renamed from newline_anchor.
66657
66658         Change the following member names in struct re_registers.
66659         The old names are still supported if !_REGEX_SOURCE.
66660         The new names are always supported, regardless of _REGEX_SOURCE.
66661         (rm_num_regs): Renamed from num_regs.
66662         (rm_start): Renamed from start.
66663         (rm_end): Renamed from end.
66664
66665         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
66666         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
66667         Prepend __ to parameter names.
66668
66669         Undo yesterday's changes.
66670
66671 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66672
66673         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
66674         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
66675         lib/regex.c.
66676
66677 2005-08-24  Jim Meyering  <jim@meyering.net>
66678
66679         Sync from coreutils.
66680         * m4/fcntl-safer.m4: New file.
66681
66682         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
66683         and object files for this module.
66684
66685 2005-08-24  Jim Meyering  <jim@meyering.net>
66686
66687         Sync from coreutils.
66688         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
66689
66690 2005-08-24  Jim Meyering  <jim@meyering.net>
66691
66692         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
66693         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
66694
66695 2005-08-24  Jim Meyering  <jim@meyering.net>
66696
66697         * modules/fcntl-safer: New module.
66698         * modules/fts (Depends-on): Add fcntl-safer.
66699         * MODULES.html.sh (File descriptor based Input/Output):
66700         Add fcntl-safer.
66701
66702 2005-08-24  Bruno Haible  <bruno@clisp.org>
66703
66704         Support for unit test modules.
66705         * modules/README: Mention tests modules.
66706         * modules/TEMPLATE-TESTS: New file.
66707         * gnulib-tool: New options --extract-tests-module, --with-tests and
66708         --tests-base (unused for the moment).
66709         (testsbase, inctests): New variables.
66710         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
66711         (func_verify_module): Exclude TEMPLATE-TESTS.
66712         (func_verify_nontests_module, func_verify_tests_module): New functions.
66713         (func_get_dependencies): Add implicit dependency for tests modules.
66714         (func_get_tests_module): New function.
66715         (func_modules_transitive_closure): When --with-tests was specified,
66716         include the unit tests as well, unless explicitly avoided.
66717         (func_emit_lib_Makefile_am): Ignore the tests modules here.
66718         (func_emit_tests_Makefile_am): New function.
66719         (func_create_testdir): When --with-tests was specified, emit a
66720         tests/ directory.
66721         * MODULES.html.sh (Future developments): Update.
66722
66723 2005-08-24  Bruno Haible  <bruno@clisp.org>
66724
66725         * modules/tls-tests: New file.
66726         * tests/test-tls.c: New file, from GNU gettext.
66727
66728 2005-08-24  Bruno Haible  <bruno@clisp.org>
66729
66730         * modules/lock-tests: New file.
66731         * tests/test-lock.c: New file, from GNU gettext.
66732
66733 2005-08-24  Bruno Haible  <bruno@clisp.org>
66734
66735         * lib/lock.h: Add multiple inclusion guard.
66736         * lib/tls.h: Add multiple inclusion guard.
66737
66738 2005-08-24  Bruno Haible  <bruno@clisp.org>
66739
66740         * gnulib-tool: Add support for the --aux-dir option to
66741         --create-testdir, --create-megatestdir, --test, --megatest.
66742         (func_create_testdir, func_create_megatestdir): Optionally emit a
66743         AC_CONFIG_AUX_DIR directive.
66744         (create-testdir, create-megatestdir, test, megatest): Provide a
66745         default value for $auxdir.
66746
66747 2005-08-24  Bruno Haible  <bruno@clisp.org>
66748
66749         * gnulib-tool (import): Use compound statement instead of subshell
66750         where possible.
66751
66752 2005-08-24  Bruno Haible  <bruno@clisp.org>
66753
66754         * gnulib-tool (import): Change --aux-dir default to "build-aux".
66755
66756 2005-08-24  Bruno Haible  <bruno@clisp.org>
66757
66758         * gnulib-tool (func_version): Update.
66759
66760 2005-08-24  Bruno Haible  <bruno@clisp.org>
66761
66762         * gnulib-tool (func_import, func_create_testdir,
66763         func_create_megatestdir): Quote all autoconf macro arguments.
66764
66765 2005-08-24  Bruno Haible  <bruno@clisp.org>
66766
66767         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
66768         option --force, because --force causes the aclocal.m4 of each
66769         subdirectory to be newer than the corresponding config.h.in.
66770
66771 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66772
66773         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
66774         All contents moved to gl_REGEX.
66775         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
66776         assume that it does.
66777
66778 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66779
66780         * lib/regex.h (REG_NOSYS)
66781         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
66782         Define, since POSIX requires it as of 2001.
66783         (_REG_ENOSYS)
66784         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
66785         New private symbol, used to keep the enum signed in all cases.
66786         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
66787         Youngman in
66788         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
66789
66790         * lib/regex_internal.c (re_string_skip_chars, register_state):
66791         (calc_state_hash):
66792         Remove forward decls; no longer needed now that we use prototypes.
66793         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
66794         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
66795         (clean_state_log_if_needed): Likewise.
66796
66797 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66798
66799         * config/srclist.txt: Add glibc bugs 1231-1233.
66800
66801 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66802
66803         Fix problems reported by Sam Steingold in
66804         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
66805         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
66806         assumed that reg_errcode_t is a signed type, which is not
66807         necessarily true if _XOPEN_SOURCE is not defined.
66808         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
66809         since some compilers warn about it otherwise.
66810
66811 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66812
66813         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
66814         (init_word_char, create_initial_state, duplicate_node_closure):
66815         (fetch_token, peek_token_bracket, build_range_exp):
66816         (build_collating_symbol): Remove forward decls; no longer needed
66817         now that we use prototypes.
66818
66819         * lib/regcomp.c:
66820         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
66821         (re_compile_fastmap_iter, regcomp, regerror, regfree):
66822         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
66823         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
66824         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
66825         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
66826         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
66827         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
66828         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
66829         (build_range_exp, build_collating_symbol, parse_bracket_exp):
66830         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
66831         (build_charclass, build_charclass_op, fetch_number, create_tree):
66832         (create_token_tree, mark_opt_subexp, duplicate_tree):
66833         Use prototypes rather than old-style definitions.
66834
66835         * lib/regex_internal.c:
66836         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
66837         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
66838         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66839         (re_string_reconstruct, re_string_peek_byte_case):
66840         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
66841         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66842         (re_node_set_init_copy, re_node_set_add_intersect):
66843         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66844         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66845         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66846         (re_acquire_state, re_acquire_state_context, register_state):
66847         (create_ci_newstate, create_cd_newstate, free_state):
66848         Likewise.
66849         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
66850         re_search_2):
66851         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
66852         (re_search_internal, prune_impossible_nodes):
66853         (acquire_init_state_context, check_matching, static):
66854         (check_halt_node_context, check_halt_state_context, proceed_next_node):
66855         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
66856         (update_regs, sift_states_backward, build_sifted_states):
66857         (clean_state_log_if_needed, merge_state_array):
66858         (update_cur_sifted_state, add_epsilon_src_nodes):
66859         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
66860         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
66861         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
66862         (find_recover_state, check_subexp_matching_top, transit_state_mb):
66863         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
66864         (check_arrival, check_arrival_add_next_nodes):
66865         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66866         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66867         (check_node_accept_bytes, check_node_accept, extend_buffers):
66868         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
66869         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
66870         (sift_ctx_init):
66871         Likewise.
66872
66873         * lib/regex_internal.h:
66874         (re_string_allocate, re_string_construct, re_string_reconstruct):
66875         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
66876         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
66877         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
66878         (re_string_context_at, re_string_peek_byte_case):
66879         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
66880         is defined, since we now use prototypes always.
66881
66882         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
66883         C89 or better.  All uses removed.
66884
66885 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66886
66887         * config/srclist.txt: Add glibc bugs 1220-1227.
66888
66889 2005-08-20  Jim Meyering  <jim@meyering.net>
66890
66891         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
66892         of unused local, dfa.
66893
66894 2005-08-20  Bruno Haible  <bruno@clisp.org>
66895
66896         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
66897
66898 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66899
66900         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
66901         (re_node_set_insert_last, re_dfa_add_node):
66902         Rename local variables to avoid GCC shadowing warnings.
66903
66904 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66905
66906         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
66907         [defined lint]: Suppress bogus uninitialized-variable warnings.
66908
66909         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
66910         and let the caller return REG_ESPACE if out of space.  This
66911         removes an uninitialied-variable warning with GCC 4.0.1, and also
66912         avoids taking the address of a local variable.  All callers
66913         changed.
66914
66915 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66916
66917         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
66918         $LIBCSRC/posix/regexec.c.
66919         Add glibc bug 1217 for regcomp.c.
66920
66921 2005-08-19  Jim Meyering  <jim@meyering.net>
66922
66923         * lib/regexec.c (proceed_next_node): Redo local variables to
66924         avoid GCC shadowing warnings.
66925
66926 2005-08-18  Bruno Haible  <bruno@clisp.org>
66927
66928         * lib/strstr.c (strstr): Fix return value in multibyte case.
66929         * lib/strcasestr.c (strcasestr): Likewise.
66930
66931 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66932
66933         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
66934
66935 2005-08-17  Jim Meyering  <jim@meyering.net>
66936
66937         Make the %s format (seconds since the epoch) work for a negative
66938         number and when used with a zero-padded field width, e.g. %015s.
66939
66940         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
66941         label so that it precedes the code to set `digits'.  Otherwise,
66942         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
66943         print `00-22'.  Now, it prints `-0022', as it should.
66944
66945 2005-08-17  Bruno Haible  <bruno@clisp.org>
66946
66947         * modules/strstr (Files): Add m4/mbrtowc.m4.
66948         (Depends-on): Add mbuiter.
66949
66950 2005-08-17  Bruno Haible  <bruno@clisp.org>
66951
66952         * modules/strcasestr: New file.
66953         * MODULES.html.sh (String handling, based on ANSI C 89): Add
66954         strcasestr.
66955
66956 2005-08-17  Bruno Haible  <bruno@clisp.org>
66957
66958         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
66959
66960 2005-08-17  Bruno Haible  <bruno@clisp.org>
66961
66962         * modules/mbuiter: New file.
66963         * MODULES.html.sh (Extended multibyte and wide character utilities):
66964         Add mbuiter.
66965
66966 2005-08-17  Bruno Haible  <bruno@clisp.org>
66967
66968         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
66969         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
66970
66971 2005-08-17  Bruno Haible  <bruno@clisp.org>
66972
66973         * m4/strcasestr.m4: New file.
66974
66975 2005-08-17  Bruno Haible  <bruno@clisp.org>
66976
66977         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
66978         * lib/strstr.c: Completely rewritten, with multibyte locale support.
66979
66980 2005-08-17  Bruno Haible  <bruno@clisp.org>
66981
66982         * lib/strcasestr.h: New file.
66983         * lib/strcasestr.c: New file.
66984
66985 2005-08-17  Bruno Haible  <bruno@clisp.org>
66986
66987         * lib/strcasecmp.c: Use mbuiter.h.
66988
66989 2005-08-17  Bruno Haible  <bruno@clisp.org>
66990
66991         * lib/mbuiter.h: New file.
66992
66993 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66994
66995         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
66996         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
66997         and gl_GETOPT are both invoked via different paths (as happens
66998         with GNU tar CVS because it uses both argp and getopt), the former
66999         wins.
67000
67001 2005-08-16  Bruno Haible  <bruno@clisp.org>
67002
67003         * modules/tls: New file.
67004         * MODULES.html.sh (Multithreading): Add tls.
67005
67006 2005-08-16  Bruno Haible  <bruno@clisp.org>
67007
67008         * modules/strnlen1: New file.
67009         * MODULES.html.sh (String handling): Add strnlen1.
67010
67011 2005-08-16  Bruno Haible  <bruno@clisp.org>
67012
67013         * modules/strcase (Files): Add m4/mbrtowc.m4.
67014         (Depends-on): Add strnlen1, mbchar.
67015
67016 2005-08-16  Bruno Haible  <bruno@clisp.org>
67017
67018         * modules/mbiter: New file.
67019         * MODULES.html.sh (Extended multibyte and wide character utilities):
67020         Add mbiter.
67021
67022 2005-08-16  Bruno Haible  <bruno@clisp.org>
67023
67024         * modules/mbfile: New file.
67025         * MODULES.html.sh (Extended multibyte and wide character utilities):
67026         Add mbfile.
67027
67028 2005-08-16  Bruno Haible  <bruno@clisp.org>
67029
67030         * modules/mbchar: New file.
67031         * MODULES.html.sh (Extended multibyte and wide character utilities):
67032         New section.
67033
67034 2005-08-16  Bruno Haible  <bruno@clisp.org>
67035
67036         * m4/tls.m4: New file, from GNU gettext.
67037
67038 2005-08-16  Bruno Haible  <bruno@clisp.org>
67039
67040         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
67041         always.
67042         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
67043
67044 2005-08-16  Bruno Haible  <bruno@clisp.org>
67045
67046         * m4/mbiter.m4: New file.
67047
67048 2005-08-16  Bruno Haible  <bruno@clisp.org>
67049
67050         * m4/mbfile.m4: New file.
67051
67052 2005-08-16  Bruno Haible  <bruno@clisp.org>
67053
67054         * m4/mbchar.m4: New file.
67055
67056 2005-08-16  Bruno Haible  <bruno@clisp.org>
67057
67058         * lib/tls.h: New file, from GNU gettext.
67059         * lib/tls.c: New file, from GNU gettext.
67060
67061 2005-08-16  Bruno Haible  <bruno@clisp.org>
67062
67063         * lib/strnlen1.h: New file.
67064         * lib/strnlen1.c: New file.
67065
67066 2005-08-16  Bruno Haible  <bruno@clisp.org>
67067
67068         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
67069         (mbi_init): Update.
67070         (mbi_avail, mbi_advance): Let the iteration end before the terminating
67071         NUL byte, not after it.
67072
67073 2005-08-16  Bruno Haible  <bruno@clisp.org>
67074
67075         * lib/strcase.h (strcasecmp): Add note in comments.
67076         * lib/strncasecmp.c: Use code from strcasecmp.c.
67077         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
67078         (strcasecmp): Work correctly in multibyte locales.
67079
67080 2005-08-16  Bruno Haible  <bruno@clisp.org>
67081
67082         * lib/mbiter.h: New file.
67083
67084 2005-08-16  Bruno Haible  <bruno@clisp.org>
67085
67086         * lib/mbfile.h: New file.
67087
67088 2005-08-16  Bruno Haible  <bruno@clisp.org>
67089
67090         * lib/mbchar.h: New file.
67091         * lib/mbchar.c: New file.
67092
67093 2005-08-16  Bruno Haible  <bruno@clisp.org>
67094
67095         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
67096         the valid ones. Makes the comparison operations transitive:
67097         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
67098         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
67099
67100 2005-08-15  Simon Josefsson  <jas@extundo.com>
67101
67102         * modules/ssize_t (License): Change to 'unlimited'.
67103
67104         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
67105
67106 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67107
67108         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
67109         Add comments for each pending glibc patch.
67110
67111 2005-08-15  Bruno Haible  <bruno@clisp.org>
67112
67113         * lib/regex.h (__restrict_arr): Don't define to __restrict if
67114         __cplusplus is defined.
67115
67116 2005-08-14  Jim Meyering  <jim@meyering.net>
67117
67118         Sync from coreutils.
67119
67120         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
67121         Use the hash-table-based cycle-detection code not just when
67122         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
67123         Reported by James Youngman in
67124         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
67125         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
67126         FTS_TIGHT_CYCLE_CHECK.
67127         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
67128         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
67129         once again.
67130         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
67131         * lib/fts.c (fd_safer): Remove decl.
67132         Include fcntl--.h rather than unistd-safer.h
67133         (fts_safe_changedir): Don't call fd_safer; no longer needed
67134         now that we include fcntl--.h.
67135
67136 2005-08-12  Simon Josefsson  <jas@extundo.com>
67137
67138         * modules/getndelim2: Use ssize_t module.
67139         * modules/getnline: Likewise.
67140         * modules/safe-read: Likewise.
67141         * modules/xreadlink: Likewise.
67142
67143         * modules/ssize_t: New file.
67144
67145 2005-08-12  Simon Josefsson  <jas@extundo.com>
67146
67147         * m4/readline.m4: Look for termcap, curses or ncurses if required.
67148
67149 2005-08-12  Simon Josefsson  <jas@extundo.com>
67150
67151         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67152         ssize_t.
67153
67154 2005-08-12  Simon Josefsson  <jas@extundo.com>
67155
67156         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
67157         readline, getdelim and check_version.
67158         (Support for systems lacking ISO C 99: Sizes of integer types):
67159         Add size_max.
67160
67161 2005-08-12  Bruno Haible  <bruno@clisp.org>
67162
67163         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
67164
67165 2005-08-11  Simon Josefsson  <jas@extundo.com>
67166
67167         * modules/readline: New file.
67168
67169         * modules/strnlen (Files): Add strnlen.h.
67170
67171 2005-08-11  Simon Josefsson  <jas@extundo.com>
67172
67173         * m4/readline.m4: New file.
67174
67175 2005-08-11  Simon Josefsson  <jas@extundo.com>
67176
67177         * lib/readline.h, readline.c: New file.
67178
67179 2005-08-11  Simon Josefsson  <jas@extundo.com>
67180
67181         * doc/gnulib.texi (Initial import, Finishing touches): Mention
67182         gl_AVOID.
67183
67184 2005-08-11  Bruno Haible  <bruno@clisp.org>
67185
67186         * lib/strnlen.h (strnlen): Change parameter name to match comment.
67187
67188 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
67189
67190         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
67191
67192 2005-08-10  Simon Josefsson  <jas@extundo.com>
67193
67194         * tests/test-iconvme.c: New file.
67195
67196 2005-08-10  Simon Josefsson  <jas@extundo.com>
67197
67198         * m4/strnlen.m4: New file.
67199
67200         * m4/strndup.m4: Don't check for strnlen declaration, done in
67201         strnlen.m4.
67202
67203 2005-08-10  Simon Josefsson  <jas@extundo.com>
67204
67205         * lib/strndup.c: Use strnlen.h.
67206
67207         * lib/strnlen.h: New file.
67208
67209 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67210
67211         * README: Typos.
67212
67213 2005-08-02  Simon Josefsson  <jas@extundo.com>
67214
67215         * modules/readline: New file.
67216
67217 2005-08-02  Simon Josefsson  <jas@extundo.com>
67218
67219         * modules/getdelim: New file.
67220
67221         * modules/getline: Rewrite, don't use getndelim2.
67222
67223 2005-08-02  Simon Josefsson  <jas@extundo.com>
67224
67225         * m4/getline.m4: Separate out getdelim stuff into separate module.
67226
67227         * m4/getdelim.m4: New file.
67228
67229 2005-08-02  Simon Josefsson  <jas@extundo.com>
67230
67231         * lib/getline.h, getline.c: Rewrite.
67232
67233         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67234
67235 2005-07-31  Bruno Haible  <bruno@clisp.org>
67236
67237         * lib/lock.h (gl_lock_initializer): New macro.
67238         (gl_lock_define_initialized): Use it.
67239         (gl_rwlock_initializer): New macro.
67240         (gl_rwlock_define_initialized): Use it.
67241         (gl_recursive_lock_initializer): New macro.
67242         (gl_recursive_lock_define_initialized): Use it.
67243
67244 2005-07-30  Karl Berry  <karl@gnu.org>
67245
67246         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67247         Report from Ben Pfaff, regarding getopt.
67248
67249 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67250
67251         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67252         normal way.
67253         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67254         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67255         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67256         (gl_GETOPT): Use the new macros.  Most of the implementation
67257         is moved to the new macros.  This is for programs like Emacs
67258         that don't want all the functionality of gl_GETOPT.
67259
67260 2005-07-26  Bruno Haible  <bruno@clisp.org>
67261
67262         * m4/lock.m4: Update from GNU gettext.
67263
67264 2005-07-26  Bruno Haible  <bruno@clisp.org>
67265
67266         * lib/lock.h: Update from GNU gettext.
67267         * lib/lock.c: Update from GNU gettext.
67268
67269 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
67270
67271         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
67272         obsolescent AC_TRY_RUN.  Include the default includes files, for
67273         'exit'.
67274
67275 2005-07-24  Bruno Haible  <bruno@clisp.org>
67276
67277         * modules/visibility: New file.
67278         * MODULES.html.sh (Misc): Add visibility.
67279
67280 2005-07-24  Bruno Haible  <bruno@clisp.org>
67281
67282         * m4/visibility.m4: New file.
67283
67284 2005-07-24  Bruno Haible  <bruno@clisp.org>
67285
67286         * doc/visibility.texi: New file.
67287
67288 2005-07-22  Bruno Haible  <bruno@clisp.org>
67289
67290         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
67291         $(ALLOCA_H), redundant through BUILT_SOURCES.
67292         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
67293         redundant through BUILT_SOURCES.
67294         * modules/byteswap (Makefile.am): Remove explicit dependency on
67295         $(BYTESWAP_H), redundant through BUILT_SOURCES.
67296         * modules/fnmatch (Makefile.am): Remove explicit dependency on
67297         $(FNMATCH_H), redundant through BUILT_SOURCES.
67298         * modules/getopt (Makefile.am): Remove explicit dependency on
67299         $(GETOPT_H), redundant through BUILT_SOURCES.
67300         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
67301         redundant through BUILT_SOURCES.
67302         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
67303         redundant through BUILT_SOURCES.
67304         * modules/stdbool (Makefile.am): Remove explicit dependency on
67305         $(STDBOOL_H), redundant through BUILT_SOURCES.
67306         * modules/stdint (Makefile.am): Remove explicit dependency on
67307         $(STDINT_H), redundant through BUILT_SOURCES.
67308         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
67309         Remove explicit dependency on $(SYSEXITS_H).
67310         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
67311
67312 2005-07-18  Simon Josefsson  <jas@extundo.com>
67313
67314         * lib/check-version.c (check_version): Accept identical versions too.
67315
67316 2005-07-18  Bruno Haible  <bruno@clisp.org>
67317
67318         * modules/lock: New file.
67319         * MODULES.html.sh (Multithreading): New section.
67320
67321 2005-07-18  Bruno Haible  <bruno@clisp.org>
67322
67323         * m4/lock.m4: New file, from GNU gettext.
67324
67325 2005-07-18  Bruno Haible  <bruno@clisp.org>
67326
67327         * lib/lock.h: New file, from GNU gettext.
67328         * lib/lock.c: New file, from GNU gettext.
67329
67330 2005-07-18  Bruno Haible  <bruno@clisp.org>
67331
67332         * lib/lock.h (gl_once_t): New type.
67333         (gl_once_define, gl_once): New macros.
67334         * lib/lock.c (fresh_once): New variable.
67335         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67336         functions.
67337
67338 2005-07-16  Simon Josefsson  <jas@extundo.com>
67339
67340         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67341         workaround, suggested by Bruno.
67342
67343 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67344
67345         * modules/xalloc (Depends-on): Add xalloc-die.
67346         * modules/xvasprintf (Depends-on): Add xalloc-die.
67347
67348 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67349
67350         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67351         with a minor change.
67352
67353 2005-07-15  Bruno Haible  <bruno@clisp.org>
67354
67355         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67356         When using lib/poll.c, define poll as rpl_poll.
67357
67358 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67359
67360         * modules/argp (Depends-on): Remove unlocked-io.
67361
67362 2005-07-14  Derek Price  <derek@ximbiot.com>
67363
67364         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67365         for glob symlink bug.
67366
67367 2005-07-14  Bruno Haible  <bruno@clisp.org>
67368
67369         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67370         Instead, test for *_unlocked function declarations directly.
67371
67372 2005-07-11  Simon Josefsson  <jas@extundo.com>
67373
67374         * modules/size_max: New file.
67375
67376         * modules/xsize: Depend on size_max module for size_max.m4.
67377
67378 2005-07-11  Simon Josefsson  <jas@extundo.com>
67379
67380         * lib/size_max.h: New file.
67381
67382 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67383
67384         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67385         copyright symbol and the year.
67386         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67387         (version_etc_va): Use parameterized copyright notice.
67388         Reword to conform to the current GNU coding standards.
67389
67390 2005-07-11  Karl Berry  <karl@gnu.org>
67391
67392         * doc/gnulib.texi (Quoting): new node.
67393         (Initial import): more info, from Patrice.
67394
67395 2005-07-11  Bruno Haible  <bruno@clisp.org>
67396
67397         * gnulib-tool (func_usage): Document option --avoid.
67398         (Command line options): Handle --avoid.
67399         (func_acceptable): New function.
67400         (func_modules_transitive_closure): Use it.
67401
67402 2005-07-11  Bruno Haible  <bruno@clisp.org>
67403
67404         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67405         Reported by Jim Meyering.
67406
67407 2005-07-10  Bruno Haible  <bruno@clisp.org>
67408
67409         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67410         Needed when size_t is smaller than 'unsigned int'.
67411         Reported by Paul Eggert.
67412
67413 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67414
67415         * modules/argp (Depends-on): Add unlocked-io
67416
67417 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67418
67419         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67420         block of defines.
67421
67422 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67423
67424         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67425         fix now.
67426
67427 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67428         and Paul Eggert  <eggert@cs.ucla.edu>
67429
67430         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67431         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67432
67433 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67434
67435         * modules/regex (Files): Add lib/regex_internal.c,
67436         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67437         (Depends-on): Add extensions.
67438         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67439
67440 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67441
67442         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67443         pathconf.
67444         * m4/same.m4 (gl_SAME): Likewise.
67445         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67446
67447         * m4/regex.m4: Adjust to new libc regex implementation.
67448         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67449         all the .c and .h parts of (the new) regex.
67450         Quote the m4 stuff better.
67451         Check for RE_ICASE bug of old gnulib.
67452         Check for REG_STARTEND of recent libc.
67453         Rename local variables from jm_* to gl_*.
67454         Quote operand of "test -f".
67455         Say "recent enough" version of libc, not "version 2".
67456         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67457         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67458         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67459         Remove check for btowc, isascii.
67460         Require AM_LANGINFO_CODESET.
67461
67462 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67463
67464         * lib/regex.c, regex.h: Sync from libc.
67465         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67466         * lib/regexec.c:
67467         New files, synced from libc, except that regex_internal.h
67468         currently has a small porting fix.
67469
67470 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67471
67472         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67473         regex_internal.c, regexec.c.
67474         Add regex_internal.h too, but as a comment, since the libc version
67475         is currently broken in gnulib mode.
67476
67477 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67478
67479         Support programs like Emacs that use gnulib but not gettext.
67480         * MODULES.html.sh (Internationalization functions): Add gettext-h.
67481         * modules/gettext-h: New file.
67482         * modules/gettext (Files): Remove lib/gettext.h.
67483         (Depends-on): Add gettext-h.
67484         (Makefile.am): Remove lib_SOURCES.
67485         * modules/argmatch, modules/c-stack, modules/closeout:
67486         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
67487         * modules/execute, modules/file-type, modules/getaddrinfo:
67488         * modules/getopt, modules/human, modules/javacomp:
67489         * modules/javaexec, modules/mkdir-p, modules/obstack:
67490         * modules/openat, modules/pagealign_alloc, modules/pipe:
67491         * modules/quotearg, modules/regex, modules/rpmatch:
67492         * modules/unicodeio, modules/userspec, modules/version-etc:
67493         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
67494         * modules/xsetenv:
67495         Depend on gettext-h, not gettext.
67496
67497 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67498
67499         * gnulib-tool (func_import): Add support for 'public domain' license.
67500         * modules/alloca, modules/atexit, modules/memmove:
67501         Now public domain, not GPL.
67502         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
67503         * modules/realloc, modules/strerror, modules/strtod:
67504         Now LGPL, not GPL.
67505
67506 2005-07-05  Bruno Haible  <bruno@clisp.org>
67507
67508         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
67509         autoconf CVS. Needed for mingw.
67510
67511 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67512
67513         Remove the dependency of the strftime module on the tzset module.
67514         * modules/strftime (Depends-on): Remove dependency on tzset.
67515
67516 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67517
67518         Remove the dependency of the strftime module on the tzset module.
67519         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
67520         gl_FUNC_TZSET_CLOBBER.
67521
67522 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67523
67524         Remove the dependency of the strftime module on the tzset module.
67525         * lib/strftime.c (my_strftime)
67526         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
67527         Copy the input structure, to work around some of the bug with
67528         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
67529         Solaris releases, you should also use the tzset module, but we won't
67530         require it as a dependency any more since we don't want LGPLed code
67531         to depend on GPLed code.
67532
67533 2005-07-02  Jim Meyering  <jim@meyering.net>
67534
67535         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
67536         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
67537         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
67538         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
67539
67540 2005-07-02  Jim Meyering  <jim@meyering.net>
67541
67542         * lib/backupfile.c (backup_args): Change a `0' to NULL.
67543
67544 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67545
67546         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
67547         declares only 'struct timespec;' (!).
67548
67549 2005-07-01  Jim Meyering  <jim@meyering.net>
67550
67551         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
67552         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
67553         * lib/save-cwd.c, tempname.c:
67554         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67555         and don't include <sys/file.h>).
67556
67557 2005-06-29  Jim Meyering  <jim@meyering.net>
67558
67559         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
67560         type name.  Use the variable name instead.
67561         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
67562         Likewise.
67563
67564 2005-06-28  Simon Josefsson  <jas@extundo.com>
67565
67566         * modules/check-version (Files): Add check-version.m4.
67567
67568 2005-06-28  Simon Josefsson  <jas@extundo.com>
67569
67570         * m4/check-version.m4: New file, suggested by Jim Meyering
67571         <jim@meyering.net>.
67572
67573 2005-06-28  Simon Josefsson  <jas@extundo.com>
67574
67575         * lib/check-version.h, lib/check-version.c: New files.
67576
67577 2005-06-28  Simon Josefsson  <jas@extundo.com>
67578
67579         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
67580         collision with global variable.  Better indentation.  Don't
67581         increment buffer pointer beyond buffer end.  Based on comments
67582         from Paul Eggert <eggert@cs.ucla.edu>.
67583
67584         * lib/base64.h: Indent.
67585
67586 2005-06-28  Simon Josefsson  <jas@extundo.com>
67587
67588         * doc/gnulib.texi (Library version handling): New section.
67589
67590 2005-06-28  Jim Meyering  <jim@meyering.net>
67591
67592         * check-module (find_included_lib_files): Hard-code another
67593         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
67594         but modules/fts-lgpl (correctly) does not list those files.
67595
67596         * modules/canonicalize (Files): Add lib/pathmax.h.
67597
67598 2005-06-25  Simon Josefsson  <jas@extundo.com>
67599
67600         * modules/check-version: New file.
67601
67602 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
67603
67604         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
67605         initializer of struct addrinfo, as an indication that we don't
67606         care how many members the structure has.
67607
67608 2005-06-24  Derek Price  <derek@ximbiot.com>
67609         and Bruno Haible  <bruno@clisp.org>
67610
67611         Remove stat module & update lstat.
67612         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
67613         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67614         * m4/stat.m4: Remove this file.
67615
67616 2005-06-24  Derek Price  <derek@ximbiot.com>
67617         and Bruno Haible  <bruno@clisp.org>
67618
67619         Remove stat module & update lstat.
67620         * lib/stat.c: Remove this file...
67621         (slash_aware_lstat): ...moving this content and its support...
67622         * lib/lstat.c (rpl_lstat): ...into here.
67623         * lib/lstat.h: New file.
67624
67625 2005-06-24  Derek Price  <derek@ximbiot.com>
67626         and Bruno Haible  <bruno@clisp.org>
67627
67628         Remove stat module & update lstat.
67629         * config/srclist.txt (libc sources): Remove stat.
67630
67631 2005-06-24  Derek Price  <derek@ximbiot.com>
67632         and Bruno Haible  <bruno@clisp.org>
67633
67634         Remove stat module & update lstat.
67635         * MODULES.html.sh (stat): Remove.
67636         * MODULES.html: Regenerated.
67637         * modules/lstat (Description): Correct function name.
67638         (Files): Add "lstat.h".
67639         (Depends-on): Remove stat, add xalloc, stat-macros.
67640         * modules/stat: Remove this file.
67641         (Include): Add "lstat.h", remove <sys/stat.h>.
67642
67643 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67644
67645         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
67646         (ranged_convert): Don't save conversion in a temporary struct.
67647         This causes a warning with GCC 4.0.0, and anyway in the typical
67648         case it's not worth the extra 100 bytes or so of code.
67649         (ranged_convert, __mktime_internal): When calling a function via a
67650         pointer P, use P () rather than (*P) (), as we now assume C89 or
67651         better.
67652
67653 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67654
67655         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
67656         "who -r" failed to give output.  Problem reported by Tim Waugh.
67657
67658         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
67659         (xcalloc): Use it to avoid needless tests.
67660         Problem reported by Jim Meyering.
67661
67662 2005-06-20  Derek Price  <derek@ximbiot.com>
67663
67664         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
67665         unnecessary for Autoconfs > 2.59c.
67666
67667 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67668
67669         * lib/argp.h (__option_is_short): Check upper limit of
67670         __key. Isprint() requires its argument to have the value
67671         of an unsigned char or EOF.
67672
67673 2005-06-16  Jim Meyering  <jim@meyering.net>
67674
67675         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
67676         when either N or S is zero.
67677
67678 2005-06-16  Derek Price  <derek@ximbiot.com>
67679
67680         * m4/bison.m4: Declare YACC & YFLAGS precious.
67681
67682 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
67683
67684         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
67685         multibyte string or pattern, fall back on unibyte matching.
67686         Problem reported by James Youngman.
67687
67688 2005-06-08  Bruno Haible  <bruno@clisp.org>
67689
67690         * modules/csharpcomp: New file.
67691         * MODULES.html.sh (C#): Add csharpcomp.
67692
67693 2005-06-08  Bruno Haible  <bruno@clisp.org>
67694
67695         * m4/csharpcomp.m4: New file, from GNU gettext.
67696
67697 2005-06-08  Bruno Haible  <bruno@clisp.org>
67698
67699         * lib/csharpcomp.h: New file, from GNU gettext.
67700         * lib/csharpcomp.c: New file, from GNU gettext.
67701         * lib/csharpcomp.sh.in: New file, from GNU gettext.
67702
67703 2005-06-08  Bruno Haible  <bruno@clisp.org>
67704
67705         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
67706         warning on mingw.
67707
67708 2005-06-07  Derek Price  <derek@ximbiot.com>
67709
67710         Sync from CVS.
67711         * lib/glob_.h: Indent nested #ifdef.
67712
67713 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67714
67715         Sync from coreutils.
67716         Use "file name" when talking about file names, instead of "filename"
67717         or "path", as per the GNU coding standards.
67718         * lib/mkdir-p.c: Renamed from makepath.c.
67719         (make_dir_parents): Renamed from make_path.  All callers changed.
67720         * lib/mkdir-p.h: Likewise.  All includers changed.
67721         * lib/filenamecat.c: Renamed from path-concat.c.
67722         (file_name_concat): Renamed from path_concat.  All callers changed.
67723         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
67724         * lib/filenamecat.h: Likewise.  All includers changed.
67725         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
67726         in comments or local variable names.
67727         * lib/basename.c: Likewise.
67728         * lib/canonicalize.c, canonicalize.h: Likewise.
67729         * lib/dirname.c, dirname.h: Likewise.
67730         * lib/euidaccess.c: Likewise.
67731         * lib/exclude.c: Likewise
67732         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
67733         * lib/fsusage.c, fsuage.h: Likewise.
67734         * lib/fts.c, fts_.h: Likewise.
67735         * lib/getcwd.c: Likewise.
67736         * lib/getloadavg.c: Likewise.
67737         * lib/mkstemp.c: Likewise.
67738         * lib/mountlist.c, mountlist.h: Likewise.
67739         * lib/openat.c, openat.h: Likewise.
67740         * lib/readlink-stub.c: Likewise.
67741         * lib/readutmp.c, readutmp.h: Likewise.
67742         * lib/rename.c: Likewise.
67743         * lib/rmdir.c: Likewise.
67744         * lib/same.c: Likewise.
67745         * lib/savedir.c: Likewise.
67746         * lib/stripslash.c: Likewise.
67747         * lib/tempname.c: Likewise.
67748         * lib/xreadlink.c: Likewise.
67749         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
67750         All uses changed.
67751         * lib/exclude.h: Likewise.
67752
67753         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
67754         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67755         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
67756         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67757         * lib/pathmax.h: Include <limits.h> unconditionally, since other
67758         files have been getting away with it for years (MORE/BSD 4.3
67759         is extinct now).
67760         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
67761         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67762
67763         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
67764         Define to 256, not 255, as per modern POSIX.
67765
67766 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67767
67768         Sync from coreutils.
67769         Use "file name" when talking about file names, instead of "filename"
67770         or "path", as per the GNU coding standards.
67771         * MODULES.html.sh: mkdir-p renamed from makepath.
67772         filenamecat renamed from path-concat.
67773         * modules/filenamecat: Renamed from modules/path-concat.
67774         (Files): filenamecat.h and filenamecat.c renamed from
67775         path-concat.h and path-concat.c.
67776         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
67777         (Include): filenamecat.h, not path-concat.h.
67778         * modules/mkdir-p: Renamed from modules/makepath.
67779         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
67780         makepath.c.
67781         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
67782         (Include): mkdir-p.h, not makepath.h.
67783
67784 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67785
67786         Sync from coreutils.
67787         * m4/mkdir-p.m4: Renamed from makepath.m4.
67788         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
67789         Rename files from makepath.c to mkdir-p.c, and from
67790         makepath.h to mkdir-p.h.
67791         * m4/filenamecat.m4: Renamed from path-concat.m4.
67792         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
67793         Rename files from path-concat.c to filenamecat.c,
67794         and from path-concat.h to filenamecat.h.
67795         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
67796         "file name" in local variables or comments.
67797         * m4/rename.m4: Likewise.
67798
67799 2005-06-01  Bruno Haible  <bruno@clisp.org>
67800
67801         * modules/csharpexec: New file.
67802         * MODULES.html.sh (C#): New section.
67803
67804 2005-06-01  Bruno Haible  <bruno@clisp.org>
67805
67806         * m4/csharp.m4: New file, from GNU gettext.
67807         * m4/csharpexec.m4: New file, from GNU gettext.
67808
67809 2005-06-01  Bruno Haible  <bruno@clisp.org>
67810
67811         * lib/csharpexec.h: New file, from GNU gettext.
67812         * lib/csharpexec.c: New file, from GNU gettext.
67813         * lib/csharpexec.sh.in: New file, from GNU gettext.
67814
67815 2005-05-31  Derek Price  <derek@ximbiot.com>
67816             Paul Eggert  <eggert@cs.ucla.edu>
67817
67818         Sync from cvs.
67819         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67820
67821 2005-05-31  Derek Price  <derek@ximbiot.com>
67822             Paul Eggert  <eggert@cs.ucla.edu>
67823
67824         Sync from cvs.
67825         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67826
67827 2005-05-29  Derek Price  <derek@ximbiot.com>
67828
67829         * config/srclist.txt (glob_.h, glob.c): Add these files.
67830
67831 2005-05-29  Derek Price  <derek@ximbiot.com>
67832
67833         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
67834         * modules/glob: New file.
67835         * modules/getlogin_r: Add link to POSIX spec in description.
67836
67837 2005-05-29  Derek Price  <derek@ximbiot.com>
67838             Paul Eggert  <eggert@cs.ucla.edu>
67839
67840         * m4/glob.m4: New file.
67841
67842 2005-05-29  Derek Price  <derek@ximbiot.com>
67843             Paul Eggert  <eggert@cs.ucla.edu>
67844
67845         * lib/glob_.h, lib/glob.c: New files.
67846
67847 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67848
67849         * modules/fts (Files): Remove m4/inttypes-pri.m4.
67850         * modules/fts-lgpl (Depends-on): Remove gettext.
67851
67852 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67853
67854         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
67855         and don't require gt_INTTYPES_PRI.
67856
67857 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67858
67859         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
67860
67861         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
67862         the configuration hassle isn't worth it.
67863         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
67864         (LONGEST_MODIFIER, PRIuMAX): Remove.
67865
67866 2005-05-27  Bruno Haible  <bruno@clisp.org>
67867
67868         * lib/getlogin_r.h: Remove second include of <stddef.h>.
67869
67870 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
67871
67872         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
67873         _POSIX_PTHREAD_SEMANTICS for Solaris.
67874
67875 2005-05-25  Derek Price  <derek@ximbiot.com>
67876
67877         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
67878
67879 2005-05-25  Derek Price  <derek@ximbiot.com>
67880             Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         * modules/getlogin_r, m4/getlogin_r.m4: New files.
67883         * lib/getlogin_r.c, getlogin_r.h: New files.
67884
67885 2005-05-25  Bruno Haible  <bruno@clisp.org>
67886             Derek Price  <derek@ximbiot.com>
67887
67888         * lib/getlogin_r.h: Simplify API documentation.
67889
67890 2005-05-23  Derek Price  <derek@ximbiot.com>
67891
67892         * modules/minmax (Files): Add m4/minmax.m4.
67893         (configure.ac): Add gl_MINMAX.
67894
67895 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67896
67897         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
67898         so that unistd-safer.h (GPL'ed code) need not be included.
67899
67900 2005-05-22  Bruno Haible  <bruno@clisp.org>
67901
67902         * m4/minmax.m4: New file.
67903         Based on a patch by Derek Price <derek@ximbiot.com>.
67904
67905 2005-05-22  Bruno Haible  <bruno@clisp.org>
67906
67907         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
67908         (INT64_MIN): Fix definition.
67909         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
67910
67911         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
67912         NEED_SIGNED_INT_TYPES.
67913
67914         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
67915         HAVE_SYSTEM_INTTYPES.
67916
67917 2005-05-22  Bruno Haible  <bruno@clisp.org>
67918
67919         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
67920         Also include <sys/param.h> if it defines MIN, MAX.
67921         Based on a patch by Derek Price <derek@ximbiot.com>.
67922
67923 2005-05-21  Jim Meyering  <jim@meyering.net>
67924
67925         * modules/fts (Files): Add m4/inttypes-pri.m4.
67926         (Depends-on): Add lstat and remove gettext.  Alphabetize.
67927
67928 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67929
67930         New fts module.
67931         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
67932         (setup_dir, free_dir): New functions.
67933         (enter_dir, leave_dir): Define trivial
67934         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
67935         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
67936         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
67937         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
67938         Move to fts-cycle.c.
67939         (fts_open): Use setup_dir.
67940         (fts_close): Use free_dir.
67941         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
67942         This adds a label and some gotos, but the alternatives were messier.
67943         Check for memory allocation failure when entering a dir.
67944         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
67945         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
67946         (FTS): New member fts_cycle, that is a union that contains the
67947         old active_dir_ht and cycle_state.  All uses changed to mention
67948         fts_cycle.ht and fts_cycle.state.
67949         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
67950         fts.c, with the following changes:
67951         (setup_dir, free_dir): New functions.
67952         (enter_dir): Now returns bool.  Return true if successful, false
67953         if memory exhausted.  All callers changed.
67954         Do not bother partly cleaning up on
67955         memory allocation failure; that is free_dir's job.
67956         However, free ad if hash_insert fails, to avoid memory leak.
67957         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
67958         fts->fts_options to see which union member to use.
67959
67960 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67961
67962         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
67963         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
67964
67965 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67966
67967         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
67968
67969 2005-05-20  Jim Meyering  <jim@meyering.net>
67970
67971         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
67972         Now a macro, to pacify GCC.
67973
67974 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67975
67976         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
67977         of -1.
67978
67979 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67980
67981         * lib/chown.c (rpl_chown): Return -1 on failure.
67982
67983 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67984
67985         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
67986         Don't check for stddef.h.
67987         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
67988         don't use its results.
67989         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
67990         since we include them unconditionally.  Don't require
67991         AM_STDBOOL_H, since stdbool is a prerequisite.
67992         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
67993         since we assume C89 or better.
67994         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
67995         as we don't use their results.
67996         Don't check for fchdir, memmove, memset, strrchr, as we use
67997         them unconditionally.
67998         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
67999         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
68000
68001 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68002
68003         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
68004         Include <stddef.h> unconditionally, since we assume C89 now.
68005         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
68006         * lib/fts.c: Include fts_.h first, to check interface.
68007         Do not include intprops.h; no longer needed.
68008         Include cycle-check.h and hash.h, since fts_.h no longer does.
68009         Remove unnecessary casts of closedir to void.
68010         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
68011         decide whether to decrement nlinks.
68012         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
68013         (FTS): Use struct hash_table * instead of Hash_table, so that
68014         we no longer need to include hash.h here.
68015
68016 2005-05-18  Jim Meyering  <jim@meyering.net>
68017
68018         * modules/dirfd (License): Change to LGPL.  Most of the code
68019         is already in the public domain.
68020
68021 2005-05-18  Jim Meyering  <jim@meyering.net>
68022
68023         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
68024         Reported by Yoann Vandoorselaere.
68025
68026 2005-05-17  Jim Meyering  <jim@meyering.net>
68027
68028         * m4/fts.m4: New file, from coreutils.
68029
68030 2005-05-17  Jim Meyering  <jim@meyering.net>
68031
68032         * lib/fts.c, lib/fts_.h: New files, from coreutils.
68033
68034 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68035
68036         Sync from coreutils.
68037         * m4/unlinkdir.m4: New file.
68038
68039 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68040
68041         Sync from coreutils.
68042         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
68043         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
68044         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
68045         White space changes only.
68046         * lib/makepath.c (make_path): Port to hosts where leading "//" is
68047         special.
68048         * lib/yesno.c: Include getline.h, not ctype.h.
68049         (yesno): Don't remove leading white space; POSIX doesn't allow it.
68050         Use getline to remove arbitrary restriction on response length.
68051
68052 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68053
68054         * config/srclist-update: Spell out "Street" in FSF postal
68055         mail address; this is the style the FSF seems to prefer.
68056
68057         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
68058         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
68059         this updates FSF postal mail address.
68060
68061         Sync from coreutils.
68062         * modules/unlinkdir: New file.
68063         * modules/yesno (Depends-on): Add getline.
68064         * MODULES.html.sh (File system functions): Add unlinkdir.
68065
68066 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68067
68068         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
68069         lib/strsep.h:
68070         Change the initial comment to refer to GPL, not LGPL.
68071         gnulib-tool will change it to LGPL as needed.
68072
68073         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
68074         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
68075         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
68076         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
68077         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
68078         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
68079         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
68080         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
68081         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
68082         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
68083         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
68084         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
68085         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
68086         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
68087         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
68088         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
68089         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
68090         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
68091         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
68092         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
68093         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
68094         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
68095         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
68096         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
68097         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
68098         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
68099         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
68100         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
68101         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
68102         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
68103         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
68104         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
68105         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
68106         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
68107         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
68108         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
68109         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
68110         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
68111         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
68112         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
68113         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
68114         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
68115         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
68116         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
68117         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
68118         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
68119         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
68120         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
68121         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
68122         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
68123         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68124         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
68125         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
68126         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
68127         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
68128         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
68129         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
68130         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
68131         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
68132         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
68133         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
68134         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
68135         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
68136         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
68137         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
68138         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
68139         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
68140         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
68141         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
68142         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
68143         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
68144         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
68145         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
68146         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
68147         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
68148         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
68149         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
68150         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
68151         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
68152         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
68153         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
68154         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
68155         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
68156         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
68157         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
68158         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
68159         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
68160         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
68161         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
68162         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
68163         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
68164         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
68165         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
68166         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
68167         lib/yesno.c, lib/yesno.h:
68168         Update FSF postal mail address.
68169
68170 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68171
68172         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
68173         tests/test-memmem.c, tests/test-stpncpy.c:
68174         Update FSF postal mail address.
68175
68176 2005-05-13  Bruno Haible  <bruno@clisp.org>
68177
68178         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
68179         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
68180         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
68181         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
68182         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
68183         Add support for 64-bit integers in the MSVC compiler.
68184
68185 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68186
68187         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
68188
68189 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
68190
68191         * gnulib-tool (func_import): Sort and uniquify recommended includes.
68192
68193 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68194
68195         * doc/getdate.texi (General date syntax): Don't say that date
68196         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68197         Problem reported by Nic Ferrier.
68198
68199 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68200
68201         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68202         specified in ai_socktype. Fix invalid ai_protocol
68203         check. ai_protocol is usually set to 0 or depending on
68204         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68205         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68206         ai_socktype / ai_protocol in the returned addrinfo structure.
68207
68208 2005-05-10  Simon Josefsson  <jas@extundo.com>
68209
68210         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68211         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68212
68213 2005-05-10  Karl Berry  <karl@gnu.org>
68214
68215         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68216         (from http://www.gnu.org/licenses).
68217         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68218         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68219         fdl.texi suffices.
68220
68221 2005-05-10  Karl Berry  <karl@gnu.org>
68222
68223         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68224         (COPYING.DOC): remove.
68225
68226         * config/srclist-update: new FSF address.
68227
68228 2005-05-10  Derek Price  <derek@ximbiot.com>
68229
68230         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68231         possible.
68232
68233 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68234             Bruno Haible  <bruno@clisp.org>
68235
68236         * modules/inet_ntop: New file.
68237         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68238         inet_ntop.
68239
68240 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68241             Bruno Haible  <bruno@clisp.org>
68242
68243         * m4/inet_ntop.m4: New file.
68244
68245 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68246             Bruno Haible  <bruno@clisp.org>
68247
68248         * lib/inet_ntop.h: New file.
68249         * lib/inet_ntop.c: New file, from glibc with modifications.
68250
68251 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68252
68253         * modules/time_r (License): Change to LGPL.
68254         * modules/extensions (License): Change to LGPL.  Actually,
68255         the license is more permissive than that, but currently gnulib-tool
68256         doesn't know how to handle more-permissive licenses.
68257
68258         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68259         Problem reported by Dave Love.
68260
68261 2005-05-08  Jim Meyering  <jim@meyering.net>
68262
68263         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
68264         blank.
68265
68266 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68267
68268         * modules/argmatch (Depends-on): Add stdbool.
68269         * modules/backupfile (Depends-on): Likewise.
68270         * modules/chdir-long (Depends-on): Likewise.
68271         * modules/closeout (Depends-on): Likewise.
68272         * modules/cycle-check (Depends-on): Likewise.
68273         * modules/dirname (Depends-on): Likewise.
68274         * modules/fnmatch (Depends-on): Likewise.
68275         * modules/fsusage (Depends-on): Likewise.
68276         * modules/fwriteerror (Depends-on): Likewise.
68277         * modules/getcwd (Depends-on): Likewise.
68278         * modules/getloadavg (Depends-on): Likewise.
68279         * modules/hard-locale (Depends-on): Likewise.
68280         * modules/makepath (Depends-on): Likewise.
68281         * modules/mountlist (Depends-on): Likewise.
68282         * modules/nanosleep (Depends-on): Likewise.
68283         * modules/posixtm (Depends-on): Likewise.
68284         * modules/quotearg (Depends-on): Likewise.
68285         * modules/readtokens (Depends-on): Likewise.
68286         * modules/readtokens0 (Depends-on): Likewise.
68287         * modules/readutmp (Depends-on): Likewise.
68288         * modules/save-cwd (Depends-on): Likewise.
68289         * modules/strftime (Depends-on): Likewise.
68290         * modules/userspec (Depends-on): Likewise.
68291         * modules/utimecmp (Depends-on): Likewise.
68292         * modules/xgetcwd (Depends-on): Likewise.
68293         * modules/xnanosleep (Depends-on): Likewise.
68294         * modules/xstrtod (Depends-on): Likewise.
68295         * modules/yesno (Depends-on): Likewise.
68296
68297 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68298
68299         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
68300         needless checks.
68301
68302 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68303
68304         Merge from coreutils.  Among other things,
68305         add bulletproofing for cases where stdin, stdout, or stderr are closed.
68306         * lib/fd-safer.c: New file.
68307         * lib/fcntl-safer.h, open-safer.c: Remove.
68308         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
68309         * lib/dup-safer.c: Include unistd-safer.h first.
68310         Don't include errno.h.
68311         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
68312         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
68313         * lib/file-type.c: Rely on file-type.h change.
68314         * lib/getloadavg.c: Include unistd-safer.h.
68315         (getloadavg): Use safer open.
68316         * lib/getusershell.c: Include "stdio-safer.h".
68317         (getusershell): Use safer fopen.
68318         * lib/long-options.c (long_options): Use NULL rather than 0.
68319         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
68320         'free'.
68321         * lib/modechange.c: Likewise.
68322         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68323         (MODE_DONE): New constant.
68324         (struct mode_change): Remove 'next' member.
68325         (make_node_op_equals): New function; like the old one of the
68326         same name, except it allocates an array.
68327         (mode_compile, mode_create_from_ref): Use it.
68328         (mode_compile): Allocate result as an array, not a linked list.
68329         Parse octal string ourself, so that we catch mistakes like "+0".
68330         (mode_adjust): Arg is an array, not a linked list.
68331         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68332         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68333         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68334         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68335         Remove.  This is now stat-macros.h's job.
68336         (talloc): Remove.  All callers replaced by xalloc, so that
68337         our invokers don't have to worry about reporting memory failures.
68338         (make_node_op_equals): Remove.
68339         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68340         New constants.
68341         (struct mode_change): Moved here from modechange.h.
68342         (mode_append_entry): Remove.
68343         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68344         apps to have incorrect behavior.  Use simpler algorithm for head
68345         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68346         Detect more invalid usages rather than having somewhat-random behavior.
68347         Don't insert an "a=" action, as that leads to incorrect behavior.
68348         (mode_compile, mode_create_from_ref): Return NULL on error instead
68349         of an enum, since now there's only one way to have an error.  All
68350         callers changed.
68351         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68352         at the correct time.  Simplify calculation of "+u" and its ilk.
68353         Don't mishandle "+X".
68354         (mode_free): Remove "register" and localize decls.
68355         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68356         (struct mode_change): Move to modechange.c; callers don't
68357         need to see this stuff.
68358         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68359         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68360         (mode_change, mode_adjust): Reflect the new signatures noted above.
68361         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68362         that might redefine system include files.
68363         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68364         (my_usleep): Use NULL rather than (void *) 0.
68365         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68366         Use siginterrupt to specify that system calls should be interrupted.
68367         (rpl_nanosleep): Move initialization of suspended closer to call of
68368         my_usleep.
68369         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68370         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68371         (desirable_utmp_entry): New function.
68372         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68373         using x2nrealloc, to simplify logic.
68374         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68375         size calculation.  Do not assume utmp file is a regular file.
68376         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68377         (READ_UTMP_CHECK_PIDS): New constant.
68378         * lib/save-cwd.c: Include unistd-safer.h.
68379         (save_cwd): Use fd_safer.
68380         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68381         [!_LIBC] Include "stat-macros.h" instead.
68382         * lib/unistd-safer.h (fd_safer): New decl.
68383
68384 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68385
68386         * modules/getloadavg (Depends-on): Add unistd-safer.
68387         * modules/getusershell (Depends-on): Add stdio-safer.
68388         * modules/lstat (Depends-on): Remove xalloc.
68389         * modules/mkstemp (Depends-on): Add stat-macros.
68390         * modules/modechange (Depends-on): Remove xstrtol.
68391         Add stat-macros, xalloc.
68392         * modules/save-cwd (Depends-on): Add unistd-safer.
68393         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68394         * modules/unistd-safer (Files): Add lib/fd-safer.c
68395         (Makefile.am): Remove lib_SOURCES.
68396
68397         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68398         Remove fcntl-safer; unistd-safer supersedes it.
68399
68400 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68401
68402         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68403         AC_HEADER_STAT.
68404         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68405         (gl_PREREQ_CHOWN): Remove.
68406         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68407         it.  Don't require AC_HEADER_STAT.
68408         (gl_PREREQ_LSTAT): Remove.
68409         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68410         Don't require AC_HEADER_STAT.
68411         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68412         (gl_PREREQ_RMDIR): Remove.
68413         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68414         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68415         the stat-macros module a prerequisite.
68416         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68417         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68418         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68419         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68420         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68421         variable names.
68422         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68423         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68424         variable prefixes.
68425         * m4/fcntl-safer.m4: Remove.
68426         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68427         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68428         Invoke gl_PREREQ_FD_SAFER.
68429         (gl_PREREQ_FD_SAFER): New macro.
68430         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68431         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68432         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68433         Remove duplicate call to AC_LIBOBJ(readutmp).
68434         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68435
68436         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68437         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68438
68439 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68440
68441         * MODULES.html.sh (Misc): Add byteswap.
68442
68443 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68444
68445         * modules/getcwd (Depends-on): Add extensions.
68446         * modules/openat (Depends-on): Likewise.
68447
68448 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68449
68450         * modules/byteswap: New file.
68451
68452 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68453
68454         * m4/byteswap.m4: New file.
68455
68456 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68457
68458         * lib/byteswap_.h: New file.
68459
68460 2005-04-25  Karl Berry  <karl@gnu.org>
68461
68462         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68463
68464 2005-04-25  Albert Chin  <china@thewrittenword.com>
68465
68466         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68467         Toolkit C bug.
68468
68469 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68470
68471         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68472         (func_ln_if_changed): Remove forcibly for no error message
68473         in case file does not exist.
68474
68475 2005-04-19  Simon Josefsson  <jas@extundo.com>
68476
68477         * gnulib-tool (Options): Make --symlink mean --symbolic.
68478
68479 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
68480
68481         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
68482
68483 2005-04-16  Simon Josefsson  <jas@extundo.com>
68484
68485         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
68486
68487 2005-04-15  Simon Josefsson  <jas@extundo.com>
68488
68489         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
68490
68491 2005-04-15  Simon Josefsson  <jas@extundo.com>
68492
68493         * gnulib-tool: Rename --symlink to --symbolic.
68494
68495 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
68496
68497         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
68498         symbolic links to files instead of copying/moving.  Add --aux-dir,
68499         specifying directory relative --dir where auxiliary build tools
68500         are placed.
68501
68502 2005-04-14  Bruno Haible  <bruno@clisp.org>
68503
68504         * modules/allocsa (License): Change to LGPL.
68505         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68506
68507 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68508
68509         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
68510         that "UTC +1 second" continues to work.  Problem reported
68511         by Dmitry V. Levin.
68512         (relunit_snumber): New rule.
68513         (relunit): Use it.
68514
68515 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68516
68517         * lib/getdate.y (universal_time_zone_table): New constant.
68518         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
68519         universal_time_zone_table.
68520         (lookup_zone): Prefer universal_time_zone_table to
68521         local_time_zone_table, so that "GMT" time stamps are allowed in
68522         London during the summer.  Problem reported by Ian Abbott.
68523
68524 2005-04-12  Jim Meyering  <jim@meyering.net>
68525
68526         * lib/human.c (humblock): Set *options even when returning due to
68527         xstrtoumax conversion failure.  Thanks to a used-uninitialized
68528         warning from gcc-4.
68529
68530 2005-04-09  Jim Meyering  <jim@meyering.net>
68531
68532         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
68533         -Wuninitialized: initialize tm0.tm_year.
68534
68535 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68536
68537         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
68538         count, since there's no maximum.  All uses changed.
68539         Add member dsts_seen.
68540         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
68541         not being INT_MAX.
68542         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
68543         Use pc_rels_seen to decide whther a date is absolute.
68544
68545         * lib/getdate.y (number): Don't overwrite year.
68546         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
68547         check.
68548
68549 2005-04-02  Simon Josefsson  <jas@extundo.com>
68550
68551         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
68552         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
68553
68554 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
68555
68556         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
68557         where no absolute path name can be longer than PATH_MAX.
68558
68559 2005-03-27  Jim Meyering  <jim@meyering.net>
68560
68561         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
68562
68563 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
68564
68565         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
68566         "one's complement" -> "ones' complement" in comment, as per Knuth.
68567         "value of type" -> "type or expression" in comment.
68568         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
68569
68570 2005-03-26  Jim Meyering  <jim@meyering.net>
68571
68572         Comment nits.
68573         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
68574         Correct typos: s/or/of/.
68575
68576 2005-03-26  Jim Meyering  <jim@meyering.net>
68577
68578         * modules/check-include-files: Move to ../ and rename to...
68579         * check-module: ...this.
68580
68581 2005-03-25  Jim Meyering  <jim@meyering.net>
68582
68583         * modules/xvasprintf (Files): Add xalloc.h.
68584
68585 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68586
68587         * modules/gettext (Files): config/config.rpath ->
68588         build-aux/config.rpath
68589         * modules/iconv (Files): Likewise.
68590         Problem reported by Oskar Liljeblad.
68591
68592 2005-03-23  Jim Meyering  <jim@meyering.net>
68593
68594         * modules/check-include-files: New script to check for
68595         missing dependencies, multiple includes, etc.
68596
68597         * modules/c-strtold (Depends-on): Add xalloc.
68598         * modules/c-strtod (Depends-on): Add xalloc.
68599         * modules/hash (Depends-on): Add xalloc.
68600         (Files): Remove lib/xalloc.h.
68601
68602         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
68603         * modules/userspec (Files): Add lib/inttostr.h.
68604
68605 2005-03-23  Jim Meyering  <jim@meyering.net>
68606
68607         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
68608
68609 2005-03-22  Jim Meyering  <jim@meyering.net>
68610
68611         * modules/stat-macros: New module.
68612         * modules/canonicalize, modules/euidaccess, modules/file-type,
68613         * modules/filemode, modules/lchown, modules/makepath,
68614         * modules/rmdir, modules/stat: Depend on new stat-macros module
68615         rather than listing lib/stat-macros.h manually.
68616         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
68617
68618 2005-03-22  Jim Meyering  <jim@meyering.net>
68619
68620         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
68621
68622 2005-03-22  Bruno Haible  <bruno@clisp.org>
68623
68624         * config/srclist.txt: Replace target directory 'config' with
68625         'build-aux'.
68626         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
68627         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
68628         ../build-aux/.
68629
68630 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
68631
68632         * modules/chdir-long (Depends-on): Add mempcpy.
68633
68634         * modules/acl, modules/backupfile, modules/c-strtod,
68635         modules/c-strtold, modules/canon-host, modules/canonicalize,
68636         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
68637         modules/exclude, modules/exitfail, modules/file-type,
68638         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
68639         modules/getdate, modules/getline, modules/getpagesize,
68640         modules/getpass, modules/getugroups, modules/group-member,
68641         modules/hard-locale, modules/hash, modules/human, modules/idcache,
68642         modules/inttostr, modules/long-options, modules/makepath,
68643         modules/md5, modules/memcasecmp, modules/memcoll,
68644         modules/modechange, modules/mountlist, modules/path-concat,
68645         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
68646         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
68647         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
68648         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
68649         modules/strftime, modules/strndup, modules/strverscmp,
68650         modules/timespec, modules/unlocked-io, modules/userspec,
68651         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
68652         modules/yesno:
68653         Remove lib_SOURCES line from Makefile.am section, as this is now
68654         done automatically by the corresponding Autoconf macro.
68655
68656 2005-03-21  Jim Meyering  <jim@meyering.net>
68657
68658         Changes imported from coreutils.
68659
68660         * lib/cycle-check.c: Don't include xalloc.h.
68661
68662         * lib/path-concat.c: Don't include assert.h.
68663         (path_concat): Remove assertion that would have triggered
68664         for ABASE starting with more than one slash.
68665         Reported by Andreas Schwab.
68666
68667         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
68668         properly when ABASE is an absolute file name.
68669         Correct the description of this function.
68670         Include <assert.h>.
68671         Add an assertion and a test driver.
68672         This fixes a bug introduced on 2004-07-02.
68673         Andreas Schwab reported the resulting failure of cp --parents:
68674         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
68675
68676 2005-03-21  Jim Meyering  <jim@meyering.net>
68677
68678         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
68679         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
68680
68681 2005-03-21  Jim Meyering  <jim@meyering.net>
68682         and  Paul Eggert  <eggert@cs.ucla.edu>
68683
68684         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
68685         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
68686         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
68687         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
68688         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
68689         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
68690         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
68691         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
68692         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
68693         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
68694         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
68695         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
68696         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
68697         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
68698         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
68699         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
68700         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
68701         for these modules.
68702
68703 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
68704
68705         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
68706         (which shouldn't happen), generate nothing instead of returning 0
68707         immediately, so that nstrftime (NULL, ...) doesn't return 0.
68708
68709 2005-03-16  Bruno Haible  <bruno@clisp.org>
68710
68711         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
68712         HAVE_LONGLONG_64BIT.
68713
68714 2005-03-16  Bruno Haible  <bruno@clisp.org>
68715
68716         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
68717         HAVE_LONGLONG_64BIT.
68718
68719 2005-03-16  Bruno Haible  <bruno@clisp.org>
68720
68721         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
68722         HAVE_LONGLONG_64BIT.
68723
68724 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68725
68726         * lib/strftime.c (my_strftime): Prepend space to format so that we can
68727         reliably distinguish strftime failure from empty output on POSIX
68728         hosts.
68729
68730 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68731
68732         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
68733         (iconv_string): Don't guess a size-zero buffer, as that might cause
68734         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
68735         result would be 'too large', where 'too large' is (heuristically)
68736         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
68737         overflow concerns.  This will prevent some unwanted malloc failures
68738         when the inputs are very large.
68739
68740 2005-03-15  Karl Berry  <karl@gnu.org>
68741
68742         * config/srclist.txt (config.rpath): from gettext.
68743         * config/config.rpath: update.
68744
68745 2005-03-15  Bruno Haible  <bruno@clisp.org>
68746
68747         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
68748         to 'negate'.
68749
68750         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
68751         variable.
68752
68753         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
68754         results.
68755
68756 2005-03-14  Simon Josefsson  <jas@extundo.com>
68757
68758         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
68759         <fx@gnu.org>.
68760
68761 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
68762
68763         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
68764         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
68765         intprops.h.
68766         * lib/strtol.c: Likewise.
68767
68768 2005-03-14  Jim Meyering  <jim@meyering.net>
68769
68770         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
68771         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
68772         to be nonzero so that we (and caller) can detect the difference
68773         between a valid zero-length expansion and an error return, even
68774         when the underlying strftime fails before writing anything into
68775         that location.
68776
68777 2005-03-14  Bruno Haible  <bruno@clisp.org>
68778
68779         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
68780         Update from GNU gettext 0.14.3.
68781
68782 2005-03-10  Jim Meyering  <jim@meyering.net>
68783
68784         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
68785
68786 2005-03-10  Jim Meyering  <jim@meyering.net>
68787
68788         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
68789         so that this module works on systems without fchdir.
68790
68791 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
68792
68793         Factor int-properties macros into a single file, except for
68794         glibc-related files.
68795         * lib/intprops.h: New file.
68796         * lib/getloadavg.c: Include it instead of limits.h.
68797         (INT_STRLEN_BOUND): Remove.
68798         * lib/human.c: Include intprops.h.
68799         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
68800         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
68801         302/1000.
68802         * lib/inttostr.h: Include intprops.h instead of limits.h.
68803         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
68804         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
68805         for consistency with intprops.h.
68806         (time_t_is_integer, twos_complement_arithmetic): Use them.
68807         * lib/sig2str.h: Include <signal.h>, intprops.h.
68808         (INT_STRLEN_BOUND): Remove.
68809         * lib/strftime.c (TYPE_SIGNED): Remove.
68810         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
68811         * lib/strtol.c: Adjust comments to match intprops.h.
68812         * lib/userspec.c: Include intprops.h.
68813         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
68814         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
68815         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
68816         instead of rolling our own expressions.
68817         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
68818
68819         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
68820         instead of int.
68821         (my_strftime): Do not mishandle years close to INT_MAX, by doing
68822         the right thing even if adding 1900 would overflow.  Similarly
68823         for tm_mon + 1 and tm_yday + 1.
68824         Make %Y always equivalent to %C%y, and similarly for %G and %g.
68825         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
68826         (DO_SIGNED_NUMBER): New macro.
68827         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
68828
68829 2005-03-07  Bruno Haible  <bruno@clisp.org>
68830
68831         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
68832
68833 2005-03-07  Bruno Haible  <bruno@clisp.org>
68834
68835         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
68836
68837 2005-03-04  Derek R. Price  <derek@ximbiot.com>
68838
68839         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
68840         (func_import): Only replace files via --import when they have actually
68841         changed.
68842
68843 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68844
68845         * m4/mmap-anon.m4: New file.
68846         * m4/pagealign_alloc.m4: New file.
68847
68848 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68849             Bruno Haible  <bruno@clisp.org>
68850
68851         * modules/pagealign_alloc: New file.
68852         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
68853
68854 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68855             Bruno Haible  <bruno@clisp.org>
68856
68857         * lib/pagealign_alloc.h: New file.
68858         * lib/pagealign_alloc.c: New file.
68859
68860 2005-03-03  Bruno Haible  <bruno@clisp.org>
68861
68862         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
68863         Use an all-permissive copyright notice, recommended by RMS.
68864
68865 2005-03-02  Bruno Haible  <bruno@clisp.org>
68866
68867         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
68868         of AIX, the replacement has to be done only after <string.h> is
68869         included, therefore not in config.h. stpncpy.h does the replacement,
68870         and stpncpy.c uses it.
68871
68872 2005-03-02  Bruno Haible  <bruno@clisp.org>
68873
68874         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
68875         stpncpy.c uses it.
68876
68877 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68878
68879         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
68880         The workaround isn't strictly needed for POSIX conformance, and
68881         it's too much of a pain to configure and maintain.  We'll ask
68882         people to fix their kernels instead.
68883         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
68884         (NANOSLEEP_BUG_WORKAROUND): Remove.
68885         (xnanosleep): Remove the workaround.
68886
68887 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68888
68889         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
68890         Reported by Derek Price.
68891         (Include): Add "timespec.h".
68892
68893         * modules/xnanosleep (Depends-on): Remove gethrxtime.
68894
68895 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68896
68897         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
68898         to detect nanosleep bug.
68899
68900 2005-03-01  Bruno Haible  <bruno@clisp.org>
68901
68902         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
68903
68904 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68905
68906         * modules/gethrxtime: New file.
68907         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
68908         (Depends-on): Add gethrxtime.
68909         (configure.ac): Add gl_XNANOSLEEP.
68910         (Makefile.am): Remove lib_SOURCES line.
68911
68912 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68913
68914         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
68915         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
68916
68917 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68918
68919         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
68920         * lib/timespec.h (gettime): Return void, since it always
68921         succeeds now.  All uses changed.
68922         * lib/gettime.c (gettime): Likewise.
68923         [HAVE_NANOTIME]: Prefer nanotime.
68924         Assume gettimeofday succeeds, as POSIX requires.
68925         Assime time () succeeds, since other code already does.
68926         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
68927         (timespec_subtract): Remove.
68928         (NANOSLEEP_BUG_WORKAROUND): New constant.
68929         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
68930         things considerably.  Use it only on GNU/Linux hosts, since the
68931         workaround shouldn't be needed elsewhere.
68932
68933 2005-02-24  Bruno Haible  <bruno@clisp.org>
68934
68935         * modules/gettext (Files): Add m4/glibc2.m4.
68936
68937 2005-02-24  Bruno Haible  <bruno@clisp.org>
68938
68939         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
68940         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
68941         * m4/progtest.m4:
68942         Update from GNU gettext 0.14.2.
68943         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
68944
68945 2005-02-24  Bruno Haible  <bruno@clisp.org>
68946
68947         * lib/localcharset.c: Update from GNU gettext 0.14.2.
68948         * lib/config.charset: Update from GNU gettext 0.14.2.
68949
68950 2005-02-24  Bruno Haible  <bruno@clisp.org>
68951
68952         * lib/gettext.h: Update from GNU gettext 0.14.2.
68953
68954 2005-02-23  Simon Josefsson  <jas@extundo.com>
68955
68956         * m4/iconvme.m4: New file.
68957
68958 2005-02-23  Jim Meyering  <jim@meyering.net>
68959
68960         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
68961         change.
68962         Thanks to Bruno Haible for catching it.
68963
68964 2005-02-22  Simon Josefsson  <jas@extundo.com>
68965
68966         * modules/iconvme: New file.
68967
68968         * MODULES.html.sh: Add iconvme.
68969
68970 2005-02-22  Simon Josefsson  <jas@extundo.com>
68971
68972         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
68973
68974 2005-02-22  Simon Josefsson  <jas@extundo.com>
68975
68976         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
68977
68978 2005-02-22  Jim Meyering  <jim@meyering.net>
68979
68980         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
68981         s/ifndef/ifdef/.
68982
68983 2005-02-20  Neil Conway  <neilc@samurai.com>
68984
68985         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
68986         returned by OSX/Darwin if the specified buffer is not large
68987         enough for the hostname.
68988
68989 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68990
68991         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
68992         pass it to _help, otherwise the latter coredumps trying to
68993         dereference state.root_argp.
68994
68995 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68996
68997         * modules/chdir-long (Depends-on): Add memrchr.
68998         * modules/memrchr (Files): Add lib/memrchr.h.
68999         (Include): "memrchr.h".
69000
69001 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69002
69003         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
69004
69005 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69006
69007         * lib/memrchr.h: New file.
69008         * lib/chdir-long.c: Include it.
69009         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
69010         Don't bother including stddef.h.
69011
69012 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69013
69014         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
69015         inclusion.
69016         Include <sys/types.h>, for dev_t.
69017         (ME_DUMMY, ME_REMOTE): Move from here....
69018         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
69019         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
69020         Dmitry V. Levin.
69021         Include mountlist.h first, to test the interface.
69022
69023 2005-01-29  Bruno Haible  <bruno@clisp.org>
69024
69025         * lib/progname.c (program_name): Initialize.
69026         Needed when linking statically on MacOS X.
69027
69028 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69029
69030         Sync from coreutils.
69031         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
69032         (Depends-on): Add c-strtod.
69033         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
69034
69035 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69036
69037         Sync from coreutils.
69038         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
69039
69040         Remove files that are specific to coreutils.
69041         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
69042
69043 2005-01-28  Bruno Haible  <bruno@clisp.org>
69044
69045         * modules/javacomp: New file.
69046         * MODULES.html.sh (Java): Add javacomp.
69047
69048 2005-01-28  Bruno Haible  <bruno@clisp.org>
69049
69050         * m4/javacomp.m4: New file, from GNU gettext.
69051
69052 2005-01-28  Bruno Haible  <bruno@clisp.org>
69053
69054         * lib/javacomp.sh.in: New file, from GNU gettext.
69055         * lib/javacomp.h: New file, from GNU gettext.
69056         * lib/javacomp.c: New file, from GNU gettext.
69057
69058 2005-01-26  Simon Josefsson  <jas@extundo.com>
69059
69060         * lib/gai_strerror.c: Use GPL in header.
69061
69062 2005-01-26  Bruno Haible  <bruno@clisp.org>
69063
69064         * modules/javaexec: New file.
69065         * MODULES.html.sh (Java): Add javaexec.
69066
69067 2005-01-26  Bruno Haible  <bruno@clisp.org>
69068
69069         * m4/javaexec.m4: New file, from GNU gettext.
69070
69071 2005-01-26  Bruno Haible  <bruno@clisp.org>
69072
69073         * lib/javaexec.sh.in: New file, from GNU gettext.
69074         * lib/javaexec.h: New file, from GNU gettext.
69075         * lib/javaexec.c: New file, from GNU gettext.
69076
69077 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69078
69079         * modules/lchown (Depends-on): Remove lchown.h
69080
69081 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69082
69083         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
69084         must be defined if the header file was not found, in order
69085         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
69086
69087 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69088
69089         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
69090         initializers for struct pentry_state.
69091         (__argp_error): Check return value of __asprintf
69092         (__argp_failure): Translate error message
69093
69094         * lib/argp-parse.c: Removed braces around the expansion of N_()
69095
69096 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69097
69098         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
69099         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
69100         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
69101         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
69102         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
69103         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
69104         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
69105         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
69106         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
69107         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
69108         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
69109         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
69110         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
69111         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
69112         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
69113         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
69114         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
69115         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
69116         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
69117         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
69118         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
69119         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
69120         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
69121         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
69122         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
69123         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
69124         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
69125         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
69126         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
69127         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
69128         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
69129         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
69130         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
69131         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
69132         xstrtol.m4, xstrtoumax.m4, yesno.m4:
69133         Use an all-permissive copyright notice, recommended by RMS.
69134
69135 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
69136
69137         * modules/chdir-long (Depends-on): Remove mempcpy.
69138
69139 2005-01-21  Jim Meyering  <jim@meyering.net>
69140
69141         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
69142         same value as for Solaris 9.
69143
69144         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
69145         component length.  This included changing the parameter to be
69146         of type `char *' rather than `char const *'.
69147         * lib/chdir-long.h (chdir_long): Update prototype.
69148
69149         * lib/openat.c (fdopendir, fstatat): New functions.
69150         * lib/openat.h: Include headers required for use of DIR and struct
69151         stat.
69152         [AT_SYMLINK_NOFOLLOW]: Define.
69153         (fdopendir, fstatat): Add prototypes.
69154
69155 2005-01-21  Bruno Haible  <bruno@clisp.org>
69156
69157         * modules/classpath: New file.
69158         * MODULES.html.sh (Java): Add classpath.
69159
69160 2005-01-21  Bruno Haible  <bruno@clisp.org>
69161
69162         * lib/classpath.h: New file, from GNU gettext.
69163         * lib/classpath.c: New file, from GNU gettext.
69164
69165 2005-01-20  Simon Josefsson  <jas@extundo.com>
69166
69167         * modules/version-etc-fsf: New file.
69168
69169 2005-01-20  Simon Josefsson  <jas@extundo.com>
69170
69171         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
69172         * lib/version-etc.c: Remove version_etc_copyright.
69173         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
69174         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
69175
69176 2005-01-20  Simon Josefsson  <jas@extundo.com>
69177
69178         * lib/base64.h (isbase64): Add.
69179
69180         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
69181         using a unsigned prototype, don't inline.
69182         (base64_decode): Use it.
69183
69184 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69185
69186         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
69187         it.
69188
69189 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69190
69191         * lib/save-cwd.c (save_cwd): Remove code to support the case
69192         where fchdir is missing or flaky.
69193
69194 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69195
69196         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69197
69198 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69199
69200         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69201         AC_LIBSOURCES now does this.
69202         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69203         with new ullong_max module.
69204
69205 2005-01-19  Bruno Haible  <bruno@clisp.org>
69206
69207         * modules/sh-quote: New file.
69208         * MODULES.html.sh (Executing programs): Add sh-quote.
69209
69210 2005-01-19  Bruno Haible  <bruno@clisp.org>
69211
69212         * lib/sh-quote.h: New file, from GNU gettext.
69213         * lib/sh-quote.c: New file, from GNU gettext.
69214
69215 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69216
69217         Merge from coreutils.
69218         * m4/ullong_max.m4: New file.
69219         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69220         (gl_MACROS): Assume localeconv exists.
69221
69222 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69223
69224         Merge changes from coreutils, as described below in several
69225         changelogs dated today.
69226
69227         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69228         (O_DIRECTORY): Remove; not needed here, since "." must be
69229         a directory.  All uses removed.
69230         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69231         universal on Suns, and we also need to test for IRIX.
69232         Revamp code to use 'if' rather than '#if'.
69233         Avoid unnecessary comparison of cwd->desc to 0.
69234
69235         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69236         for known valid error numbers rather than observed invalid ones.
69237
69238 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69239
69240         * modules/ullong_max: New file.
69241
69242         * modules/chdir-long, modules/openat: New files.
69243         * modules/save-cwd (Depends-on): Depend on chdir-long.
69244         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69245
69246 2005-01-18  Jim Meyering  <jim@meyering.net>
69247
69248         Merge from coreutils.
69249         * m4/chdir-long.m4, m4/openat.m4: New files.
69250         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69251         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69252         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69253         is sane and DOES follow symlinks.  Besides, testing 20 different
69254         systems found no broken chown implementations.
69255         Prompted by a change in rsync's copy of this macro.
69256         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69257
69258         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69259
69260         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69261         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69262         NULL-means-set-to-current-time semantics.
69263         Remove temporary file immediately, rather than waiting
69264         for configure's at-exit trap code to do it.
69265
69266 2005-01-18  Jim Meyering  <jim@meyering.net>
69267
69268         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69269
69270         * lib/utimens.c (futimens): Account for the fact that futimes
69271         can also fail with errno == ENOSYS or errno == ENOENT.
69272         Patch from Dmitry V. Levin.
69273
69274         Change the name of the robust chdir function from chdir to chdir_long.
69275         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
69276         (restore_cwd): Use chdir_long, not chdir.
69277         * lib/chdir-long.c: Renamed from chdir.c.
69278         * lib/chdir-long.h: Renamed from chdir.h.
69279         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
69280         Hurd.
69281
69282 2005-01-18  Bruno Haible  <bruno@clisp.org>
69283
69284         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
69285         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
69286         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
69287         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
69288         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
69289         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
69290         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
69291         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
69292         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
69293         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
69294         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
69295         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
69296         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
69297         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
69298         Use an all-permissive copyright notice, recommended by RMS.
69299
69300 2005-01-18  Bob Proulx  <bob@proulx.com>
69301
69302         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
69303         simplify offsetof() macro construct to avoid compile failure with
69304         native HP-UX 11.0 ANSI C compiler.
69305
69306 2005-01-17  Bruno Haible  <bruno@clisp.org>
69307
69308         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
69309         redundant because stpncpy.m4 takes care of it.
69310
69311 2005-01-17  Bruno Haible  <bruno@clisp.org>
69312
69313         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
69314
69315 2005-01-17  Bruno Haible  <bruno@clisp.org>
69316
69317         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
69318         used.
69319
69320 2005-01-17  Bruno Haible  <bruno@clisp.org>
69321
69322         * lib/fwriteerror.h (fwriteerror): Change specification to include
69323         fclose.
69324         * lib/fwriteerror.c: Include <stdbool.h>.
69325         (fwriteerror): At the end, close the file stream. Record whether
69326         stdout was already closed.
69327
69328 2005-01-17  Bruno Haible  <bruno@clisp.org>
69329
69330         * lib/execute.c (environ): Declare if needed.
69331         * lib/pipe.c (environ): Likewise.
69332         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69333
69334 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69335
69336         * modules/argp: Depend on vsnprintf
69337
69338 2005-01-10  Jim Meyering  <jim@meyering.net>
69339
69340         * modules/closeout (Depends-on): Add atexit.
69341
69342 2005-01-06  Bruno Haible  <bruno@clisp.org>
69343
69344         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69345
69346 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69347
69348         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69349         definitions to be after all include files, to avoid collisions.
69350         Problem reported by Bob Proulx.
69351
69352 2005-01-04  Jim Meyering  <jim@meyering.net>
69353
69354         Changes imported from coreutils.
69355         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69356         as the mkstemp template, use a temporary directory and an
69357         8.3-friendly template to avoid trouble on systems like DJGPP.
69358         Reported by Juan M. Guerrero via Stepan Kasal.
69359         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69360         close. Remove the temporary directory right away, rather than waiting
69361         for configure's at-exit trap code to do it.
69362         Suggestion from Stepan Kasal.
69363
69364 2005-01-01  Simon Josefsson  <jas@extundo.com>
69365
69366         * gnulib-tool: Print #include directives when --import'ing.
69367
69368 2004-12-28  Simon Josefsson  <jas@extundo.com>
69369
69370         * tests/test-base64.c: Include required header files.  Remove
69371         unused variables.
69372
69373 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69374
69375         * modules/error (Depends-on): Remove gettext.
69376
69377 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69378
69379         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69380         not needed.  This removes a dependency on the gettext module.
69381         [defined _LIBC]: Do not include <libintl.h>; not needed.
69382
69383 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69384
69385         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69386         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69387
69388 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69389
69390         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69391         HAVE_DECL_STRTOLD.
69392
69393 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69394
69395         * modules/getdate (Depends-on): Remove alloca-opt.
69396
69397 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69398
69399         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69400
69401 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69402
69403         * lib/argp-parse.c: Include <stddef.h>.
69404         (alignof, alignto): New macros.
69405         (parser_init): Don't assume that void * is aligned sufficiently
69406         for struct option.
69407
69408         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69409         need to extend the stack.
69410         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69411         large.
69412
69413 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69414
69415         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69416
69417 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69418
69419         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69420         (2004-10-24) change.  Apparently this was a false alarm.
69421
69422         * modules/getdate: Depend on alloca-opt, not alloca.
69423
69424 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69425
69426         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69427         Remove now-obsolete comment about AIX.
69428         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69429         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69430         (YYMAXDEPTH): New macro.
69431
69432 2004-12-18  Simon Josefsson  <jas@extundo.com>
69433
69434         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69435
69436 2004-12-18  Bruno Haible  <bruno@clisp.org>
69437
69438         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69439
69440 2004-12-18  Bruno Haible  <bruno@clisp.org>
69441
69442         * lib/fatal-signal.c (fatal_signals): Make non-const.
69443         (init_fatal_signals): New function.
69444         (uninstall_handlers, install_handlers): Ignore signals that were set to
69445         SIG_IGN.
69446         (at_fatal_signal): Call init_fatal_signals.
69447         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69448         SIG_IGN.
69449         Reported by Paul Eggert.
69450
69451 2004-12-18  Bruno Haible  <bruno@clisp.org>
69452
69453         * doc/alloca.texi: New file.
69454         * doc/alloca-opt.texi: New file.
69455
69456 2004-12-17  Jim Meyering  <jim@meyering.net>
69457
69458         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69459         Otherwise, install-sh could exit with improper exit status when
69460         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69461
69462 2004-12-16  Simon Josefsson  <jas@extundo.com>
69463
69464         * tests/test-base64.c: Add license.
69465
69466 2004-12-15  Stepan Kasal  <address@hidden>
69467
69468         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69469
69470 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69471
69472         * modules/getcwd (Files): Add m4/d-ino.m4.
69473         Suggested by Mark D. Baushke.
69474
69475 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69476
69477         * lib/getdate.y (textint): New member "negative".
69478         (time_zone_hhmm): New function.
69479         Expect 14 shift-reduce conflicts, not 13.
69480         (o_colon_minutes): New rule.
69481         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
69482         (yylex): Set the "negative" member of signed numbers.
69483
69484 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69485
69486         * doc/getdate.texi (Time of day items, Time zone items):
69487         Describe new formats +00:00, UTC+00:00.
69488
69489 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69490
69491         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
69492         spurious "-l"s.  Problem reported by Stepan Kasal.
69493
69494 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
69495
69496         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
69497         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
69498
69499 2004-12-04  Simon Josefsson  <jas@extundo.com>
69500
69501         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
69502         Vandoorselaere <yoann@prelude-ids.org>.
69503
69504 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69505
69506         Changes imported from coreutils.
69507         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
69508         exist.
69509         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
69510
69511 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69512
69513         Changes imported from coreutils.
69514         * lib/hard-locale.c: Assume <locale.h> exists.
69515         Include "strdup.h".
69516         (GLIBC_VERSION): New macro.
69517         (hard_locale): Assume setlocale exists.
69518         Rewrite to avoid #ifdef.
69519         Use strdup rather than malloc + strcpy.
69520         * lib/human.c: Assume <locale.h> exists.
69521         (human_readable): Assume localeconv exists.
69522
69523 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69524
69525         * modules/hard-locale (Depends-on): Add strdup.
69526
69527 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69528
69529         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
69530         convert T2, not T.  (Imported from libc.)
69531
69532 2004-11-30  Simon Josefsson  <jas@extundo.com>
69533
69534         * modules/restrict (License): Change to LGPL.
69535
69536 2004-11-30  Simon Josefsson  <jas@extundo.com>
69537
69538         * m4/restrict.m4: Add copyright and copying conditions.
69539
69540 2004-11-30  Simon Josefsson  <jas@extundo.com>
69541
69542         * m4/base64.m4: New file.
69543
69544 2004-11-30  Simon Josefsson  <jas@extundo.com>
69545
69546         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
69547         base64.
69548
69549         * tests/test-base64.c: New file.
69550
69551         * modules/base64: New file.
69552
69553 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69554
69555         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
69556         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
69557
69558         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
69559
69560 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69561
69562         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
69563         (__getcwd.c): Don't restore errno; glibc doesn't.
69564         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
69565         first, falling back to our code only if its results look suspicious.
69566         Ensure that the resulting buffer is only as large as necessary.
69567
69568         * lib/readutmp.c: Include readutmp.h first.
69569         Include <errno.h>, since readutmp.h no longer does that.
69570         * lib/readutmp.h: Don't include <errno.h>,
69571         <sys/param.h>, <time.h>; not needed to establish interface.
69572         (errno): Remove decl.
69573         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
69574         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
69575         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
69576
69577 2004-11-28  Simon Josefsson  <jas@extundo.com>
69578
69579         * lib/base64.h, base64.c: New file.
69580
69581 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69582
69583         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
69584
69585 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69586
69587         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
69588         (Depends-on): Remove pathmax, same.  Add mempcpy.
69589         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
69590         (Makefile.am): Append getcwd.h to lib_SOURCES.
69591         (Include): Add getcwd.h.
69592         (Maintainer): Change from Jim Meyering to "all, glibc",
69593         since getdate now uses intended-for-glibc code.
69594         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
69595         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
69596
69597 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69598
69599         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
69600         HP's ANSI C compiler.
69601         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
69602         Declaring int functions causes warnings on some modern systems and
69603         shouldn't be needed to compile on ancient ones.
69604         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
69605         defined.
69606
69607         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
69608         with the following changes.
69609         (__set_errno): Parenthesize properly.
69610         Include <stdbool.h>.
69611         (MIN, MAX, MATCHING_INO): New macros.
69612         (__getcwd): Define with prototype, not K&R form.
69613         Use heuristics to allocate default buffer on stack if possible.
69614         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
69615         behavior, and to avoid the PATH_MAX limit when computing
69616         ../../../../...
69617         Use MATCHING_INO to compare inode number to file.
69618         Check for arithmetic overflow in size calculations.
69619         Fix bug in reallocation of dot array that caused getcwd to fail
69620         on directories nested deeper than 75.
69621         Be more careful about saving errno on error.
69622         Do not use realloc; use only free+malloc, as this is a bit
69623         more flexible and avoids a needless copy operation.
69624         Do not inspect st_dev and st_ino for symbolic links; POSIX
69625         doesn't specify the latter.
69626         Check for closedir errors.
69627         Avoid needless casts.
69628         Use "#ifdef weak_alias" around weak_alias, to be like other
69629         glibc code.
69630         The following changes to getcwd.c have effect only when used in
69631         gnulib; they have no effect inside glibc proper.
69632         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
69633         as alloca isn't used.
69634         (alloca, __alloca): Likewise.
69635         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
69636         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69637         unconditionally, as gnulib assumes C89 or better.
69638         Do not include <sys/param.h>.
69639         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
69640         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
69641         better.
69642         (NULL) [!defined NULL]: Remove; we assume C89 or better.
69643         Include <dirent.h> in a way that is compatible with modern Autoconf.
69644         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
69645         New macros, if not already defined.
69646         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
69647         Use "_LIBC", not "defined _LIBC", for consistency.
69648         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
69649         a mempcpy module.
69650         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
69651         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
69652         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
69653         credit only to Jim Meyering and adjust the copyright dates.
69654         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
69655         <stdlib.h>, <unistd.h>, "pathmax.h".
69656         Instead, include "xgetcwd.h" (first) and "getcwd.h".
69657         (INITIAL_BUFFER_SIZE): Remove.
69658         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
69659
69660 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69661
69662         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
69663         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
69664         Use the _ONCE methods, for efficiency.
69665         Check for fcntl.h.  In test program, include <errno.h>
69666         and <fcntl.h> if available.  Remove old K&R cruft from
69667         test program.  Check for common errors in GNU/Linux,
69668         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
69669         don't do AC_LIBOBJ, as that's getcwd.m4's job.
69670         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
69671         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
69672         name accordingly.
69673         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
69674         accommodate new getcwd.c.
69675         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
69676         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
69677         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
69678         that's all we need now.
69679
69680 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69681
69682         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
69683         argp-parse.c depends on getopt internals, that means we should
69684         always use our getopt, to be on the safe side.
69685         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
69686         order not to spoil the result of an eventual previous invocation
69687         of gl_GETOPT_SUBSTITUTE.
69688
69689 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69690
69691         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
69692         redefinition warnings. To avoid them, include the defines
69693         in `#if !defined __need_getopt ... #endif'. The only place
69694         where __getopt_argv_const is used is in definitions
69695         of getopt_long and getopt_long_only below, which are as well
69696         protected by `#ifndef __need_getopt'.
69697         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
69698         __need_getopt after including <stdio.h> and <unistd.h> These
69699         headers might have defined it.
69700
69701 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69702
69703         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
69704
69705 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69706
69707         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
69708         (futimens): New function, which uses futimes if available.
69709         (futimens, utimens): Support timespec==NULL, with same semantics
69710         as utime and utimens.
69711         * lib/utimens.h (futimens): New decl.
69712
69713 2004-11-23  Jim Meyering  <jim@meyering.net>
69714
69715         * lib/getopt_.h: Remove trailing blanks.
69716
69717 2004-11-23  Jim Meyering  <jim@meyering.net>
69718
69719         * lib/__fpending.c: Add comment.
69720
69721 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
69722
69723         * modules/canonicalize (Depends-on): Add xreadlink.
69724         Problem reported by James Youngman.
69725
69726 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69727
69728         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
69729         New macros.
69730         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
69731         optopt): Use them instead of invoking ## directly; otherwise, the
69732         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
69733
69734 2004-11-19  Bruno Haible  <bruno@clisp.org>
69735
69736         * lib/strtok_r.c: Move comments from here...
69737         * lib/strtok_r.h: ... to here.
69738
69739 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69740
69741         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
69742         implementations that mishandle size_t overflow.
69743
69744 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69745
69746         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
69747         might fail.  Problem reported by Yoann Vandoorselaere.
69748         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
69749         implementations that mishandle size_t overflow.
69750
69751 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69752
69753         * modules/canon-host (Depends-on): Add strdup.
69754
69755 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69756
69757         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
69758
69759 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69760
69761         * lib/canon-host.c: Include "strdup.h".
69762         (canon_host): Use getaddrinfo if available, so that IPv6 works.
69763         Use strdup instead of malloc/strcpy to duplicate strings.
69764
69765         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
69766         (human_space_before_unit): New constant.
69767         * lib/human.c (human_readable): Support it.
69768
69769         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
69770         (xgetcwd): Set errno correctly when failing.
69771         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
69772         the failure is actually due to a PATH_MAX problem.
69773
69774         Further getopt changes to make it more likely that glibc will
69775         buy the changes back.
69776         * lib/getopt.c (POSIXLY_CORRECT): New constant.
69777         (getopt): Use it, so to preserve glibc semantic
69778         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
69779         when compiling for libc.
69780         * lib/getopt_.h (__getopt_argv_const): Bring it back.
69781         (getopt_long, getopt_long_only): Use it.
69782
69783         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69784         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
69785         (getopt): Argv is now char * const *, as per standard.
69786         (_getopt_internal_r, _getopt_internal): Argv is now char **,
69787         not char *__getopt_argv_const *.
69788         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69789         _getopt_long_only_r): Likewise.
69790         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
69791         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69792         _getopt_long_r, _getopt_long_only_r): Likewise.
69793         * lib/getopt_.h (__getopt_argv_const): Remove.
69794         (getopt): Argv is now char * const *, as per standard.
69795
69796         * lib/getdate.y (tORDINAL): New token.
69797         (day, relunit): Allow it for relative times.
69798         (relative_time_table): Use tORDINAL for ordinals.
69799
69800 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69801
69802         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
69803         Document that "second" isn't allowed as an ordinal number.
69804
69805 2004-11-16  Jim Meyering  <jim@meyering.net>
69806
69807         * modules/closeout (Depends-on): Add fpending.
69808
69809 2004-11-15  Jim Meyering  <jim@meyering.net>
69810
69811         * lib/closeout.c: Include "__fpending.h" once again.
69812         Include <stdbool.h>.
69813         (close_stdout): Don't fail just because stdout was closed initially,
69814         since some programs don't write to stdout in the normal course of
69815         operation (other than --version and --help), and we don't want this
69816         function to make e.g. `touch file >&-' fail.
69817         But do fail if it was closed and someone has tried to write to it.
69818         E.g., `printf foo >&-' must fail.
69819
69820 2004-11-13  Jim Meyering  <jim@meyering.net>
69821
69822         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
69823
69824 2004-11-12  Simon Josefsson  <jas@extundo.com>
69825
69826         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
69827         small doc fix is still pending.
69828
69829 2004-11-11  Simon Josefsson  <jas@extundo.com>
69830
69831         * modules/strtok_r: New file.
69832
69833         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69834         strtok_r.
69835
69836 2004-11-11  Simon Josefsson  <jas@extundo.com>
69837
69838         * m4/strtok_r.m4: New file.
69839
69840         * m4/getopt.m4: Replace opterr.
69841
69842 2004-11-11  Simon Josefsson  <jas@extundo.com>
69843
69844         * lib/strtok_r.h, strtok_r.c: New file.
69845
69846 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69847
69848         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
69849         of replacing opterr, getopt, etc.  This should handle the
69850         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
69851
69852 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69853
69854         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
69855         we can stop lying to compilers about the constness of argv when we
69856         are compiled outside glibc.
69857         (getopt, getopt_long, getopt_long_only): Use it.
69858         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69859         _getopt_internal, getopt): Likewise.
69860         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69861         _getopt_long_only_r): Likewise.
69862         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69863         _getopt_long_r, _getopt_long_only_r): Likewise.
69864
69865         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
69866         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
69867         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
69868         the other external symbols.
69869         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
69870         declaration, since the above renaming now works around collisions.
69871
69872 2004-11-11  Jim Meyering  <jim@meyering.net>
69873
69874         * lib/linebreak.c: Remove trailing blanks.
69875         * lib/alloca_.h: Likewise.
69876         * lib/acosl.c: Likewise.
69877         * lib/euidaccess.c: Likewise.
69878         * lib/allocsa.h: Likewise.
69879
69880 2004-11-10  Simon Josefsson  <jas@extundo.com>
69881
69882         * m4/getaddrinfo.m4: New file.
69883
69884 2004-11-10  Simon Josefsson  <jas@extundo.com>
69885
69886         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
69887
69888 2004-11-10  Simon Josefsson  <jas@extundo.com>
69889
69890         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69891         getaddrinfo.
69892
69893         * modules/getaddrinfo: New file.
69894
69895 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69896
69897         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
69898
69899 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69900
69901         * lib/mktime.c (SHR): New macro, which is a portable
69902         substitute for >> that should work even on Crays.
69903         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
69904         Problem reported by Mark D. Baushke in
69905         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
69906         * lib/getdate.y (SHR): Likewise.
69907         (tm_diff): Use it.
69908         * lib/strftime.c (SHR): Likewise.
69909         (tm_diff): Use it.
69910         * lib/quotearg.c (struct quoting_options): Use unsigned int for
69911         quote_these_too, so that right shifts are well defined.  All uses
69912         changed.
69913
69914 2004-11-10  Jim Meyering  <jim@meyering.net>
69915
69916         Ensure that no close failure goes unreported.
69917         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
69918         return early when it seems there's nothing to flush.
69919         Don't include __fpending.h.
69920
69921 2004-11-10  Jim Meyering  <jim@meyering.net>
69922
69923         * modules/closeout (Depends-on): Remove fpending.
69924
69925 2004-11-10  Jim Meyering  <jim@meyering.net>
69926
69927         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
69928
69929 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69930
69931         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
69932         gl_FUNC_STRFTIME.
69933         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
69934         and AC_REQUIRE when possible, to avoid duplicate checks.
69935         Check for <wchar.h>.
69936
69937 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69938
69939         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
69940
69941 2004-11-09  Bruno Haible  <bruno@clisp.org>
69942
69943         * m4/sockpfaf.m4: New file.
69944
69945 2004-11-05  Bruno Haible  <bruno@clisp.org>
69946
69947         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
69948         Reported by Mark D. Baushke <mdb@cvshome.org>.
69949
69950 2004-11-04  Bruno Haible  <bruno@clisp.org>
69951
69952         2004-09-11  Bruno Haible  <bruno@clisp.org>
69953                 * allocsa.valgrind: New file.
69954         2004-02-06  Bruno Haible  <bruno@clisp.org>
69955                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
69956                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
69957                 Reported by Christopher Seip <chris.seip@hp.com>.
69958
69959 2004-11-04  Bruno Haible  <bruno@clisp.org>
69960
69961         * modules/allocsa (Files): Add lib/allocsa.valgrind.
69962         (Makefile.am): Distribute it.
69963
69964 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69965
69966         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
69967         with errno == ERANGE if the buffer is too small.
69968         Problem reported by Mark D. Baushke.
69969
69970 2004-11-03  Albert Chin  <china@thewrittenword.com>
69971             Paul Eggert  <eggert@cs.ucla.edu>
69972
69973         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
69974         equivalent, substitute $ac_type for equivalent type rather than
69975         blindly using uint32_t *always* which won't work if uint32_t is not
69976         available.  Define _UINT32_T to work around typedef of uint32_t if
69977         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
69978         2.5.1.
69979
69980 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69981
69982         * m4/jm-macros.m4: Sync from coreutils.
69983         (gl_MACROS): Check for mbrlen, for pathchk.
69984         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
69985
69986 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69987
69988         * lib/xreadlink.c (MAXSIZE): New macro.
69989         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
69990         size does not exceed MAXSIZE.  Avoid cast.
69991         As suggested by Mark D. Baushke in
69992         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
69993         if readlink fails with buffer size just under MAXSIZE, try again
69994         with MAXSIZE.
69995
69996 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69997
69998         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
69999
70000 2004-11-02  Derek R. Price  <derek@ximbiot.com>
70001         and  Paul Eggert  <eggert@cs.ucla.edu>
70002
70003         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
70004         (get_date): Overparenthesize to avoid GCC warning.
70005
70006 2004-11-02  Bruno Haible  <bruno@clisp.org>
70007
70008         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
70009         returns void.
70010
70011 2004-11-02  Bruno Haible  <bruno@clisp.org>
70012
70013         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
70014         function returns void.
70015
70016 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70017
70018         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
70019         fflush_unlocked, flockfile, funlockfile, funlockfile,
70020         fputs_unlocked, putc_unlocked.
70021
70022 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70023
70024         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70025         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
70026         already declared.
70027
70028 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70029
70030         * modules/getdate (Files): Add doc/getdate.texi.
70031         (Depends-on): Add setenv, xalloc.
70032
70033 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70034
70035         * lib/getdate.y: Add support for TZ="foo" within a date string.
70036         Fix some bugs near time_t boundaries.  Reject dates with
70037         out-of-range components, e.g., "Sept 31".
70038         Include <stdlib.h>, "setenv.h", "xalloc.h".
70039         (ISDIGIT_LOCALE): Remove; unused.
70040         Note that the TZ and time functions used here are not reentrant.
70041         (mktime_ok, get_tz): New functions.
70042         (TZBUFSIZE): New constant.
70043         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
70044         This requires that we sometimes generate our own TZ="XXX..." setting.
70045
70046 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70047
70048         * doc/getdate.texi: New file, from coreutils with modifications for
70049         the new TZ parsing.
70050
70051 2004-10-27  Derek R. Price  <derek@ximbiot.com>
70052
70053         * lib/mktime.c (not_equal_tm): Remove redundant check.
70054
70055 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70056
70057         * modules/regex (lib_SOURCES): Add regex.c.
70058         Reported by James Youngman in
70059         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
70060
70061 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70062
70063         * lib/getdate.y: Use Bison 1.875 features, and some minor
70064         code cleanups.  This change does not affect semantics.
70065         Don't include <stdlib.h>; no longer needed.
70066         Don't include unlocked-io.h; only the "#if TEST" code uses
70067         stdio, and performance isn't crucial there.
70068         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
70069         Bison 1.875 features as described below.
70070         All uses of "PC." replaced by "pc->".
70071         (YYSTYPE): Add a forward declaration.
70072         (yylex, yyerror): Use full prototypes in forward decls.
70073         Use "%pure-parser" rather than obsolescent "%pure_parser".
70074         Use %parse-param and %lex-param instead of obsolescent
70075         YYPARSE_PARAM and YYLEX_PARAM.
70076         (meridian_table, month_and_day_table, time_units_table,
70077         relative_time_table, time_zone_table, military_table,
70078         lookup_zone, lookup_word, get_date):
70079         Use NULL instead of 0 where appropriate.
70080         (to_hour): Avoid abort (), to avoid a dependency on
70081         stdlib.h.
70082         (yyerror, yylex): Now accepts parser_control * arg.
70083         (main) [TEST]: Use '\0' rather than 0 for char.
70084
70085 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70086
70087         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
70088
70089 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70090
70091         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
70092         It's now the caller's responsibility to handle the case where
70093         !HAVE_GETPAGESIZE && !defined getpagesize.
70094
70095         * lib/mktime.c (leapyear): Arg is long int, not int.
70096
70097 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
70098
70099         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
70100
70101 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70102
70103         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
70104         missing.  Problem reported by James Youngman.
70105
70106 2004-10-16  Simon Josefsson  <jas@extundo.com>
70107
70108         * gnulib-tool: Fix comments.  Fix parse problem.
70109         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
70110
70111 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
70112
70113         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
70114         implementation of getopt_long.  Problem reported by Alexander Taler in:
70115         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
70116
70117 2004-10-15  Bruno Haible  <bruno@clisp.org>
70118
70119         * gnulib-tool: Untabify. Initialize supplied_libname.
70120         (func_usage): More homogenous output.
70121         (func_modules_transitive_closure, func_modules_to_filelist,
70122         func_emit_lib_Makefile_am): New functions.
70123         (func_import): New function, extracted from big case statement. Use
70124         func_get_license, func_modules_transitive_closure,
70125         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
70126         opt_lgpl. Don't use test -a, as it's not portable.
70127         (func_create_testdir): Use func_modules_transitive_closure,
70128         func_modules_to_filelist, func_emit_lib_Makefile_am.
70129
70130 2004-10-15  Bruno Haible  <bruno@clisp.org>
70131
70132         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
70133
70134 2004-10-15  Bruno Haible  <bruno@clisp.org>
70135
70136         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
70137         the portions belonging to each module.
70138         Suggested by Derek Robert Price <derek@ximbiot.com>.
70139
70140 2004-10-12  Simon Josefsson  <jas@extundo.com>
70141
70142         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70143         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
70144         to real functions.
70145
70146 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70147
70148         * modules/vsnprintf: New file.
70149
70150 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70151
70152         * m4/vsnprintf.m4: New file.
70153
70154 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70155
70156         * lib/vsnprintf.h: New file.
70157         * lib/vsnprintf.c: New file.
70158
70159 2004-10-11  Bruno Haible  <bruno@clisp.org>
70160
70161         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
70162         vsnprintf.
70163
70164 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70165
70166         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
70167
70168 2004-10-07  Bruno Haible  <bruno@clisp.org>
70169
70170         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
70171         fits into the provided buffer.
70172
70173 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70174
70175         * lib/diacrit.c, diacrit.h: Add GPL notice.
70176
70177         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
70178         notice.
70179         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
70180         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
70181         This avoids a potential constant-folding bug.
70182
70183 2004-10-05  Bruno Haible  <bruno@clisp.org>
70184
70185         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
70186         for the declaration of strsep.
70187
70188 2004-10-05  Bruno Haible  <bruno@clisp.org>
70189
70190         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
70191
70192 2004-10-04  Simon Josefsson  <jas@extundo.com>
70193
70194         * modules/memmem: New file.
70195         * tests/test-memmem.c: New file.
70196         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70197
70198 2004-10-04  Simon Josefsson  <jas@extundo.com>
70199
70200         * m4/memmem.m4: New file.
70201
70202 2004-10-04  Simon Josefsson  <jas@extundo.com>
70203
70204         * lib/memmem.h: New file.
70205         * lib/memmem.c: New file, taken from glibc.
70206
70207 2004-10-04  Simon Josefsson  <jas@extundo.com>
70208
70209         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70210         '#ifdef USE_UNLOCKED_IO'.
70211
70212 2004-10-04  Simon Josefsson  <jas@extundo.com>
70213
70214         * config/srclist.txt: Add memmem from glibc.
70215
70216 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70217
70218         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70219
70220         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70221         modules/exclude, modules/getdate, modules/getline,
70222         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70223         modules/getusershell, modules/linebuffer, modules/md5,
70224         modules/mountlist, modules/posixtm, modules/readtokens,
70225         modules/readutmp, modules/regex, modules/sha1,
70226         modules/version-etc, modules/yesno:
70227         Remove dependency on unlocked-io.
70228
70229 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70230
70231         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70232
70233         * m4/unlocked-io.m4: Add copyright notice.
70234         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70235
70236 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70237
70238         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70239         * lib/xmalloc.c (xmemdup): Likewise.
70240         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70241         XFREE): Remove these long-obsolescent macros.
70242         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70243         * lib/xstrdup.c: Remove.
70244
70245         * lib/regex.c (re_comp): Cast gettext return value to char *,
70246         Problem reported by Martin Neitzel via Mark D. Baushke.
70247
70248 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70249
70250         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70251         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70252         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70253         regex.c, sha1.c, version-etc.c, yesno.c:
70254         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70255         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70256         the includer's responsibility.
70257
70258         Sync from coreutils.
70259
70260         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70261         points to the start of a string, as the C Standard says the
70262         resulting behavior is undefined.
70263
70264         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
70265         simple -> simple_backups, numbered_existing ->
70266         numbered_existing_backups, numbered -> numbered_backups
70267         to avoid shadowing problems.  All uses changed.
70268         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
70269         * lib/backupfile.c (check_extension, numbered_backup):
70270         Rename locals to avoid shadowing 'basename'.
70271         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
70272         once.
70273
70274         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
70275         * lib/.cvsignore: Add getopt.h.
70276
70277 2004-10-04  Bruno Haible  <bruno@clisp.org>
70278
70279         * modules/README: New file.
70280         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
70281         not a module.
70282
70283 2004-10-02  Jim Meyering  <jim@meyering.net>
70284
70285         * lib/dirfd.h, getpagesize.h: Add copyright notice.
70286
70287 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70288
70289         * modules/strsep: New file.
70290
70291 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70292
70293         * m4/strsep.m4: New file.
70294
70295 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70296
70297         * lib/strsep.h: New file.
70298         * lib/strsep.c: New file.
70299
70300 2004-10-01  Simon Josefsson  <jas@extundo.com>
70301
70302         * lib/snprintf.c (snprintf): Handle size==0.
70303
70304 2004-10-01  Simon Josefsson  <jas@extundo.com>
70305             Bruno Haible  <bruno@clisp.org>
70306
70307         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
70308         (snprintf): Declare 'args'.
70309
70310 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
70311
70312         * lib/snprintf.c: Remove comments as to why each header is needed.
70313
70314 2004-10-01  Bruno Haible  <bruno@clisp.org>
70315
70316         * MODULES.html.sh: Add strsep.
70317
70318 2004-09-30  Simon Josefsson  <jas@extundo.com>
70319
70320         * modules/snprintf: New file.
70321
70322 2004-09-30  Simon Josefsson  <jas@extundo.com>
70323
70324         * m4/snprintf.m4: New file.
70325
70326 2004-09-30  Simon Josefsson  <jas@extundo.com>
70327
70328         * lib/snprintf.h, lib/snprintf.c: New files.
70329
70330 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70331
70332         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70333         (hol_entry_help): Never translate an empty string.
70334         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70335         * lib/argp.h (OPTION_NO_TRANS): New option.
70336
70337 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70338
70339         * modules/argp (Maintainer): Replace Simon Josefsson
70340         by Sergey Poznyakoff.
70341
70342 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70343
70344         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70345         changes merged back into glibc.
70346
70347 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70348
70349         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70350
70351 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70352
70353         * lib/xvasprintf.c: Include xalloc.h.
70354         (xvasprintf): Use xalloc_die, not xmalloc_die.
70355
70356 2004-09-29  Bruno Haible  <bruno@clisp.org>
70357
70358         * modules/alloca-opt: New file, derived from modules/alloca.
70359         * modules/allocsa: Depend on alloca-opt instead of alloca.
70360         * modules/setenv: Likewise.
70361         * modules/vasnprintf: Likewise.
70362         * MODULES.html.sh: Add alloca-opt.
70363
70364 2004-09-28  Simon Josefsson  <jas@extundo.com>
70365
70366         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70367         LGPL, and to replace license template from GPL to LGPL.
70368
70369 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70370
70371         * modules/dummy: Change license to LGPL.
70372
70373 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70374
70375         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70376
70377 2004-09-24  Simon Josefsson  <jas@extundo.com>
70378
70379         * modules/minmax (License): Change from GPL to LGPL.
70380
70381 2004-09-23  Simon Josefsson  <jas@extundo.com>
70382
70383         * gnulib-tool (--import): Typo.
70384
70385 2004-09-23  Simon Josefsson  <jas@extundo.com>
70386
70387         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70388
70389 2004-09-22  Bruno Haible  <bruno@clisp.org>
70390
70391         * modules/*: Add 'License' field.
70392         * gnulib-tool: Accept --extract-license option.
70393         (func_get_license): New function.
70394
70395 2004-09-21  Bruno Haible  <bruno@clisp.org>
70396
70397         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70398         Reported by Simon Josefsson.
70399
70400 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70401
70402         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70403         gl_AC_TYPE_LONG_LONG.
70404
70405 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70406
70407         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70408
70409 2004-09-18  Simon Josefsson  <jas@extundo.com>
70410         and  Paul Eggert  <eggert@cs.ucla.edu>
70411
70412         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70413         calls with autoreconf.  Define GL_LIB.
70414
70415 2004-09-14  Karl Berry  <karl@gnu.org>
70416
70417         * config/srclist.txt: unsync setenv.c, sigh.
70418
70419 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70420
70421         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70422         Problem reported by Bruno Haible in:
70423         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70424
70425 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70426
70427         * config/srclist.txt: Comment out argp-pvh.c.
70428
70429 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70430
70431         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70432         in case some system header has #define'd it.  Problem reported by
70433         Soeren D. Schulze in
70434         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70435
70436 2004-09-09  Karl Berry  <karl@gnu.org>
70437
70438         * regex.[ch]: delete from the root.  These were supposed to be
70439                 synced with emacs cvs, but this has not happened for about
70440                 a year, and anyway nothing else uses emacs regex.[ch].
70441                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70442                 lib/regex[.ch] is untouched.
70443
70444 2004-09-09  Bruno Haible  <bruno@clisp.org>
70445
70446         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70447
70448 2004-09-09  Bruno Haible  <bruno@clisp.org>
70449
70450         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70451         modifications.
70452         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70453
70454 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70455
70456         * modules/xvasprintf: New file.
70457         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70458
70459 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70460
70461         * lib/xvasprintf.h: New file.
70462         * lib/xvasprintf.c: New file.
70463         * lib/xasprintf.c: New file.
70464
70465 2004-09-08  Bruno Haible  <bruno@clisp.org>
70466
70467         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70468
70469 2004-09-08  Bruno Haible  <bruno@clisp.org>
70470
70471         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70472         length is > INT_MAX.
70473         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
70474         more.
70475
70476 2004-09-08  Bruno Haible  <bruno@clisp.org>
70477
70478         * lib/stdint_.h: New file, taken from GNU clisp.
70479
70480 2004-09-08  Bruno Haible  <bruno@clisp.org>
70481             Oskar Liljeblad  <oskar@osk.mine.nu>
70482
70483         * modules/stdint: New file.
70484         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
70485
70486 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70487
70488         Import from coreutils.
70489         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
70490         strings on unbounded length.  alloca's performance benefits aren't
70491         that important here.
70492         (V_STRDUP): Remove.
70493         (parse_with_separator): New function, with most of the internals
70494         of the old parse_user_spec.  Allow user to omit both user and group,
70495         for compatibility with FreeBSD.
70496         Clone only the user name, not the entire spec.
70497         Do not set *uid, *gid unless entirely successful.
70498         Avoid memory leak in some failing cases.
70499         Fix regression for USER.GROUP reported by Dmitry V. Levin in
70500         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
70501         (parse_user_spec): Rewrite to use parse_with_separator.
70502
70503 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70504
70505         * modules/userspec: Don't depend on alloca.
70506
70507 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70508
70509         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
70510
70511 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70512
70513         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
70514         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
70515         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
70516
70517 2004-08-16  Simon Josefsson  <jas@extundo.com>
70518
70519         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
70520         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
70521         Add --dry-run for --import.
70522         Let user provided command line parameters override configure.ac
70523         settings.
70524
70525 2004-08-12  Simon Josefsson  <jas@extundo.com>
70526
70527         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
70528         as discussed with Paul Eggert in threads rooted at
70529         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
70530         and
70531         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
70532         Before, the test was empty, and relied on ELIDE_CODE in source
70533         code.)
70534         (gl_PREREQ_GETOPT): New macro.
70535         (gl_GETOPT): Use them.
70536
70537 2004-08-12  Simon Josefsson  <jas@extundo.com>
70538
70539         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
70540         * lib/getopt_.h: Renamed from getopt.h.
70541
70542 2004-08-12  Simon Josefsson  <jas@extundo.com>
70543
70544         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
70545         Change default library name from libfoo to libgnu.
70546         Now, if you have a configure.ac that says:
70547                 gl_SOURCE_BASE(gl)
70548                 gl_M4_BASE(gl/m4)
70549                 gl_MODULES(error getopt etcetera)
70550                 gl_INIT
70551         you can import all you need by running:
70552                 ../gnulib/gnulib-tool --import
70553
70554         * modules/getopt (Files): Rename getopt.h to getopt_.h.
70555         (Makefile.am): Rewrite, use logic from argz.
70556         (Include): Use <getopt.h> instead of "getopt.h".
70557
70558 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70559
70560         * modules/argp (Files): Add m4/unlocked-io.m4.
70561         (Depends-on): Add extensions.
70562
70563 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70564
70565         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
70566         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
70567         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
70568         Check for program_invocation_name, program_invocation_short_name,
70569         flockfile, funlockfile, features.h, _getopt_long_only_r.
70570
70571 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70572
70573         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
70574         its complicated substitute.
70575         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
70576         and program_invocation_name.
70577         (__argp_basename) [!_LIBC]: Remove; the only use was
70578         replaced by its body.
70579         (__argp_short_program_name): Change condition from
70580         !defined __argp_short_program_name to
70581         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
70582         to match argp-namefrob.h.
70583         (__argp_failure): Don't assume strerror_r returns char *.
70584         * lib/argp-parse.c (N_): Define unconditionally.
70585         (argp_default_options): Fill out initializers with 0 to avoid
70586         gcc warnings.
70587
70588 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70589
70590         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
70591         getopt1.c.
70592
70593 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70594
70595         Merge from coreutils.
70596
70597         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
70598
70599         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
70600         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
70601
70602 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70603
70604         Merge from coreutils.
70605
70606         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
70607         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
70608         for Reliant Unix 5.43.
70609
70610         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
70611         (union fooround): Use uintmax_t, not long int.
70612         The rest is a merge from libc:
70613         [defined _LIBC]: Include <shlib-compat.h>.
70614         (_obstack) [defined _LIBC]: Remove after 2.3.4.
70615
70616         * lib/settime.c (settime): Recode to avoid warning with
70617         Sun Forte C 6U2.
70618
70619         * lib/strverscmp.c: Convert to UTF-8.
70620
70621 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70622
70623         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70624         m4/uintmax_t.m4.
70625
70626 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70627
70628         * modules/xalloc-die: New file.
70629         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
70630
70631         * modules/md5 (Files): Add m4/uint32_t.m4.
70632         * modules/sha1: Renamed from modules/sha.
70633         (Files):
70634         Rename lib/sha.h to lib/sha1.h.
70635         Rename lib/sha.c to lib/sha1.c.
70636         Rename m4/sha.m4 to m4/sha1.m4.
70637         (lib_SOURCES): Likewise.
70638         (configure.ac): Rename gl_SHA to gl_SHA1.
70639         (Include): sha.h -> sha1.h.
70640
70641 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70642
70643         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
70644         * m4/sha1.m4: Renamed from sha.m4.
70645         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
70646
70647 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70648
70649         * lib/obstack.h (obstack_empty_p):
70650         Don't assume that chunk->contents is suitably aligned.
70651         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
70652         Likewise. Problem reported by Benno in
70653         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
70654
70655         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
70656         readable.  This could be improved further but it'd take some work.
70657
70658 2004-08-08  Simon Josefsson  <jas@extundo.com>
70659
70660         * modules/xgethostname (Depends-on): Remove exit and error (not
70661         used).
70662
70663         * modules/getpass-gnu: Add getpass.h.
70664         (Depends-on): Add stdbool.
70665         * modules/getpass: Add getpass.h.
70666
70667 2004-08-08  Simon Josefsson  <jas@extundo.com>
70668
70669         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
70670         Check getpass declaration.
70671
70672 2004-08-08  Simon Josefsson  <jas@extundo.com>
70673
70674         * lib/xgethostname.c: Don't include error.h (not used).
70675
70676         * lib/getpass.h: Add.
70677         * lib/getpass.c: Include getpass.h first.
70678
70679 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
70680
70681         * lib/xalloc-die.c: New file.
70682         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
70683         All uses removed.
70684         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
70685         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
70686         xalloc-die.c.
70687         (_, N_, xalloc_die): Move to xalloc-die.c.
70688         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
70689         so that we needn't mess with xalloc_msg_memory_exhausted.
70690
70691         * lib/sha1.h: Renamed from sha.h.
70692         (SHA1_H): Renamed from _SHA_H.
70693         (sha1_ctx): Renamed from sha_ctx.
70694         (sha1_init_ctx): Renamed from sha_init_ctx.
70695         (sha1_process_block): Renamed from sha_process_block.
70696         (sha1_process_bytes): Renamed from sha_process_bytes.
70697         (sha1_finish_ctx): Renamed from sha_finish_ctx.
70698         (sha1_read_ctx): Renamed from sha_read_ctx.
70699         (sha1_stream): Renamed from sha_stream.
70700         (sha1_buffer): Renamed from sha_buffer.
70701         * lib/sha1.c: Likewise; renamed from sha.c.
70702         Do not include <sys/types.h>.
70703         Include <stddef.h> rather than <stdlib.h>.
70704
70705 2004-08-08  Bruno Haible  <bruno@clisp.org>
70706
70707         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
70708         FILESYSTEM_PREFIX_LEN.
70709         * lib/progreloc.c: Likewise.
70710         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
70711
70712 2004-08-06  Simon Josefsson  <jas@extundo.com>
70713
70714         * modules/progname (Depends-on): Don't depend on stdbool.
70715
70716 2004-08-06  Simon Josefsson  <jas@extundo.com>
70717
70718         * modules/getsubopt: New file.
70719         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70720         getsubopt.
70721
70722 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70723
70724         More merge from coreutils.
70725
70726         * m4/utimens.m4, m4/utimecmp.m4: New files.
70727         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
70728         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
70729         prereq.m4, sha.m4: Import changes from coreutils.
70730
70731 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70732
70733         More merge from coreutils.
70734         * modules/raise, modules/readtokens0, modules/utimens:
70735         * modules/utimecmp, module/xnanosleep: New files.
70736         * modules/strftime: Add lib/strftime.h.
70737         Change include from <time.h> to "strftime.h".
70738         * modules/yesno: Add lib/yesno.h.
70739         * modules/backupfile: Remove lib/addext.c.
70740         * modules/euidaccess: Add stat-macros.h.
70741         * modules/canonicalize, modules/euidaccess,
70742         modules/filemode, modules/lchown, modules/makepath,
70743         modules/rmdir, modules/stat: Likewise.
70744
70745 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70746
70747         Merge from tar.
70748         * lib/argp-help.c (make_hol, hol_append): Don't assume that
70749         SIZE_MAX is a valid preprocessor constant.
70750         (__argp_basename): Change from "#ifndef _LIBC"
70751         to "#ifndef __argp_short_program_name", so that
70752         we don't compile these functions for tar.
70753
70754         More merges from coreutils.
70755         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
70756         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
70757         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
70758         * lib/addext.c: Remove; no longer needed.
70759         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
70760         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
70761         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
70762         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
70763         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
70764         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
70765         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
70766         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
70767         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
70768         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70769         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
70770         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
70771         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
70772         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
70773         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
70774         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
70775         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
70776         Import changes from coreutils.
70777
70778 2004-08-05  Simon Josefsson  <jas@extundo.com>
70779
70780         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
70781
70782 2004-08-05  Simon Josefsson  <jas@extundo.com>
70783
70784         * m4/getsubopt.m4: New file.
70785
70786 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70787
70788         Merge from coreutils.
70789
70790         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
70791         * m4/getcwd-path-max.m4: New files.
70792
70793         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
70794         FILESYSTEM_PREFIX_LEN ->
70795         FILE_SYSTEM_PREFIX_LEN.
70796         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
70797         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
70798         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
70799         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
70800
70801         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
70802         prerequisite modules now handle the DOS stuff.
70803         Don't check for unistd.h.
70804
70805 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70806
70807         Merge from coreutils.
70808
70809         * lib/.gdb-history: Remove; this doesn't belong here.
70810
70811         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
70812         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
70813         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
70814         * lib/getcwd.c: New files.
70815
70816         * lib/dirname.h: Include <stdbool.h>.
70817         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
70818         for consistency with POSIX terminology.  All uses changed.
70819         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
70820         (strip_trailing_slashes): Use bool for booleans.
70821         * lib/stripslash.c (strip_trailing_slashes): Likewise.
70822
70823         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
70824         sometimes returns a positive errno value even when it succeeds.
70825         (print_errno_message) [!LIBC]: Fall back on strerror if
70826         __strerror_r fails.
70827
70828         * lib/path-concat.c (mempcpy): Don't define if a system header defines
70829         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
70830         (longest_relative_suffix): New function.
70831         (path_concat): Use it.  Assume first argument is not NULL.
70832         Port to DOS.  Omit redundant separators.
70833         Report an error instead of returning NULL.
70834         Use mempcpy instead of memcpy.
70835         (xpath_concat): Remove: not declared or used.
70836
70837         * lib/same.h: Include <stdbool.h>
70838         (same_name): Return bool, not int.
70839         * lib/same.c (same_name): Likewise.
70840         (errno): Don't declare; we assume C89 or better now.
70841
70842         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
70843         if not already defined.
70844
70845         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
70846         * lib/dup-safer.c (errno): Likewise.
70847
70848 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70849
70850         Merge from coreutils.
70851         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
70852         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
70853         * modules/path-concat: Don't depend on strdup.
70854
70855 2004-08-03  Simon Josefsson  <jas@extundo.com>
70856
70857         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
70858         * lib/progname.h: Don't include stdbool.h.
70859
70860 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70861
70862         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
70863         * MODULES.html.sh (func_all_modules): Remove fatal.
70864
70865 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70866
70867         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
70868
70869 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70870
70871         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
70872         working.
70873
70874 2004-08-02  Simon Josefsson  <jas@extundo.com>
70875
70876         * lib/getsubopt.h: New file, with comments from Bruno Haible.
70877         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
70878         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
70879
70880 2004-08-01  Simon Josefsson  <jas@extundo.com>
70881
70882         * lib/xgetdomainname.c: Include stdlib.h, for free().
70883
70884 2004-07-19  Bruno Haible  <bruno@clisp.org>
70885
70886         * MODULES.html.sh (func_all_modules): Add dummy.
70887
70888 2004-07-16  Simon Josefsson  <jas@extundo.com>
70889
70890         * modules/dummy: New file.
70891
70892 2004-07-16  Simon Josefsson  <jas@extundo.com>
70893
70894         * lib/dummy.c: New file.
70895
70896 2004-07-16  Bruno Haible  <bruno@clisp.org>
70897
70898         * lib/backupfile.h: Add extern "C" for C++.
70899         * lib/closeout.h: Likewise.
70900         * lib/copy-file.h: Likewise.
70901         * lib/findprog.h: Likewise.
70902         * lib/full-write.h: Likewise.
70903         * lib/pathname.h: Likewise.
70904         * lib/progname.h: Likewise.
70905         * lib/stpcpy.h: Likewise.
70906         * lib/stpncpy.h: Likewise.
70907         * lib/strcase.h: Likewise.
70908         * lib/strstr.h: Likewise.
70909         * lib/xalloc.h: Likewise.
70910
70911         * lib/mbswidth.h: Add extern "C" for C++.
70912         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
70913
70914 2004-07-13  Robert Millan  <robertmh@gnu.org>
70915
70916         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
70917
70918 2004-07-09  Simon Josefsson  <jas@extundo.com>
70919
70920         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
70921         failed without this.)
70922
70923 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70924
70925         * modules/chown (Files): Add lib/fchown-stub.c, since
70926         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
70927
70928 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70929
70930         * lib/fchown-stub.c: New file.
70931
70932 2004-06-24  Jim Meyering  <jim@meyering.net>
70933
70934         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
70935
70936 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70937
70938         * modules/argz: Omit "#include".
70939
70940         * MODULES.html.sh (func_all_modules): Add calloc, to match
70941         2004-06-01 addition of calloc module.
70942
70943 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70944
70945         * m4/argz.m4: New file, which is autoupdated from libtool.
70946
70947 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70948
70949         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
70950         libtool.
70951
70952 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70953
70954         * config/srclist-update: Don't insist on "USA." before the
70955         close-comment, as libtool omits the period and puts the */ on a
70956         separate line.
70957         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
70958         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
70959
70960 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
70961
70962         * modules/argz: New file.
70963         * MODULES.html.sh (func_all_modules): Add argz.
70964
70965 2004-06-12  Jim Meyering  <jim@meyering.net>
70966         and  Paul Eggert  <eggert@cs.ucla.edu>
70967
70968         * modules/hash (Files): Add lib/xalloc.h.
70969         * modules/pipe (Depends-on): Add wait-process.
70970         * modules/stat (Depends-on): Add xalloc.
70971         * modules/userspec (Files): Add lib/userspec.h.
70972         * modules/xstrto
70973
70974         Upgrade from gettext-0.13.
70975         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
70976         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
70977         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
70978
70979 2004-06-10  Jim Meyering  <jim@meyering.net>
70980
70981         * lib/calloc.c: New file.
70982
70983 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
70984
70985         * lib/getdate.y (yylex): Allow space between sign and number.
70986         Problem reported by Dan Jacobson.
70987
70988 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70989
70990         Merge from coreutils CVS.
70991
70992         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
70993         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
70994         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
70995         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
70996         xstrtol.m4: Fix copyright date and/or serial number.
70997
70998         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
70999         See if we need an fchown replacement.
71000         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
71001         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
71002         and use the replacement function if we detect either defect.
71003
71004         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
71005         gl_UTIMECMP.
71006
71007 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71008         and  Jim Meyering  <jim@meyering.net>
71009
71010         Merge from coreutils CVS.
71011
71012         * lib/stat-macros.h: New file, with contents from file-type.h
71013         and coreutils' system.h.
71014         * lib/file-type.c: Include "stat-macros.h".
71015         * lib/file-type.h (file_type): Move all macro definitions to new file,
71016         stat-macros.h.
71017
71018         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
71019         Wrap old code with this conditional.
71020         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
71021         function that does not dereference symlinks.
71022         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
71023
71024         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
71025         dependency problems.
71026         (xreadlink): Accept new arg SIZE, for efficiency.
71027         All decls and uses changed.
71028         * lib/xreadlink.h: Include <stddef.h>, for size_t.
71029
71030         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
71031         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
71032
71033         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
71034         sysexits.h.
71035
71036 2004-06-01  Jim Meyering  <jim@meyering.net>
71037
71038         * m4/calloc.m4: New file.
71039
71040 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
71041
71042         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
71043         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
71044         Also, fix a typo in a diagnostic.
71045
71046 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71047
71048         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
71049         or AC_FUNC_REALLOC.
71050
71051 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71052
71053         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
71054         macros to be defined.
71055         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
71056         the allocator returns NULL because the requested size is zero.
71057
71058 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71059
71060         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
71061         var.  Add comment explaining why libc still defines it.  This
71062         merges the following patch from glibc:
71063         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
71064
71065 2004-05-20  Andreas Schwab  <schwab@suse.de>
71066
71067         * m4/free.m4: Replace free if it not known to work, not the other
71068         way round.
71069
71070 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71071
71072         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
71073         present in glibc since revision 1.1 of this file.
71074         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
71075         obstack_alignment_mask, obstack_alloc, obstack_base,
71076         obstack_blank, obstack_blank_fast, obstack_chunk_size,
71077         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
71078         obstack_grow0, obstack_init, obstack_int_grow,
71079         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
71080         obstack_next_free, obstack_object_size, obstack_ptr_grow,
71081         obstack_ptr_grow_fast, obstack_room): Remove declarations of
71082         nonexistent functions.
71083
71084 2004-05-18  Karl Berry  <karl@gnu.org>
71085
71086         * config/srclist.txt: break link for vasnprintf.c.
71087
71088 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71089
71090         Port obstack to the AS/400, where pointers are 16 bytes wide and
71091         you cannot cast an integer to a valid pointer.  This patch is
71092         currently waiting to be integrated into glibc; see
71093         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
71094
71095         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
71096         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
71097         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
71098         (struct obstack): temp member is now a union of a pointer and
71099         an integer, instead of an integer.  All integer uses changed.
71100         This does not affect the physical layout of struct obstack,
71101         except on hosts (like the AS/400) where the size or alignment of
71102         void * is greater than that of ptrdiff_t.
71103         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
71104         __STDC__)]: Store temporary in pointer member of union, not
71105         integer member.
71106         * lib/obstack.c: Include <stddef.h>, for offsetof.
71107         (struct fooalign): Remove; it doesn't need a name.
71108         (union fooround): Change double to long double, and add void *.
71109         (DEFAULT_ALIGNMENT): Use offsetof to compute.
71110         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
71111         not a macro.  Hence the values are always int; so remove all
71112         casts-to-int in uses.
71113
71114 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71115
71116         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
71117         we can get this patch merged into glibc.
71118
71119 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71120             Paul Eggert  <eggert@cs.ucla.edu>
71121
71122         * m4/argp: Depend on alloca.
71123
71124 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71125             Paul Eggert  <eggert@cs.ucla.edu>
71126
71127         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
71128         freecoding.
71129
71130 2004-05-17  Bruno Haible  <bruno@clisp.org>
71131
71132         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
71133         precision that consists of a '.' followed by an empty digit string.
71134         Patch by Tor Lillqvist <tml@iki.fi>.
71135
71136 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71137
71138         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
71139         for backward compatibility with older code.  We need our own
71140         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
71141         it under some other name, and our alloca.h will define it.
71142
71143 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71144             Derek Price  <derek@ximbiot.com>
71145
71146         * lib/alloca.c: Include <alloca.h>, to get our interface.
71147         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
71148         include <alloca.h> first.  Use C89 prototype for alloca; this
71149         requires including <stddef.h> for size_t.  Use extern "C" if C++.
71150         Use #elif for simplicity, since we can assume C89 now.
71151         Don't try to source the system alloca.h since it will not be found
71152         and to prevent recursively including its replacement.
71153         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
71154         * lib/regex.c: Likewise.
71155
71156 2004-05-16  Derek Price  <derek@ximbiot.com>
71157             Paul Eggert  <eggert@cs.ucla.edu>
71158
71159         getline cleanup.  This changes the getndelim2 API: both order of
71160         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
71161         no delimiter).
71162
71163         * lib/getline.c: Don't include stddef.h or stdio.h, since our
71164         interface does that.
71165         (getline): Always use getdelim, so that we don't have two
71166         copies of this code.
71167         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
71168         if available.
71169         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
71170         (GETNDELIM2_MAXIMUM): New macro.
71171         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
71172         instead of the old practice of delim2==0.  All callers changed.
71173         Return -1 on overflow, instead of returning junk.
71174         Do not set *linesize unless allocation succeeds.
71175         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
71176         that we include sys/types.h.
71177         * lib/getnline.h: Likewise.
71178         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
71179         (getndelim2): Reorder arguments.
71180         * lib/getnline.c (getnline, getndelim):
71181         Don't discard the NMAX argument.
71182         (getnline): Invoke getndelim, to avoid code duplication.
71183         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
71184         of (size_t) -1 by callers of the getnline family.
71185
71186 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71187
71188         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
71189         Check for gettimeofday.
71190         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
71191         Check for settimeofday, stime.
71192
71193 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71194
71195         * lib/nanosleep.c (suspended): Change its type from int to
71196         sig_atomic_t volatile.
71197         (first_call): Make it private to rpl_nanosleep, and have it
71198         be zero initially as that's a bit faster.
71199         (my_usleep): Round up fractional times instead of truncating them,
71200         as this is the usual meaning for 'sleep'.
71201
71202         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71203         doesn't work.
71204         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71205         (ENOSYS): Define if not defined.
71206         (settime): Fall back on stime if it exists and settimeofday fails.
71207         But don't bother with fallbacks if a method fails with errno == EPERM.
71208
71209 2004-05-11  Jim Meyering  <jim@meyering.net>
71210
71211         Prior to this change, the save_cwd caller required read access to the
71212         current directory on most systems (ones with the fchdir function).
71213
71214         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71215         fails, try write-only, and finally, resort to using xgetcwd.
71216
71217 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71218
71219         * lib/obstack.c, obstack.h: Import changes from libc.
71220
71221 2004-04-28  Bruno Haible  <bruno@clisp.org>
71222
71223         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71224         also implicitly appends .exe to executables.
71225         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71226         accepts Windows pathnames.
71227         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71228         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71229         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71230         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71231         Reported by Derek Robert Price <derek@ximbiot.com>.
71232
71233 2004-04-21  Karl Berry  <karl@gnu.org>
71234
71235         * config/srclist.txt (localcharset.c): break sync.
71236
71237 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71238
71239         * m4/host-os.m4: Add a copyright notice.
71240
71241 2004-04-20  Jim Meyering  <jim@meyering.net>
71242
71243         Change UTILS_ to gl_ in AC_DEFINE'd names.
71244         Change utils_- and jm_-prefixed variables, too.
71245         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71246         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71247         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71248
71249         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71250         Don't emit trailing blanks.
71251         Also rename jm_-prefixed variables to have gl_ prefix.
71252
71253         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71254         Also rename jm_-prefixed variables to have gl_ prefix.
71255
71256         * m4/jm-macros.m4: Reflect the renamings.
71257         * m4/prereq.m4: Likewise.
71258
71259 2004-04-20  Jim Meyering  <jim@meyering.net>
71260
71261         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71262         memory.
71263
71264 2004-04-20  Jim Meyering  <jim@meyering.net>
71265             Bruno Haible  <bruno@clisp.org>
71266
71267         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
71268         memory when realloc fails.
71269
71270 2004-04-19  Jim Meyering  <jim@meyering.net>
71271
71272         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
71273         now that readutmp.c may call `free (0)'.
71274
71275 2004-04-19  Bruno Haible  <bruno@clisp.org>
71276
71277         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
71278         * m4/inttypes_h.m4: Likewise.
71279         * m4/stdint_h.m4: Likewise.
71280         * m4/intmax_t.m4: Likewise.
71281         * m4/uintmax_t.m4: Likewise.
71282
71283 2004-04-18  Jim Meyering  <jim@meyering.net>
71284
71285         * m4/prereq.m4: Don't forbid jm_ prefix.
71286
71287         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
71288         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
71289         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
71290         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
71291         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
71292         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
71293         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
71294         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
71295         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
71296         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
71297         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
71298         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
71299         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
71300         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
71301         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
71302         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
71303         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
71304         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
71305         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
71306
71307 2004-04-18  Jim Meyering  <jim@meyering.net>
71308
71309         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
71310         failure, don't leak memory and do call END_UTMP_ENT.
71311
71312 2004-04-16  Jim Meyering  <jim@meyering.net>
71313
71314         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71315         coreutils' stat program.
71316         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71317
71318 2004-04-11  Paul Eggert  <eggert@twinsun.com>
71319
71320         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71321         C89.
71322         (CHAR_BIT): Remove, since we assume C89.
71323         Include <stdint.h> if available, as per current Autoconf CVS advice.
71324
71325 2004-03-31  Jim Meyering  <jim@meyering.net>
71326
71327         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71328         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71329         * m4/xalloc.m4: Likewise.
71330
71331 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71332
71333         Merge from coreutils.
71334
71335         * m4/inttostr.m4: New file.
71336         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71337         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71338         Require gl_CLOCK_TIME.
71339         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71340
71341 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71342
71343         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71344         not bool, to be more consistent with Unix conventions.
71345         Suggested by Bruno Haible.
71346
71347         Merge from coreutils.
71348
71349         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71350         * lib/umaxtostr.c: New files.
71351
71352         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71353         the usual <time.h> dance.
71354         (get_date): Change signature to support fractional time stamps.
71355         All callers changed.
71356         * lib/getdate.y: Include "getdate.h" first, as we can now
71357         assume C89 and don't need to worry about 'const'.
71358         Similarly, include "unlocked-io.h" near start, not in middle.
71359         Include <limits.h>.
71360         (textint.value): Use long int rather than int.
71361         (textint.digits): Use size_t rather than int.
71362         (BILLION, LOG10_BILLION): New constants.
71363         (parser_control): New member rel_ns.  Members day_ordinal,
71364         time_zone, month, day, hour, minutes, rel_year, rel_month,
71365         rel_day, rel_hour, rel_minutes, rel_seconds
71366         are now long int, not int.  Member seconds is now struct timespec,
71367         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71368         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71369         not int.
71370         (%union.intval): Now long int, not int.
71371         New member timespec.
71372         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71373         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71374         (spec): Now is a timespec or an item list.
71375         (timespec, items): New nonterminals.
71376         (time, rel, relunit, number, get_date):
71377         Add support for fractional seconds.
71378         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71379         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71380         (to_hour): First arg is now long int, not int.
71381         (to_year): Returns long int, not int.
71382         Don't treat year -70 like 70.
71383         (tm_diff): Returns long int, not int.
71384         (lookup_word): Use bool instead of int when appropriate.
71385         (yylex): Use size_t for count, not int.
71386         Detect overflow when parsing large integer constants.
71387         Add support for fractions.
71388         (get_date): Make pointers 'const' if possible.
71389         Use more-portable code to detect integer overflow.
71390         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71391         Don't use ctime; it's not reliable if the year has >4 digits.
71392
71393         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71394         This is for compatibility with BSD.
71395
71396         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71397         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71398         From coreutils' system.h.
71399
71400         * lib/userspec.c: Don't include "posixver.h".
71401         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71402         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71403         compatible extension.  Simplify code by removing a boolean int
71404         that was always nonzero if a string was nonnull.
71405
71406 2004-03-30  Jim Meyering  <jim@meyering.net>
71407
71408         Merge from coreutils.
71409
71410         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71411         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71412         on some systems one must include <grp.h> before it.
71413         Reported by Christian Krackowizer.
71414
71415 2004-03-30  Jim Meyering  <jim@meyering.net>
71416
71417         Merge from coreutils.
71418
71419         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71420
71421         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71422         an empty input stream.
71423
71424         * lib/readtokens.c: Include <stdbool.h>.
71425         (readtoken): Use `size_t' rather than int/long.
71426         All callers adjusted.
71427         Use `bool' rather than `int' where appropriate.
71428         Use memset rather than an explicit loop.
71429         Use x2nrealloc rather than xrealloc.
71430         Allow the use of `\0' as a delimiter.
71431         (readtokens): Likewise.
71432         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71433
71434 2004-03-30  Jim Meyering  <jim@meyering.net>
71435
71436         * m4/realloc.m4: Remove file, since now it does no more than
71437         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71438         the `configure.ac' section of module/realloc.
71439         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71440
71441 2004-03-30  Bruno Haible  <bruno@clisp.org>
71442
71443         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71444         nonnull.
71445
71446 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71447
71448         Merge changes to getloadavg.c from coreutils and Emacs.
71449
71450         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71451         Define to an expression, not to the empty string.
71452         Include cloexec.h and xalloc.h.
71453         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71454         Use set_cloexec_flag rather than rolling our own.
71455         * lib/cloexec.c, lib/cloexec.h: New files.
71456
71457 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71458
71459         * m4/cloexec.m4: New file.
71460
71461 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71462
71463         * lib/getopt.h: Sync with libc CVS.
71464
71465 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71466             Bruno Haible  <bruno@clisp.org>
71467
71468         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71469         mbswidth.
71470
71471 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71472             Bruno Haible  <bruno@clisp.org>
71473
71474         * lib/mbswidth.h: Include <wchar.h> only if
71475         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
71476         <wchar.h>.
71477         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
71478
71479 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71480
71481         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
71482         Sync with libc CVS.
71483         * lib/getopt_int.h: New file, also synced from libc.
71484
71485 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71486
71487         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
71488         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
71489         Bring back getopt.c, getopt.h, getopt1.c.
71490
71491 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71492
71493         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
71494         All uses changed.  Check for sa_sigaction member; this fixes
71495         a bug first reported by Jason Andrade in
71496         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71497
71498 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71499
71500         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
71501         '#if' expressions.  Unlike the code it replaces, it does not
71502         depend on (defined _SC_PAGESIZE).  However, it does depend on
71503         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
71504         first reported by Jason Andrade in
71505         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71506
71507 2004-02-25  Simon Josefsson  <jas@extundo.com>
71508
71509         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
71510
71511 2004-02-25  Simon Josefsson  <jas@extundo.com>
71512
71513         * lib/strdup.h: New file.
71514         * lib/strdup.c: Include it.
71515         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
71516         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
71517
71518 2004-02-23  Karl Berry  <karl@gnu.org>
71519
71520         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
71521         (from fencepost.gnu.org:/gd/gnuorg).
71522
71523 2004-02-23  Karl Berry  <karl@gnu.org>
71524
71525         * config/srclistvars.sh (GNUORG) [karl]: redefine.
71526         * config/srclist.txt: add maintain/standards documents.
71527
71528 2004-02-18  Bruno Haible  <bruno@clisp.org>
71529
71530         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
71531         Reported by Derek Robert Price <derek@ximbiot.com>.
71532
71533 2004-02-16  Karl Berry  <karl@gnu.org>
71534
71535         * config/mkinstalldirs, install-sh: update from automake.
71536
71537 2004-02-06  Karl Berry  <karl@gnu.org>
71538
71539         * m4/po.m4: update from gettext 0.14.1.
71540
71541 2004-02-06  Karl Berry  <karl@gnu.org>
71542
71543         * lib/config.charset: update from gettext 0.14.1.
71544
71545 2004-02-05  Paul Eggert  <eggert@twinsun.com>
71546
71547         Add comments and code, prompted by suggestions from Bruno Haible
71548         for sh-quote.
71549         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
71550         describing the enum quoting_style values.
71551         * lib/quotearg.c (quotearg_alloc): New function.
71552         (quotearg_buffer_restyled): Treat lone { and } as special.
71553         Treat = as special.  Work around bug with older shells
71554         that "see" a '\' that is really the 2nd byte of a multibyte char.
71555         Quote empty string with shell_quoting_style.
71556
71557 2004-02-03  Bruno Haible  <bruno@clisp.org>
71558
71559         * m4/pipe.m4: New file, from GNU gettext.
71560
71561 2004-02-03  Bruno Haible  <bruno@clisp.org>
71562
71563         * lib/pipe.h: New file, from GNU gettext.
71564         * lib/pipe.c: New file, from GNU gettext.
71565
71566 2004-01-27  Bruno Haible  <bruno@clisp.org>
71567
71568         * m4/execute.m4: New file, from GNU gettext.
71569
71570 2004-01-27  Bruno Haible  <bruno@clisp.org>
71571
71572         * lib/execute.h: New file, from GNU gettext.
71573         * lib/execute.c: New file, from GNU gettext.
71574         * lib/w32spawn.h: New file, from GNU gettext.
71575
71576 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71577
71578         Merge from diffutils.
71579
71580         * lib/file-type.c (file_type): Add typed memory objects.
71581         * lib/file-type.h (S_TYPEISTMO): New macro.
71582
71583         * lib/c-stack.h (c_stack_action): Remove argv argument.
71584         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
71585         (die): Don't calculate message unless segv_action returns.
71586         (get_stack_location, min_address_from_argv, max_address_from_argv,
71587         volatile stack_base, volatile_stack_size): Remove.
71588         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
71589         that every segmentation violation is a stack overflow.  (Ouch!)
71590         See Debian bug 136249 (still outstanding) for more info about why
71591         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
71592
71593 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71594
71595         Exit-status fix from coreutils.
71596
71597         Use exit_failure consistently in place of EXIT_FAILURE,
71598         so that program exit statuses are consistent on failure.
71599
71600         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
71601         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
71602         * lib/argmatch.h: Comment fix to match the above.
71603         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
71604         Now a macro referring to exit_failure, instead of a separate
71605         variable.  Include "exitfail.h" to get it.
71606         * lib/xstrtol.h: Include "exitfail.h".
71607         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
71608
71609         * lib/long-options.c (parse_long_options): Use prototype
71610         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
71611         for clarity.
71612
71613 2004-01-21  Jim Meyering  <jim@meyering.net>
71614
71615         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
71616         so as not to conflict with a different-sized __mktime_internal
71617         function in GNU libc.
71618         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
71619         Problem building statically-linked `ls' reported by Michael Brunnbauer.
71620
71621 2004-01-20  Karl Berry  <karl@gnu.org>
71622
71623         * config/config.guess: update from config.
71624
71625         * config/srclistvars.sh: GNUWWWLICENSES for karl.
71626
71627 2004-01-20  Bruno Haible  <bruno@clisp.org>
71628
71629         Safer stack allocation.
71630         * lib/setenv.c: Include allocsa.h.
71631         (alloca): Remove fallback definition.
71632         (freea): Remove macro.
71633         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
71634         instead of freea.
71635
71636 2004-01-20  Bruno Haible  <bruno@clisp.org>
71637
71638         * m4/eealloc.m4: New file, from GNU gettext.
71639
71640 2004-01-20  Bruno Haible  <bruno@clisp.org>
71641
71642         * m4/allocsa.m4: New file, from GNU gettext.
71643
71644 2004-01-20  Bruno Haible  <bruno@clisp.org>
71645
71646         * lib/xallocsa.h: New file, from GNU gettext.
71647         * lib/xallocsa.c: New file, from GNU gettext.
71648
71649 2004-01-20  Bruno Haible  <bruno@clisp.org>
71650
71651         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
71652
71653 2004-01-20  Bruno Haible  <bruno@clisp.org>
71654
71655         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
71656         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
71657         specially.
71658
71659 2004-01-20  Bruno Haible  <bruno@clisp.org>
71660
71661         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
71662         patch.
71663
71664 2004-01-20  Bruno Haible  <bruno@clisp.org>
71665
71666         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
71667
71668 2004-01-20  Bruno Haible  <bruno@clisp.org>
71669
71670         * lib/eealloc.h: New file.
71671
71672 2004-01-20  Bruno Haible  <bruno@clisp.org>
71673
71674         * lib/binary-io.h: Avoid warnings on Cygwin.
71675
71676 2004-01-20  Bruno Haible  <bruno@clisp.org>
71677
71678         * lib/allocsa.h: New file, from GNU gettext.
71679         * lib/allocsa.c: New file, from GNU gettext.
71680
71681 2004-01-18  Karl Berry  <karl@gnu.org>
71682
71683         * doc/gpl.texi, doc/lgpl.texi: new files.
71684
71685 2004-01-18  Karl Berry  <karl@gnu.org>
71686
71687         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
71688         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
71689
71690 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71691
71692         Merge from coreutils.
71693
71694         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
71695         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
71696         (gl_DEFAULT_POSIX2_VERSION): Move
71697         the documentation from 'configure' into 'config.hin',
71698         so that 'configure --help' isn't burdened by it and
71699         we don't have to worry about its formatting there.
71700         Reword the documentation so that it's more succinct
71701         and can be run together into a single paragraph.
71702         * m4/same.m4 (gl_SAME): Check for pathconf.
71703
71704 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71705
71706         Merge from coreutils.
71707
71708         * lib/posixver.c: Include posixver.h.
71709
71710         * lib/same.c: Include <stdbool.h>, <limits.h>.
71711         (_POSIX_NAME_MAX): Define if not defined.
71712         (MIN): New macro.
71713         (same_name): If file names are silently truncated, report
71714         that the file names are the same if they are the same after
71715         the silent truncation.
71716
71717         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
71718         conversion function.
71719         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
71720         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
71721         longer needed.
71722
71723 2004-01-15  Jim Meyering  <jim@meyering.net>
71724
71725         Merge from coreutils.
71726
71727         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
71728         if no library is required.
71729         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
71730         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
71731         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
71732         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
71733         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
71734         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
71735         value, $ac_cv_search_crypt, if it's "none required".
71736         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
71737         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
71738         not gl_FUNC_GETLOADAVG.
71739         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
71740         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
71741
71742 2004-01-15  Jim Meyering  <jim@meyering.net>
71743
71744         Merge from coreutils.
71745
71746         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
71747         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
71748         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
71749
71750         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
71751         optional configure-time default.
71752
71753         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71754
71755         * lib/xreadlink.c (xreadlink): Correct outdated comment.
71756
71757 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
71758
71759         Merge from coreutils.
71760
71761         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
71762         value, $ac_cv_search_nanosleep, if it's "none required".
71763
71764 2004-01-14  Paul Eggert  <eggert@twinsun.com>
71765
71766         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
71767         with like-named macro in fnmatch.c.
71768         (EXT): Use an internal constant instead.
71769
71770         Merge fnmatch patches from glibc.
71771         * lib/fnmatch.c (mbsinit): Remove define.
71772         Add libc_hidden_ver (__fnmatch, fnmatch).
71773         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
71774         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
71775
71776 2004-01-14  Karl Berry  <karl@gnu.org>
71777
71778         * config/install-sh: update from automake.
71779
71780 2004-01-13  Karl Berry  <karl@gnu.org>
71781
71782         * config/install-sh: update from automake.
71783
71784 2004-01-09  Karl Berry  <karl@gnu.org>
71785
71786         * config/install-sh: update from automake.
71787
71788 2004-01-05  Karl Berry  <karl@gnu.org>
71789
71790         * config/config.{sub,guess}: update from config.
71791
71792 2003-12-31  Karl Berry  <karl@gnu.org>
71793
71794         * config/depcomp: update from automake.
71795
71796 2003-12-14  Karl Berry  <karl@gnu.org>
71797
71798         * lib/config.charset: update from gettext-runtime.
71799
71800 2003-12-03  Paul Eggert  <eggert@twinsun.com>
71801
71802         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
71803         Bug reported by Alfred M. Szmidt.
71804
71805 2003-12-03  Bruno Haible  <bruno@clisp.org>
71806
71807         * m4/gettext.m4: Upgrade from gettext-0.13.
71808         * m4/po.m4: Upgrade from gettext-0.13.
71809         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
71810         * m4/intmax.m4: New file, from gettext-0.13.
71811         * m4/printf-posix.m4: New file, from gettext-0.13.
71812
71813 2003-11-29  Karl Berry  <karl@gnu.org>
71814
71815         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
71816
71817 2003-11-25  Paul Eggert  <eggert@twinsun.com>
71818             Bruno Haible  <bruno@clisp.org>
71819
71820         * lib/printf-parse.h: Don't include sys/types.h.
71821         (ARG_NONE): New macro.
71822         (char_directive): Change type of *arg_index fields to size_t.
71823         * lib/printf-parse.c: Don't include sys/types.h.
71824         (SSIZE_MAX): Remove macro.
71825         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
71826         Remove unnecessary overflow check.
71827         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
71828         fields.
71829
71830 2003-11-25  Bruno Haible  <bruno@clisp.org>
71831
71832         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
71833
71834 2003-11-25  Bruno Haible  <bruno@clisp.org>
71835
71836         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
71837         gt_TYPE_SSIZE_T.
71838
71839 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71840
71841         * modules/alloca: Remove dependency on xalloc.
71842
71843 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71844
71845         * lib/alloca.c: Remove dependency on xalloc module.
71846         (xalloc_die): Remove.
71847         (memory_full) [!defined emacs]: New macro.
71848         [!defined emacs]: Don't include xalloc.h.
71849         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
71850         address arithmetic overflows.  Change datatypes a bit to avoid
71851         unnecessary casts.
71852
71853 2003-11-22  Jim Meyering  <jim@meyering.net>
71854
71855         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
71856         s/size/size_t/.
71857
71858 2003-11-21  Karl Berry  <karl@gnu.org>
71859
71860         * config/config.{sub,guess}: update from config.
71861
71862 2003-11-18  Karl Berry  <karl@gnu.org>
71863
71864         * config/config.{sub,guess}: update from config.
71865
71866         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
71867
71868 2003-11-17  Paul Eggert  <eggert@twinsun.com>
71869
71870         * README: Mention that S+T cannot overflow if S is the size of
71871         an existing object and T is sufficiently small.
71872
71873 2003-11-17  Jim Meyering  <jim@meyering.net>
71874
71875         On systems without utime and without a utimes function capable of
71876         dealing with a NULL struct utimbuf* argument, this utime replacement
71877         could -- in unusual circumstances -- leak a file descriptor.
71878         * lib/utime.c: Include <unistd.h> and <errno.h>.
71879         (utime_null): Be sure to close `fd' and to preserve errno.
71880         Reported by Geoff Collyer via Arnold Robbins.
71881
71882 2003-11-17  Bruno Haible  <bruno@clisp.org>
71883
71884         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
71885         (Depends-on): Add xsize.
71886
71887 2003-11-17  Bruno Haible  <bruno@clisp.org>
71888
71889         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
71890
71891 2003-11-17  Bruno Haible  <bruno@clisp.org>
71892
71893         * lib/vasnprintf.c (alloca): Remove fallback definition.
71894         (freea): Remove definition.
71895         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
71896         Reported by Paul Eggert.
71897
71898 2003-11-16  Paul Eggert  <eggert@twinsun.com>
71899             Bruno Haible  <bruno@clisp.org>
71900
71901         Protect against address arithmetic overflow.
71902         * lib/printf-args.h: Include stddef.h.
71903         (arguments): Change type of field 'count' to size_t.
71904         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
71905         'unsigned int' where appropriate.
71906         * lib/printf-parse.h: Include sys/types.h.
71907         (char_directive): Change type of *arg_index fields to ssize_t.
71908         (char_directives): Change type of fields 'count', max_*_length to
71909         size_t.
71910         * lib/printf-parse.c: Include sys/types.h and xsize.h.
71911         (SSIZE_MAX): Define fallback value.
71912         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
71913         instead of 'int' where appropriate. Check a_allocated, d_allocated
71914         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
71915         * lib/vasnprintf.c: Include xsize.h.
71916         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
71917         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
71918         overflow. Avoid wraparound when converting a width or precision from
71919         decimal to binary.
71920
71921 2003-11-16  Bruno Haible  <bruno@clisp.org>
71922
71923         Update from GNU gettext.
71924         * lib/printf-parse.c: Generalize to it can be compiled for wide
71925         strings.
71926         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
71927         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
71928         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
71929         SNPRINTF): New macros.
71930         Don't include <alloca.h> if the file is used inside libintl.
71931         (local_wcslen): New function, for Solaris 2.5.1.
71932         (VASNPRINTF): Use it instead of wcslen.
71933
71934 2003-11-16  Bruno Haible  <bruno@clisp.org>
71935
71936         * lib/xsize.h (xmax): New function.
71937         (xsum, xsum3, xsum4): Declare as "pure" functions.
71938
71939 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71940
71941         * modules/xalloc (Files): Undo latest change, since xalloc.h
71942         no longer needs SIZE_MAX or PTRDIFF_MAX.
71943
71944 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71945
71946         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
71947         gl_PTRDIFF_MAX.
71948
71949 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71950
71951         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
71952         "return", to pacify some unknown compiler.  Problem reported
71953         by Joerg Schilling.
71954
71955 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71956
71957         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
71958         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
71959         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
71960         heuristic is just as accurate as far as we know, and it removes a
71961         dependency on size_max.m4 and ptrdiff_max.m4.
71962
71963 2003-11-11  Bruno Haible  <bruno@clisp.org>
71964
71965         * modules/xsize (Files): Add m4/size_max.m4.
71966         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
71967
71968 2003-11-11  Bruno Haible  <bruno@clisp.org>
71969
71970         * m4/size_max.m4: New file.
71971         * m4/ptrdiff_max.m4: New file.
71972         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
71973         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
71974         (gl_XALLOC): Invoke it.
71975
71976 2003-11-11  Bruno Haible  <bruno@clisp.org>
71977
71978         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
71979         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
71980         defined.
71981
71982 2003-11-10  Paul Eggert  <eggert@twinsun.com>
71983
71984         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
71985         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
71986         rejected some allocations of exactly SIZE_MAX - 2 bytes.
71987         From Bruno Haible.
71988         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
71989         not (size_t) -1, since it's defined here.
71990
71991 2003-11-09  Karl Berry  <karl@gnu.org>
71992
71993         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
71994
71995 2003-11-06  Paul Eggert  <eggert@twinsun.com>
71996
71997         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
71998         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
71999         Reject sizes of exactly SIZE_MAX bytes.
72000         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
72001         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
72002
72003 2003-11-05  Bruno Haible  <bruno@clisp.org>
72004
72005         * lib/xsize.h: Include limits.h, to avoid a possible collision with
72006         SIZE_MAX defined in <limits.h> on Solaris.
72007
72008 2003-11-04  Jim Meyering  <jim@meyering.net>
72009
72010         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
72011         variable names, rather than @VAR@.
72012         * modules/poll: Likewise.
72013
72014 2003-11-04  Bruno Haible  <bruno@clisp.org>
72015
72016         * modules/xsize: New file.
72017         * modules/linebreak: Depend on xsize.
72018         * MODULES.html.sh (func_all_modules): Add xsize.
72019
72020 2003-11-04  Bruno Haible  <bruno@clisp.org>
72021
72022         * m4/xsize.m4: New file.
72023
72024 2003-11-04  Bruno Haible  <bruno@clisp.org>
72025
72026         * lib/xsize.h: New file.
72027         * lib/linebreak.c: Include xsize.h.
72028         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
72029         argument for overflow.
72030         Suggested by Paul Eggert.
72031
72032 2003-11-03  Karl Berry  <karl@gnu.org>
72033
72034         * config/config.{guess,sub}: update from config.
72035
72036 2003-11-03  Jim Meyering  <jim@meyering.net>
72037
72038         * modules/userspec (lib_SOURCES): Add userspec.h.
72039         (Include): Add "userspec.h".
72040         Improve description.
72041
72042 2003-11-03  Jim Meyering  <jim@meyering.net>
72043
72044         * lib/userspec.c: Include "userspec.h".
72045         * lib/userspec.h: New file.
72046
72047 2003-11-03  Bruno Haible  <bruno@clisp.org>
72048
72049         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
72050
72051 2003-11-03  Bruno Haible  <bruno@clisp.org>
72052
72053         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
72054         available, to avoid (extremely rare) race condition.
72055         Suggested by Paul Eggert.
72056
72057 2003-11-02  Karl Berry  <karl@gnu.org>
72058
72059         * config/srclist.txt (vasprintf.c): sync broken, sigh.
72060
72061 2003-10-31  Paul Eggert  <eggert@twinsun.com>
72062
72063         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
72064         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
72065         (read_filesystem_list): Set and use me_type_malloced.
72066         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
72067         whatever the type happens to be), for brevity and consistency.
72068         Check for size calculation overflow on Alphas running OSF/1.
72069
72070 2003-10-31  Jim Meyering  <jim@meyering.net>
72071
72072         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
72073
72074         * lib/linebuffer.c: Include <string.h> for declaration of memset.
72075
72076 2003-10-30  Paul Eggert  <eggert@twinsun.com>
72077             Bruno Haible  <bruno@clisp.org>
72078
72079         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
72080         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
72081
72082 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72083
72084         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
72085         netbsd*-gnu*.  Suggested by Robert Millan.
72086
72087 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72088
72089         * modules/group-member: Depend on stdbool.
72090
72091 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72092
72093         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
72094
72095 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72096
72097         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
72098         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
72099         after the 'gnu' in these cases.  This fixes some bugs in the
72100         previous change, and is based on suggestions by Robert Millan.
72101
72102 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72103
72104         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
72105         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
72106         no longer needed.
72107         * lib/quotearg.c (quotearg_n_options): Use it.
72108         * lib/group-member.c: Include <stdbool.h>.
72109         (free_group_info): Arg is now const *; don't free arg.
72110         (get_group_info): Now returns bool and accepts struct group_info *,
72111         rather than returning a malloc'ed struct group_info *.
72112         All uses changed.  Check for overflow in internal size calculation.
72113
72114         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
72115         rather than xmalloc/xrealloc.
72116         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
72117         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
72118         conformance bug: the old code used a pointer after freeing the
72119         storage that it addressed.
72120         * lib/hash.c (hash_initialize): Simplify the code by using
72121         xalloc_oversized rather than doing it by hand.
72122         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
72123         the buffer preserved.  Use free and xmalloc instead.
72124         * lib/quotearg.c (quotearg_n_options): Likewise.
72125         Use a simpler test for size overflow.  Don't use xalloc_oversized
72126         because unsigned int might be wider than size_t (!); this suggests
72127         that we should switch from unsigned int to size_t for slot numbers.
72128
72129 2003-10-28  Paul Eggert  <eggert@twinsun.com>
72130
72131         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
72132         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
72133         NetBSD kernels.  Requested by Richard Stallman.
72134
72135 2003-10-27  Paul Eggert  <eggert@twinsun.com>
72136
72137         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
72138         to allocate the returned structure.  Do not allocate a subarray,
72139         as x2nrealloc will do that.
72140         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
72141         instead of xnrealloc.
72142         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
72143
72144 2003-10-27  Bruno Haible  <bruno@clisp.org>
72145
72146         * lib/stdbool_.h: Better support for BeOS.
72147
72148 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72149
72150         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
72151         now uses inline.
72152
72153 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72154
72155         * lib/xalloc.h (xalloc_oversized): New static inline function, for
72156         callers that want to do their own size-overflow checking.  Include
72157         <stdbool.h>, since xalloc_oversized returns bool.
72158         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
72159         to use xalloc_oversized.
72160
72161         Add two functions x2realloc, x2nrealloc, for programs that grow
72162         arrays dynamically by doubling their sizes.
72163         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
72164         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
72165         New functions.
72166
72167         Port to C99 semantics for 'inline' of external functions.
72168         Bug reported by Bruno Haible.
72169         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
72170         with the old contents of xnmalloc.
72171         (xnmalloc, xmalloc): Use it.
72172         (xnrealloc_inline): New static inline function,
72173         with the old contents of xnrealloc.
72174         (xnrealloc, xrealloc): Use it.
72175
72176         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
72177         that.
72178
72179 2003-10-26  Karl Berry  <karl@gnu.org>
72180
72181         * config/srclist.txt (COPYING.DOC): no longer available from
72182         /gd/gnuorg; don't know where the ultimate source is.
72183
72184 2003-10-25  Paul Eggert  <eggert@twinsun.com>
72185
72186         Fix several address-calculation bugs in the hash modules,
72187         plus some minor code cleanup.
72188
72189         * lib/hash.h: Include <stdbool.h>, for bool.
72190         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
72191         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
72192         hash_get_n_entries, hash_get_max_bucket_length,
72193         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72194         hash_rehash): Use size_t rather than unsigned.
72195         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72196         hash_get_n_buckets_used, hash_get_n_entries,
72197         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72198         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72199         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72200         Likewise.
72201         (SIZE_MAX): Define if not defined.
72202         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72203         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72204         hash_print):
72205         Use const * when possible.
72206         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72207         (check_tuning): Fix bug: if tuning parameters were very close to
72208         0 or 1, rounding errors could have caused subscript violations.
72209         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72210         (hash_initialize): Add 'fail:' label
72211         to free table and return NULL, and use it to simplify code.
72212         Use calloc rather than clearing the storage ourself.
72213         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72214         buffer size calculations.
72215         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72216         Include <stddef.h>, for size_t.
72217         * lib/hash-pjw.c (hash_pjw): Likewise.
72218         Switch to method described by Bruno Haible.
72219         Include <limits.h>, for CHAR_BIT.
72220         (SIZE_BITS): New macro.
72221
72222 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72223
72224         * m4/getline.m4 (AM_FUNC_GETLINE):
72225         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72226         hosts.  Problem reported by Derek Robert Price in
72227         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72228         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72229         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72230
72231 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72232
72233         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72234         ceiling the allocation at NMAX bytes rather than silently
72235         discarding input bytes before NMAX is reached.  This makes
72236         a difference only if NMAX exceeds SIZE_MAX / 2.
72237
72238         * lib/obstack.c: Merge from glibc.
72239         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72240         Add libc_hidden_def (_obstack_newchunk).
72241         (_obstack_free) [! defined _LIBC]: Remove.
72242         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72243         a clone of the function body.
72244         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72245         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72246
72247         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72248         glibc.
72249         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72250         arg to memcpy.
72251
72252         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72253         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72254         Don't use lvalue casts, as GCC plans to remove support for them
72255         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72256         was also present in the non-GCC version, indicating that this
72257         code had always been buggy and had never been widely used.
72258         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72259         Use the fast variant of each macro, rather than copying the
72260         definiens of the fast variant; that way, we'll be more likely to
72261         catch future bugs in the fast variants.
72262
72263 2003-10-20  Bruno Haible  <bruno@clisp.org>
72264
72265         * modules/wait-process: New file.
72266         * MODULES.html.sh (func_all_modules): Add wait-process.
72267
72268 2003-10-20  Bruno Haible  <bruno@clisp.org>
72269
72270         * m4/wait-process.m4: New file.
72271
72272 2003-10-20  Bruno Haible  <bruno@clisp.org>
72273
72274         * lib/wait-process.h: New file, from GNU gettext.
72275         * lib/wait-process.c: New file, from GNU gettext.
72276
72277 2003-10-19  Jim Meyering  <jim@meyering.net>
72278
72279         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
72280         HPUX 10.20.
72281
72282 2003-10-18  Karl Berry  <karl@gnu.org>
72283
72284         * config/config.guess: update from config.
72285
72286 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72287
72288         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
72289         (getgroups): First arg is int, not size_t.
72290         Don't let 'free' mangle errno.
72291
72292 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72293
72294         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
72295
72296 2003-10-16  Karl Berry  <karl@gnu.org>
72297
72298         * config/config.{guess,sub}: update from config.
72299
72300 2003-10-16  Jim Meyering  <jim@meyering.net>
72301
72302         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
72303         memcpy.
72304
72305 2003-10-15  Paul Eggert  <eggert@twinsun.com>
72306
72307         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
72308         (SIZE_MAX): Remove.
72309         (new_exclude, add_exclude_file): Initial size no longer needs to
72310         be a power of 2.
72311         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
72312         our own address arithmetic overflow checking.
72313
72314         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72315         (fnmatch): Do not alloca more than 2000 wide characters;
72316         instead, use malloc for large buffers.
72317         Check for address arithmetic overflow, and return -1
72318         with errno set to ENOMEM in that case.
72319         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
72320         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72321         instead, return -1.  Check for address arithmetic overflow.
72322
72323 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72324
72325         Handle invalid suffixes and overflow independently, so that
72326         callers can treat them independently as needed.  Fix some bugs in
72327         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72328         suffix for a human-readable blocksize.  The major caller-visible
72329         change is the addition of a new
72330         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72331         that both overflow and suffix chars were found.
72332
72333         * lib/human.c (humblock): Don't check separately for invalid suffix
72334         char; that is xstrtoumax's job (now that its bug is fixed).
72335         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72336         INTMAX_MAX]: New macros.
72337         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72338         TYPE_MAXIMUM): New macros.
72339         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72340         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72341         if overflow occurs, as it's what __strtol does and it's more useful
72342         in practice.
72343         (__xstrtol): If __strtol reports some error other than ERANGE,
72344         reflect it to the caller as LONGINT_INVALID.  If it reports
72345         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72346         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72347         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72348         value.
72349         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72350         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72351         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72352         [defined UINTMAX_MAX]: New macros.
72353
72354 2003-10-14  Bruno Haible  <bruno@clisp.org>
72355
72356         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72357
72358 2003-10-14  Bruno Haible  <bruno@clisp.org>
72359
72360         * m4/sig_atomic_t: New file, from GNU gettext.
72361         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72362
72363 2003-10-14  Bruno Haible  <bruno@clisp.org>
72364
72365         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72366         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72367         Also use volatile where needed.
72368
72369 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72370
72371         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72372         Change maintainer from Bruno Haible to 'all'.
72373
72374 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72375
72376         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72377
72378 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72379
72380         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72381         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72382         and define in terms of the other primitives.
72383         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72384         (SIZE_MAX): Define if not already defined.
72385         (array_size_overflow): New function.
72386         (xalloc_die): Abort instead of exiting if 'error' returns.
72387         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72388         (xmalloc, xrealloc): Use them.
72389         (xcalloc): Check for address arithmetic overflow.
72390         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72391         a bit faster than strcpy.
72392
72393 2003-10-10  Simon Josefsson  <jas@extundo.com>
72394
72395         * modules/argp (Depends-on): Add restrict and strcase.
72396
72397 2003-10-10  Simon Josefsson  <jas@extundo.com>
72398
72399         * m4/argp.m4: Add AC_C_INLINE.
72400
72401 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72402
72403         Merge getpass from libc, plus a few fixes.
72404
72405         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72406         Include <stdbool.h>.
72407         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72408         __fsetlocking to empty.
72409         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72410         do include <bits/libc-lock.h>.
72411         Do not include <fcntl.h>; not needed.
72412         [_LIBC]: Include <wchar.h>.
72413         (NOTCANCEL_MODE): New macro.
72414         (flockfile, funlockfile) [_LIBC]: New macros.
72415         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72416         [!_LIBC]: New macros.
72417         (call_fclose): New function.
72418         (getpass): Use it.  Save tty stream separately; this simplifies the
72419         code and makes it more reliable if stdin happens to equal stdout.
72420         Invoke __fsetlocking on tty.
72421         Handle thread cancellation if needed.
72422         Namespace cleanup (use __tcgetattr, __getline).
72423         Use bool for Booleans.
72424         [USE_IN_LIBIO]: Handle wide streams.
72425         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72426         stream might go where.
72427
72428         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72429         doesn't have to include <stdio.h> before us.
72430         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72431         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72432         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72433         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72434         if not declared, so that we can use getpass.c code from libc without
72435         rewriting it.
72436         (flockfile, ftrylockfile, funlockfile): New macros.
72437
72438 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72439
72440         * modules/getpass: Depend on stdbool.
72441
72442 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72443
72444         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72445
72446 2003-10-07  Karl Berry  <karl@gnu.org>
72447
72448         * config/config.{guess,sub}: update from config.
72449
72450 2003-10-06  Jim Meyering  <jim@meyering.net>
72451             Bruno Haible  <bruno@clisp.org>
72452
72453         This lets translators provide better translations for the
72454         "Written by ..." part of --version output.
72455         * lib/version-etc.h: Include stdarg.h.
72456         (version_etc_copyright): Declare as readonly.
72457         (version_etc): Make this function variadic with a NULL-terminated list
72458         of author name strings.
72459         (version_etc_va): New declaration.
72460         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72461         (version_etc_copyright): Declare as readonly.
72462         (version_etc_va): New function. Provide a different translatable string
72463         for each possible number of authors < 10. Abbreviate when there are 10
72464         authors or more.
72465         (version_etc): Make this function variadic. Call version_etc_va.
72466         Suggestion from Gary V. Vaughan.
72467
72468         * lib/long-options.h (parse_long_options): Change prototype: the
72469         authors string is moved to the end and becomes variadic.
72470         * lib/long-options.c: Include stdarg.h.
72471         (parse_long_options): Make this function variadic, too.
72472         Call version_etc_va, not version_etc.
72473
72474 2003-10-06  Bruno Haible  <bruno@clisp.org>
72475
72476         * modules/version-etc-2: Remove file.
72477         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
72478
72479 2003-10-06  Bruno Haible  <bruno@clisp.org>
72480
72481         * modules/fatal-signal: New file.
72482         * MODULES.html.sh (func_all_modules): Add fatal-signal.
72483
72484 2003-10-06  Bruno Haible  <bruno@clisp.org>
72485
72486         * m4/fatal-signal.m4: New file.
72487         * m4/signalblocking.m4: New file, from GNU gettext.
72488
72489 2003-10-06  Bruno Haible  <bruno@clisp.org>
72490
72491         * lib/version-etc-2.h: Remove file.
72492         * lib/version-etc-2.c: Remove file.
72493
72494 2003-10-06  Bruno Haible  <bruno@clisp.org>
72495
72496         * lib/fatal-signal.h: New file, from GNU gettext.
72497         * lib/fatal-signal.c: New file, from GNU gettext.
72498
72499 2003-10-05  Paul Eggert  <eggert@twinsun.com>
72500
72501         * README: Rework advice for preventing empty .o files.
72502         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
72503         not <sys/types.h>.
72504
72505 2003-10-04  Karl Berry  <karl@gnu.org>
72506
72507         * lib/argp*: update from libc.
72508
72509 2003-10-04  Karl Berry  <karl@gnu.org>
72510
72511         * config/config.{guess,sub}: update from config.
72512
72513 2003-10-02  Bruno Haible  <bruno@clisp.org>
72514
72515         * modules/lchown (Include): Add lchown.h.
72516         * modules/time_r (Include): Use "..." syntax.
72517         * modules/xgetdomainname (Include): Add xgetdomainname.h.
72518
72519 2003-10-01  Simon Josefsson  <jas@extundo.com>
72520
72521         * MODULES.html.sh (func_all_modules): Move gethostname from section
72522         'based on' to section 'lacking' POSIX:2001.
72523
72524 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
72525
72526         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
72527         to output mode on the same stream.
72528
72529 2003-09-29  Paul Eggert  <eggert@twinsun.com>
72530
72531         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
72532         Fix arg typo in previous patch.
72533
72534 2003-09-28  Jim Meyering  <jim@meyering.net>
72535
72536         * lib/error.c: Correct cpp indentation.
72537
72538 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72539
72540         * modules/free: New file.
72541
72542 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72543
72544         * m4/free.m4: New file.
72545
72546 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72547
72548         * lib/minmax.h (MIN, MAX)
72549         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
72550         Omit the special code that used __typeof__, since we worry that
72551         it could be more trouble than it's worth.  See:
72552         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
72553         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
72554
72555         * lib/free.c: New file.
72556
72557 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
72558
72559         Trivial fixes to Makefile.am parts of module listings.
72560         * modules/strstr: Append strstr.h to lib_SOURCES.
72561         * modules/strcase: Likewise, for strcase.h.
72562
72563 2003-09-27  Karl Berry  <karl@gnu.org>
72564
72565         * config/mkinstalldirs: update from automake.
72566
72567 2003-09-26  Paul Eggert  <eggert@twinsun.com>
72568
72569         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
72570         (error_tail): Do not loop, reallocating temporary buffer, since
72571         the output cannot contain more wide characters than the input
72572         contains bytes, the size must be big enough already.  This avoids
72573         one potential size overflow calculation.  Check for size overflow
72574         when calculating temporary buffer size.  Free temporary buffer
72575         when done, if it was allocated with malloc; this plugs a memory
72576         leak.  Remove casts from void * to pointers, that are no longer
72577         needed now that we're assuming C89 or better.
72578
72579         Merge error changes from glibc.
72580
72581         * lib/error.c, error.h: Update copyright notice header to match glibc.
72582         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
72583         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
72584         Disable cancellation while printing error.
72585         * lib/error.h: Prepend __ to parameter names.
72586
72587 2003-09-26  Jim Meyering  <jim@meyering.net>
72588
72589         * lib/error.c (error_tail): Move some declarations
72590         into inner scope where the local variables are used.
72591
72592 2003-09-26  Bruno Haible  <bruno@clisp.org>
72593
72594         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
72595         stpncpy().
72596         Don't define stpncpy through config.h; it's now done through stpncpy.h.
72597
72598 2003-09-26  Bruno Haible  <bruno@clisp.org>
72599
72600         * lib/stpncpy.h (gnu_stpncpy): New declaration.
72601         (stpncpy): Define as alias for gnu_stpncpy.
72602         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
72603
72604 2003-09-25  Simon Josefsson  <jas@extundo.com>
72605
72606         * lib/xgetdomainname.h: New file.
72607         * lib/xgetdomainname.c: New file.
72608
72609 2003-09-25  Simon Josefsson  <jas@extundo.com>
72610             Bruno Haible  <bruno@clisp.org>
72611
72612         * modules/getdomainname: New file.
72613         * modules/xgetdomainname: New file.
72614         * MODULES.html.sh (func_all_modules): Add getdomainname,
72615         xgetdomainname.
72616
72617 2003-09-25  Simon Josefsson  <jas@extundo.com>
72618             Bruno Haible  <bruno@clisp.org>
72619
72620         * m4/getdomainname.m4: New file.
72621
72622 2003-09-25  Simon Josefsson  <jas@extundo.com>
72623             Bruno Haible  <bruno@clisp.org>
72624
72625         * lib/getdomainname.h: New file.
72626         * lib/getdomainname.c: New file.
72627
72628 2003-09-25  Karl Berry  <karl@gnu.org>
72629
72630         * lib/argp-fmtstream.c, argp-help.c: update from libc.
72631
72632 2003-09-25  Karl Berry  <karl@gnu.org>
72633
72634         * config/install-sh: update from automake.
72635
72636 2003-09-25  Bruno Haible  <bruno@clisp.org>
72637
72638         * modules/version-etc-2: New file, from modules/version-etc with
72639         modifications.
72640         * MODULES.html.sh (func_all_modules): Add version-etc-2.
72641
72642 2003-09-25  Bruno Haible  <bruno@clisp.org>
72643
72644         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
72645         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
72646
72647 2003-09-24  Simon Josefsson  <jas@extundo.com>
72648
72649         * modules/xgethostname: Add xgethostname.h.
72650
72651 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72652
72653         * lib/linebuffer.c (freebuffer): Don't free the argument, just
72654         the buffer associated with the argument.  Bug reported by
72655         Simon Josefsson.
72656
72657 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72658
72659         * README: Document assumptions that 'int' is at least 32 bits
72660         wide, that integer arithmetic is 2's complement without overflow,
72661         that there are no holes in integer values, that adding sizes of
72662         two nonoverlapping objects can't overflow, and that all-bits-zero
72663         yields scalar zero.  Fix spelling and capitalization typos.
72664
72665 2003-09-19  Karl Berry  <karl@gnu.org>
72666
72667         * lib/argp.h: update from libc.
72668
72669 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72670
72671         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
72672         to avoid spurious warnings like "AC_RUN_IFELSE was called before
72673         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
72674
72675 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72676
72677         * gnulib-tool: Use "test -h", not "test -L", for portability
72678         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
72679         (tags_regexp): Remove, since \| doesn't conform to POSIX.
72680         (sed_extract_prog): Issue s commands one-by-one, rather than
72681         using \| in one s command.
72682
72683 2003-09-16  Paul Eggert  <eggert@twinsun.com>
72684
72685         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
72686         input error, instead of returning NULL the next time we are called
72687         (and therefore losing track of errno).
72688
72689 2003-09-16  Bruno Haible  <bruno@clisp.org>
72690
72691         * gnulib-tool (func_create_testdir): Warn about duplicated
72692         dependencies.
72693
72694 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72695
72696         * modules/argmatch, modules/fatal, modules/obstack,
72697         modules/xalloc, modules/xgethostname: Sort dependencies by
72698         importance, not alphabetically.
72699
72700 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72701
72702         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
72703         fails, so that the caller gets the proper errno.
72704
72705         * lib/readutmp.c (read_utmp): Likewise.
72706         Check for fstat error.  Close stream and free storage
72707         when failing.
72708
72709 2003-09-14  Karl Berry  <karl@gnu.org>
72710
72711         * config/srclist.txt (strdup.c): disable for c89 changes.
72712
72713 2003-09-14  Jim Meyering  <jim@meyering.net>
72714
72715         * lib/getloadavg.c: Correct cpp indentation.
72716         * lib/strdup.c: Likewise.
72717         * lib/vasnprintf.c: Likewise.
72718
72719 2003-09-14  Bruno Haible  <bruno@clisp.org>
72720
72721         * modules/fwriteerror: New file.
72722         * MODULES.html.sh (func_all_modules): Add fwriteerror.
72723
72724 2003-09-14  Bruno Haible  <bruno@clisp.org>
72725
72726         * lib/fwriteerror.h: New file.
72727         * lib/fwriteerror.c: New file.
72728
72729 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72730
72731         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
72732         modules/xgethostname, modules/xalloc: Depend on exit.
72733
72734 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72735
72736         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
72737
72738         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
72739         and AC_MINIX, too, so that their extensions are available.
72740
72741         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
72742         This macro has been superseded by gl_BACKUPFILE.
72743
72744         More patches to assume C89 or better.
72745
72746         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
72747
72748         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
72749         unconditionally.
72750         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
72751         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
72752         Include <string.h>, <stdlib.h> unconditionally.
72753         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
72754         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
72755         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
72756         headers or for string.h.
72757         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
72758         or strtoul.
72759
72760         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
72761         headers.
72762         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
72763         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72764         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
72765         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
72766         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72767         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
72768         memcpy, memset.
72769         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
72770         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
72771         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
72772         strtol.
72773         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
72774         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
72775         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
72776         strtoul.
72777
72778 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72779
72780         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
72781         * lib/obstack.c [!defined _LIBC]: Likewise.
72782         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
72783         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
72784         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
72785
72786         More changes to assume C89 or better.
72787
72788         * lib/error.c (error_tail): Assume vprintf.
72789
72790         * lib/argmatch.c (getenv): Remove decl.
72791         * lib/progreloc.c (get_full_program_name): Define via prototype.
72792         * lib/setenv.c (clearenv): Likewise.
72793         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
72794         needed.
72795         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
72796         (malloc, memcpy): Remove decls.
72797         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
72798         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
72799         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72800         (memcpy): Remove macro.
72801         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
72802         (__P): Remove.  All uses removed.
72803         (PTR): Remove.  All uses changed to void *.
72804         (CHAR_BIT, NULL): Remove.
72805         (spaces, zeros, memset_space, memset_zero)
72806         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
72807         Remove.
72808         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
72809         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
72810         Define with prototype.
72811         Remove now-unnecessary prototype decl.
72812         (extra_args_spec): Assume ANSI C.  All uses changed.
72813         (extra_args_spec_iso): Remove.
72814         (my_strftime, emacs_strftimeu): Define via prototype.
72815         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
72816         unconditionally.
72817         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
72818         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
72819         (strtoul, strtol): Remove decls.
72820         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
72821         LONG_MAX): Remove.
72822         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72823         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
72824         (LOCALE_PARAM_PROTO): New macro.
72825         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
72826         (INTERNAL (strtol), strtol): Define with a prototype.
72827         (PARAMS): Remove.  All uses removed.
72828         * lib/tempname.c: Include <string.h> unconditionally.
72829         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
72830         * lib/xgethostname.c (main): Define with a prototype.
72831         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
72832         Include <stdlib.h> unconditionally.
72833         (calloc, malloc, realloc, free): Remove decls.
72834         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
72835         Include <stdlib.h> unconditionally.  Sort include file names.
72836         (strtod): Remove.
72837         (xstrtod): Define with a prototype.
72838         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
72839         (strtol, strtoul): Remove decls.
72840
72841 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72842
72843         More patches to assume C89 or better.
72844         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
72845         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
72846         string.h, memchr, STDC_HEADERS.
72847
72848 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72849
72850         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
72851         Include <stdlib.h>, <string.h> unconditionally.
72852         Remove now-unnecessary cast to char *.
72853         * lib/strnlen.c: Include <string.h> unconditionally.
72854         * lib/yesno.c (yesno): Define with a prototype.
72855
72856 2003-09-11  Bruno Haible  <bruno@clisp.org>
72857
72858         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
72859
72860 2003-09-10  Jim Meyering  <jim@meyering.net>
72861
72862         * lib/error.c: Correct indentation of cpp directives.
72863
72864 2003-09-10  Bruno Haible  <bruno@clisp.org>
72865
72866         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
72867         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
72868         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
72869         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
72870         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
72871         <stdlib.h> and <string.h> checks.
72872         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
72873         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
72874
72875 2003-09-10  Bruno Haible  <bruno@clisp.org>
72876
72877         * lib/strcspn.c: Include <string.h> unconditionally.
72878         * lib/strpbrk.c: Include <string.h> unconditionally.
72879         * lib/strstr.c: Include <string.h> unconditionally.
72880         * lib/unicodeio.c: Include <string.h> unconditionally.
72881         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
72882         * lib/unsetenv.c: Likewise.
72883         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
72884         * lib/yesno.c: Include <stdlib.h> unconditionally.
72885         (rpmatch): Add prototype.
72886
72887 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72888
72889         More patches to assume C89 or better.
72890         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
72891         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
72892         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
72893         or for string.h.
72894         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
72895         stdlib.h.
72896         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
72897         C headers.
72898         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
72899         string.h.
72900         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
72901         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
72902         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
72903         or for string.h.
72904         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
72905         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
72906         C headers.
72907         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
72908         memcpy.
72909         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
72910         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
72911         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
72912         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
72913         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
72914         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
72915         string.h, free.
72916         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
72917         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
72918         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
72919         C headers, or for string.h.
72920         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
72921         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
72922         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
72923         headers, memory.h, stdlib.h, string.h, strings.h.
72924         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
72925         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
72926         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
72927         strchr.
72928         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
72929         headers, memory.h, string.h.
72930         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
72931         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
72932         free.
72933         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
72934         headers.
72935         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
72936         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
72937         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
72938         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
72939         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
72940
72941 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72942
72943         More K&R removal.
72944
72945         * lib/acosl.c (main): Use a prototype.
72946         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
72947         tanl.c: Likewise.
72948
72949         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
72950
72951         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
72952         (getopt, etopt_long, getopt_long_only, _getopt_internal)
72953         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
72954         with a prototype.
72955         * lib/getopt.c (const): Remove macro.
72956         Include <string.h> unconditionally.
72957         (my_index): Remove; all uses changed to strchr.
72958         (strlen): Remove decl.
72959         (exchange): Remove forward decl; no longer needed.
72960         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
72961         Define with prototype.
72962         * lib/getopt1.c (const): Remove macro.
72963         (getopt_long, getopt_long_only, main): Define with prototype.
72964
72965         * lib/getugroups.c: Include <string.h> unconditionally.
72966
72967         * lib/getusershell.c: Include <stdlib.h> unconditionally.
72968         (getusershell, setusershell, endusershell, readname, main):
72969         Define with prototypes.
72970
72971         * lib/group-member.c: Include group-member.h first.
72972         Include <stdlib.h> unconditionally.
72973
72974         * lib/hard-locale.c: Include hard-locale.h first.
72975         Include <stdlib.h>, <string.h> unconditionally.
72976
72977         * lib/hash.c (free, malloc): Remove decls.
72978         Include <stdlib.h> unconditionally.
72979
72980         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
72981         (getenv): Do not declare.
72982
72983         * lib/idcache.c: Include <string.h> unconditionally.
72984
72985         * lib/long-options.c: Include long-options.h first, to test interface.
72986         Include <stdlib.h> unconditionally.
72987
72988         * lib/makepath.c: Include makepath.h first, to test interface.
72989         Include <stdlib.h> and <string.h> unconditionally.
72990
72991         * lib/linebuffer.c: Include <stdlib.h>.
72992         (free): Remove decl.
72993
72994         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
72995         stddef.h. rpl_malloc returns void *, not char *.
72996         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
72997         prototype.
72998
72999         * lib/md5.h: Include <limits.h> unconditionally.
73000         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
73001         (__P): Remove; all uses removed.
73002         * lib/md5.c: Include "md5.h" first.
73003         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
73004         md5_buffer, md5_process_bytes, md5_process_block):
73005         Define with prototypes.
73006         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
73007         * lib/sha.c: Include "sha.h" first.
73008         Include <stdlib.h>, <string.h> unconditionally.
73009
73010         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
73011         * lib/memcmp.c (__ptr_t): Likewise.
73012         * lib/memrchr.c (__ptr_t): Likewise.
73013         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
73014         Include <string.h> unconditionally.
73015         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
73016         * lib/memchr.c: Include <stdlib.h> unconditionally.
73017         * lib/memchr.c (LONG_MAX): Remove.
73018         * lib/memrchr.c (LONG_MAX): Likewise.
73019         * lib/memchr.c (__memchr): Define via a prototype.
73020         * lib/memrchr.c (__memrchr): Likewise.
73021         * lib/memcmp.c (__P): Remove, and remove all uses.
73022         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
73023         Remove forward decls; no longer needed.
73024         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
73025         Use types required by C89 in prototype.
73026
73027         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
73028         * lib/savedir.c: Likewise.
73029         * lib/mkdir.c (free): Remove decl.
73030         * lib/rmdir.c (rmdir): Define with a prototype.
73031         * lib/savedir.c: Include savedir.h first, to test interface.
73032
73033         * lib/mktime.c (STDC_HEADERS): Remove.
73034         Include <stdlib.h>, <string.h> unconditionally.
73035
73036         * lib/modechange.c: Include <stdlib.h> unconditionally.
73037         (malloc): Remove decl.
73038
73039         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
73040         (free): Remove decl.
73041
73042         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
73043         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
73044         (This type really should be intptr_t, but that's a C99ism.)
73045         (_obstack_memcpy): Remove: all uses changed to memcpy.
73046         Include <string.h> unconditionally.
73047         (struct obstack): Assume __STDC__ for types of members
73048         chunkfun, freefun, extra_arg.
73049         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
73050         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
73051         obstack_begin, obstack_specify_allocation,
73052         obstack_specify_allocation_with_arg, obstack_chunkfun,
73053         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
73054         Remove unprototyped decls and the macros that use them.
73055         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
73056         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
73057         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
73058         (defined __STDC__ && __STDC__)]:
73059         Remove nonprototyped code.
73060         Include <stdlib.h> unconditionally.
73061         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
73062         _obstack_allocated_p, _obstack_free, obstack_free,
73063         _obstack_memory_used, print_and_abort):
73064         Define using prototypes.
73065         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
73066         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
73067         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
73068         obstack_next_free, obstack_object_size, obstack_room) [0]:
73069         Remove unused, unprototyped code.
73070
73071         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
73072
73073         * lib/physmem.c (physmem_total, physmem_available, main): Define
73074         with prototypes.
73075
73076         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
73077         (main): Define with a prototype.
73078
73079         * lib/posixver.c (getenv): Remove decl.
73080
73081         * lib/putenv.c (malloc): Returns void *, not char *.
73082         Include <string.h> unconditionally.
73083         (strchr, memcpy, NULL): Do not define.
73084
73085         * lib/readtokens.c: Include readtokens.h first, to test interface.
73086         Include <stdlib.h>, <string.h> unconditionally.
73087         (init_tokenbuffer): Define with a prototype.
73088
73089         * lib/regex.c (PARAMS): Remove.  All uses removed.
73090         All uses of _RE_ARGS removed, too.
73091         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73092         unconditionally.
73093         (bzero): Assume memset exists.
73094         (memcmp, memcpy, NULL): Remove.
73095         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
73096         char, or assignments to local vars of type signed char.
73097         (init_syntax_once, PREFIX(extract_number_and_incr),
73098         PREFIX(print_partial_compiled_pattern),
73099         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
73100         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
73101         PREFIX(regex_grow_registers), PREFIX(regex_compile),
73102         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
73103         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
73104         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
73105         wcs_compile_range, byte_compile_range, truncate_wchar,
73106         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
73107         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
73108         count_mbs_length, wcs_re_match_2_internal,
73109         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
73110         PREFIX(alt_match_null_string_p),
73111         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
73112         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
73113         regfree, PREFIX(extract_number)): Define with prototype.  Remove
73114         now-unnecessary declaration, if any.
73115         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
73116         regcomp, regexec):
73117         Remove now-unnecessary casts among pointer types.
73118         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
73119
73120         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
73121         (free): Remove decl.
73122
73123         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
73124
73125         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
73126         (free): Remove decl.
73127
73128         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
73129         * lib/xgetcwd.c: Likewise.
73130
73131         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
73132         (free): Remove decl.
73133
73134         * lib/strchrnul.c (strchrnul): Define with a prototype.
73135         Fix bug: c_in was not converted to char before searching.
73136
73137         The following changes are not K&R related:
73138
73139         * lib/group-member.h: Include <sys/types.h>, so that this file is
73140         self-contained.
73141         * lib/makepath.h: Likewise.
73142
73143         * lib/getusershell.c (readname, default_index, line_size, readname):
73144         Use size_t, not int, for sizes.
73145         (readname): If the size overflows, report an error instead of
73146         looping forever.
73147
73148 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73149
73150         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
73151         libc.
73152
73153 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73154
73155         * README: New section: portability guidelines.
73156
73157 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73158
73159         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
73160         C89 spec.
73161
73162 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73163
73164         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
73165
73166 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73167
73168         Assume C89 or better; remove K&R cruft.
73169         A few of these changes were first proposed by Derek Robert Price
73170         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
73171
73172         * lib/addext.c: Include <string.h> unconditionally.
73173         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
73174         Don't declare getenv or malloc.
73175
73176         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
73177         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
73178         (NULL): Remove.
73179         (find_stack_direction, alloca): Use prototypes.
73180
73181         * lib/atexit.c (atexit): Define using a prototype.
73182
73183         * lib/basename.c, dirname.c, stripslash.c:
73184         Include <string.h> unconditionally.
73185
73186         * lib/bcopy.c: Include <stddef.h>.
73187         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
73188
73189         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
73190
73191         * lib/error.h (error, error_at_line, error_print_progname)
73192         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73193         * lib/error.c: Include error.h first, to check interface.
73194         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73195         (VA_START): Remove; all uses changeed to va_start.
73196         (exit, strerror): Remove decls.
73197         (error_print_progname): Prototype uncondionally.
73198         Don't include <errno.h>; no longer needed.
73199         (private_strerror): Remove.
73200         (error_tail): Always define.
73201         (error, error_at_line): Assume C89 or better; always use prototypes.
73202         * lib/fatal.c: Include "fatal.h" first, to test interface.
73203         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73204         (VA_START): Remove; all uses changed to va_start.
73205         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73206         this case.
73207         (exit): Remove decl.
73208         (fatal): Prototype unconditionally.  Assume va_start works.
73209         Abort at end, to pacify gcc.
73210
73211         * lib/euidaccess.c (main): Define with a prototype.
73212
73213         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73214
73215         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73216
73217         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73218         prototypes.
73219         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73220         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73221         (getenv): Remove decl.
73222         (fnmatch): Define using a prototype.
73223         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73224         (FCT): Define using a prototype.
73225
73226         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73227
73228         * lib/gethostname.c: Include <stddef.h>.
73229         (gethostname): Define with prototype.  Length is size_t, not int.
73230
73231 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73232
73233         Assume C89 or better; remove K&R cruft.
73234         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73235         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73236         string.h, getenv, malloc.
73237         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73238         headers.
73239         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73240         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73241         do not check for strerror.
73242         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73243         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73244         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73245         do not check for doprnt or vprintf.
73246         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73247         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73248
73249 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73250
73251         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73252         getversion.c should have been removed then, but was accidentally
73253         preserved.
73254
73255         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73256         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73257
73258 2003-09-08  Karl Berry  <karl@gnu.org>
73259
73260         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73261                 config, forget about prep.
73262
73263         * config/depcomp, missing: update from automake.
73264
73265 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73266
73267         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
73268         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73269
73270 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73271
73272         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
73273         copy_tm_result.  Bug reported by Simon Josefsson in
73274         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73275
73276 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73277
73278         * m4/time_r.m4: New file.
73279         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
73280         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
73281         is. Check for timegm declaration.
73282         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
73283         Do not check for gmtime_r.
73284         Replace mktime if __mktime_internal does not exist and if mktime
73285         hasn't been replaced already.
73286
73287 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73288
73289         * lib/time_r.c, lib/time_r.h: New files.
73290
73291         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
73292         __localtime_r.
73293         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
73294         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
73295
73296         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
73297         __gmtime_r.
73298         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
73299         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
73300         Include <time_r.h>.
73301
73302         * lib/timegm.c: Switch to glibc implementation, with the following
73303         changes:
73304         [defined HAVE_CONFIG_H]: Include <config.h>.
73305         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
73306         (__mktime_internal) [!defined _LIBC]: New decl.
73307         (__gmtime_r) [!defined _LIBC]: New macro and function.
73308         (timegm): Use a prototype, since gnulib assumes C89.
73309         Do not bother declaring tmp to be const, as it's not really usefu.
73310         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
73311         (timegm): Declare only if HAVE_DECL_TIMEGM.
73312
73313 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73314
73315         * MODULES.html.sh (func_all_modules): Add time_r.
73316         * modules/time_r: New file.
73317         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
73318         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
73319
73320 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73321
73322         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73323         Bug reported by Lute Kamstra in
73324         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73325
73326         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73327         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73328         course with correspondingly smaller numbers for tomorrow and
73329         yesterday.  From Tadayoshi Funaba.  Originally installed into
73330         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73331         coreutils merge?).
73332
73333 2003-08-31  Simon Josefsson  <jas@extundo.com>
73334
73335         * modules/timegm: New file.
73336         * MODULES.html.sh (func_all_modules): Add timegm.
73337
73338 2003-08-31  Simon Josefsson  <jas@extundo.com>
73339
73340         * m4/timegm.m4: New file.
73341
73342 2003-08-31  Simon Josefsson  <jas@extundo.com>
73343
73344         * lib/timegm.h: New file.
73345         * lib/timegm.c: New file.  Based on
73346         wget-1.8.2/src/http.c:mktime_from_utc.
73347
73348 2003-08-31  Karl Berry  <karl@gnu.org>
73349
73350         * lib/argp.h: update from libc.
73351
73352 2003-08-28  Bruno Haible  <bruno@clisp.org>
73353
73354         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73355         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73356         followed by '#define fnmatch fnmatch_posix' gives an error.
73357
73358 2003-08-28  Bruno Haible  <bruno@clisp.org>
73359
73360         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73361         warning on QNX, which defines O_BINARY to 000000.
73362
73363 2003-08-27  Jim Meyering  <jim@meyering.net>
73364
73365         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73366         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73367         would fail after 32.  Reported by Danny Levinson.  Details here:
73368         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73369
73370 2003-08-24  Bruno Haible  <bruno@clisp.org>
73371
73372         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73373         MSVC7 <stdio.h> is included later.
73374
73375 2003-08-22  Simon Josefsson  <jas@extundo.com>
73376
73377         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73378
73379 2003-08-20  Karl Berry  <karl@gnu.org>
73380
73381         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73382
73383 2003-08-20  Bruno Haible  <bruno@clisp.org>
73384
73385         * modules/progname: New file.
73386         * MODULES.html.sh (func_all_modules): Add progname.
73387
73388 2003-08-20  Bruno Haible  <bruno@clisp.org>
73389
73390         * lib/progname.h: New file, from GNU gettext.
73391         * lib/progname.c: New file, from GNU gettext.
73392         * lib/progreloc.c: New file, from GNU gettext.
73393
73394 2003-08-19  Jim Meyering  <jim@meyering.net>
73395
73396         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73397         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73398
73399 2003-08-19  Bruno Haible  <bruno@clisp.org>
73400
73401         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73402         more.
73403
73404 2003-08-19  Bruno Haible  <bruno@clisp.org>
73405
73406         * lib/xstrdup.c: Assume <string.h> exists.
73407
73408 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73409
73410         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73411         in makefile rules.
73412
73413 2003-08-18  Jim Meyering  <jim@meyering.net>
73414
73415         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73416         * m4/lib-ld.m4: Likewise.
73417
73418 2003-08-18  Jim Meyering  <jim@meyering.net>
73419
73420         * lib/setenv.h: Indent nested cpp directive.
73421         * lib/vasnprintf.c: Remove trailing blanks.
73422
73423 2003-08-17  Simon Josefsson  <jas@extundo.com>
73424
73425         * modules/xstrndup: New file.
73426         * MODULES.html.sh (func_all_modules): Add xstrndup.
73427
73428 2003-08-17  Simon Josefsson  <jas@extundo.com>
73429
73430         * modules/argp: Fix autoconf macro name. Add more dependencies.
73431
73432 2003-08-17  Simon Josefsson  <jas@extundo.com>
73433
73434         * m4/xstrndup.m4: New file.
73435
73436 2003-08-17  Simon Josefsson  <jas@extundo.com>
73437
73438         * m4/argp.m4: New file.
73439
73440 2003-08-17  Simon Josefsson  <jas@extundo.com>
73441             Bruno Haible  <bruno@clisp.org>
73442
73443         * lib/xstrndup.h: New file.
73444         * lib/xstrndup.c: New file.
73445
73446 2003-08-17  Bruno Haible  <bruno@clisp.org>
73447
73448         * modules/strndup (Files, Include): Add lib/strndup.h.
73449
73450 2003-08-17  Bruno Haible  <bruno@clisp.org>
73451
73452         * modules/euidaccess (Files): Add lib/euidaccess.h.
73453
73454 2003-08-17  Bruno Haible  <bruno@clisp.org>
73455
73456         * lib/strndup.h: New file.
73457
73458 2003-08-17  Bruno Haible  <bruno@clisp.org>
73459
73460         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73461         like AC_GNU_SOURCE.
73462         * modules/extensions (configure.ac): Comment out the invocation of
73463         gl_USE_SYSTEM_EXTENSIONS.
73464
73465 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73466
73467         Merges from coreutils, etc.
73468         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73469         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73470         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73471         fixing a typo.
73472         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73473         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
73474
73475 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73476
73477         Document merge from coreutils.
73478         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
73479         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
73480         * modules/utime: Add m4/utimes-null.m4.
73481
73482 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73483
73484         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
73485         space, undoing this 2003-08-12 change:
73486         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73487
73488 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73489
73490         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
73491         strtoul.c from libc, undoing this 2003-08-12 change:
73492         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73493
73494 2003-08-16  Jim Meyering  <jim@meyering.net>
73495
73496         Merges from coreutils.
73497         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
73498         prefix.  Adjust cache variables similarly.  Create 500 rather than
73499         just 300 files, to exercise bug on Darwin6.5, too.
73500         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
73501         $missing_dir.
73502         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
73503         AM_SYS_POSIX_TERMIOS.
73504         Reported by mkc@mathdogs.com.
73505         Also change use of $am_cv_sys_posix_termios
73506         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
73507         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
73508         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
73509         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
73510         in /proc/mounts until it finds one with matching device number.  This
73511         is unnecessary when the FILE argument *is* a mount point.  No stat call
73512         is necessary in that case.  So, disable the statvfs-testing code on
73513         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
73514         as RedHat bug# 84846.
73515         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73516         to 1MB, so as not to render systems with no stack size limit (e.g.,
73517         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73518         Include <unistd.h>.  On some systems,
73519         it is required for the definition of _SC_PAGESIZE.
73520
73521 2003-08-16  Jim Meyering  <jim@meyering.net>
73522
73523         Merge from coreutils.
73524         * lib/xstrtoimax.c: #else #if -> #elif.
73525         * lib/xstrtoumax.c: Likewise.
73526
73527 2003-08-16  Jim Meyering  <jim@meyering.net>
73528
73529         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
73530         * m4/utimes.m4: Removed.
73531         * m4/utimes-null.m4: Renamed from utimes.m4.
73532
73533         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73534         to 1MB, so as not to render systems with no stack size limit (e.g.,
73535         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73536         Include <unistd.h>.  On some systems,
73537         it is required for the definition of _SC_PAGESIZE.
73538
73539 2003-08-16  Jim Meyering  <jim@meyering.net>
73540         and Paul Eggert  <eggert@cs.ucla.edu>
73541
73542         Merges from coreutils, etc.
73543
73544         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
73545         using the latest version from cvs.  This avoids problems with #line
73546         directives using a vendor (Sun) compiler.
73547         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
73548         Don't set GETGROUPS_LIB here; now it's
73549         done via getgroups.m4's wrapper function.
73550         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
73551         rather than just in sh-util/configure.in, so that the
73552         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
73553         same.
73554         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
73555         AC_FUNC_GETLOADAVG where to find getloadavg.c.
73556         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
73557         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
73558         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
73559         Remove code that is now done by the newly-required macros.
73560         Append $(EXEEXT) to DF_PROG.
73561         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
73562         Do not invoke or require the following here,
73563         since prereq.m4 or some gnulib .m4 now does this for us:
73564         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
73565         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
73566         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
73567         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
73568         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
73569         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
73570         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
73571         AC_FUNC_OBSTACK.
73572         Do not replace the following functions, as this is now the job
73573         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
73574         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
73575         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
73576         atexit getpass, strdup, getpagesize.
73577         Replace 'raise'.
73578         Do not check for the following functions, as this is now the job
73579         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
73580         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
73581         setregid.
73582         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
73583         Check for sys/sysctl.h.
73584         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
73585         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
73586         of checking for ssize_t ourselves.
73587
73588         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
73589         Require every macro that gnulib/modules/* suggests for us.
73590         (jm_PREREQ_ADDEXT): New macro.
73591         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
73592         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
73593
73594         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
73595         (gl_PHYSMEM): Use it.
73596         Also check for `table' function.
73597         Check for new headers and functions.
73598         Add check for sys/sysmp.h.
73599         With suggestions from Kaveh Ghazi.
73600         Ignore headers that are present but cannot be compiled.  This
73601         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
73602         C 5.4.
73603
73604 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73605
73606         Document merge from coreutils.
73607         * modules/userspec: Depend on posixver.
73608         * modules/strftime: Depend on tzset.
73609
73610 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73611
73612         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
73613         rather than tab, after '#' in shell-script copyright notices.
73614         Suggested by Bruno Haible.
73615
73616 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73617
73618         * config/srclist-update: Use three spaces, rather than tab, after '#'
73619         in shell-script copyright notices.  Suggested by Bruno Haible.
73620         Remove unnecessary parenthesization in regular expression.
73621
73622 2003-08-15  Jim Meyering  <jim@meyering.net>
73623
73624         Merge from coreutils.
73625         * lib/xgethostname.c: Include <stdlib.h>.
73626         (xghostname): Don't exit for anything other than memory-related
73627         failure; just return NULL.
73628         * lib/userspec.c: Include "posixver.h".
73629         (parse_user_spec): Accept `.' as a separator only
73630         in pre-POSIX-200112 mode.
73631         * lib/strtoimax.c: Use #elif rather than #else #if.
73632         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
73633         Remove function, now that we can rely on a working tzset function.
73634         [!_LIBC]: Ensure that the required autoconf test has been run.
73635         [!defined _NL_CURRENT && HAVE_STRFTIME]:
73636         Use underlying_strftime for %r.
73637         * lib/sha.c: Merge in some clean-up and optimization changes from
73638         glibc.
73639         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
73640         Ensure that it is a multiple of 64.
73641         Rearrange loop exit tests so as to avoid performing an
73642         additional fread after encountering an error or EOF.
73643         * lib/realloc.c: Update copyright date.
73644
73645 2003-08-15  Jim Meyering  <jim@meyering.net>
73646         and Paul Eggert  <eggert@twinsun.com>
73647
73648         Merge from coreutils.
73649         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
73650         member but strut utmpx does not.  Needed for AIX 4.3.3.
73651         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
73652
73653 2003-08-15  Jim Meyering  <jim@meyering.net>
73654         and Paul Eggert  <eggert@cs.ucla.edu>
73655
73656         Merges from coreutils, etc.
73657         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
73658         Require gl_FUNC_TZSET_CLOBBER.
73659         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
73660         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
73661         members.
73662
73663 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73664
73665         Help the merge from coreutils.
73666         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
73667         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
73668         * m4/tzset.m4: Use it too.
73669
73670 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73671
73672         * modules/tzset: New file.
73673
73674 2003-08-14  Jim Meyering  <jim@meyering.net>
73675
73676         Merges from coreutils.
73677         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
73678         variable names, rather than @FNMATCH_H@.
73679         * modules/alloca: Likewise for $(ALLOCA_H).
73680
73681         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
73682         the three copies of the literal target, `fnmatch.h'.
73683         * modules/alloca (alloca.h): Likewise.
73684
73685 2003-08-14  Jim Meyering  <jim@meyering.net>
73686
73687         Merge from coreutils.
73688         * m4/tzset.m4: New file.
73689         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
73690         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
73691         otherwise, AIX 5.1 systems would end up using the latter.
73692         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
73693         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
73694         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
73695         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
73696
73697 2003-08-14  Jim Meyering  <jim@meyering.net>
73698
73699         Merge from coreutils.
73700         * lib/obstack.h: Whitespace changes.
73701         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
73702         and xcalloc return values.
73703         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
73704         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
73705         hang on OSF/1 5.1 for DIR on both local and remote file systems.
73706         Reported by (and fix confirmed by) Nelson H. F. Beebe.
73707         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73708         error from mntctl.
73709         Use mntctl's return value to drive the entry-processing loop, since
73710         we can't rely on the value of the vmt_length member in the last
73711         entry.  On some systems doing so could result in exhausting
73712         virtual memory.  Based in part on a patch from Mike Jetzer.
73713
73714 2003-08-14  Jim Meyering  <jim@meyering.net>
73715         and Paul Eggert  <eggert@twinsun.com>
73716
73717         Merges from coreutils, plus other fixes.
73718         * lib/physmem.c: Merge in portability changes from gcc/libiberty
73719         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
73720         for credits and details.  Thanks to Kaveh Ghazi for helping
73721         to keep these files in sync.
73722         (ARRAY_SIZE): Define it.
73723         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
73724         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
73725         (memcasecmp): Don't assume size_t fits in unsigned int.
73726         Remove casts and duplicate code.
73727         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
73728         (memcpy): Remove definition.
73729         Merge in some clean-up and optimization changes from glibc.
73730         [BLOCKSIZE]: Move definition to top of file.
73731         Ensure that it is a multiple of 64.
73732         Rearrange loop exit tests so as to avoid performing an
73733         additional fread after encountering an error or EOF.
73734         * lib/md5.h (md5_uintptr): Define.
73735         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
73736         return to the initial working directory.  Preserve errno
73737         for caller.
73738         * lib/idcache.c: Include "xalloc.h".
73739         (xmalloc, xrealloc): Remove decls.
73740         (getuser): Remove casts no longer required in C89.
73741         * lib/human.c: Include stdio.h, for sprintf.
73742         * lib/group-member.c: Include "xalloc.h".
73743         (xmalloc, xrealloc): Remove decls.
73744         (get_group_info): Remove casts no longer required in C89.
73745         * lib/getusershell.c (readname): Remove casts no longer required in
73746         C89.
73747         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
73748         * lib/getline.c: Whitespace fix, from coreutils.
73749
73750 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73751
73752         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
73753         Check for isascii.
73754
73755         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73756         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73757         Undo previous (whitespace-only) change.
73758
73759 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73760
73761         * lib/exclude.c: Include <ctype.h>
73762         (IN_CTYPE_DOMAIN): New macro.
73763         (is_space): New fn.
73764         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
73765         and empty lines.
73766
73767         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73768         Undo previous (whitespace-only) change.
73769
73770 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73771
73772         * config/srclist-update: Change update back to the old behavior,
73773         leaving whitespace alone.  Use one 'sed' command rather than a
73774         pipeline.
73775         (fixlicense): Now a variable, not a function.
73776         (remove_trailing_blanks): Remove.
73777         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
73778         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73779         Undo previous (whitespace-only) change.
73780
73781 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73782
73783         Merge from coreutils.
73784         * modules/euidaccess: Add lib_SOURCES, include for new
73785         file euidaccess.h
73786
73787 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73788
73789         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73790         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73791         Normalize leading white space and remove trailing white space.
73792
73793         Merge from coreutils
73794         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
73795
73796         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
73797         0.12.1.  These files are now being upgraded automatically by
73798         ../config/srclist-update.
73799
73800 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73801
73802         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73803         Normalize leading white space and remove trailing white space.
73804         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
73805         notice, as per ../config/srclist-update.
73806
73807         Merge from coreutils.
73808         * lib/euidaccess.h: New file.
73809         * lib/euidaccess.c: Include it.
73810         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
73811         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
73812         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
73813
73814 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73815
73816         * config/srclist-update: Add copyright notice.
73817         (remove_id_lines, remove_trailing_blanks): New constants.
73818         (fixfile): Use them to normalize spacing a bit in copied files.
73819         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73820         Normalize leading white space and remove trailing white space.
73821
73822         * config/texinfo.tex: Sync with texinfo.
73823
73824         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
73825         strtoul.c from libc, to merge coreutils whitespace changes.
73826
73827         * config/srclist.txt: Get the following m4 files from gettext:
73828         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
73829         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
73830         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
73831         wint_t.m4.
73832
73833 2003-08-12  Karl Berry  <karl@gnu.org>
73834
73835         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
73836         been made.
73837
73838 2003-08-11  Paul Eggert  <eggert@twinsun.com>
73839
73840         * modules/gnu-source, m4/gnu-source.m4:
73841         Remove; we're assuming Autoconf 2.54 or later now.
73842         Suggested by Bruno Haible.
73843         * MODULES.html.sh (func_all_modules): Remove gnu-source.
73844
73845 2003-08-11  Bruno Haible  <bruno@clisp.org>
73846
73847         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
73848
73849 2003-08-11  Bruno Haible  <bruno@clisp.org>
73850
73851         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
73852         (vasnprintf): Use it instead of wcslen.
73853
73854 2003-08-11  Bruno Haible  <bruno@clisp.org>
73855
73856         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
73857         value to ensure that _Bool promotes to int. Use #define for _Bool when
73858         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
73859
73860 2003-08-10  Karl Berry  <karl@gnu.org>
73861
73862         * lib/regex.h: update from libc (whitespace fix).
73863
73864 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73865
73866         Merge some files from coreutils.  These changes were
73867         originally made by Jim Meyering.
73868         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
73869         many older Unixes require this.
73870         * lib/alloca.c (alloca): Remove cast to argument of free;
73871         no longer needed in C89.
73872         * lib/alloca_.h, regex.h: Fix white space to match
73873         what GNU indent does.
73874
73875 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73876
73877         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
73878         apparently Emacs's Unicode mode got confused before my 2003-08-05
73879         checkin.
73880
73881 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73882
73883         * m4/extensions.m4: New file.
73884         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
73885         Require gl_USE_SYSTEM_EXTENSIONS.
73886         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
73887         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
73888
73889 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73890
73891         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
73892         * modules/extensions, modules/gnu-source: New files.
73893         * modules/timespec, modules/unlocked-io: Depend on extensions.
73894
73895 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73896
73897         * modules/restrict: New file.
73898         * MODULES.html.sh (func_all_modules): Add restrict.
73899         * modules/regex: Depend on restrict.
73900
73901 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73902
73903         * m4/restrict.m4: New file.
73904         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
73905
73906 2003-08-07  Bruno Haible  <bruno@clisp.org>
73907
73908         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
73909         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
73910
73911 2003-08-07  Bruno Haible  <bruno@clisp.org>
73912
73913         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
73914         makes the module 'getndelim2' compatible with the module 'getline'.
73915
73916 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73917
73918         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
73919         byte with "\201" to avoid glitches when editing that source file
73920         with multi-gnome-terminal.
73921
73922 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73923
73924         * lib/bumpalloc.h: Remove.
73925
73926 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73927
73928         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
73929         * modules/bumpalloc: Remove.
73930
73931 2003-08-04  Paul Eggert  <eggert@twinsun.com>
73932
73933         * lib/getloadavg.c: Change copyright notice and spacing to conform to
73934         GNU coding style.
73935
73936         Merge from coreutils.
73937         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
73938         1. From glibc.
73939         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
73940         from Karl Berry, implemented by Jim Meyering.
73941         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
73942         from Dmitry V. Levin.
73943         Remove anachronistic cast of xrealloc.
73944         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
73945         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
73946         type. Otherwise, it wouldn't compile with at least /bin/cc on
73947         ymp-cray-unicos9.0.2.X.
73948         Combine two mostly-identical uses of alloca into one.
73949         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
73950
73951 2003-08-04  Dave Love  <d.love@dl.ac.uk>
73952
73953         [From Emacs.]
73954
73955         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
73956         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
73957         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
73958         obsolete NLIST_NAME_UNION.
73959         [__GNU__]: Undef BSD and FSCALE.
73960         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
73961
73962 2003-08-03  Paul Eggert  <eggert@twinsun.com>
73963
73964         * lib/stdbool_.h (_Bool): Make it signed char, instead of
73965         an enum type, so that it's guaranteed to promote to int.  See:
73966         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
73967
73968 2003-08-03  Karl Berry  <karl@gnu.org>
73969
73970         * config/depcomp: update from automake.
73971
73972 2003-07-31  Paul Eggert  <eggert@twinsun.com>
73973
73974         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
73975         (strerror): Don't assume that a printable int fits in 14 bytes.
73976
73977 2003-07-31  Bruno Haible  <bruno@clisp.org>
73978
73979         * modules/getpass-gnu: New file.
73980         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
73981
73982 2003-07-31  Bruno Haible  <bruno@clisp.org>
73983
73984         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
73985
73986 2003-07-24  Karl Berry  <karl@gnu.org>
73987
73988         * config/missing: update from automake.
73989
73990 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
73991             Bruno Haible  <bruno@clisp.org>
73992
73993         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
73994         * lib/getline.c (getline, getdelim): Likewise.
73995         Remove _GNU_SOURCE define; now it's defined in config.h through
73996         m4/getline.m4.
73997
73998 2003-07-23  Karl Berry  <karl@gnu.org>
73999
74000         * config/config.sub: update from prep.
74001
74002 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74003
74004         * modules/xalloc (Depends-on): Add exitfail.
74005         * modules/xmemcoll: Likewise.
74006
74007 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74008
74009         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
74010         over-parenthesization in macros.
74011
74012         Sync with coreutils.
74013
74014         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
74015         required by C99.
74016
74017         Use `exit_failure' for xalloc and xmemcoll instead of their own
74018         private exit-failure variables.
74019         * lib/xalloc.h (xalloc_exit_failure): Remove.
74020         * lib/xmalloc.c: Likewise.  Include exitfail.h.
74021         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
74022         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
74023         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
74024         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
74025
74026 2003-07-20  Jim Meyering  <jim@meyering.net>
74027
74028         * modules/closeout (Depends-on): Add exitfail.
74029         Suggestion from Bruno Haible.
74030
74031 2003-07-19  Karl Berry  <karl@gnu.org>
74032
74033         * config/config.sub: update from prep.
74034
74035 2003-07-18  Paul Eggert  <eggert@twinsun.com>
74036
74037         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
74038         Remove.
74039         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
74040         to test that it can stand by itself.  Include "exitfail.h".
74041         Clients should set exit_failure instead.
74042         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
74043
74044 2003-07-18  Bruno Haible  <bruno@clisp.org>
74045
74046         * modules/getndelim2: New file.
74047         * modules/getline: Share files with module getndelim2.
74048         * modules/getnline: Depend on getndelim2 instead of sharing files with
74049         it. Add getnline.c to lib_SOURCES.
74050         * MODULES.html.sh (func_all_modules): Add getndelim2.
74051
74052 2003-07-18  Bruno Haible  <bruno@clisp.org>
74053
74054         * m4/getndelim2.m4: New file.
74055         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
74056         invoke gl_PREREQ_GETNDELIM2.
74057         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
74058         gl_PREREQ_GETNDELIM2.
74059         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
74060         gl_GETNDELIM2.
74061
74062 2003-07-18  Bruno Haible  <bruno@clisp.org>
74063
74064         * lib/getndelim2.h: New file.
74065         * lib/getndelim2.c: Make into a module of its own. Include config.h,
74066         getndelim2.h.
74067         (getndelim2): Make non-static. Change return type to ssize_t.
74068         * lib/getline.h: Change argument names.
74069         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
74070         * lib/getnline.c: Include getndelim2.h.
74071
74072 2003-07-18  Andreas Schwab  <schwab@suse.de>
74073
74074         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
74075
74076 2003-07-17  Karl Berry  <karl@gnu.org>
74077
74078         * config/config.sub: update from prep.
74079
74080 2003-07-17  Bruno Haible  <bruno@clisp.org>
74081
74082         * modules/getnline: New file.
74083         * modules/getline: Add lib/getndelim2.c to source file list.
74084         * MODULES.html.sh (func_all_modules): Add getnline.
74085
74086 2003-07-17  Bruno Haible  <bruno@clisp.org>
74087
74088         * m4/getnline.m4: New file.
74089
74090 2003-07-17  Bruno Haible  <bruno@clisp.org>
74091
74092         * m4/Makefile.am.in: Remove file.
74093         * m4/Makefile.am: Remove file.
74094         * m4/Makefile.in: Remove file.
74095
74096 2003-07-17  Bruno Haible  <bruno@clisp.org>
74097
74098         * lib/getnline.h: New file.
74099         * lib/getnline.c: New file.
74100         * lib/getndelim2.c: New file, extracted from getline.c.
74101         (getndelim2): Renamed from getdelim2, with added nmax argument.
74102         * lib/getline.c: Include getndelim2.c.
74103         (getdelim2): Moved out to getndelim2.c.
74104         (getline, getdelim): Update.
74105
74106 2003-07-17  Bruno Haible  <bruno@clisp.org>
74107
74108         * lib/Makefile.am: Remove file.
74109         * lib/Makefile.in: Remove file.
74110
74111 2003-07-17  Bruno Haible  <bruno@clisp.org>
74112
74113         * configure.in: Remove file.
74114         * Makefile.in: Remove file.
74115
74116 2003-07-17  Bruno Haible  <bruno@clisp.org>
74117
74118         * MODULES.html.sh: Put the </BODY> right before </HTML>.
74119
74120 2003-07-16  Karl Berry  <karl@gnu.org>
74121
74122         * config/srclist-update: was running fixlicense twice, which caused
74123                 texinfo.tex to be nullified for some reason.  Simplify,
74124                 $gplsrc is no longer needed as far as I can see?
74125
74126 2003-07-16  Jim Meyering  <jim@meyering.net>
74127
74128         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
74129
74130 2003-07-15  Paul Eggert  <eggert@twinsun.com>
74131
74132         * config/srclist.txt: Get the following files from gettext-runtime/intl
74133         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
74134         ref-del.sin.  From Bruno Haible.
74135         * config/srclist-update (fixfile): Change grep pattern again, since the
74136         previous fix didn't work (there was another trailing $).  Use
74137         '[$]' to escape the $s.
74138
74139 2003-07-15  Karl Berry  <karl@gnu.org>
74140
74141         * lib/vasnprintf.c: update from gettext.
74142
74143 2003-07-15  Karl Berry  <karl@gnu.org>
74144
74145         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
74146         gets expanded when surrounded by '$'.
74147
74148 2003-07-15  Jim Meyering  <jim@meyering.net>
74149
74150         * modules/save-cwd: Don't depend on error.  From Derek Price.
74151
74152 2003-07-15  Jim Meyering  <jim@meyering.net>
74153
74154         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
74155
74156 2003-07-14  Simon Josefsson  <jas@extundo.com>
74157
74158         * modules/mempcpy: New file.
74159         * MODULES.html.sh (func_all_modules): Add mempcpy.
74160
74161 2003-07-14  Simon Josefsson  <jas@extundo.com>
74162
74163         * m4/mempcpy.m4: New file.
74164
74165 2003-07-14  Simon Josefsson  <jas@extundo.com>
74166
74167         * lib/mempcpy.h: New file.
74168         * lib/mempcpy.c: New file.
74169
74170 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74171
74172         * modules/getdate, modules/posixtm: Depend on mktime.
74173
74174 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74175
74176         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
74177         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
74178         unicodeio.c, unicodeio.h, unlocked-io.h:
74179         Switch from LGPL to GPL.
74180
74181 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74182
74183         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
74184         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
74185         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
74186         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
74187         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
74188         updated automatically by ../config/srclist-update.  This changes
74189         their license from LPGL to GPL.
74190
74191 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74192
74193         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74194         assumed to refer to the root of the most recent stable gettext version.
74195         * config/srclistvars.sh: Add defaults for eggert.
74196         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74197         Match "This program" as well as "The program".  This is needed
74198         for gettext.
74199
74200 2003-07-14  Jim Meyering  <jim@meyering.net>
74201
74202         Don't emit diagnostics.  Let callers do that.
74203         * lib/save-cwd.c: Don't include "error.h".
74204         (save_cwd): Don't call error.  Ensure that errno is valid
74205         when returning nonzero.
74206
74207         * lib/save-cwd.h (restore_cwd): Update prototype.
74208         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74209         Simplify.  Don't call error upon failure.  Let callers do that.
74210         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74211         when auditing is enabled.  But don't bother updating the #if.
74212
74213 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74214
74215         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74216         it breaks C++ compilation.
74217         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74218
74219 2003-07-10  Simon Josefsson  <jas@extundo.com>
74220
74221         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74222
74223 2003-07-10  Jim Meyering  <jim@meyering.net>
74224
74225         * m4/clock_time.m4: Remove trailing blank.
74226         * m4/intmax_t.m4: Likewise.
74227
74228 2003-07-10  Jim Meyering  <jim@meyering.net>
74229
74230         * lib/vasnprintf.c: Remove trailing blanks.
74231         Make cpp indentation consistent.
74232
74233 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74234
74235         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74236         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74237         Switch from LGPL to GPL.
74238
74239 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74240
74241         * config/srclist.txt: Sort sublists.  Add
74242         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74243         that differ from gnulib for one reason or another; we'd like this list
74244         to be smaller but for now let's document what we have.
74245
74246 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74247
74248         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74249         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74250         and sweeter "eval x=$x".
74251         * config/srclist.txt: Get lib/argp* from glibc.
74252
74253 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74254
74255         * lib/mktime.c: Fix some boundary cases and remove need for floating
74256         point.
74257
74258         Issue a compile-time diagnostic if time_t is floating point, or if
74259         two's complement arithmetic is not in effect, or if arithmetic
74260         right shift does not propagate the sign.  These assumptions were
74261         all in the original code but they weren't checked.
74262
74263         (TIME_T_MIDPOINT, verify): New macros.
74264         (__isleap): Remove; it has integer overflow problems.
74265         (leapyear): New function, without those problems.
74266         (ydhms_tm_diff): Remove; splitting into two parts.
74267         (ydhms_diff): New function, containing the arithmetic part of
74268         the old ydhms_tm_diff function.  Issue a compile-time
74269         diagnostic if we are not using C99 integer division.
74270         Avoid casts when possible.
74271         (guess_time_tm): New function, containing the checking part of
74272         the old ydhms_tm_diff function.  Return the new value, rather than
74273         the difference between it and the old.  Accept a new argument T
74274         so that *T specifies the old value.  Check for overflow in the result.
74275
74276         (__mktime_internal): Use a time_t offset, not a long int offset.
74277         This undoes the 2003-06-04 change, which is no longer needed now
74278         that we have better overflow checking.
74279         (localtime_offset): Likewise.
74280
74281         (__mktime_internal): Avoid harmful overflow on hosts where time_t
74282         and long are 64-bit but int is only 32-bit.
74283         (ydhms_diff): Use long int to store year1 and yday1.
74284         Issue a compile-time diagnostic if long int is not wide enough.
74285
74286         (__mktime_internal): Use long int to store adjusted year and yday.
74287         Use plain C rather than preprocessor commands, if that doesn't
74288         affect efficiency.
74289         Check for overflow (and try to repair) after each probe
74290         rather than checking only at the very end.  This avoids some bugs
74291         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
74292         does not equal GMT offset at maximum time).
74293         Use integer to check for overflow rather than floating point; this
74294         is more portable to non-IEEE hosts, and is a tad faster.
74295         When we detect that we are oscillating between two values,
74296         don't check whether tm_isdst has the requested value, since
74297         we already know the answer.  When tm_isdst has the wrong value,
74298         use a different heuristic to find the right one, based on the
74299         extreme values actually observed in practice in tz2003a,
74300         rather than the (overly optimistic) "previous 3 calendar quarters".
74301
74302         (not_equal_tm, print_tm, check_result): Use "const T" rather than
74303         "T const" to accommodate glibc style.
74304         (check_result): Use less-confusing report format.  "long" -> "long int.
74305         (main): Likewise.
74306         Don't loop if the iteration overflows time_t.
74307         Allow a negative step in the iteration.
74308
74309 2003-07-06  Karl Berry  <karl@gnu.org>
74310
74311         * config/depcomp: update from automake.
74312         * config/config.sub: update from prep.
74313
74314 2003-07-03  Karl Berry  <karl@gnu.org>
74315
74316         * config/config.guess: update from prep.
74317
74318 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74319
74320         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74321         xreadlink.c now includes it unconditionally.
74322
74323 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74324
74325         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74326         having it depend on HAVE_SYS_TYPES_H.
74327
74328 2003-07-01  Bruno Haible  <bruno@clisp.org>
74329
74330         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74331         <sys/types.h> should be sufficient.
74332         Reported by Paul Eggert.
74333
74334 2003-06-26  Karl Berry  <karl@gnu.org>
74335
74336         * config/depcomp: update from automake.
74337
74338 2003-06-26  Bruno Haible  <bruno@clisp.org>
74339
74340         * modules/human: Depend on module stdbool.
74341
74342 2003-06-25  Bruno Haible  <bruno@clisp.org>
74343
74344         * modules/readlink: New file.
74345         * modules/xreadlink: Depend on it.
74346         * MODULES.html.sh (func_all_modules): Add readlink.
74347
74348 2003-06-25  Bruno Haible  <bruno@clisp.org>
74349
74350         * m4/readlink.m4: New file.
74351
74352 2003-06-25  Bruno Haible  <bruno@clisp.org>
74353
74354         * lib/readlink.c: New file.
74355
74356 2003-06-22  Karl Berry  <karl@gnu.org>
74357
74358         * config/srclist.txt: update mkinstalldirs from automake.
74359         * config/mkinstalldirs: update.
74360
74361 2003-06-22  Bruno Haible  <bruno@clisp.org>
74362
74363         Portability to mingw32.
74364         * m4/ssize_t.m4: New file, from GNU gettext.
74365         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74366         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74367
74368 2003-06-22  Bruno Haible  <bruno@clisp.org>
74369
74370         * modules/safe-read: Add m4/ssize_t.m4.
74371         * modules/xreadlink: Add m4/ssize_t.m4.
74372
74373 2003-06-20  Bruno Haible  <bruno@clisp.org>
74374
74375         Assume C89, so PARAMS isn't needed.
74376         * lib/unicodeio.h (PARAMS): Remove.
74377         * lib/unicodeio.c: Don't use PARAMS.
74378
74379 2003-06-18  Karl Berry  <karl@gnu.org>
74380
74381         * config/config.{guess,sub}: update from prep.
74382
74383 2003-06-18  Jim Meyering  <jim@meyering.net>
74384
74385         Merge changes from coreutils.
74386         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74387         Remove explicit declarations of xmalloc and realloc.
74388         Include xalloc.h.
74389         (read_utmp): Remove anachronistic cast of xmalloc.
74390
74391 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74392
74393         Assume C89, so PARAMS isn't needed.
74394         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74395         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74396         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74397         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74398         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74399         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74400         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74401         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74402         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74403         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74404         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74405         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74406         no longer needed. Anyway, config.h should always be included before any
74407         other file.
74408
74409 2003-06-11  Simon Josefsson  <jas@extundo.com>
74410
74411         * modules/sysexits: New file.
74412         * MODULES.html.sh (func_all_modules): Add sysexits.
74413
74414 2003-06-11  Simon Josefsson  <jas@extundo.com>
74415
74416         * lib/sysexit_.h: New file.
74417
74418 2003-06-11  Derek Price  <derek@ximbiot.com>
74419
74420         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74421         necessary.
74422
74423 2003-06-11  Bruno Haible  <bruno@clisp.org>
74424
74425         * m4/sysexits.m4: New file.
74426
74427 2003-06-10  Simon Josefsson  <jas@extundo.com>
74428
74429         * lib/argp.h: New file, from glibc.
74430         * lib/argp-ba.c: New file, from glibc.
74431         * lib/argp-eexst.c: New file, from glibc.
74432         * lib/argp-fmtstream.c: New file, from glibc.
74433         * lib/argp-fmtstream.h: New file, from glibc.
74434         * lib/argp-fs-xinl.c: New file, from glibc.
74435         * lib/argp-help.c: New file, from glibc.
74436         * lib/argp-namefrob.h: New file, from glibc.
74437         * lib/argp-parse.c: New file, from glibc.
74438         * lib/argp-pv.c: New file, from glibc.
74439         * lib/argp-pvh.c: New file, from glibc.
74440         * lib/argp-xinl.c: New file, from glibc.
74441
74442 2003-06-10  Simon Josefsson  <jas@extundo.com>
74443
74444         * modules/strchrnul: New file.
74445
74446 2003-06-10  Simon Josefsson  <jas@extundo.com>
74447
74448         * modules/argp: New file.
74449
74450 2003-06-10  Simon Josefsson  <jas@extundo.com>
74451
74452         * m4/strchrnul.m4: New file.
74453
74454 2003-06-10  Simon Josefsson  <jas@extundo.com>
74455
74456         * lib/strchrnul.h: New file.
74457         * lib/strchrnul.c: New file.
74458
74459 2003-06-10  Bruno Haible  <bruno@clisp.org>
74460
74461         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74462
74463 2003-06-07  Karl Berry  <karl@gnu.org>
74464
74465         * config/config.{guess,sub}: update from prep.
74466
74467 2003-06-07  Jim Meyering  <jim@meyering.net>
74468
74469         * modules/strtod: Use $(...) notation, not @...@ for
74470         AC_REPLACE'd variables.
74471         * modules/localcharset: Likewise.
74472
74473 2003-06-07  Jim Meyering  <jim@meyering.net>
74474
74475         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
74476         in place of my name in the copyright comment.
74477         Remove definition and uses of __P.
74478
74479         From coreutils.
74480         * lib/stat.c: Don't declare xmalloc explicitly.
74481         Instead, include "xalloc.h".
74482         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
74483         xrealloc, and xcalloc return values.
74484         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
74485         Improve comment.
74486         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
74487
74488 2003-06-07  Bruno Haible  <bruno@clisp.org>
74489
74490         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
74491         avoid AC_CONFIG_LINKS.
74492         * modules/fnmatch (Makefile.am): Use explicit creation rule for
74493         fnmatch.h, to avoid AC_CONFIG_LINKS.
74494         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
74495
74496 2003-06-07  Bruno Haible  <bruno@clisp.org>
74497
74498         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
74499         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
74500         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74501         directory.
74502         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
74503         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74504         directory.
74505
74506 2003-06-06  Jim Meyering  <jim@meyering.net>
74507
74508         Merge from coreutils.
74509         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
74510         Consolidate declarations and initializations of *_base* locals.
74511
74512         Merge from coreutils.
74513         This avoids a core dump on systems without GNU putenv,
74514         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
74515         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
74516         (unsetenv): New static function, from GNU libc.
74517         (rpl_putenv): Use it.
74518
74519         * lib/modechange.c: Remove trailing blanks.
74520
74521         Merge from coreutils.
74522         * lib/fsusage.c: Remove declaration of statfs.
74523         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
74524
74525         * lib/posixtm.c: Include <stdbool.h> unconditionally.
74526
74527 2003-06-06  Jim Meyering  <jim@meyering.net>
74528
74529         * lib/stdbool_.h: Renamed from stdbool.h.in.
74530
74531 2003-06-06  Jim Meyering  <jim@meyering.net>
74532             Bruno Haible  <bruno@clisp.org>
74533
74534         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
74535         Adjust Makefile.am snippet not to redirect directly to target.
74536         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
74537
74538 2003-06-05  Paul Eggert  <eggert@twinsun.com>
74539
74540         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
74541         mismatch, look in future quarters as well as past.  This fixes a
74542         bug when processing fall-backwards gaps immediately after a long
74543         period of daylight-saving time.
74544
74545         * lib/mktime.c: Assume freestanding C89 or better.
74546         (HAVE_LIMITS_H): Remove.  Assume it's 1.
74547         (__P): Remove; not used.
74548         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
74549         (mktime, not_equal_tm, print_tm, check_result,
74550         main): Use prototypes.  Use const * where appropriate.
74551         (main): Fix typo in testing code that uncovered by above changes.
74552         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
74553
74554 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74555
74556         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
74557         locale.h, localeconv.  This merges changes from coreutils.
74558
74559         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
74560         It can be removed after the next Autoconf is released.
74561         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
74562         needed.
74563
74564 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74565
74566         * lib/mktime.c: Fix Debian bug 177940
74567         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
74568         (localtime_offset): Now long int, not time_t, because we want it
74569         to be guaranteed to be signed.  All uses changed.
74570         (__mktime_internal): If overflow would occur when adding offset,
74571         don't add it.
74572
74573         Merge 'human' changes from coreutils.  Rewrite to support
74574         locale-specific notations like thousands separators.
74575         * lib/human.c: Simplify authorship notice.
74576         Include human.h immediately after config.h.
74577         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
74578         <limits.h>: Do not include, since human.h does.
74579         (SIZE_MAX, UINTMAX_MAX): New macros.
74580         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
74581         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
74582         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
74583         (power_letter): Renamed from suffixes.
74584         (generate_suffix_backwards): Remove.
74585         (adjust_value): Now takes int style (because of human.h changes)
74586         and long double value (for greater precision on some platforms).
74587         (group_number): New function.
74588         (human_readable): Use it.  Use integer options, not enum.
74589         Put the options before the sizes in the arg list.
74590         Support all the new options.
74591         The old human_readable function has been removed;
74592         use inttostr.h instead.
74593         (human_readable, default_block_size, humblock):
74594         Use uintmax_t, not int, for block sizes.
74595         (human_readable_inexact, block_size_types): Remove.
74596         (block_size_opts): New constant.
74597         (human_options): Renamed from human_block_size, with new signature
74598         that allows block sizes up to UINTMAX_MAX.  All callers changed.
74599         * lib/human.h: Add copyright and authorship notice.
74600         Include <limits.h> and <stdbool.h> unconditionally.
74601         (PARAMS): Remove.  All uses removed.
74602         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
74603         (enum human_inexact_style): Remove tag; now a nameless enum.
74604         (human_floor, human_ceiling, human_round_to_even): Now have
74605         values 2, 0, 1 rather than -1, 1, 0.
74606         (human_group_digits, human_suppress_point_zero, human_autoscale,
74607         human_base_1024, human_SI, human_B): New constants.
74608         (human_readable_inexact, human_block_size): Remove.
74609         (human_readable): Size args are now uintmax_t, not int.
74610         (human_options): New decl.
74611
74612         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
74613         unnecessary now that we assume C89 or better.  This change
74614         imported from coreutils.
74615
74616         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74617         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
74618         in the 2003-05-30 sync from glibc.
74619
74620         .h files should stand alone, but we shouldn't include <sys/types.h>
74621         if we can get away with just <stddef.h>.
74622
74623         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
74624         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
74625         rather than <sys/types.h>, as we merely need size_t.
74626         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
74627         to get size_t.
74628         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
74629         Include <stdio.h>, to get FILE.
74630         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
74631         memcasecmp.h has included <stddef.h> and all we need is size_t.
74632         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
74633         our interface, instead of including <sys/types.h>
74634
74635 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74636
74637         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
74638         now, as glibc mktime is buggy on non-glibc systems.
74639
74640 2003-06-03  Karl Berry  <karl@gnu.org>
74641
74642         * config/config.sub: update from prep.
74643
74644 2003-06-02  Paul Eggert  <eggert@twinsun.com>
74645
74646         [from coreutils]
74647         Fix some minor time-related bugs with POSIX time arguments.
74648         Some valid time stamps were being rejected (notably -1, and
74649         time stamps before 1900 on 64-bit hosts).  And some invalid
74650         time stamps were being accepted, e.g. September 31.
74651
74652         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
74653         that we can return (time_t) -1 successfully.
74654         * lib/posixtm.c: Likewise.
74655         [HAVE_STDBOOL_H]: Include <stdbool.h>.
74656         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
74657         (t): Remove static var.
74658         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
74659         of static var.  All uses changed.
74660         (year): Do not reject years before 1900; they can occur with
74661         64-bit time_t.
74662         (posix_time_parse): Do not check for out-of-range components;
74663         that is now the caller's responsibility, since our checks were
74664         only approximations.
74665         (posixtime): Use mktime to check for out-of-range components,
74666         since it knows them exactly.
74667         If mktime returns (time_t) -1, check whether an error actually occurred
74668         by invoking localtime on -1.
74669         (main) [TEST_POSIXTIME]: Check for input data errors, and report
74670         posixtime failures better.
74671         Improve the test data (in comments only).
74672
74673 2003-06-02  Karl Berry  <karl@gnu.org>
74674
74675         * config/mkinstalldirs (version): new variable.
74676         (--version): new option.
74677         (usage): improve message.
74678
74679 2003-05-30  Karl Berry  <karl@gnu.org>
74680
74681         * lib/mktime.c: update from libc.
74682
74683 2003-05-30  Bruno Haible  <bruno@clisp.org>
74684
74685         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
74686         * config/config.rpath: Upgrade to gettext-0.12.1.
74687
74688 2003-05-30  Bruno Haible  <bruno@clisp.org>
74689
74690         * m4/gettext.m4: Upgrade to gettext-0.12.1.
74691         * m4/nls.m4: New file, from gettext-0.12.1.
74692         * m4/po.m4: New file, from gettext-0.12.1.
74693         * m4/progtest.m4: Upgrade to gettext-0.12.1.
74694
74695 2003-05-30  Bruno Haible  <bruno@clisp.org>
74696
74697         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
74698         * lib/localcharset.h: Likewise.
74699         * lib/localcharset.c: Likewise.
74700
74701 2003-05-29  Karl Berry  <karl@gnu.org>
74702
74703         * config/config.rpath: update from gettext.
74704
74705 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74706
74707         Assume the headers required for C89 freestanding compilers.
74708         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
74709         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
74710         * m4/human.m4 (gl_HUMAN): Likewise.
74711         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
74712         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
74713         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74714         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
74715         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74716         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
74717
74718 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74719
74720         Assume the headers required for C89 freestanding compilers.
74721         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
74722         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
74723         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
74724         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
74725         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
74726         define, since <limits.h> is guaranteed to do that.
74727         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
74728         * lib/exclude.c: Include <stdbool.h> unconditionally.
74729         * lib/tempname.c: Include <stddef.h> unconditionally.
74730         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
74731         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
74732         <stddef.h> does that.
74733         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
74734         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
74735         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
74736         needed.
74737         * lib/xstrtol.c: Likewise.
74738         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
74739         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
74740
74741         * lib/addext.c (addext): Use assignment rather than cast, to avoid
74742         warnings on some platforms.
74743
74744         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74745         arbitrarily.
74746
74747 2003-05-26  Jim Meyering  <jim@meyering.net>
74748
74749         Merge in a change from coreutils:
74750         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
74751         that is guaranteed to be `no'.  Use `no_such_member' to indicate
74752         that condition, rather than `-1' which is slightly misleading.
74753         Change the name of the cache variable to have the gl_ prefix.
74754         Prompted by a patch from Richard Dawe for DJGPP.
74755
74756 2003-05-24  Karl Berry  <karl@gnu.org>
74757
74758         * config/config.guess: update from prep.
74759
74760 2003-05-22  Karl Berry  <karl@gnu.org>
74761
74762         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
74763
74764 2003-05-20  Karl Berry  <karl@gnu.org>
74765
74766         * config/config.guess: update from prep.
74767
74768 2003-05-18  Karl Berry  <karl@gnu.org>
74769
74770         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
74771         might actually be set by the user.
74772
74773         * config/depcomp, install-sh, mdate-sh: update from automake.
74774
74775 2003-05-17  Bruno Haible  <bruno@clisp.org>
74776
74777         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
74778         invalid expansion for AC_EGREP_CPP.
74779         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
74780         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
74781         Suggested by Akim Demaille <akim@epita.fr> in
74782         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
74783
74784 2003-05-12  Jim Meyering  <jim@meyering.net>
74785
74786         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
74787         the space-padded-by-default conversion specifiers, %e, %k, %l.
74788
74789 2003-05-12  Bruno Haible  <bruno@clisp.org>
74790
74791         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
74792         the string is longer than 4 KB.
74793
74794 2003-05-11  Karl Berry  <karl@gnu.org>
74795
74796         * config/config.{guess,sub}: update from prep.
74797
74798 2003-05-09  Bruno Haible  <bruno@clisp.org>
74799
74800         * modules/error: Add m4/strerror_r.m4 to file list.
74801
74802 2003-05-03  Bruno Haible  <bruno@clisp.org>
74803
74804         Upgrade to Unicode-4.0.
74805         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
74806         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
74807         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
74808         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
74809         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
74810         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
74811         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
74812         Change width of U+E0100..U+E01EF from 1 to 0.
74813
74814 2003-04-25  Jim Meyering  <jim@meyering.net>
74815
74816         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
74817         of type size_t, not int.
74818
74819 2003-04-25  Bruno Haible  <bruno@clisp.org>
74820
74821         * lib/copy-file.c: Include <stddef.h>, for size_t.
74822
74823 2003-04-21  Paul Eggert  <eggert@twinsun.com>
74824
74825         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
74826         code which expansion is under static control.  Patch imported from
74827         Akim Demaille's patch to Bison; see
74828         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
74829
74830 2003-04-14  Bruno Haible  <bruno@clisp.org>
74831
74832         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
74833
74834 2003-04-11  Jim Meyering  <jim@meyering.net>
74835
74836         Merge changes from Coreutils.
74837
74838         2003-03-22  Jim Meyering  <jim@meyering.net>
74839
74840         * lib/strftime.c (widen): Cast alloca return value to proper type.
74841
74842         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
74843
74844         From GNU libc.
74845         * lib/strftime.c (my_strftime): Handle very large width
74846         specifications for numeric values correctly.  Improve checks for
74847         overflow.
74848
74849         2003-01-19  Jim Meyering  <jim@meyering.net>
74850
74851         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
74852         definitions.
74853         (nl_get_alt_digit) [! defined my_strftime]: Define.
74854         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
74855         _nl_get_alt_digit and _nl_get_walt_digit.
74856
74857         * lib/strftime.c (my_strftime): Merge in locale-related changes from
74858         libc. These changes have no effect outside of _LIBC.
74859
74860 2003-04-10  Bruno Haible  <bruno@clisp.org>
74861
74862         * modules/findprog: New file.
74863         * MODULES.html.sh (func_all_modules): Add it.
74864
74865 2003-04-10  Bruno Haible  <bruno@clisp.org>
74866
74867         * m4/findprog.m4: New file.
74868         * m4/eaccess.m4: New file.
74869
74870 2003-04-10  Bruno Haible  <bruno@clisp.org>
74871
74872         * lib/findprog.h: New file, from GNU gettext.
74873         * lib/findprog.c: New file, from GNU gettext.
74874
74875 2003-04-05  Jim Meyering  <jim@meyering.net>
74876
74877         Merge changes from Coreutils.
74878
74879         * lib/exclude.h (PARAMS): Remove definition and uses.
74880         * lib/exclude.c: Remove uses of `PARAMS'.
74881
74882         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
74883         Add test-cases for DOS filenames. Declare program_name.
74884         (main): Set up program_name.  Patch by Rich Dawe.
74885
74886         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74887         error from mntctl.
74888         Use mntctl's return value to drive the entry-processing loop, since
74889         we can't rely on the value of the vmt_length member in the last
74890         entry.  On some systems doing so could result in exhausting
74891         virtual memory.  Based in part on a patch from Mike Jetzer.
74892
74893 2003-04-04  Bruno Haible  <bruno@clisp.org>
74894
74895         * modules/linebreak: New file.
74896         * MODULES.html.sh (func_all_modules): Add it.
74897
74898 2003-04-04  Bruno Haible  <bruno@clisp.org>
74899
74900         * m4/linebreak.m4: New file.
74901
74902 2003-04-04  Bruno Haible  <bruno@clisp.org>
74903
74904         * lib/linebreak.h: New file, from GNU gettext.
74905         * lib/linebreak.c: New file, from GNU gettext with slight
74906         modifications.
74907         * lib/lbrkprop.h: New file, from GNU gettext.
74908
74909 2003-04-03  Bruno Haible  <bruno@clisp.org>
74910
74911         * modules/utf8-ucs4: New file.
74912         * modules/utf16-ucs4: New file.
74913         * modules/ucs4-utf8: New file.
74914         * modules/ucs4-utf16: New file.
74915         * MODULES.html.sh (func_all_modules): Add them.
74916
74917 2003-04-03  Bruno Haible  <bruno@clisp.org>
74918
74919         * m4/utf-ucs4.m4: New file.
74920         * m4/ucs4-utf.m4: New file.
74921
74922 2003-04-03  Bruno Haible  <bruno@clisp.org>
74923
74924         * lib/utf8-ucs4.h: New file, from GNU gettext.
74925         * lib/utf16-ucs4.h: New file, from GNU gettext.
74926         * lib/ucs4-utf8.h: New file, from GNU gettext.
74927         * lib/ucs4-utf16.h: New file, from GNU gettext.
74928
74929 2003-04-02  Bruno Haible  <bruno@clisp.org>
74930
74931         * modules/binary-io: New file.
74932         * MODULES.html.sh (func_all_modules): Add it.
74933
74934 2003-04-02  Bruno Haible  <bruno@clisp.org>
74935
74936         * lib/binary-io.h: New file, from GNU gettext.
74937
74938 2003-04-01  Bruno Haible  <bruno@clisp.org>
74939
74940         * modules/pathname: New file.
74941         * MODULES.html.sh (func_all_modules): Add it.
74942
74943 2003-04-01  Bruno Haible  <bruno@clisp.org>
74944
74945         * lib/pathname.h: New file, from GNU gettext.
74946         * lib/concatpath.c: New file, from GNU gettext.
74947
74948 2003-03-30  Bruno Haible  <bruno@clisp.org>
74949
74950         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
74951
74952 2003-03-30  Bruno Haible  <bruno@clisp.org>
74953
74954         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
74955         function chown() doesn't exist.
74956
74957 2003-03-28  Bruno Haible  <bruno@clisp.org>
74958
74959         * modules/copy-file: New file.
74960         * MODULES.html.sh (func_all_modules): Add it.
74961
74962 2003-03-28  Bruno Haible  <bruno@clisp.org>
74963
74964         * m4/copy-file.m4: New file.
74965
74966 2003-03-28  Bruno Haible  <bruno@clisp.org>
74967
74968         * lib/copy-file.h: New file, from GNU gettext.
74969         * lib/copy-file.c: New file, from GNU gettext.
74970
74971 2003-03-18  Jim Meyering  <jim@meyering.net>
74972
74973         * lib/quote.c (quote_n): Fix typo in comment.
74974
74975 2003-03-18  Bruno Haible  <bruno@clisp.org>
74976
74977         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
74978         checking.
74979         * m4/onceonly_2_57.m4: Likewise.
74980
74981 2003-03-17  Bruno Haible  <bruno@clisp.org>
74982
74983         * m4/onceonly.m4: Require autoconf 2.54 or newer.
74984         (m4_quote): Remove macro.
74985         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
74986
74987 2003-03-14  Jim Meyering  <jim@meyering.net>
74988
74989         Merge changes from Coreutils.
74990         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
74991         to be const, in order to avoid warnings.
74992         (obstack_room): Likewise.
74993         (obstack_empty_p): Likewise.
74994
74995 2003-03-14  Bruno Haible  <bruno@clisp.org>
74996
74997         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
74998         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
74999
75000 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75001
75002         Merge changes from Bison.
75003         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
75004         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
75005         when compiling Bison 1.875's `bitset bset = obstack_alloc
75006         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
75007         * lib/hash.c: Include <stdbool.h> unconditionally.
75008
75009 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75010
75011         * m4/onceonly.m4 (m4_quote): New macro.
75012         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
75013         Quote AC_FOREACH variable-expansions properly.
75014
75015 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75016
75017         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
75018
75019 2003-03-09  Paul Eggert  <eggert@twinsun.com>
75020
75021         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
75022         Reported by Bruce Becker; see:
75023         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
75024
75025 2003-03-03  Paul Eggert  <eggert@twinsun.com>
75026             Bruno Haible  <bruno@clisp.org>
75027
75028         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
75029         Reported by John Hughes, see
75030         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
75031
75032 2003-02-20  Bruno Haible  <bruno@clisp.org>
75033
75034         * MODULES.html.sh (func_all_modules): Add poll.
75035
75036 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75037
75038         * modules/poll: New file.
75039
75040 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75041
75042         * lib/poll_.h: New file.
75043         * lib/poll.c: New file.
75044
75045 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75046
75047         * m4/poll.m4: New file.
75048
75049 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75050
75051         * modules/mathl: New file.
75052
75053 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75054
75055         * lib/mathl.h: New file.
75056         * lib/acosl.c: New file.
75057         * lib/asinl.c: New file.
75058         * lib/atanl.c: New file.
75059         * lib/ceill.c: New file.
75060         * lib/cosl.c: New file.
75061         * lib/expl.c: New file.
75062         * lib/floorl.c: New file.
75063         * lib/frexpl.c: New file.
75064         * lib/ldexpl.c: New file.
75065         * lib/logl.c: New file.
75066         * lib/sincosl.c: New file.
75067         * lib/sinl.c: New file.
75068         * lib/sqrtl.c: New file.
75069         * lib/tanl.c: New file.
75070         * lib/trigl.c: New file.
75071         * lib/trigl.h: New file.
75072
75073 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75074
75075         * m4/mathl.m4: New file.
75076
75077 2003-02-18  Bruno Haible  <bruno@clisp.org>
75078
75079         * MODULES.html.sh (func_all_modules): Add mathl.
75080
75081 2003-02-17  Bruno Haible  <bruno@clisp.org>
75082
75083         * modules/mkdtemp: New module.
75084         * MODULES.html.sh (func_all_modules): Add it.
75085
75086 2003-02-17  Bruno Haible  <bruno@clisp.org>
75087
75088         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
75089
75090 2003-02-17  Bruno Haible  <bruno@clisp.org>
75091
75092         * lib/mkdtemp.h: New file, from GNU gettext.
75093         * lib/mkdtemp.c: New file, from GNU gettext.
75094
75095 2003-02-02  Jim Meyering  <jim@meyering.net>
75096
75097         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
75098         e.g. glibc-2.2.93.
75099
75100 2003-01-31  Bruno Haible  <bruno@clisp.org>
75101
75102         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
75103         'rpl_rename'.
75104         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
75105         'rpl_strnlen'.
75106         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
75107         'rpl_strtod'.
75108         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
75109         'rpl_utime'.
75110
75111 2003-01-31  Bruno Haible  <bruno@clisp.org>
75112
75113         * lib/rename.c: #undef rename before defining rpl_rename.
75114         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
75115
75116 2003-01-30  Bruno Haible  <bruno@clisp.org>
75117
75118         * modules/vasnprintf, modules/vasprintf: New modules.
75119         * MODULES.html.sh (func_all_modules): Add them.
75120
75121 2003-01-30  Bruno Haible  <bruno@clisp.org>
75122
75123         * m4/signed.m4: New file, from GNU gettext.
75124         * m4/longdouble.m4: New file, from GNU gettext.
75125         * m4/wchar_t.m4: New file, from GNU gettext.
75126         * m4/wint_t.m4: New file, from GNU gettext.
75127         * m4/vasnprintf.m4: New file.
75128         * m4/vasprintf.m4: New file.
75129
75130 2003-01-30  Bruno Haible  <bruno@clisp.org>
75131
75132         * lib/printf-args.h: New file, from GNU gettext.
75133         * lib/printf-args.c: New file, from GNU gettext.
75134         * lib/printf-parse.h: New file, from GNU gettext.
75135         * lib/printf-parse.c: New file, from GNU gettext.
75136         * lib/vasnprintf.h: New file, from GNU gettext.
75137         * lib/vasnprintf.c: New file, from GNU gettext.
75138         * lib/asnprintf.c: New file, from GNU gettext.
75139         * lib/vasprintf.h: New file, from GNU gettext with modifications.
75140         * lib/vasprintf.c: New file, from GNU gettext.
75141         * lib/asprintf.c: New file, from GNU gettext.
75142
75143 2003-01-29  Bruno Haible  <bruno@clisp.org>
75144
75145         * modules/stpncpy: New module.
75146         * MODULES.html.sh (func_all_modules): Add it.
75147
75148 2003-01-29  Bruno Haible  <bruno@clisp.org>
75149
75150         * m4/stpncpy.m4: New file.
75151
75152 2003-01-29  Bruno Haible  <bruno@clisp.org>
75153
75154         * lib/stpncpy.h: New file, from GNU gettext with modifications.
75155         * lib/stpncpy.c: New file, from GNU gettext with modifications.
75156
75157 2003-01-28  Bruno Haible  <bruno@clisp.org>
75158
75159         * modules/c-ctype: New module.
75160         * MODULES.html.sh (func_all_modules): Add it.
75161
75162 2003-01-28  Bruno Haible  <bruno@clisp.org>
75163
75164         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
75165         Paul Eggert.
75166         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
75167         Paul Eggert.
75168
75169 2003-01-27  Bruno Haible  <bruno@clisp.org>
75170
75171         * modules/xsetenv: New module.
75172         * MODULES.html.sh (func_all_modules): Add it.
75173
75174 2003-01-27  Bruno Haible  <bruno@clisp.org>
75175
75176         * lib/xsetenv.h: New file, from GNU gettext.
75177         * lib/xsetenv.c: New file, from GNU gettext.
75178
75179 2003-01-23  Jim Meyering  <jim@meyering.net>
75180
75181         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
75182         from working on systems without dirfd (at least Irix and OSF1/Tru64).
75183
75184 2003-01-23  Bruno Haible  <bruno@clisp.org>
75185
75186         * modules/minmax: New module.
75187         * MODULES.html.sh (func_all_modules): Add it.
75188
75189 2003-01-23  Bruno Haible  <bruno@clisp.org>
75190
75191         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
75192         Eggert.
75193
75194 2003-01-22  Bruno Haible  <bruno@clisp.org>
75195
75196         * modules/exit: New module.
75197         * MODULES.html.sh (func_all_modules): Add it.
75198
75199 2003-01-22  Bruno Haible  <bruno@clisp.org>
75200
75201         * lib/exit.h: New file, from GNU gettext.
75202
75203 2003-01-19  Bruno Haible  <bruno@clisp.org>
75204
75205         * gnulib-tool: Recognize option --extract-maintainer.
75206         (func_get_maintainer): New function.
75207         * modules/*: Add Maintainer entry.
75208
75209 2003-01-16  Jim Meyering  <jim@meyering.net>
75210
75211         * m4/regex.m4: The `regex' struct is both input and output.
75212         Initialize it before each use.  Patch by Tim Waugh.
75213
75214 2003-01-16  Bruno Haible  <bruno@clisp.org>
75215
75216         * MODULES.html.sh: Add a table of contents. Add the module name as
75217         leftmost column. Add hyperlinks.
75218
75219 2003-01-15  Bruno Haible  <bruno@clisp.org>
75220
75221         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75222
75223 2003-01-15  Bruno Haible  <bruno@clisp.org>
75224
75225         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75226         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75227         suffix.
75228
75229 2003-01-15  Bruno Haible  <bruno@clisp.org>
75230
75231         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75232
75233 2003-01-15  Bruno Haible  <bruno@clisp.org>
75234
75235         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75236         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75237
75238 2003-01-14  Jim Meyering  <jim@meyering.net>
75239
75240         * lib/same.c (same_name): Tweak a comment.
75241
75242 2003-01-14  Bruno Haible  <bruno@clisp.org>
75243
75244         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75245         when a string comparison is sufficient.
75246
75247 2003-01-14  Bruno Haible  <bruno@clisp.org>
75248
75249         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75250         'unsigned int'.
75251
75252 2003-01-14  Bruno Haible  <bruno@clisp.org>
75253
75254         * lib/hash-pjw.c: Add comment about low quality of this function.
75255
75256 2003-01-13  Bruno Haible  <bruno@clisp.org>
75257
75258         * modules/stpcpy: Distribute lib/stpcpy.h.
75259         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75260
75261 2003-01-13  Bruno Haible  <bruno@clisp.org>
75262
75263         * modules/*: Add a description.
75264         * modules/strpbrk: Fix Makefile.am snippet.
75265         * modules/strtoimax: Fix dependencies.
75266         * modules/strtoumax: Likewise.
75267
75268 2003-01-13  Bruno Haible  <bruno@clisp.org>
75269
75270         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
75271         * modules/alloca (Makefile.am): All object files depend on alloca.h.
75272         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
75273
75274 2003-01-13  Bruno Haible  <bruno@clisp.org>
75275
75276         * gnulib-tool (func_create_testdir): Store config/* files in the main
75277         directory.
75278         * config.rpath: Move to ...
75279         * config/config.rpath: ... here.
75280         * modules/gettext: Contains config/config.rpath, not config.rpath.
75281         * modules/iconv: Likewise.
75282
75283 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75284
75285         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75286         to avoid collisions with libcurses and libreadline.
75287
75288         * m4/getstr.m4: Remove.
75289         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
75290
75291 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75292
75293         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75294         to avoid collisions with libcurses and libreadline.
75295
75296         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
75297         * lib/getstr.h, getstr.c: Remove.
75298         * lib/getline.c: Include "getline.h", to check interface.
75299         Move body of old getstr.c here: this defines MIN_CHUNK and
75300         declares getdelim2, which is renamed from getstr.
75301         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
75302
75303         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
75304         All uses changed.
75305         * lib/linebuffer.h: Likewise.
75306         (readline): Remove backward-compatibility macro.
75307
75308 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75309
75310         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75311         to avoid collisions with libcurses and libreadline.
75312         * getstr: Remove.
75313         * MODULES.html.sh: Remove getstr.
75314         * modules/getline: Depend on unlocked-io, not getstr.
75315
75316 2003-01-12  Jim Meyering  <jim@meyering.net>
75317
75318         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
75319
75320 2003-01-10  Bruno Haible  <bruno@clisp.org>
75321
75322         * modules/alloca: Change Makefile.am requirements. Simplify Include
75323         requirements. Add lib/alloca_.h to file list.
75324
75325 2003-01-10  Bruno Haible  <bruno@clisp.org>
75326
75327         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75328
75329 2003-01-10  Bruno Haible  <bruno@clisp.org>
75330
75331         * lib/alloca_.h: New file.
75332         * lib/getdate.y: Unconditionally include alloca.h.
75333         * lib/makepath.c: Likewise.
75334         * lib/setenv.c: Likewise.
75335         * lib/userspec.c: Likewise.
75336
75337 2003-01-09  Karl Berry  <karl@gnu.org>
75338
75339         * MODULES.html.sh: include `dirname $0` in PATH, to find
75340         gnulib-tool.
75341
75342 2003-01-09  Bruno Haible  <bruno@clisp.org>
75343
75344         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75345         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75346
75347 2003-01-09  Bruno Haible  <bruno@clisp.org>
75348
75349         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75350
75351 2003-01-09  Bruno Haible  <bruno@clisp.org>
75352
75353         * lib/stdbool.h.in: New file.
75354
75355 2003-01-09  Bruno Haible  <bruno@clisp.org>
75356
75357         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75358         * MODULES.html.sh: Likewise.
75359
75360 2003-01-08  Jim Meyering  <jim@meyering.net>
75361
75362         * lib/full-write.c: Undefine and define-away `const' after inclusion
75363         of errno.h, not before.  Suggestion from Bruno Haible.
75364
75365 2003-01-08  Bruno Haible  <bruno@clisp.org>
75366
75367         * modules/full-read: Depend on full-write.
75368
75369 2003-01-08  Bruno Haible  <bruno@clisp.org>
75370
75371         * lib/safe-read.c: Include specification header first, to ensure its
75372         selfcontainedness.
75373         * lib/full-write.c: Likewise.
75374
75375 2003-01-07  Jim Meyering  <jim@meyering.net>
75376
75377         * lib/full-write.c: Rework so that it may serve to define full_read,
75378         too.
75379         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75380
75381 2003-01-07  Bruno Haible  <bruno@clisp.org>
75382
75383         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75384         <inttypes.h>.
75385         * lib/xstrtol.h: Likewise.
75386         * lib/xstrtoimax.c: Likewise.
75387         * lib/xstrtoumax.c: Likewise.
75388         * lib/human.h: Likewise.
75389
75390         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75391         on systems that have <inttypes.h> but not <stdint.h>.
75392
75393 2003-01-07  Bruno Haible  <bruno@clisp.org>
75394
75395         * MODULES.html.sh: Add copyright notice.
75396         (missed_files): Omit CVS directory entries.
75397         (func_module): Make it work with sed-3.02.
75398         * MODULES.txt: Remove file.
75399
75400 2003-01-06  Jim Meyering  <jim@meyering.net>
75401
75402         * lib/version-etc.c: Update year in translatable copyright string.
75403
75404 2003-01-03  Karl Berry  <karl@gnu.org>
75405
75406         * config/config.{guess,sub}: update from prep.
75407
75408 2003-01-02  Karl Berry  <karl@gnu.org>
75409
75410         * doc/COPYING.DOC: belatedly updated to 1.2.
75411
75412 2003-01-01  Karl Berry  <karl@gnu.org>
75413
75414         * gnulib-tool (func_verify_module): report module name $module in
75415         error message, not $1.
75416         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75417         be created, only if it doesn't exist.
75418         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75419
75420 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75421
75422         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75423
75424 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75425
75426         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75427         memcmp if strcoll doesn't work.
75428
75429 2002-12-31  Bruno Haible  <bruno@clisp.org>
75430
75431         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75432         nonempty.
75433
75434 2002-12-31  Bruno Haible  <bruno@clisp.org>
75435
75436         * lib/memcoll.c (STRCOLL): New macro.
75437         (memcoll): Use it.
75438
75439 2002-12-31  Bruno Haible  <bruno@clisp.org>
75440
75441         * lib/localcharset.h: New file.
75442         * lib/localcharset.c: Include it.
75443         * lib/unicodeio.c: Likewise.
75444
75445 2002-12-31  Bruno Haible  <bruno@clisp.org>
75446
75447         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75448         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75449
75450 2002-12-31  Bruno Haible  <bruno@clisp.org>
75451
75452         * lib/getline.h: Include <stddef.h>, for size_t.
75453
75454         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75455         * lib/unicodeio.c: Don't include <stddef.h>.
75456
75457 2002-12-31  Bruno Haible  <bruno@clisp.org>
75458
75459         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75460         HAVE_TM_ZONE.
75461
75462 2002-12-24  Karl Berry  <karl@gnu.org>
75463
75464         * config/config.guess: update from prep.
75465
75466 2002-12-24  Bruno Haible  <bruno@clisp.org>
75467
75468         General infrasructure.
75469         * m4/README: Rewritten.
75470         * m4/onceonly.m4: New file.
75471         * m4/onceonly_2_57.m4: New file.
75472
75473         Module atexit.
75474         * m4/atexit.m4: New file.
75475
75476         Module strtod.
75477         * m4/strtod.m4: New file.
75478
75479         Module strtol.
75480         * m4/strtol.m4: New file.
75481
75482         Module strtoul.
75483         * m4/strtoul.m4: New file.
75484
75485         Module memchr.
75486         * m4/memchr.m4: New file.
75487
75488         Module memcmp.
75489         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
75490         (jm_FUNC_MEMCMP): Invoke it.
75491
75492         Module memcpy.
75493         * m4/memcpy.m4: New file.
75494
75495         Module memmove.
75496         * m4/memmove.m4: New file.
75497
75498         Module memset.
75499         * m4/memset.m4: New file.
75500
75501         Module strcspn.
75502         * m4/strcspn.m4: New file.
75503
75504         Module strpbrk.
75505         * m4/strpbrk.m4: New file.
75506
75507         Module strstr.
75508         * m4/strstr.m4: New file.
75509
75510         Module strerror.
75511         * m4/strerror.m4: New file.
75512
75513         Module mktime.
75514         * m4/mktime.m4: Renamed from jm-mktime.m4.
75515         (gl_PREREQ_MKTIME): New macro.
75516         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
75517
75518         Module malloc.
75519         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
75520         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
75521         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
75522
75523         Module realloc.
75524         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
75525         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
75526         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
75527
75528         Module strftime.
75529         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
75530         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
75531         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
75532         gl_TM_GMTOFF.
75533         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
75534
75535         Module xalloc.
75536         * m4/xalloc.m4: New file.
75537
75538         Module alloca.
75539         * m4/alloca.m4: New file.
75540
75541         Module putenv.
75542         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
75543         (jm_FUNC_PUTENV): Invoke it.
75544
75545         Module setenv.
75546         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
75547         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
75548         when invoked twice.
75549         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
75550         gt_FUNC_SETENV.
75551
75552         Module memrchr.
75553         * m4/memrchr.m4: New file.
75554
75555         Module stpcpy.
75556         * m4/stpcpy.m4: New file.
75557
75558         Module strcase.
75559         * m4/strcase.m4: New file.
75560
75561         Module strdup.
75562         * m4/strdup.m4: New file.
75563
75564         Module strnlen.
75565         * m4/strnlen.m4: New file.
75566
75567         Module strndup.
75568         * m4/strndup.m4: New file.
75569
75570         Module xstrtod.
75571         * m4/xstrtod.m4: New file.
75572
75573         Module xstrtol.
75574         * m4/xstrtol.m4: New file.
75575
75576         Module getdate.
75577         * m4/getdate.m4: New file.
75578
75579         Module unlocked-io.
75580         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
75581         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
75582         * m4/jm-glibc-io.m4n: Remove file.
75583
75584         Module long-options.
75585         * m4/long-options.m4: New file.
75586
75587         Module md5.
75588         * m4/md5.m4: New file.
75589
75590         Module sha.
75591         * m4/sha.m4: New file.
75592
75593         Module getstr.
75594         * m4/getstr.m4: New file.
75595
75596         Module getline.
75597         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
75598         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
75599         <sys/types.h>, for size_t. Use the function name gnu_getline, not
75600         simply getline. Infoke gl_PREREQ_GETLINE.
75601
75602         Module obstack.
75603         * m4/obstack.m4: New file.
75604
75605         Module hash.
75606         * m4/hash.m4: New file.
75607
75608         Module readtokens.
75609         * m4/readtokens.m4: New file.
75610
75611         Module strverscmp.
75612         * m4/strverscmp.m4: New file.
75613
75614         Module stdbool.
75615         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
75616         OSF/1.
75617
75618         Module strtoll.
75619         * m4/strtoll.m4: New file.
75620
75621         Module strtoull.
75622         * m4/strtoull.m4: New file.
75623
75624         Module strtoimax.
75625         * m4/strtoimax.m4: New file.
75626
75627         Module strtoumax.
75628         * m4/strtoumax.m4: New file.
75629
75630         Module xstrtoimax.
75631         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
75632         jm_AC_PREREQ_XSTRTOIMAX.
75633         Moved the strtol prerequisites to strtol.m4.
75634         Moved the strtoll prerequisites to strtoll.m4.
75635         Moved the strtoimax prerequisites to strtoimax.m4.
75636
75637         Module xstrtoumax.
75638         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
75639         jm_AC_PREREQ_XSTRTOUMAX.
75640         Moved the strtoul prerequisites to strtoul.m4.
75641         Moved the strtoull prerequisites to strtoull.m4.
75642         Moved the strtoumax prerequisites to strtoumax.m4.
75643
75644         Module chown.
75645         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
75646         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
75647
75648         Module dup2.
75649         * m4/dup2.m4: New file.
75650
75651         Module ftruncate.
75652         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
75653         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
75654
75655         Module getgroups.
75656         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
75657         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
75658
75659         Module gettimeofday.
75660         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
75661         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
75662         gl_PREREQ_GETTIMEOFDAY.
75663
75664         Module mkdir.
75665         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
75666         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
75667
75668         Module mkstemp.
75669         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
75670         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
75671         jm_AC_TYPE_UINTMAX_T.
75672         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
75673
75674         Module stat.
75675         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
75676         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
75677
75678         Module lstat.
75679         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
75680         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
75681
75682         Module timespec.
75683         * m4/timespec.m4 (gl_TIMESPEC): New macro.
75684         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
75685         * m4/st_mtim.m4: Indentation.
75686
75687         Module nanosleep.
75688         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
75689         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
75690         gl_PREREQ_NANOSLEEP.
75691
75692         Module regex.
75693         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
75694         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
75695         (gl_REGEX): New macro.
75696
75697         Module rename.
75698         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
75699         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
75700
75701         Module rmdir.
75702         * m4/rmdir.m4: New file.
75703
75704         Module utime.
75705         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
75706         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
75707         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
75708
75709         Module dirname.
75710         * m4/dirname.m4: New file.
75711
75712         Module getopt.
75713         * m4/getopt.m4: New file.
75714
75715         Module unistd-safer.
75716         * m4/unistd-safer.m4: New file.
75717
75718         Module fnmatch.
75719         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
75720         declaration.
75721         (gl_PREREQ_FNMATCH_EXTRA): New macro.
75722         (gl_FUNC_FNMATCH_POSIX): New macro.
75723         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
75724         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
75725         simply fnmatch.
75726
75727         Module exclude.
75728         * m4/exclude.m4: New file.
75729
75730         Module human.
75731         * m4/human.m4: New file.
75732
75733         Module acl.
75734         * m4/acl.m4: Nop.
75735
75736         Module backupfile.
75737         * m4/backupfile.m4: New file.
75738         * m4/d-ino.m4: Indentation.
75739
75740         Module fsusage.
75741         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
75742         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
75743         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
75744
75745         Module dirfd.
75746         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
75747         requirements.
75748
75749         Module euidaccess.
75750         * m4/euidaccess.m4: New file.
75751
75752         Module file-type.
75753         * m4/file-type.m4: New file.
75754
75755         Module fileblocks.
75756         * m4/fileblocks.m4: New file.
75757
75758         Module filemode.
75759         * m4/filemode.m4: New file.
75760
75761         Module isdir.
75762         * m4/isdir.m4: New file.
75763
75764         Module lchown.
75765         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
75766         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
75767
75768         Module makepath.
75769         * m4/makepath.m4: New file.
75770
75771         Module modechange.
75772         * m4/modechange.m4: New file.
75773
75774         Module mountlist.
75775         * m4/mountlist.m4: New file.
75776         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
75777         Indentation.
75778
75779         Module path-concat.
75780         * m4/path-concat.m4: New file.
75781
75782         Module pathmax.
75783         * m4/pathmax.m4: New file.
75784
75785         Module same.
75786         * m4/same.m4: New file.
75787
75788         Module save-cwd.
75789         * m4/save-cwd.m4: New file.
75790
75791         Module savedir.
75792         * m4/savedir.m4: New file.
75793
75794         Module xgetcwd.
75795         * m4/xgetcwd.m4: New file.
75796         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
75797
75798         Module xreadlink.
75799         * m4/xreadlink.m4: New file.
75800
75801         Module safe-read.
75802         * m4/safe-read.m4: New file.
75803
75804         Module safe-write.
75805         * m4/safe-write.m4: New file.
75806
75807         Module closeout.
75808         * m4/closeout.m4: New file.
75809
75810         Module stdio-safer.
75811         * m4/stdio-safer.m4: New file.
75812
75813         Module getpass.
75814         * m4/getpass.m4: New file.
75815
75816         Module getugroups.
75817         * m4/getugroups.m4: New file.
75818
75819         Module group-member.
75820         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
75821         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
75822
75823         Module idcache.
75824         * m4/idcache.m4: New file.
75825
75826         Module userspec.
75827         * m4/userspec.m4: New file.
75828
75829         Module gettime.
75830         * m4/clock_time.m4: New file.
75831         * m4/gettime.m4: New file.
75832
75833         Module settime.
75834         * m4/settime.m4: New file.
75835
75836         Module posixtm.
75837         * m4/posixtm.m4: New file.
75838
75839         Module gethostname.
75840         * m4/gethostname.m4: New file.
75841
75842         Module canon-host.
75843         * m4/canon-host.m4: New file.
75844
75845         Module gettext.
75846         * m4/codeset.m4: New file, from gettext-0.11.5.
75847         * m4/gettext.m4: New file, from gettext-0.11.5.
75848         * m4/glibc21.m4: New file, from gettext-0.11.5.
75849         * m4/iconv.m4: New file, from gettext-0.11.5.
75850         * m4/intdiv0.m4: New file, from gettext-0.11.5.
75851         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
75852         * m4/inttypes.m4: New file, from gettext-0.11.5.
75853         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
75854         * m4/isc-posix.m4: New file, from gettext-0.11.5.
75855         * m4/lcmessage.m4: New file, from gettext-0.11.5.
75856         * m4/lib-ld.m4: New file, from gettext-0.11.5.
75857         * m4/lib-link.m4: New file, from gettext-0.11.5.
75858         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
75859         * m4/progtest.m4: New file, from gettext-0.11.5.
75860         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
75861         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
75862         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
75863
75864         Module localcharset.
75865         * m4/localcharset.m4: New file.
75866
75867         Module hard-locale.
75868         * m4/hard-locale.m4: New file.
75869
75870         Module mbswidth.
75871         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
75872         onceonly macros.
75873         * m4/mbrtowc.m4: Add comment.
75874
75875         Module memcasecmp.
75876         * m4/memcasecmp.m4: New file.
75877
75878         Module memcoll.
75879         * m4/memcoll.m4: New file.
75880
75881         Module unicodeio.
75882         * m4/unicodeio.m4: New file.
75883
75884         Module rpmatch.
75885         * m4/rpmatch.m4: New file.
75886
75887         Module yesno.
75888         * m4/yesno.m4: New file.
75889
75890         Module exitfail.
75891         * m4/exitfail.m4: New file.
75892
75893         Module c-stack.
75894         * m4/c-stack.m4 (gl_C_STACK): New macro.
75895         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
75896
75897         Module error.
75898         * m4/error.m4 (gl_ERROR): New macro.
75899         (jm_PREREQ_ERROR): Use onceonly macros.
75900
75901         Module fatal.
75902         * m4/fatal.m4: New file.
75903
75904         Module getloadavg.
75905         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
75906         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
75907
75908         Module getpagesize.
75909         * m4/getpagesize.m4: New file.
75910
75911         Module getusershell.
75912         * m4/getusershell.m4: New file.
75913
75914         Module physmem.
75915         * m4/physmem.m4: New file.
75916
75917         Module posixver.
75918         * m4/posixver.m4: New file.
75919
75920         Module quotearg.
75921         * m4/quotearg.m4: New file.
75922
75923         Module quote.
75924         * m4/quote.m4: New file.
75925
75926         Module readutmp.
75927         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
75928
75929         Module sig2str.
75930         * m4/sig2str.m4: New file.
75931
75932         Other.
75933         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
75934         ulonglong.m4.
75935         * m4/intmax_t.m4: New file.
75936         * m4/d-type.m4: Indentation.
75937         * m4/jm-macros.m4: Update.
75938         * m4/prereq.m4 (jm_PREREQ): Update.
75939         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
75940         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
75941         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
75942         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
75943         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
75944         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
75945         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
75946         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
75947         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
75948         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
75949         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
75950         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
75951         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
75952         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
75953         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
75954         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
75955         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
75956         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
75957         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
75958
75959 2002-12-24  Bruno Haible  <bruno@clisp.org>
75960
75961         * MODULES.txt: Update according to m4/ changes.
75962
75963         Module gettext.
75964         * config.rpath: New file, from gettext-0.11.5.
75965
75966         * modules/*: New module descriptions.
75967         * gnulib-tool: New file.
75968         * MODULES.html.sh: New file.
75969
75970 2002-12-21  Karl Berry  <karl@gnu.org>
75971
75972         * doc/fdl.texi: update to version 1.2.
75973
75974 2002-12-19  Karl Berry  <karl@gnu.org>
75975
75976         * config/config.guess: update from prep.
75977
75978 2002-12-18  Bruno Haible  <bruno@clisp.org>
75979
75980         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
75981         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
75982
75983 2002-12-17  Bruno Haible  <bruno@clisp.org>
75984
75985         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
75986         stdlib.h, string.h.
75987
75988 2002-12-17  Bruno Haible  <bruno@clisp.org>
75989
75990         * lib/canon-host.c (strdup): Remove unused declaration.
75991
75992         * lib/fsusage.c: Include full_read.h.
75993         (get_fs_usage): Use full_read instead of safe_read.
75994
75995         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
75996
75997 2002-12-12  Karl Berry  <karl@gnu.org>
75998
75999         * config/config.guess: update from prep.
76000
76001 2002-12-11  Bruno Haible  <bruno@clisp.org>
76002
76003         * m4/setenv.m4: New file, from gettext-0.11.5.
76004
76005 2002-12-11  Bruno Haible  <bruno@clisp.org>
76006
76007         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
76008         not unsetenv().
76009         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
76010         modifications:
76011
76012         2002-12-11  Bruno Haible  <bruno@clisp.org>
76013
76014                 * setenv.c (alloca): Fall back to malloc.
76015                 (freea): New macro.
76016                 (setenv): Use freea() to free memory allocated with alloca().
76017
76018         2002-11-13  Bruno Haible  <bruno@clisp.org>
76019
76020                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
76021                 function declarations.
76022                 * unsetenv.c (unsetenv): Likewise.
76023
76024         2002-03-04  Bruno Haible  <bruno@clisp.org>
76025
76026                 Portability to AIX 4.3.3.
76027                 * unsetenv.c: New file, extracted from setenv.c.
76028                 * setenv.c: Move the unsetenv() function to unsetenv.c.
76029
76030         2001-12-20  Bruno Haible  <bruno@clisp.org>
76031
76032                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
76033                 use malloc instead. For SunOS 4.
76034
76035         2001-12-11  Bruno Haible  <bruno@clisp.org>
76036
76037                 * setenv.c: Declare alloca.
76038                 (compar_fn_t): New typedef.
76039                 (KNOWN_VALUE, STORE_VALUE): Use it.
76040
76041         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
76042         setenv.h.
76043
76044 2002-12-10  Paul Eggert  <eggert@twinsun.com>
76045
76046         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
76047         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
76048         Choose values that are less likely to collide with system fnmatch
76049         options.
76050         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
76051         defined (e.g., a pure POSIX system).
76052         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
76053         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
76054
76055 2002-12-06  Paul Eggert  <eggert@twinsun.com>
76056
76057         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
76058         a pain in practice to deal with generated m4 files.  This change
76059         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
76060
76061         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
76062         and jm-glibc-io.m4, as they are no longer a special case.
76063         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
76064         kludge and the auto-generation stuff.  Check only whether the
76065         functions are declared, not whether they exist, since older hosts
76066         that don't declare the functions can't use the optimization anyway.
76067
76068 2002-12-06  Jim Meyering  <jim@meyering.net>
76069
76070         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
76071
76072         Merge in changes from libc's misc/error.c, in preparation
76073         for the merge of gnulib's changes back into libc.
76074
76075         * lib/error.c (_): Define only if not already defined.
76076         Move definition to follow all #include directives.
76077         Include unlocked-io.h only if !_LIBC.
76078         [_LIBC]: Include <libio/libioP.h>.
76079         [USE_IN_LIBIO]: Include <libio/iolibio.h>
76080         (fflush): Tweak definition to use INTUSE.
76081         (putc): Define.
76082
76083 2002-12-05  Paul Eggert  <eggert@twinsun.com>
76084
76085         * lib/alloca.c [defined emacs]: Include "lisp.h".
76086         (xalloc_die) [defined emacs]: New macro.
76087         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
76088         [! defined emacs]: Include <xalloc.h>.
76089         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
76090         (pointer): Typedef to POINTER_TYPE *.
76091         (malloc): Remove decl; we now always use xmalloc.
76092         (alloca): Use old-style definition, since Emacs needs this.
76093         Check for arithmetic overflow when computing combined size.
76094
76095 2002-12-04  Paul Eggert  <eggert@twinsun.com>
76096
76097         Do not generate unlocked-io.h automatically, since it's easier to
76098         maintain it by hand.
76099
76100         * lib/unlocked-io.h: New file, from GNU diffutils,
76101         but with proper copyright notice and attribution.
76102         * lib/gen-uio: Remove.
76103         * lib/Makefile.am: Add copyright notice.
76104         (libfetish_a_SOURCES): Add unlocked-io.h.
76105         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
76106         (DISTCLEANFILES, io_functions): Remove macros.
76107         (EXTRA_DIST): Remove gen_uio.
76108         (unlocked-io.h): Remove rule.
76109
76110 2002-12-04  Jim Meyering  <jim@meyering.net>
76111
76112         Reflect the fact that stat.c and lstat.c are no longer generated.
76113         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
76114         (DISTCLEANFILES): Likewise.
76115         (EXTRA_DIST): Likewise.
76116         (all_local): Don't depend on stat.c or lstat.c.
76117         (stat.c, lstat.c): Remove rules.
76118         (EXTRA_DIST): Remove xstat.in.
76119
76120         * lib/xstat.in: Remove file.  Contents moved into stat.c.
76121         * lib/stat.c: New file.  Contents mostly from xstat.in.
76122         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
76123         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
76124
76125         * lib/safe-read.c: Rework so that it may serve to define safe_write,
76126         too.
76127         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
76128
76129 2002-12-03  Jim Meyering  <jim@meyering.net>
76130
76131         * lib/safe-read.c, safe-write.c: Change variable names and comments,
76132         but not semantics, to minimize the differences between these two files.
76133         (safe_read): Change comment to mention SAFE_READ_ERROR.
76134
76135         * lib/safe-read.c (IS_EINTR): Define.
76136         (safe_read): Use IS_EINTR in place of in-function cpp directives.
76137
76138 2002-12-02  Jim Meyering  <jim@meyering.net>
76139
76140         * lib/safe-read.c (EINTR): Define.
76141         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76142         (INT_MAX): Provide fallback.
76143         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
76144
76145         * lib/safe-read.h (SAFE_READ_ERROR): Define.
76146
76147 2002-12-02  Bruno Haible  <bruno@clisp.org>
76148
76149         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
76150         Define, taken from safe-read.c.
76151         (INT_MAX): Provide fallback.
76152         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
76153         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
76154
76155         * lib/safe-read.c (EINTR): Remove definition.
76156         (safe_read): Don't use EINTR if it is absent.
76157
76158 2002-12-01  Jim Meyering  <jim@meyering.net>
76159
76160         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
76161         zero.
76162         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
76163
76164 2002-11-27  Paul Eggert  <eggert@twinsun.com>
76165
76166         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
76167         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
76168         with `if (! (value < limit)) abort ();', for readability.
76169
76170 2002-11-26  Karl Berry  <karl@gnu.org>
76171
76172         * lib/strdup.c: copy from libc again, with jim's ok.
76173         * lib/.cppi-disable: re-add strdup.c
76174
76175 2002-11-25  Karl Berry  <karl@gnu.org>
76176
76177         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
76178         instead of "strtol.c".
76179
76180 2002-11-25  Karl Berry  <karl@gnu.org>
76181
76182         * config/install-sh: update from automake for variable quoting, $0 in
76183         error msgs, etc.
76184
76185         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
76186         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
76187         entry.
76188
76189 2002-11-25  Jim Meyering  <jim@meyering.net>
76190
76191         * lib/mktime.c: Sync from libc, now that it has the latest fix.
76192
76193 2002-11-24  Karl Berry  <karl@gnu.org>
76194
76195         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76196         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76197
76198 2002-11-24  Jim Meyering  <jim@meyering.net>
76199
76200         Update from coreutils:
76201
76202         * lib/mktime.c: Merge in changes from libc.
76203
76204         Avoid a link-time failure on some Linux systems.
76205         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76206         (otherwise).
76207         (__mon_yday): Declare with the STATIC attribute.
76208         (__mktime_internal): Likewise.
76209         Based on a report from Greg Schafer.
76210
76211 2002-11-23  Jim Meyering  <jim@meyering.net>
76212
76213         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76214         Use `unsigned', not `int', as type of index.
76215
76216         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76217
76218         * lib/fsusage.c: Remove unneeded parentheses around operands of
76219         `defined'.
76220
76221 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76222
76223         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76224         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76225         so that we can be included first.
76226         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76227         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76228         No need to include stddef.h or sys/types.h any more.
76229         Surround local include files with "", not "<>".
76230         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76231         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76232         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76233         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76234         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76235         (ISPRINT): Remove; no longer needed now that we assume C89.
76236
76237         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76238         Preserve errno.
76239
76240         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76241         quotearg_char): Use SIZE_MAX rather than
76242         (size_t) -1 when we are talking about "infinity".
76243
76244         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76245
76246 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76247
76248         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76249         hint that one should use `if (! x) abort ();' rather than `assert
76250         (x);', and anyway it's one less thing to worry about configuring.
76251         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76252         hash_rehash, hash_insert): Use abort rather than assert.
76253
76254 2002-11-22  Bruno Haible  <bruno@clisp.org>
76255
76256         * lib/safe-read.h: Assume C89. Add comments.
76257         (safe_read): Change return type to size_t.
76258         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76259         byte counts > SSIZE_MAX correctly.
76260         * lib/safe-write.h: New file.
76261         * lib/safe-write.c: New file.
76262         * lib/full-read.h: New file.
76263         * lib/full-read.c: New file.
76264         * lib/full-write.h: Assume C89. Add comments.
76265         * lib/full-write.c: Include safe-write.h.
76266         (full_write): Rewritten to use safe_write.
76267         Suggested by Jim Meyering and Paul Eggert.
76268
76269 2002-11-21  Jim Meyering  <jim@meyering.net>
76270
76271         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
76272
76273         Merge in changes from the coreutils.
76274
76275         2002-09-25  Paul Eggert  <eggert@twinsun.com>
76276         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
76277         <stdint.h>.
76278         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
76279         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
76280         int.  Work more efficiently if X is the same width as uintmax_t.
76281         Do not compare X to -1, to avoid bogus compiler warning.
76282         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
76283         Don't assume that f_frsize and f_bsize are the same type.
76284
76285         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
76286         warning on FreeBSD.
76287
76288         * lib/makepath.c (make_path): Restore umask *before* creating the final
76289         component.
76290         (make_path): Minor reformatting.
76291
76292         * lib/xmalloc.c: Adjust to work with new autoconf macros,
76293         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
76294         HAVE_MALLOC/HAVE_REALLOC.
76295
76296         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
76297         dummy ones.  At least on GNU/Linux systems, `auto' means something
76298         else.
76299         From Michael Stone.
76300
76301 2002-11-21  Bruno Haible  <bruno@clisp.org>
76302
76303         Remove case insensitive option matching.
76304         * lib/argmatch.h (argcasematch): Remove declaration.
76305         (ARGCASEMATCH): Remove macro.
76306         (__xargmatch_internal): Remove case_sensitive argument.
76307         (XARGMATCH): Update.
76308         (XARGCASEMATCH): Remove macro.
76309         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
76310         case_sensitive argument.
76311         (argcasematch): Remove function.
76312         (__xargmatch_internal): Remove case_sensitive argument.
76313         (main): Use XARGMATCH instead of XARGCASEMATCH.
76314
76315         * lib/xmalloc.c: Change compile-time error message. Add comment about
76316         required autoconf version.
76317
76318 2002-11-20  Paul Eggert  <eggert@twinsun.com>
76319
76320         Merge argmatch cleanups from Bison.  Assume C89.
76321
76322         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76323         Include stdlib.h, for EXIT_FAILURE.
76324         Always include <string.h>, since we assume C89.
76325         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76326         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76327         Include <stddef.h> instead, since it's all we need for size_t.
76328         (PARAMS): Remove.  All uses removed.
76329         (ARRAY_CARDINALITY): Do not bother to #undef.
76330         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76331         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76332         Remove unnecessary parentheses.
76333         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76334         Insert necessary parentheses.
76335         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76336         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76337
76338 2002-11-19  Bruno Haible  <bruno@clisp.org>
76339
76340         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76341         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76342
76343         * lib/mbswidth.h (PARAMS): Remove macro.
76344         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76345         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76346
76347         * lib/gcd.h (PARAMS): Remove macro.
76348         (gcd): Use ANSI C function declarations.
76349         * lib/gcd.c (gcd): Likewise.
76350
76351 2002-11-15  Bruno Haible  <bruno@clisp.org>
76352
76353         * lib/strcspn.c: Include <stddef.h>.
76354         (strcspn): Use ANSI C function declaration. Change return type to
76355         size_t. Use NULL.
76356         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76357         (strpbrk): Use NULL.
76358         * lib/strpbrk.h (PARAMS): Remove macro.
76359         (strpbrk): Use ANSI C function declaration.
76360         * lib/strstr.c: Don't include <sys/types.h>.
76361         * lib/strstr.h (PARAMS): Remove macro.
76362         (strstr): Use ANSI C function declarations.
76363
76364 2002-11-14  Karl Berry  <karl@gnu.org>
76365
76366         * config/mkinstalldirs: `do' on separate line, instead of
76367         `for var; do'.
76368
76369 2002-11-06  Bruno Haible  <bruno@clisp.org>
76370
76371         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76372         * lib/gcd.c (gcd): Likewise.
76373
76374 2002-11-05  Bruno Haible  <bruno@clisp.org>
76375
76376         * lib/gcd.h: New file, from gettext-0.11.5.
76377         * lib/gcd.c: New file, from gettext-0.11.5.
76378
76379 2002-11-05  Bruno Haible  <bruno@clisp.org>
76380
76381         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76382         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76383         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76384         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76385
76386         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76387         <libintl.h>.
76388         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76389         <libintl.h>.
76390
76391         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76392         * lib/human.c: Include gettext.h instead of <libintl.h>.
76393         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76394         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76395         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76396         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76397         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76398         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76399         (textdomain): Remove definition.
76400         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76401
76402         * lib/long-options.c: Remove include of <libintl.h> and definition of
76403         _.
76404         * lib/same.c: Remove include of <libintl.h> and definition of _.
76405
76406 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76407
76408         * lib/config.charset: A few additions for Solaris.
76409
76410 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76411
76412         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76413         * lib/localcharset.c (locale_charset): Declare as extern "C".
76414
76415 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76416
76417         * lib/config.charset: msdos in uk_UA uses CP1125.
76418
76419 2002-11-04  Bruno Haible  <bruno@clisp.org>
76420
76421         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76422         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76423         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76424         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76425         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76426
76427 2002-11-04  Bruno Haible  <bruno@clisp.org>
76428
76429         * lib/localcharset.c (locale_charset): Don't return an empty string.
76430
76431 2002-11-04  Bruno Haible  <bruno@clisp.org>
76432
76433         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76434         aliases.
76435
76436 2002-11-04  Bruno Haible  <bruno@clisp.org>
76437
76438         * lib/config.charset: Update for newest glibc. Add canonical names
76439         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76440
76441 2002-11-04  Bruno Haible  <bruno@clisp.org>
76442
76443         * lib/config.charset: Add support for NetBSD.
76444
76445 2002-11-04  Bruno Haible  <bruno@clisp.org>
76446
76447         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76448
76449 2002-11-01  Bruno Haible  <bruno@clisp.org>
76450
76451         * configure.in: Add AC_CONFIG_AUX_DIR call.
76452         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76453         test/Makefile.
76454         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76455
76456 2002-09-28  Karl Berry  <karl@gnu.org>
76457
76458         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76459         installed automake until the next release, since changes have been
76460         made.
76461
76462 2002-09-25  Karl Berry  <karl@gnu.org>
76463
76464         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76465         * lib/getopt*: copy from libc/posix.
76466         * lib/gettext.h: copy from gettext.
76467         * lib/.cppi-disable: add strdup.c, gettext.h.
76468
76469 2002-09-25  Karl Berry  <karl@gnu.org>
76470
76471         * config/srclist.txt: enable gettext.h check.
76472         * config/config.{guess,sub}: update from prep.
76473         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
76474                 from automake 1.6.3.
76475         See srclist*.
76476
76477 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
76478
76479         * regex.c (PATFETCH): Remove the translating fetch.
76480         (PATFETCH_RAW): Rename to PATFETCH.
76481         (set_image_of_range): New fun.
76482         (SET_RANGE_TABLE_WORK_AREA): Use it.
76483         (regex_compile): Don't translate the pattern chars so eagerly.
76484         Only do it when inserting an `exactn' bytecode or when handling
76485         a char-range.
76486         (mutually_exclusive_p): Avoid empty statement.
76487
76488 2002-07-06  Jim Meyering  <meyering@lucent.com>
76489
76490         * m4/README: Don't mention Makefile.am.in.
76491         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
76492
76493 2002-07-01  Jim Meyering  <meyering@lucent.com>
76494
76495         * lib/c-stack.c: Include sys/time.h.
76496         From Volker Borchert.
76497
76498 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76499
76500         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
76501
76502 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76503
76504         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
76505         New macro.  Use it uniformly instead of
76506         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
76507         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
76508         reported by Vin Shelton.
76509
76510 2002-06-22  Paul Eggert  <eggert@twinsun.com>
76511
76512         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
76513         Do not assume SA_SIGINFO behavior.
76514         Bug reported by Jim Meyering on NetBSD 1.5.2.
76515
76516 2002-06-22  Jim Meyering  <meyering@lucent.com>
76517
76518         * m4/c-stack.m4: New file, from diffutils-2.8.2.
76519         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
76520
76521         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
76522         now that configure.ac uses AC_GNU_SOURCE.
76523         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
76524         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
76525
76526         Update to latest tools.  Suggestions from Paul Eggert.
76527         * m4/stdbool.m4: New file, from diffutils-2.8.2.
76528         * m4/gnu-source.m4: Update from diffutils-2.8.2.
76529         * m4/fnmatch.m4: Likewise.
76530         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
76531         to AC_HEADER_STDBOOL
76532
76533 2002-06-22  Jim Meyering  <meyering@lucent.com>
76534
76535         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
76536         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
76537
76538 2002-06-22  Jim Meyering  <meyering@lucent.com>
76539
76540         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
76541
76542         * lib/exitfail.c, exitfail.h: Likewise.
76543         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
76544
76545         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
76546         of fnmatch.h.
76547         (EXTRA_DIST): Add fnmatch_loop.c.
76548         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
76549
76550         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
76551         * lib/fnmatch.c: Update from diffutils-2.8.2.
76552         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
76553         * lib/fnmatch.h: Remove file.
76554
76555 2002-06-21  Jim Meyering  <meyering@lucent.com>
76556
76557         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
76558         * m4/mbrtowc.m4: Likewise.
76559
76560         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
76561         * m4/mbswidth.m4: Reflect name change:
76562         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
76563         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76564
76565         * m4/lib-link.m4: Update from gettext-0.11.2.
76566         * m4/gettext.m4: Likewise.
76567
76568         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
76569         From Alfred M. Szmidt.
76570
76571 2002-06-18  Paul Eggert  <eggert@twinsun.com>
76572
76573         * lib/file-type.h: Report an error if neither S_ISREG nor
76574         S_IFREG is defined, instead of using a test specific to glibc
76575         2.2.  This should be safe, since POSIX requires S_ISREG and
76576         Unix Version 7 had S_IFREG.  We don't need to check for
76577         <sys/types.h> since we don't use any symbols that it defines.
76578
76579 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
76580
76581         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
76582         $@-t, so that each temporary file name is unique and valid in the first
76583         8 characters, for operation under DOS.
76584
76585 2002-06-15  Paul Eggert  <eggert@twinsun.com>
76586
76587         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
76588
76589 2002-06-15  Jim Meyering  <meyering@lucent.com>
76590
76591         Work even with DJGPP 2.03, which lacks support for symlinks.
76592         From Richard Dawe.
76593         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
76594         is defined.
76595         * lib/lchown.c (S_ISLNK): Likewise.
76596
76597 2002-06-15  Jim Meyering  <meyering@lucent.com>
76598
76599         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
76600         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
76601         have been included before this file.
76602
76603 2002-06-14  Jim Meyering  <meyering@lucent.com>
76604
76605         * lib/file-type.h: Use the version from diffutils-2.8.2.
76606         * lib/file-type.c: Likewise.
76607
76608 2002-06-07  Jim Meyering  <meyering@lucent.com>
76609
76610         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
76611         They're needed at least for NetBSD 1.5.2.
76612         ($statxfs_includes): Include those same headers.
76613         ($statxfs_includes): Include sys/vfs.h if available.
76614         ($statxfs_includes): Likewise for sys/statvfs.h.
76615         Check for the following members in both structs statfs and statvfs:
76616         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
76617
76618 2002-06-01  Jim Meyering  <meyering@lucent.com>
76619
76620         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
76621         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
76622
76623 2002-05-28  Jim Meyering  <meyering@lucent.com>
76624
76625         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
76626         Reported by Volker Borchert.
76627
76628 2002-05-27  Jim Meyering  <meyering@lucent.com>
76629
76630         Fix a problem seen only on nonconforming systems whereby ls.c's
76631         use of localtime, and then of gettimeofday would cause trouble:
76632         the localtime call used to initialize rpl_gettimeofday's save
76633         mechanism would clobber ls's current local time information so
76634         that in any long listing the first file would always be listed
76635         with date 1970-01-01.  Analysis by Volker Borchert.
76636
76637         * lib/gettimeofday.c (localtime): Undefine.
76638         (rpl_localtime): New function.
76639
76640 2002-05-27  Jim Meyering  <meyering@lucent.com>
76641
76642         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
76643         localtime.
76644
76645         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
76646         use the replacement function; it wouldn't resolve at link time.
76647         Reported by Volker Borchert.
76648
76649 2002-05-22  Jim Meyering  <meyering@lucent.com>
76650
76651         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
76652         file-type.h.
76653         * lib/file-type.h: New file.
76654         * lib/file-type.c (file_type): New file/function.  Extracted from
76655         diffutils.
76656
76657 2002-04-30  Jim Meyering  <meyering@lucent.com>
76658
76659         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
76660
76661 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76662
76663         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
76664
76665 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76666
76667         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
76668         Do not check for alloca.h (no longer used) or stdbool.h (was never
76669         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
76670
76671 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76672
76673         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
76674
76675 2002-04-29  Jim Meyering  <meyering@lucent.com>
76676
76677         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
76678         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
76679         Use AC_FUNC_STRNLEN here instead.
76680
76681         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
76682         With autoconf-2.53a, it's part of AC_PROG_CC.
76683
76684 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76685
76686         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
76687         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
76688
76689 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76690
76691         * lib/sig2str.h, lib/sig2str.c: New files.
76692         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
76693
76694 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76695
76696         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
76697         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
76698         of 127, since 64 is the largest conceivable number for ancient
76699         nonstandard hosts.
76700         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
76701
76702 2002-04-28  Jim Meyering  <meyering@lucent.com>
76703
76704         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
76705
76706 2002-04-24  Jim Meyering  <meyering@lucent.com>
76707
76708         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
76709         (jm_PREREQ): Use it.
76710
76711         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
76712         mach/mach.h fcntl.h.
76713         Check for this function: setlocale.
76714
76715 2002-04-24  Jim Meyering  <meyering@lucent.com>
76716
76717         * lib/gettext.h: New file, from Gettext.
76718         * lib/Makefile.am (INCLUDES): Remove -I../intl.
76719         (libfetish_a_SOURCES): Add gettext.h.
76720
76721 2002-04-16  Jim Meyering  <meyering@lucent.com>
76722
76723         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
76724         ut_pid, ut_id, ut_exit.
76725
76726 2002-04-16  Jim Meyering  <meyering@lucent.com>
76727
76728         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
76729         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
76730         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
76731
76732 2002-04-12  Jim Meyering  <meyering@lucent.com>
76733
76734         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
76735         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
76736         existence of the getmntinfo function.  Needed for Darwin 5.3.
76737
76738         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
76739         This is necessary at least on Darwin 5.3.
76740
76741         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
76742         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
76743         strnlen.o in the library, and that makes some versions of ranlib
76744         object.
76745
76746 2002-04-12  Jim Meyering  <meyering@lucent.com>
76747
76748         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
76749
76750 2002-04-09  Jim Meyering  <meyering@lucent.com>
76751
76752         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
76753         to be more precise.  Rather than saying we're checking whether the
76754         function `works', say what we're testing.
76755         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
76756         Reported by Bruno Haible.
76757
76758 2002-03-10  Jim Meyering  <meyering@lucent.com>
76759
76760         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
76761         Suggestion from Santiago Vila.
76762
76763 2002-03-08  Jim Meyering  <meyering@lucent.com>
76764
76765         * lib/rename.c: Mention that this wrapper is needed also on
76766         mips-dec-ultrix4.4 systems.
76767
76768 2002-03-02  Jim Meyering  <meyering@lucent.com>
76769
76770         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
76771         not HAVE_CLOCK_SETTIME.
76772
76773 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76774
76775         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
76776         Check for clock_settime.
76777
76778 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76779
76780         * lib/nanosleep.h: Rename to....
76781         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
76782
76783         * lib/gettime.c: New file.
76784         * lib/settime.c: New file.
76785         * lib/stime.c: Remove.
76786
76787         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
76788         timespec.h.  Remove nanosleep.h.
76789
76790 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76791
76792         * m4/acl.m4: New file.
76793         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
76794         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
76795
76796 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76797
76798         * lib/acl.c, lib/acl.h: New files.
76799         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
76800
76801 2002-02-24  Jim Meyering  <meyering@lucent.com>
76802
76803         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
76804         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
76805         cause trouble.  Reported by Nelson Beebe.
76806
76807 2002-02-23  Paul Eggert  <eggert@twinsun.com>
76808
76809         * lib/path-concat.c (xpath_concat): Reorder code to pacify
76810         compilers that don't know that xalloc_die never returns.
76811
76812 2002-02-20  Jim Meyering  <meyering@lucent.com>
76813
76814         * lib/getdate.c: Regenerate using bison-1.33.
76815
76816 2002-02-17  Jim Meyering  <meyering@lucent.com>
76817
76818         * config/config.guess (main): Don't use `head -1'; it's no longer
76819         portable. Use `sed 1q' instead.
76820
76821 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
76822
76823         * m4/codeset.m4: Upgrade to gettext-0.11.
76824         * m4/gettext.m4: Upgrade to gettext-0.11.
76825         * m4/glibc21.m4: Upgrade to gettext-0.11.
76826         * m4/iconv.m4: Upgrade to gettext-0.11.
76827         * m4/isc-posix.m4: Upgrade to gettext-0.11.
76828         * m4/lcmessage.m4: Upgrade to gettext-0.11.
76829         * m4/lib-ld.m4: New file, from gettext-0.11.
76830         * m4/lib-link.m4: New file, from gettext-0.11.
76831         * m4/lib-prefix.m4: New file, from gettext-0.11.
76832         * m4/progtest.m4: Upgrade to gettext-0.11.
76833
76834 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76835
76836         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
76837         (jm_PREREQ): Use it.
76838
76839 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76840
76841         * lib/posixver.c, lib/posixver.h: New files.
76842         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76843
76844 2002-02-02  Paul Eggert  <eggert@twinsun.com>
76845             Bruno Haible  <bruno@clisp.org>
76846
76847         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
76848         (fwrite_success_callback): New declaration.
76849         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
76850         print_unicode_char. Call failure callback instead of error.
76851         (fwrite_success_callback): New function.
76852         (exit_failure_callback): New function.
76853         (fallback_failure_callback): New function.
76854         (print_unicode_char): Call unicode_to_mb.
76855
76856 2002-01-26  Jim Meyering  <meyering@lucent.com>
76857
76858         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
76859         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
76860
76861 2002-01-26  Jim Meyering  <meyering@lucent.com>
76862
76863         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
76864
76865 2002-01-22  Paul Eggert  <eggert@twinsun.com>
76866
76867         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
76868
76869 2002-01-22  Jim Meyering  <meyering@lucent.com>
76870
76871         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
76872         Otherwise, some versions of automake would omit the rule that makes
76873         Makefile from Makefile.in.
76874
76875 2002-01-21  Paul Eggert  <eggert@twinsun.com>
76876
76877         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
76878         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76879         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
76880         (memcoll): Set errno to zero if there is no error.
76881
76882         * lib/quotearg.c (quotearg_buffer_restyled):
76883         Fix bug with quoting buffers containing NUL when backslashing escapes.
76884         This bug was exposed by the other changes in this patch.
76885         (quotearg_n_options): New arg ARGSIZE.
76886         All callers changed.
76887         (quoting_options_from_style): New function.
76888         (quotearg_n_style): Use it.
76889         (quotearg_n_style_mem): New function.
76890
76891         * lib/quotearg.h (quotearg_n_style_mem): New function.
76892
76893 2002-01-19  Jim Meyering  <meyering@lucent.com>
76894
76895         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
76896         Remove useless quotes: DF_PROG="df".
76897         * m4/strnlen.m4: New file.
76898
76899 2002-01-16  Paul Eggert  <eggert@twinsun.com>
76900
76901         * lib/backupfile.c (ISDIGIT): Comment fix.
76902         * lib/getdate.y (ISDIGIT): Likewise.
76903         * lib/posixtm.c (ISDIGIT, year): Likewise.
76904         * lib/strverscmp.c (ISDIGIT): Likewise.
76905         * lib/userspec.c (ISDIGIT): Likewise.
76906
76907 2002-01-16  Jim Meyering  <meyering@lucent.com>
76908
76909         * lib/getdate.y: Add three semicolons, each just before a closing
76910         brace. Bison (as of version 1.31) no longer papers over that mistake.
76911
76912 2002-01-05  Jim Meyering  <meyering@lucent.com>
76913
76914         * lib/version-etc.c (version_etc_copyright): Update copyright year.
76915
76916 2001-12-19  Paul Eggert  <eggert@twinsun.com>
76917
76918         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
76919         not silently exit merely because the output buffer happens to
76920         have nothing pending.
76921
76922 2001-12-18  Paul Eggert  <eggert@twinsun.com>
76923
76924         See the big note in ../ChangeLog.
76925         * lib/human.c (suffixes): Prefer K to k for 1024.
76926         (generate_suffix_backwards): New function.
76927         (human_readable_inexact): Use it.
76928         * lib/xstrtol.c (__xstrtol): If there is no number but there
76929         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
76930         Accept 'K' as well as 'k'.
76931
76932 2001-12-15  Jim Meyering  <meyering@lucent.com>
76933
76934         * lib/regex.h (__restrict_arr): Update from libc.
76935
76936         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
76937         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
76938         (STREQ): Define.
76939
76940 2001-12-14  Jim Meyering  <meyering@lucent.com>
76941
76942         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
76943         Suggestion from Bruno Haible.
76944
76945 2001-12-10  Jim Meyering  <meyering@lucent.com>
76946
76947         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
76948         xrealloc, Instead, include "xalloc.h".
76949         (initbuffer): Don't cast xmalloc return value to char*.
76950         (readline): Reword comment.
76951         Don't cast xrealloc return value to char*
76952         Return NULL, not 0.
76953
76954 2001-12-09  Jim Meyering  <meyering@lucent.com>
76955
76956         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
76957         about `signed and unsigned type in conditional expression'.
76958         * lib/posixtm.c (posix_time_parse): Likewise.
76959
76960         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
76961
76962         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
76963         to avoid a pedantic warning.
76964
76965         * lib/getstr.c: Don't include assert.h.
76966         (getstr): Remove warning-evoking assertions.
76967         Return -1 if offset parameter is out of bounds.
76968         Change the type of a local from int to size_t.
76969
76970         * lib/strftime.c (my_strftime_localtime_r): Include this function
76971         definition in the `#if ! HAVE_TM_GMTOFF' block.
76972
76973         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
76974         Include xalloc.h instead.
76975
76976 2001-12-02  Jim Meyering  <meyering@lucent.com>
76977
76978         * lib/tempname.c: Don't declare getenv, thus reverting the change of
76979         2001-11-18.  It's no longer necessary, now that stdlib.h is always
76980         included.
76981
76982         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
76983         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
76984
76985 2001-11-30  Akim Demaille  <akim@epita.fr>
76986
76987         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
76988         before being defined.
76989
76990 2001-11-27  Paul Eggert  <eggert@twinsun.com>
76991
76992         * lib/quotearg.h (quotearg_n, quotearg_n_style):
76993         First arg is int, not unsigned.
76994         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
76995         (SIZE_MAX, UINT_MAX): New macros.
76996         (quotearg_n_options): Abort if N is negative.
76997         Avoid overflow check on hosts where size_t is 64 bits and int
76998         is 32 bits, as overflow is impossible there.
76999         Fix off-by-one typo that caused unnecessary reallocation.
77000
77001 2001-11-27  Jim Meyering  <meyering@lucent.com>
77002
77003         * lib/tempname.c: Merge with version from libc.
77004         * lib/regex.c: Likewise.
77005
77006         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
77007         systems for which STDC_HEADERS is 0, it was not included, resulting in
77008         a warning about an integer-to-pointer conversion problem with getenv.
77009         Reported by Volker Borchert.
77010
77011 2001-11-26  Jim Meyering  <meyering@lucent.com>
77012
77013         * lib/gtod.h: Remove file.
77014         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
77015         * lib/gettimeofday.c: Don't include gtod.h.
77016         (GTOD_init): Remove function.
77017         (rpl_gettimeofday): Do its job here instead, rather than aborting.
77018         Suggestion from Volker Borchert.
77019
77020 2001-11-23  Jim Meyering  <meyering@lucent.com>
77021
77022         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
77023         it.
77024         * lib/hash.c (struct hash_table): Define it here instead.
77025
77026 2001-11-22  Jim Meyering  <meyering@lucent.com>
77027
77028         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
77029
77030 2001-11-20  Jim Meyering  <meyering@lucent.com>
77031
77032         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
77033         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
77034
77035 2001-11-19  Jim Meyering  <meyering@lucent.com>
77036
77037         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
77038         directory.  Use "conftestXXXXXX" as the template.
77039         Suggestion from Paul Eggert.
77040
77041         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
77042         immediately, so the test doesn't mistakenly hit the max-open-files
77043         limit.
77044
77045 2001-11-18  Paul Eggert  <eggert@twinsun.com>
77046
77047         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
77048         (TEMPORARIES): New macro.
77049         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
77050         removes an artificial limitation (e.g. HP-UX 10.20, where
77051         TMP_MAX is 17576).
77052
77053 2001-11-18  Jim Meyering  <meyering@lucent.com>
77054
77055         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
77056
77057 2001-11-18  Jim Meyering  <meyering@lucent.com>
77058
77059         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
77060         on SunOS 4.
77061
77062         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
77063         files will be created before anything else.
77064
77065 2001-11-17  Paul Eggert  <eggert@twinsun.com>
77066
77067         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
77068         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
77069
77070 2001-11-17  Jim Meyering  <meyering@lucent.com>
77071
77072         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
77073         Prompted by a report from Bob Proulx.
77074
77075         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
77076         Instead, require UTILS_FUNC_MKSTEMP.
77077
77078 2001-11-17  Jim Meyering  <meyering@lucent.com>
77079
77080         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
77081         Now, that's done as part of AC_FUNC_STRTOD.
77082
77083 2001-11-17  Jim Meyering  <meyering@lucent.com>
77084
77085         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
77086         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
77087         rather than group writable.  Patch by Juan F. Codagnone.
77088
77089         * lib/readtokens.c: Remove explicit declarations of xmalloc and
77090         xrealloc, Instead, include "xalloc.h".
77091
77092         * lib/mountlist.c: Include unlocked-io.h after all system headers.
77093         Remove explicit declarations of xmalloc, xrealloc,
77094         and xstrdup.  Instead, include "xalloc.h".
77095
77096         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
77097         unlocked-io.h.
77098         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
77099         Likewise.
77100         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
77101
77102         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
77103         Reported by Padraig Brady.
77104
77105         * lib/mkstemp.c: #undef mkstemp.
77106         Include config.h.
77107         (rpl_mkstemp): Rename from mkstemp.
77108         Protoize.
77109
77110 2001-11-16  Jim Meyering  <meyering@lucent.com>
77111
77112         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
77113         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
77114         determine the amount of total physical memory, use pstat_getstatic.
77115         HPUX-11 doesn't define _SC_PHYS_PAGES.
77116         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
77117         If sysconf couldn't be used to determine the amount of available
77118         physical memory, use both pstat_getstatic and pstat_getdynamic.
77119         Based on a patch from Bob Proulx.
77120
77121 2001-11-10  Jim Meyering  <meyering@lucent.com>
77122
77123         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
77124         (jm_PREREQ): Use it.
77125
77126 2001-11-09  Jim Meyering  <meyering@lucent.com>
77127
77128         * m4/jm-macros.m4: Require autoconf-2.52f.
77129         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
77130         Use these AC_-prefixed names, not the AM_-prefixed ones.
77131
77132         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
77133
77134 2001-11-05  Jim Meyering  <meyering@lucent.com>
77135
77136         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
77137
77138 2001-11-04  Jim Meyering  <meyering@lucent.com>
77139
77140         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
77141         $DEFS.
77142
77143 2001-11-03  Jim Meyering  <meyering@lucent.com>
77144
77145         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
77146         of AC_DEFUN.
77147
77148         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
77149         know the name of the variable in the macro definition.
77150
77151 2001-11-03  Jim Meyering  <meyering@lucent.com>
77152
77153         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
77154         in argmatch_to_argument call.
77155
77156         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
77157         argument.
77158
77159         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
77160         e.g., a fault due to an attempt to free a NULL pointer.
77161
77162 2001-11-01  Jim Meyering  <meyering@lucent.com>
77163
77164         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
77165         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
77166
77167 2001-11-01  Jim Meyering  <meyering@lucent.com>
77168
77169         * lib/dirfd.c, lib/dirfd.h: New files.
77170         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
77171
77172         * lib/hash.c (hash_print) [TESTING]: Clean up.
77173
77174 2001-10-22  Paul Eggert  <eggert@twinsun.com>
77175
77176         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
77177         to avoid a warning if -Wall.
77178
77179 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
77180
77181         * README: New file
77182         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
77183         (per RMS's instructions, this is now the canonical source)
77184         * lgpl/, gpl/: New directories.
77185
77186 2001-10-21  Paul Eggert  <eggert@twinsun.com>
77187
77188         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
77189
77190 2001-10-21  Jim Meyering  <meyering@lucent.com>
77191
77192         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77193         this code would end up calling gettext even in packages built
77194         with --disable-nls.
77195         * lib/getopt.c (_): Likewise.
77196         * lib/regex.c (_): Likewise.
77197
77198 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77199
77200         * m4/error.m4 (jm_PREREQ_ERROR):
77201         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77202         AC_FUNC_STRERROR_R does that.
77203         Check for strerror declaration.
77204
77205         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77206         are supposed to have them these days.
77207         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77208         Merge changes from latest Autoconf CVS.
77209         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77210         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77211         POSIX decided to standardize on the int flavor of strerror_r.
77212
77213 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77214
77215         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77216         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77217         Use strerror_r that is only a macro, even if it is not a function.
77218         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77219         (private_strerror): Use prototypes, not old-style function definition.
77220         (print_errno_message): New function.
77221         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77222         char*-flavored one.
77223         (error_tail, error, error_at_line): Use it.
77224
77225 2001-10-11  Jim Meyering  <meyering@lucent.com>
77226
77227         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77228         and quote_n (1, ... to avoid clobbering a buffer.
77229
77230 2001-10-05  Jim Meyering  <meyering@lucent.com>
77231
77232         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77233         hash-pjw.h.
77234         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77235         * lib/hash-pjw.h: New file.
77236
77237 2001-09-30  Jim Meyering  <meyering@lucent.com>
77238
77239         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77240         `struct fsstat' has the `f_fstypename' member.
77241         Use that to define FS_TYPE, which is now used to make
77242         the getfsstat link test tighter.
77243
77244 2001-09-30  Jim Meyering  <meyering@lucent.com>
77245
77246         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77247         Include <sys/ucred.h>, for Apple Darwin.
77248         Include sys/mount.h and sys/fs_types.h only if available.
77249         (FS_TYPE): Define.
77250         (read_filesystem_list): Use FS_TYPE.
77251
77252 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77253
77254         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77255         a boolean context.
77256
77257 2001-09-29  Jim Meyering  <meyering@lucent.com>
77258
77259         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77260         [one-argument getmntent function]): Include stdio.h before mntent.h.
77261         SunOS 4.1.x needs it for the declaration of `FILE'.
77262         Patch by Volker Borchert.
77263
77264         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77265         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
77266         sys/fs_types.h, and make the link-test for getfsstat guard #include
77267         directives with appropriate #if HAVE_*_H tests so that we can
77268         detect getfsstat on Apple Darwin1.3.7 systems.
77269         Reported by Nelson Beebe.
77270         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
77271
77272 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77273
77274         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77275         #defines strtoimax.  Also treat the other strto* functions
77276         like strtoimax.
77277
77278         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77279         Check for strtoul and strtoumax,
77280         as those declarations are made even in the signed case.
77281         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
77282         Likewise, for strtol and strtoimax.
77283
77284 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77285
77286         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77287         #defines strtoimax.  Also treat the other strto* functions
77288         like strtoimax.
77289
77290         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
77291         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
77292         (strtoimax, strtoumax): Do not declare if already defined as a macro.
77293
77294 2001-09-26  Jim Meyering  <meyering@lucent.com>
77295
77296         Most macros in unlocked-io.h had the wrong number of arguments.
77297         * lib/gen-uio: New script.
77298         (USE_UNLOCKED_IO): Define to 1 if not already defined.
77299         * lib/unlocked-io.hin: Remove file.
77300         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
77301         rather than trying to embed it here.
77302         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
77303         Reported by Padraig Brady.
77304
77305 2001-09-25  Volker Borchert  <bt@teknon.de>
77306
77307         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
77308         `result'.
77309
77310 2001-09-24  Jim Meyering  <meyering@lucent.com>
77311
77312         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
77313
77314 2001-09-23  Jim Meyering  <meyering@lucent.com>
77315
77316         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77317         instead of the mere test for existence of mntent.h.  The latter
77318         would get a false-positive on AIX 3.4 systems.
77319         In the outer getmntent if-block, don't die if neither of the getmntent
77320         tests succeeds.  Instead, just fall through and continue with the
77321         remaining tests.
77322
77323 2001-09-23  Jim Meyering  <meyering@lucent.com>
77324
77325         * lib/mountlist.c: Remove useless parentheses in #if directives.
77326         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77327         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77328
77329 2001-09-22  Jim Meyering  <meyering@lucent.com>
77330
77331         * m4/gettext.m4: New file.  From gettext.
77332         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77333         * m4/progtest.m4: Likewise
77334         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77335         * m4/glibc21.m4: Likewise.
77336
77337         * m4/libintl.m4: Remove.  No longer used.
77338
77339 2001-09-22  Jim Meyering  <meyering@lucent.com>
77340
77341         * lib/localcharset.c: Update from latest gettext.
77342         * lib/config.charset: Likewise.
77343
77344 2001-09-20  Jim Meyering  <meyering@lucent.com>
77345
77346         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77347         strtoimax.
77348         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77349         strtoumax.
77350
77351 2001-09-20  Jim Meyering  <meyering@lucent.com>
77352
77353         * lib/xstrtol.c (strtoimax): Guard declaration with
77354         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77355         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77356         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77357         (strtoumax): Likewise, for completeness (it wasn't necessary).
77358
77359 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77360
77361         * lib/strtoimax.c (HAVE_LONG_LONG):
77362         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77363         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77364         to work around bug in IBM C compiler.
77365
77366 2001-09-17  Jim Meyering  <meyering@lucent.com>
77367
77368         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77369         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77370         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77371         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77372         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77373         whenever the right hand side need not be expanded by the shell.
77374
77375 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77376
77377         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77378         library.  It's not correct, as some older glibcs are buggy.
77379         fnmatch wasn't fixed until glibc 2.2.
77380
77381         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77382         special shell magic here.
77383
77384 2001-09-16  Jim Meyering  <meyering@lucent.com>
77385
77386         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77387         * m4/jm-macros.m4: Require it.
77388
77389 2001-09-16  Jim Meyering  <meyering@lucent.com>
77390
77391         * lib/mkdir.c: New file.
77392
77393 2001-09-15  Jim Meyering  <meyering@lucent.com>
77394
77395         * m4/jm-macros.m4: Check for help2man.
77396
77397 2001-09-11  Jim Meyering  <meyering@lucent.com>
77398
77399         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77400         The body, by Paul Eggert, was moved here from configure.in.
77401         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77402
77403 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77404
77405         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77406         (jm_PREREQ): Use it.
77407
77408 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77409
77410         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77411         Use ssize_t, not int, to store result of readlink.
77412         Check for ssize_t overflow as well as size_t overflow,
77413         as POSIX says the result of readlink is implementation-defined
77414         when ssize_t overflows.
77415         Remove unnecessary cast to char*.
77416         Use free+malloc instead of realloc, as the storage doesn't need
77417         to be preserved and it's clearer and can be more efficient that way.
77418         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77419         * lib/xreadlink.h (xreadlink): Update prototype.
77420
77421 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77422
77423         * lib/xgetcwd.c: Revert some of the previous change; intead,
77424         fix the HAVE_GETCWD_NULL code to behave more like the
77425         !HAVE_GETCWD_NULL code used to.
77426
77427         Include "xalloc.h".
77428         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77429         invoke xalloc_die.
77430
77431 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77432
77433         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77434         sys/param.h, as pathmax.h includes them.
77435
77436 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77437
77438         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77439         (jm_PREREQ_XGETCWD): New macro.
77440
77441         * m4/getcwd.m4: New file.
77442
77443 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77444
77445         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77446         like the HAVE_GETCWD_NULL code.
77447         Include pathmax.h if not HAVE_GETCWD.
77448         Do not include xalloc.h.
77449         (INITIAL_BUFFER_SIZE): New symbol.
77450         Do not use xmalloc / xrealloc, since the caller is responsible for
77451         handling errors.  Preserve errno around `free' during failure.
77452         Do not overrun buffer when using getwd.
77453
77454 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77455
77456         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77457         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77458         getcwd (NULL, 0).
77459
77460 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77461
77462         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77463         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77464         spotted by Jim Meyering.
77465
77466 2001-09-03  Jim Meyering  <meyering@lucent.com>
77467
77468         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77469         failure.
77470
77471 2001-09-02  Jim Meyering  <meyering@lucent.com>
77472
77473         * lib/error.c: Update from GNU libc.
77474
77475 2001-09-01  Jim Meyering  <meyering@lucent.com>
77476
77477         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
77478         Used by df.
77479
77480 2001-09-01  Jim Meyering  <meyering@lucent.com>
77481
77482         * lib/xreadlink.c: New file.
77483         * lib/xreadlink.h: New file.
77484         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
77485         xreadlink.h.
77486
77487         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
77488         doesn't conflict with sparc Solaris 7's definition in
77489         /usr/include/sys/int_types.h.
77490
77491         * lib/exclude.c: Use `""', not `<>' to #include non-system header
77492         files.
77493         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
77494         and strncasecmp as r-values.  Unixware didn't have declarations.
77495
77496 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77497
77498         * lib/xstrtol.h: Add copyright notice.
77499         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
77500         LONGINT_INVALID_SUFFIX_CHAR.
77501
77502 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77503
77504         * lib/xstrtol.c (strtoimax): New decl.
77505
77506 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77507
77508         * lib/xgetcwd.c: Don't include pathmax.h.
77509         Include stdlib.h and unistd.h if available.
77510         Include xalloc.h.
77511         (xmalloc, xstrdup, free): Remove decls.
77512         (xgetcwd): Don't assume sizes fit in unsigned.
77513         Check for overflow when computing sizes.
77514         Simplify reallocation code.
77515
77516 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77517
77518         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
77519         a directory's st_size can have an arbitrary value, so the old
77520         usage could waste an arbitrary amount of memory.  All uses
77521         changed.
77522         * lib/savedir.h: Update prototype.
77523
77524 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77525
77526         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
77527
77528         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
77529         old strtoimax.c.
77530
77531         Also, make the following further changes to make this file's
77532         configuration more similar to that of strtol.c:
77533         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
77534         (strtoumax, uintmax_t, strtoull, strtol): Remove.
77535         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
77536         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
77537         changed to signed values.
77538
77539         And make the following changes as well:
77540         Fix copyright notice, as 1999 was missing.
77541         (verify): New macro.
77542         (strtoimax): Check sizes at compile-time, not run-time.
77543         Prefer strtol to strtoll if both work.
77544         (main): Remove; it was not that useful and was a pain to maintain.
77545
77546         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
77547
77548 2001-08-31  Jim Meyering  <meyering@lucent.com>
77549
77550         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
77551         Use an initial, malloc'd, buffer of length 128 rather than
77552         a statically allocated one of length 1024.
77553
77554 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77555
77556         Simplify code, partly by assuming autoconf 2.52 semantics.
77557
77558         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
77559
77560         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
77561         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
77562         All uses removed.
77563         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
77564         Move AC_REQUIRE to next-to-top level, to avoid confusion.
77565         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
77566         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
77567         jm_AC_HEADER_INTTYPES_H.
77568         * m4/jm-macros.m4 (jm_MACROS): Likewise.
77569
77570         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
77571
77572         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77573         Quote first arg of AC_DEFUN.
77574         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
77575         since they are needed to parse the include file even if we need
77576         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
77577         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
77578         but with opposite signedness.
77579
77580 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77581
77582         Merge 'exclude' changes from tar 1.13.22.
77583         This fixes one or two unlikely storage allocation overflow bugs,
77584         but doesn't change user-visible behavior otherwise.
77585
77586 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77587
77588         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
77589         (jm_PREREQ_EXCLUDE): New macro.
77590
77591 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77592
77593         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
77594         tm to be declared.
77595
77596 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77597
77598         * lib/hash.c: Remove '2001' from copyright notice.
77599
77600 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77601
77602         * lib/full-write.h: New file.
77603         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
77604         * lib/full-write.c: Correct credits, as cccp.c no longer
77605         exists and anyway it was so heavily changed from the old cccp
77606         code as to be unrecognizable.  Include full-write.h.
77607         (full_write): Return size_t, with short writes meaning failure.
77608         All callers changed.  This fixes a bug with large buffers
77609         on 64-bit hosts.
77610         * lib/utime.c: Include full-write.h.
77611
77612 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77613
77614         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
77615         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
77616         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
77617         Include if available.
77618         (<xalloc.h>): Include
77619         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
77620         (verify): New macro.  Use it to verify that EXCLUDE macros do not
77621         collide with FNM macros.
77622         (struct patopts): New struct.
77623         (struct exclude): Use it, as exclude patterns now come with options.
77624         (new_exclude): Support above changes.
77625         (new_exclude, add_exclude_file):
77626         Initial size must now be a power of two to simplify overflow checking.
77627         (free_exclude, fnmatch_no_wildcards): New function.
77628         (excluded_filename): No longer requires options arg, as the options
77629         are determined by add_exclude.  Now returns bool, not int.
77630         (excluded_filename, add_exclude):
77631         Add support for the fancy new exclusion options.
77632         (add_exclude, add_exclude_file): Now takes int options arg.
77633         Check for arithmetic overflow when computing sizes.
77634         (add_exclude_file): xrealloc might modify errno, so don't
77635         realloc until after errno might be used.
77636
77637         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
77638         New macros.
77639         (free_exclude): New decl.
77640         (add_exclude, add_exclude_file): Now takes int options arg.
77641         (excluded_filename): No longer requires options arg, as the options
77642         are determined by add_exclude.  Now returns bool, not int.
77643
77644 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77645
77646         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
77647
77648 2001-08-27  Jim Meyering  <meyering@lucent.com>
77649
77650         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
77651
77652         * lib/version-etc.c (N_): Remove definition.
77653         Revert most of last change.
77654         Instead, simply don't mark the `Copyright...' string for translation.
77655         Based on advice from Paul Eggert.
77656
77657         * lib/strtoxmax.c: Tweak comment.
77658
77659 2001-08-26  Jim Meyering  <meyering@lucent.com>
77660
77661         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
77662
77663         * m4/xstrtoimax.m4: New file.
77664         * m4/xstrtoumax.m4: Add comments explaining why we
77665         AC_REPLACE_FUNCS(strtol).
77666
77667 2001-08-26  Jim Meyering  <meyering@lucent.com>
77668
77669         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
77670         of copyright with `%s' so translators don't get an untranslated
77671         message in 2002.
77672         (COPYRIGHT_YEAR): Define.
77673         (version_etc): Use fprintf rather than fputs.
77674         Suggestion from Ulrich Drepper.
77675
77676         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
77677
77678         * lib/strtoll.c: New file, from GNU libc.
77679         * lib/xstrtoimax.c: New file.
77680
77681         * lib/xstrtol.h: Add xstrtoimax.
77682         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
77683         * lib/strtoimax.c: New file.  Likewise, but first define
77684         STRTOUXMAX_SIGNED.
77685
77686         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
77687         ...
77688         * lib/strtoxmax.c: ... then renamed to this.
77689
77690 2001-08-18  Paul Eggert  <eggert@twinsun.com>
77691
77692         * m4/inttypes.m4: Add AC_PREREQ(2.13).
77693         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
77694         (jm_AC_TYPE_INTMAX_T): New macro.
77695         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
77696
77697         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
77698
77699         * m4/longlong.m4: Renamed from ulonglong.m4.
77700         * m4/inttypes.m4: Renamed from inttypes_h.m4.
77701         * m4/uintmax_t.m4: Removed.
77702
77703 2001-08-13  Paul Eggert  <eggert@twinsun.com>
77704
77705         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
77706         Port to Solaris 8, where 'sed' requires a space after the 'r'
77707         command, and where sh dislikes "$/".  Clean up the spacing a bit.
77708         Redirect output to $tmp just once.
77709
77710 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
77711
77712         * lib/addext.c (<errno.h>): Include.
77713         (errno): Declare if not defined.
77714         (addext): Work correctly when pathconf returns -1 and leaves
77715         errno alone because there is no limit.  Also, work even if
77716         pathconf returns a value greater than SIZE_MAX.
77717
77718 2001-08-12  Jim Meyering  <meyering@lucent.com>
77719
77720         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
77721         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
77722         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
77723         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
77724         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
77725         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
77726         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
77727         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
77728         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
77729         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
77730         utime.m4, utimes.m4, xstrtoumax.m4:
77731         Quote the first argument in each use of AC_DEFUN.
77732
77733 2001-08-12  Jim Meyering  <meyering@lucent.com>
77734
77735         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
77736         Simply `return getcwd (NULL, 0);'.
77737         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
77738         Use 1300 as initial value for length, not PATH_MAX.
77739
77740         * lib/pathmax.h: Clean up cpp syntax.
77741
77742 2001-08-12  Jim Meyering  <meyering@lucent.com>
77743
77744         * lib/gettimeofday.c: New file.
77745         * lib/gtod.h: New file.
77746         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
77747
77748 2001-08-05  Jim Meyering  <meyering@lucent.com>
77749
77750         * m4/jm-macros.m4: Require autoconf-2.52.
77751
77752 2001-08-04  Jim Meyering  <meyering@lucent.com>
77753
77754         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
77755         stmt, to get in sync with glibc.
77756
77757 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77758
77759         The following changes are from gettext 0.10.39 as maintained by
77760         Bruno Haible.
77761
77762         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
77763         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
77764         with inverted sense.  All uses changed.
77765
77766         * lib/mbswidth.c: Don't include <limits.h>.
77767         Include <stdlib.h> and <string.h> unconditionally.
77768         (iswcntrl, mbsinit, ISCNTRL): New macros.
77769         (mbsnwidth): Use K&R style function declarations.
77770         Don't bother checking for MB_LEN_MAX == 1, since the compiler
77771         can optimize it when MB_CUR_MAX == 1.
77772         The width of control characters is zero, not 1.
77773
77774 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77775
77776         The following changes are from gettext 0.10.39 as maintained by
77777         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
77778
77779         * m4/codeset.m4: Upgrade to serial AM1.
77780         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
77781         all uses changed.  Quote first arg of AC_DEFUN.
77782         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
77783
77784         * m4/iconv.m4: Upgrade to serial AM2.
77785         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
77786         Add --with-libconv-prefix.
77787         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
77788         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
77789         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
77790         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
77791         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
77792
77793         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
77794         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
77795         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
77796         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
77797         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
77798         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
77799         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
77800         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
77801         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77802
77803         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
77804         string.h any more.
77805
77806         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
77807         not the default value.
77808
77809         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
77810         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
77811         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
77812         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
77813         Also check for iswcntrl, used for wcwidth fallback.
77814         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
77815         to Autoconf 2.13.
77816
77817 2001-08-03  Jim Meyering  <meyering@lucent.com>
77818
77819         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
77820         as it was in the original.  Reported by Paul Eggert.
77821
77822 2001-07-16  Jim Meyering  <meyering@lucent.com>
77823
77824         * m4/gettimeofday.m4: New file.
77825         Prompted by a report from Bernhard Baehr.
77826
77827 2001-07-15  Jim Meyering  <meyering@lucent.com>
77828
77829         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
77830         stuff. Now it's in ../Makefile.cfg.
77831
77832 2001-07-15  Jim Meyering  <meyering@lucent.com>
77833
77834         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
77835         (BUILT_SOURCES): Add unlocked-io.h.
77836         (io_functions): Define.
77837         (unlocked-io.h): New rule.
77838         (DISTCLEANFILES): Add unlocked-io.h.
77839         (all-local): Depend on unlocked-io.h, to ensure it is created.
77840
77841         * lib/unlocked-io.hin: New file
77842
77843         * lib/regex.c: Update from glibc.
77844
77845 2001-07-05  Jim Meyering  <meyering@lucent.com>
77846
77847         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
77848         recommendation.
77849         (libfetish_a_SOURCES): Put all .h files here instead.
77850         Remove a thus-exposed (better checks in automake) duplicate and
77851         two unnecessary .h files.
77852
77853 2001-07-04  Jim Meyering  <meyering@lucent.com>
77854
77855         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
77856         that generates jm-glibc-io.m4 so that it doesn't trigger any make
77857         distcheck failure.
77858
77859 2001-07-02  Jim Meyering  <meyering@lucent.com>
77860
77861         The following changes were prompted by suggestions from Bruno Haible.
77862
77863         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
77864         is now generated.
77865         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
77866         definition of EXTRA_DIST.
77867         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
77868         ensure that the generated file is created/updated whenever the list
77869         of $(unlocked_functions) is changed.
77870         (jm-glibc-io.m4): New rule.
77871         (unlocked-io.h): New rule -- currently unused.
77872
77873 2001-06-24  Jim Meyering  <meyering@lucent.com>
77874
77875         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
77876         unmatched right bracket, rather than kludging it with an extra,
77877         falsely-matching quote in a comment.  Patch by Akim Demaille.
77878
77879 2001-06-11  Jim Meyering  <meyering@lucent.com>
77880
77881         * lib/regex.c: Update from GNU libc.
77882
77883 2001-05-27  Jim Meyering  <meyering@lucent.com>
77884
77885         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
77886         Check for ut_type in struct utmp.
77887
77888 2001-05-27  Jim Meyering  <meyering@lucent.com>
77889
77890         * lib/readutmp.h (UT_TYPE): Define.
77891
77892 2001-05-24  Jim Meyering  <meyering@lucent.com>
77893
77894         * lib/argmatch.c: Include "quote.h".
77895         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
77896         quote function.  Reported by Göran Uddeborg.
77897
77898 2001-05-22  Jim Meyering  <meyering@lucent.com>
77899
77900         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
77901         now that we use the package-supplied version unconditionally.
77902         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
77903
77904 2001-05-21  Jim Meyering  <meyering@lucent.com>
77905
77906         * m4/regex.m4: Change a couple backticks to single quotes to avoid
77907         shell syntax errors.
77908
77909 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77910
77911         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
77912
77913 2001-05-20  Paul Eggert  <eggert@twinsun.com>
77914
77915         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
77916         Don't bother to check library strftime, since
77917         we'll be using our own my_strftime function anyway.
77918         Define my_strftime instead of strftime.
77919
77920 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
77921
77922         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
77923         which is not yet declared.
77924
77925 2001-05-15  Jim Meyering  <meyering@lucent.com>
77926
77927         * m4/regex.m4: Use proper quoting so brackets appear in the test
77928         program.
77929         Reported by, and with help from, Bruno Haible.
77930
77931 2001-05-13  Jim Meyering  <meyering@lucent.com>
77932
77933         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
77934         undefined.
77935
77936 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77937
77938         dirname code cleanup.  base_name now behaves more compatibly
77939         with POSIX basename when given file names that have trailing
77940         slashes, and similarly for dir_name.  Add new primitives
77941         base_len and dir_len.  Put the directory-name-related decls
77942         into dirname.h.
77943
77944         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
77945         * lib/backupfile.c (base_name): Likewise.
77946         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
77947         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
77948         * lib/makepath.c (strip_trailing_slashes): Likewise.
77949         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
77950         ISSLASH): Likewise.
77951         * lib/rename.c (strip_trailing_slashes): Likewise.
77952         * lib/same.c (base_name): Likewise.
77953         * lib/stripslash.c (ISSLASH): Likewise.
77954
77955         * lib/addext.c: Include <dirname.h> after size_t is defined.
77956         * lib/backupfile.c: Likewise.
77957
77958         * lib/addext.c (addext): Use base_len to trim redundant
77959         trailing slashes instead of doing it ourselves.
77960         But do not trim the last slash if it is not redundant.
77961
77962         * lib/backupfile.c (find_backup_file_name,
77963         max_backup_version): Use base_len instead of rolling it ourselves.
77964         Handle the case of "" and (on DOS) "C:" correctly.
77965
77966         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
77967         needed. Include <string.h>, <dirname.h>.
77968         (base_name): Allow file names ending in slashes, other than names
77969         that are all slashes.  In this case, return the basename followed
77970         by the slashes.  This is more general, and can be used in places
77971         where the original base_name purposely had an assertion failure.
77972         (base_len): New function.
77973
77974         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
77975         Do not include <assert.h>; no longer needed.
77976         Include xalloc.h.
77977         (memrchr): Remove decl.
77978         (dir_name_r): Remove.
77979         (dir_len): Renamed from dirlen.  All callers changed.
77980         Rewrite in terms of base_name, for simplicity and consistency.
77981         (dir_name): Never return NULL.  All callers changed.
77982         Do not include <stdlib.h> in test program; no longer needed.
77983         return 0; is fine for test program.
77984
77985         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
77986         New macros.
77987         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
77988
77989         * lib/path-concat.c (path_concat): Use base_len to compute
77990         base length, not strlen; this means we cannot rely on memcpy
77991         to null-terminate.
77992
77993         * lib/same.c (STREQ): Remove.
77994         (same_name): Handle the case where the basename ends in trailing '/'.
77995
77996         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
77997         a slash was stripped.  Do not strip the last slash after a
77998         file system prefix.
77999
78000 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78001
78002         * lib/Makefile.am (libfetish_a_SOURCES):
78003         Add strftime.c, since we now compile it on all hosts.
78004
78005         * lib/strftime.c (my_strftime):
78006         Define to nstrftime if emacs, but only if my_strftime is not defined.
78007         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
78008         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
78009         Add one more extra argument: a nanoseconds value.
78010         All uses changed.
78011         (ns): New macro.
78012         (my_strftime function): Add %N format.
78013         (emacs_strftimeu): Renamed from emacs_strftime,
78014         with extra ut argument.
78015
78016 2001-05-09  Paul Eggert  <eggert@twinsun.com>
78017
78018         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
78019
78020 2001-04-21  Jim Meyering  <meyering@lucent.com>
78021
78022         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
78023         doesn't interfere.
78024
78025 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78026
78027         * m4/ftruncate.m4: Check for chsize.
78028         Link with ftruncate.o unconditionally if ftruncate is missing.
78029         This was required when cross-compiling to i586-mingw32msvc.
78030
78031 2001-04-08  Jim Meyering  <meyering@lucent.com>
78032
78033         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
78034         recomputed; that's necessary when the offset spans a DST transition.
78035         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
78036
78037 2001-04-02  Jim Meyering  <meyering@lucent.com>
78038
78039         * lib/regex.h, regex.c: Update from GNU libc.
78040
78041 2001-03-24  Jim Meyering  <meyering@lucent.com>
78042
78043         * m4/jm-macros.m4: Require autoconf-2.49d.
78044
78045 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
78046
78047         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
78048
78049 2001-03-19  Paul Eggert  <eggert@twinsun.com>
78050
78051         * lib/version-etc.c (version_etc_copyright): Update to 2001.
78052
78053 2001-03-17  Jim Meyering  <meyering@lucent.com>
78054
78055         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
78056         now that the version in autoconf is equivalent.
78057         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
78058
78059         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
78060         Suggestion from Akim Demaille.
78061
78062         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
78063         (jm_PREREQ_TEMPNAME): New function.
78064
78065 2001-03-16  Paul Eggert  <eggert@twinsun.com>
78066
78067         * lib/tempname.c (uint64_t): Define to uintmax_t if
78068         not defined, and if UINT64_MAX is not defined.
78069         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
78070         Reported by John David Anglin.
78071
78072 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
78073
78074         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
78075         resolve alias if codeset is empty.
78076         * lib/config.charset (BeOS): Use wildcard syntax.
78077
78078 2001-03-13  Jim Meyering  <meyering@lucent.com>
78079
78080         * lib/path-concat.c (path_concat)
78081         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
78082         concatenating e.g., `C:' and `foo'.
78083         From Bruno Haible.
78084
78085 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78086
78087         * lib/localcharset.c (locale_charset): Don't use
78088         setlocale(LC_CTYPE,NULL). Don't return NULL.
78089         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
78090
78091 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78092
78093         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
78094         support for DOS/DJGPP.
78095
78096 2001-03-01  Paul Eggert  <eggert@twinsun.com>
78097
78098         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
78099         lacks mkstemp.  Compile our own tempname.c if we compile our own
78100         mkstemp.c, as mkstemp relies on tempname.
78101
78102 2001-03-01  Jim Meyering  <meyering@lucent.com>
78103
78104         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
78105         AH_VERBATIM really does output its argument verbatim.
78106
78107 2001-02-28  Paul Eggert  <eggert@twinsun.com>
78108
78109         * lib/Makefile.am (libfetish_a_SOURCES):
78110         Add dup-safer.c, fopen-safer.c.
78111         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
78112
78113         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
78114         * lib/unistd-safer.h: New files.
78115
78116 2001-02-25  Paul Eggert  <eggert@twinsun.com>
78117
78118         The mkstemp replacement is taken from glibc 2.2.2, with some
78119         portability fixes for use outside glibc, as follows:
78120
78121         * lib/tempname.c (struct_stat64): New macro.
78122         (direxists, __gen_tempname): Use it.
78123         This avoids a portability problem with Solaris 8.
78124
78125         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
78126         (<stddef.h>, <stdint.h>, <string.h>):
78127         Include only if STDC_HEADERS || _LIBC.
78128         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
78129         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
78130         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
78131         (__set_errno): Define this macro if <errno.h> doesn't.
78132         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
78133         Define these macros if <stdio.h> doesn't.
78134         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
78135         Define these macros if <sys/stat.h>
78136         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
78137         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
78138         __xstat64): Define if not _LIBC.
78139         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78140         (__gen_tempname): Invoke gettimeofday only if
78141         HAVE_GETTIMEOFDAY || _LIBC;
78142         otherwise, fall back on plain "time".
78143         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
78144
78145         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
78146
78147         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
78148
78149 2001-02-18  Paul Eggert  <eggert@twinsun.com>
78150
78151         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
78152
78153 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78154
78155         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
78156         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
78157         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
78158         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78159
78160 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78161
78162         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
78163         Remove workaround macros for hosts that have mbrtowc but not
78164         mbstate_t, as we now insist on proper declarations for both
78165         before using mbrtowc.
78166
78167 2001-02-17  Jim Meyering  <meyering@lucent.com>
78168
78169         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
78170         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
78171         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
78172         UnixWare 7.1.1.
78173
78174         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
78175         rather than AC_CACHE_VAL.
78176
78177 2001-02-17  Jim Meyering  <meyering@lucent.com>
78178
78179         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
78180         around included file name.
78181
78182         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
78183
78184         * lib/strftime.c: Update from GNU libc (the only changes were to
78185         comments).
78186
78187 2001-02-17  Jim Meyering  <meyering@lucent.com>
78188
78189         * lib/regex.c: Update from libc.
78190
78191 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
78192
78193         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78194         clash.
78195
78196 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78197
78198         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78199         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78200         Reported by Mark Hounschell via Paul Eggert.
78201
78202 2001-02-07  Jim Meyering  <meyering@lucent.com>
78203
78204         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78205
78206 2001-02-05  Jim Meyering  <meyering@lucent.com>
78207
78208         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78209         it includes the patch required for `large file' support with at least
78210         HP-UX's 10.20 /bin/cc.
78211
78212 2001-02-03  Jim Meyering  <meyering@lucent.com>
78213
78214         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78215         AS_IF, now that it works once again (mysteriously).
78216         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78217
78218 2001-01-30  Jim Meyering  <meyering@lucent.com>
78219
78220         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78221         * m4/chown.m4: Rename conftestchown to conftest.chown.
78222         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78223         s/conftestdir2/conftest.d2/.
78224         * m4/utimes.m4: s/conftestdata/conftest.data/
78225         Inspired by Pavel Roskin's change in autoconf.
78226
78227 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78228
78229         * lib/config.charset: Update for FreeBSD 4.2.
78230
78231 2001-01-27  Jim Meyering  <meyering@lucent.com>
78232
78233         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78234         a use of AS_IF.
78235         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78236
78237 2001-01-26  Jim Meyering  <meyering@lucent.com>
78238
78239         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78240         quotearg.c includes it.
78241
78242 2001-01-26  Jim Meyering  <meyering@lucent.com>
78243
78244         * lib/quotearg.c: Include stddef.h.
78245         * lib/quote.c: Include stddef.h.
78246         Reported by Axel Kittenberger.
78247
78248         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78249         line in double quotes so that it evokes a better diagnostic.
78250         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78251         Reported by Axel Kittenberger.
78252
78253 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78254
78255         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78256         as if it was a `charset'.
78257
78258 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78259
78260         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78261         has const.
78262
78263 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78264
78265         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
78266         to avoid a warning.  Add back 'const' to inptr.
78267
78268 2001-01-20  Jim Meyering  <meyering@lucent.com>
78269
78270         Be sure that headers are checked before used in code compiled
78271         for the type checks.
78272         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
78273         In place of that, invoke jm_CHECK_ALL_TYPES.
78274         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
78275         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
78276         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
78277         The check for ssize_t was mistakenly run before the test for unistd.h.
78278
78279         The configure-time check for stdbool.h was missing.
78280         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
78281         (jm_PREREQ_HASH): New function.
78282
78283 2001-01-17  Jim Meyering  <meyering@lucent.com>
78284
78285         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
78286         for autoconf-2.49c.
78287         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
78288
78289 2001-01-16  Jim Meyering  <meyering@lucent.com>
78290
78291         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
78292         From Bruno Haible.
78293
78294 2001-01-14  Jim Meyering  <meyering@lucent.com>
78295
78296         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
78297         foo and bar.  Create conftestdir/ in the script, not in the C code.
78298         Remove directories in the script, not in the C code.
78299         Remove conftestdir{,2} before trying to create the directory.
78300         Make the entire configure script fail if the mkdir fails.
78301
78302 2001-01-14  Jim Meyering  <meyering@lucent.com>
78303
78304         * lib/rename.c: New file.  From Volker Borchert.
78305         Include stdlib.h, string.h or strings.h, and xalloc.h.
78306         Use strip_trailing_slashes rather than open-coding it.
78307
78308 2001-01-03  Paul Eggert  <eggert@twinsun.com>
78309
78310         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
78311
78312 2001-01-03  Jim Meyering  <meyering@lucent.com>
78313
78314         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78315         of local `inptr' to avoid warning with some system declarations of
78316         iconv.
78317
78318 2001-01-02  Volker Borchert  <bt@teknon.de>
78319
78320         * m4/rename.m4: New file.
78321         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78322
78323 2001-01-01  Jim Meyering  <meyering@lucent.com>
78324
78325         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78326         even on systems with utmpx.h.  It's necessary for the declaration of
78327         utmp's ut_user member.  Reported by Andreas Jaeger.
78328
78329         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78330         available. They are required for the declarations of getgrgid and
78331         getpwuid resp.
78332         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78333         Reported by Andreas Jaeger.
78334
78335 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78336
78337         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78338         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78339         so `make install' also works in VPATH builds.
78340
78341 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78342
78343         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78344         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78345         can be used in subdirectories.
78346
78347 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78348
78349         * lib/modechange.c: Do not assume that mode_t uses the
78350         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78351         the other-execute bit of FOO even if S_IXOTH != 1.
78352
78353         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78354         WOTH, XOTH, ALLM): New macros.
78355         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78356          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78357         Use them.
78358         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78359         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78360         (mode_compile):
78361         No need to use uintmax_t; unsigned long is long enough.
78362         Don't bother to get suffix since we don't use it.
78363
78364 2000-12-26  Jim Meyering  <meyering@lucent.com>
78365
78366         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78367         better with autoheader.
78368
78369 2000-12-24  Jim Meyering  <meyering@lucent.com>
78370
78371         * lib/hash.c (is_prime): Return explicit boolean values.
78372         (hash_get_first): Return NULL to appease Irix5.6's 89.
78373         Reported by Nelson Beebe.
78374
78375 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78376
78377         * lib/localcharset.c (locale_charset): Add support for Win32.
78378
78379 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78380
78381         * lib/physmem.h, lib/physmem.c: New files.
78382
78383         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78384         (noinst_HEADERS): Add physmem.h.
78385
78386         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78387         't' for compatibility with Solaris 8 sort.
78388
78389 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78390
78391         * lib/config.charset: Add support for BeOS.
78392
78393 2000-12-17  Jim Meyering  <meyering@lucent.com>
78394
78395         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78396         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78397
78398 2000-12-16  Jim Meyering  <meyering@lucent.com>
78399
78400         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78401         N and M) would have treated it like `chown N:N FILE'.
78402
78403         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78404
78405 2000-12-16  Jim Meyering  <meyering@lucent.com>
78406
78407         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78408         SHELLS_FILE to a file name that's useful on djgpp systems.
78409         Include stdlib.h.
78410         (ADDITIONAL_DEFAULT_SHELLS): Define.
78411         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78412         Based mostly on a patch from Prashant TR.
78413
78414 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78415
78416         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78417         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78418         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78419
78420 2000-12-08  Andreas Schwab  <schwab@suse.de>
78421
78422         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78423         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78424
78425 2000-12-07  Jim Meyering  <meyering@lucent.com>
78426
78427         * lib/stripslash.c (ISSLASH): Define.
78428         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78429         `/'.
78430         From Prashant TR.
78431
78432         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78433         (dir_name_r): Declare this function as static.
78434         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78435         manifest itself on a name containing a mix of slashes and
78436         backslashes.
78437         Make this function work with names starting with a DOS-style
78438         drive letter and colon prefix.
78439         (dir_name): Append `.' if necessary.
78440         Based mostly on patches from Prashant TR and Eli Zaretskii.
78441
78442         * lib/dirname.h (dir_name_r): Remove prototype.
78443
78444 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78445
78446         * m4/off_t-format.m4: Remove this file.
78447         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78448
78449 2000-12-06  Jim Meyering  <meyering@lucent.com>
78450
78451         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78452         replacement strtoull, we may well need the replacement strtoul, too.
78453         Check for declarations of strtoul and strtoull.
78454         Check for strtol.  Mainly as a cue to cause automake to include
78455         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78456         Check for limits.h -- strtol.c needs it.
78457
78458 2000-12-05  Jim Meyering  <meyering@lucent.com>
78459
78460         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78461
78462 2000-12-04  Jim Meyering  <meyering@lucent.com>
78463
78464         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78465         Also include memory.h, stdlib.h, unistd.h if appropriate.
78466         Reported by Andreas Jaeger (conflicting declaration of malloc).
78467
78468 2000-12-02  Jim Meyering  <meyering@lucent.com>
78469
78470         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78471         * m4/jm-macros.m4 (jm_MACROS): require it.
78472
78473 2000-12-02  Jim Meyering  <meyering@lucent.com>
78474
78475         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
78476
78477 2000-12-01  Paul Eggert  <eggert@twinsun.com>
78478
78479         * lib/memrchr.c: Include <config.h> before any system include file.
78480
78481 2000-11-30  Jim Meyering  <meyering@lucent.com>
78482
78483         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
78484
78485 2000-11-30  Jim Meyering  <meyering@lucent.com>
78486
78487         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
78488
78489 2000-11-29  Paul Eggert  <eggert@twinsun.com>
78490
78491         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
78492
78493 2000-11-26  Jim Meyering  <meyering@lucent.com>
78494
78495         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
78496
78497 2000-11-22  Paul Eggert  <eggert@twinsun.com>
78498
78499         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
78500         size of (size_t) -1; it's not portable.
78501
78502 2000-11-17  Jim Meyering  <meyering@lucent.com>
78503
78504         * lib/strstr.c: Update from GNU libc.
78505
78506 2000-11-17  Akim Demaille  <akim@epita.fr>
78507
78508         * lib/obstack.h: Formatting changes.
78509         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
78510         prevent type checking.
78511         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
78512         cast the value to (void *): assigning a `foo *' to a `void *'
78513         variable is valid.
78514         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
78515
78516 2000-11-16  Jim Meyering  <meyering@lucent.com>
78517
78518         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
78519
78520 2000-11-11  Jim Meyering  <meyering@lucent.com>
78521
78522         * lib/error.c: Add a couple #includes, merging from GNU libc version.
78523
78524 2000-11-10  Jim Meyering  <meyering@lucent.com>
78525
78526         * lib/obstack.h: Update from GNU libc.
78527         * lib/obstack.c: Likewise.
78528
78529 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
78530
78531         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
78532
78533 2000-11-06  Paul Eggert  <eggert@twinsun.com>
78534
78535         * lib/getusershell.c (setusershell): Use rewind rather than
78536         fseek/fseeko, to avoid configuration hassles with fseeko.
78537         Don't bother opening SHELLS_FILE if shellstream is NULL;
78538         it's not necessary.
78539
78540 2000-11-05  Jim Meyering  <meyering@lucent.com>
78541
78542         * lib/makepath.h (make_dir): Declare.
78543         * lib/makepath.c (make_dir): Remove `static' attribute.
78544         Tweak a comment.
78545
78546 2000-11-04  Jim Meyering  <meyering@lucent.com>
78547
78548         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
78549
78550 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
78551
78552         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
78553         last one in a bucket, advance to the next bucket.
78554
78555 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
78556
78557         * lib/fnmatch.c: Do not comment out all the code if we are using
78558         the GNU C library, because in some cases we are replacing buggy
78559         code in the GNU C library itself.
78560
78561 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
78562
78563         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
78564         (regex_compile): Catch bogus \(\1\).
78565
78566 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78567
78568         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
78569         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
78570         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
78571
78572 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78573
78574         * lib/error.h, getline.h, modechange.h:
78575         Remove "2000" from Copyright line, as the file hasn't been
78576         changed this year other than in the copyright notice.
78577
78578         * lib/xalloc.h: Add "2000" to Copyright line, as this file
78579         was changed this year.
78580
78581 2000-10-29  Jim Meyering  <meyering@lucent.com>
78582
78583         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
78584         renaming.
78585         * m4/ls-mntd-fs.m4: Likewise
78586
78587 2000-10-29  Jim Meyering  <meyering@lucent.com>
78588
78589         * lib/xstat.in: Fix grammar in comment.
78590
78591 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
78592
78593         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
78594         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
78595         doesn't define __restrict_arr.
78596
78597 2000-10-28  Jim Meyering  <meyering@lucent.com>
78598
78599         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
78600         (jm_PREREQ_MEMCHR): New function.
78601
78602 2000-10-28  Jim Meyering  <meyering@lucent.com>
78603
78604         * lib/memchr.c: Update from libc.
78605         Adjust for portability:
78606         [HAVE_STDLIB_H]: Include stdlib.h.
78607         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
78608         Undef __memchr, too.
78609         [!weak_alias]: Define __memchr to memchr.
78610
78611         * lib/regex.c: Update from libc.
78612         * lib/regex.h: Likewise.
78613         * lib/getopt1.c: Likewise.
78614         * lib/memcmp.c: Likewise.
78615
78616         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
78617         Avoid using fseek, when possible -- it's broken by design.
78618         Patch by Ulrich Drepper.
78619
78620 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
78621
78622         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
78623         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
78624         Giving in to popular pressure to shut up the compiler with casts.
78625
78626 2000-10-26  Jim Meyering  <meyering@lucent.com>
78627
78628         * lib/strftime.c: Update from libc.
78629
78630 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
78631
78632         * regex.c: More `unsigned char' -> `re_char' changes.
78633         Also change several `int' into `re_wchar_t'.
78634         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
78635         (PUSH_FAILURE_POINTER): Don't cast any more.
78636         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
78637         We want GCC to complain, since this piece of code makes
78638         re_match non-reentrant, which *should* be fixed.
78639         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
78640         (EXTEND_BUFFER): Use RETALLOC.
78641         (SET_LIST_BIT): Don't cast.
78642         (re_wchar_t): New type.
78643         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
78644         that those two functions will always properly return.
78645         (IMMEDIATE_QUIT_CHECK): Cast to void.
78646         (analyse_first): Use recursion rather than an explicit stack.
78647         (re_compile_fastmap): Can't fail anymore.
78648         (re_search_2): Don't check re_compile_fastmap for failure.
78649         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
78650         Now also sets the new value (passed in a new argument).
78651         (re_match_2_internal): Use it.
78652         Also, use a new var `reg' of type size_t when looping through regs
78653         rather than reuse the inappropriate `mcnt'.
78654
78655 2000-10-25  Jim Meyering  <meyering@lucent.com>
78656
78657         * lib/obstack.c: Update from libc.
78658
78659 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
78660
78661         * regex.c (regex_compile): Change the way of handling a range from
78662         a char less than 256 to a char not less than 256.
78663
78664 2000-10-24  Andrew Innes  <andrewi@gnu.org>
78665
78666         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
78667         NT-Emacs only.
78668         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
78669         so that re_search functions only quit when callers expect them to.
78670
78671 2000-10-23  Jim Meyering  <meyering@lucent.com>
78672
78673         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
78674         wrong.  That set_locale call must not have any side effects.
78675         From Paul Eggert.
78676
78677 2000-10-22  Jim Meyering  <meyering@lucent.com>
78678
78679         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
78680         [CYCLIC]: Remove now-unused definition.
78681
78682         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
78683         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
78684         Suggestion from Ulrich Drepper.
78685
78686 2000-10-21  Jim Meyering  <meyering@lucent.com>
78687
78688         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
78689         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
78690         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
78691
78692 2000-10-21  Jim Meyering  <meyering@lucent.com>
78693
78694         * lib/dirname.c (memrchr): Declare if necessary.
78695         (dir_name): Remove the restriction that there be no
78696         trailing slashes.  Now, this code skips past them, effectively
78697         ignoring them.
78698         [TEST_DIRNAME] (main): New unit tests.
78699
78700         * lib/memrchr.c: New file from GNU libc.
78701         Undef __memrchr, too.
78702         [!weak_alias]: Define __memrchr to memrchr.
78703         Guard weak_alias use with `#ifdef weak_alias'.
78704
78705 2000-10-21  Jim Meyering  <meyering@lucent.com>
78706
78707         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
78708         (dir_name): Use dir_name_r.
78709         * lib/dirname.h (dir_name_r): Declare it.
78710
78711 2000-10-17  Jim Meyering  <meyering@lucent.com>
78712
78713         * lib/quote.h (PARAMS): Define and use.
78714         Reported by Akim Demaille.
78715
78716         * lib/getopt.c: Update from libc.
78717
78718 2000-10-16  Jim Meyering  <meyering@lucent.com>
78719
78720         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
78721         setlocale.
78722         From Jan Fedak.
78723
78724 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
78725
78726         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
78727
78728 2000-09-25  Jim Meyering  <meyering@lucent.com>
78729
78730         * lib/md5.h (rol): Define (from GnuPG).
78731
78732         * lib/sha.c: Give credit (GnuPG) where due.
78733         (M): Use rol rather than open-coding it.
78734         Add a FIXME comment.
78735
78736 2000-09-21  Jim Meyering  <meyering@lucent.com>
78737
78738         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
78739         Reported by Michael Stone.
78740
78741 2000-09-20  Jim Meyering  <meyering@lucent.com>
78742
78743         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
78744         (noinst_HEADERS): Add sha.h.
78745         Based on code from Scott G. Miller and from GnuPG.
78746
78747 2000-09-18  Jim Meyering  <meyering@lucent.com>
78748
78749         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
78750         LIBS. Otherwise, everyone ends up linking with -lelf for some
78751         configurations.
78752         Reported by Mike Stone.
78753
78754 2000-09-15  Jim Meyering  <meyering@lucent.com>
78755
78756         * lib/regex.c: Update from libc.
78757
78758 2000-09-10  Jim Meyering  <meyering@lucent.com>
78759
78760         * lib/getopt.c (_getopt_internal): Update from glibc.
78761
78762 2000-09-09  Jim Meyering  <meyering@lucent.com>
78763
78764         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
78765         think it should be used as a general replacement for isascii.
78766         * lib/fnmatch.c: Likewise.
78767         * lib/mbswidth.c: Likewise
78768         * lib/regex.c: Likewise.
78769
78770         Don't use atoi.
78771         * lib/userspec.c: Include sys/param.h and limits.h.
78772         Include xstrtol.h.
78773         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78774         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
78775         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
78776         UID, GID.  Check range.
78777
78778 2000-09-06  Jim Meyering  <meyering@lucent.com>
78779
78780         * lib/getopt.c (_getopt_internal): Update from glibc.
78781
78782 2000-08-30  Jim Meyering  <meyering@lucent.com>
78783
78784         * lib/strftime.c: Merge in changes from GNU libc.
78785
78786 2000-08-26  Jim Meyering  <meyering@lucent.com>
78787
78788         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
78789         * m4/fpending.m4: New file.
78790
78791 2000-08-26  Jim Meyering  <meyering@lucent.com>
78792
78793         * lib/closeout.c: Include "__fpending.h".
78794         (close_stdout_status): Return right away if there's nothing to flush.
78795
78796         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
78797         * lib/__fpending.c: New file.
78798         * lib/__fpending.h: New file.
78799
78800 2000-08-20  Jim Meyering  <meyering@lucent.com>
78801
78802         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
78803         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
78804         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
78805
78806 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
78807
78808         Improve fileutils installation on systems where running
78809         programs (like install) can't be unlinked.
78810         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
78811         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
78812
78813 2000-08-07  Paul Eggert  <eggert@twinsun.com>
78814
78815         Standardize on "memory exhausted" instead of "Memory exhausted"
78816         or "virtual memory exhausted".
78817         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
78818         "virtual memory exhausted".
78819         * lib/same.c (same_name): Invoke xalloc_die instead of printing
78820         our own message.
78821         * lib/userspec.c (parse_user_spec): Likewise.
78822         * lib/bumpalloc.h: comment fix
78823         * lib/same.c, userspec.c: Include xalloc.h.
78824
78825         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
78826         not char *const and pointing to a constant array.
78827         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
78828         (xrealloc): Comment fix.
78829
78830         * lib/userspec.c (parse_user_spec):
78831         Don't translate a message until just before returning,
78832         to avoid unnecessary translation.
78833
78834 2000-08-07  Jim Meyering  <meyering@lucent.com>
78835
78836         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
78837         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
78838         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
78839         getgroups.c, gethostname.c, getopt.h, group-member.c,
78840         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
78841         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
78842         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
78843         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
78844         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
78845         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
78846         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
78847         yesno.c: Back out Copyright date changes for each file with no change
78848         this year.  This eases coordination with other programs using the same
78849         source code modules.  From Paul Eggert.
78850
78851 2000-08-06  Paul Eggert  <eggert@twinsun.com>
78852
78853         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
78854         not char, for compatibility with glibc 2.1.3 strftime.c.
78855
78856 2000-08-03  Greg McGary  <greg@mcgary.org>
78857
78858         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
78859         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
78860         (EXTEND_BUFFER): Use them.
78861
78862 2000-08-01  Jim Meyering  <meyering@lucent.com>
78863
78864         * lib/dirname.c (ISSLASH): Define.
78865         (BACKSLASH_IS_PATH_SEPARATOR): Define.
78866         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
78867         both `\' and `/' may be use as path separators.
78868         Based on a patch from Prashant TR.
78869
78870 2000-07-31  Paul Eggert  <eggert@twinsun.com>
78871
78872         * lib/quotearg.c (quotearg_n_options): Don't make the initial
78873         slot vector a constant, since it might get modified.
78874
78875 2000-07-31  Jim Meyering  <meyering@lucent.com>
78876
78877         * lib/xmalloc.c: Use `virtual memory exhausted', not
78878         `Memory exhausted'.
78879         * lib/obstack.c (print_and_abort): Likewise.
78880
78881 2000-07-30  Paul Eggert  <eggert@twinsun.com>
78882
78883         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
78884         buffer, so that the caller can always quote one small
78885         component of a "memory exhausted" message in slot 0.
78886         From a suggestion by Jim Meyering.
78887
78888 2000-07-30  Jim Meyering  <meyering@lucent.com>
78889
78890         * lib/makepath.c (make_path): Quote the other instance, too.
78891
78892         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
78893         (STATIC_BUF_SIZE): Define.
78894         (quotearg_n_options): Use only statically allocated storage when
78895         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
78896         than STATIC_BUF_SIZE.
78897
78898 2000-07-29  Jim Meyering  <meyering@lucent.com>
78899
78900         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
78901         * lib/dirname.c (dir_name): Likewise.
78902
78903         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
78904         `/'.
78905
78906         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
78907         (dir_name): Assert that there are no trailing slashes.
78908
78909 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
78910
78911         * lib/mbswidth.h (mbswidth): Add a flags argument.
78912         (mbswidth): New declaration.
78913         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
78914         * lib/mbswidth.c (mbswidth): Add a flags argument.
78915         (mbsnwidth): New function.
78916
78917 2000-07-24  Jim Meyering  <meyering@lucent.com>
78918
78919         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
78920
78921 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78922
78923         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
78924
78925 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78926
78927         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
78928         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
78929         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
78930         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
78931         invoke multibyte primitives.
78932
78933 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78934
78935         * lib/quotearg.c:
78936         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
78937         so that mbstate_t is always defined.
78938
78939         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
78940         be 1 in at least one GCC installation, and this configuration
78941         error is likely to be common.  Ignoring MB_LEN_MAX hurts
78942         performance on hosts that have mbrtowc but have only unibyte
78943         locales, but I assume these hosts are rare.
78944
78945 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78946
78947         * lib/mbswidth.c (_XOPEN_SOURCE):
78948         Don't define; this causes problems on Solaris 7.
78949         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
78950
78951 2000-07-23  Jim Meyering  <meyering@lucent.com>
78952
78953         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
78954         too: getgrgid, getpwuid, getuid.
78955
78956 2000-07-23  Jim Meyering  <meyering@lucent.com>
78957
78958         * lib/basename.c (base_name): Add an assertion.
78959
78960 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
78961
78962         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
78963         shadow its mbsinit function.
78964
78965 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78966
78967         * lib/mbswidth.h: New file.
78968         * lib/mbswidth.c: New file.
78969         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
78970         (noinst_HEADERS): Add mbswidth.h.
78971
78972 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78973
78974         * lib/config.charset: Add support for FreeBSD. Improve support for
78975         HP-UX and IRIX 6.
78976
78977 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
78978
78979         * m4/mbswidth.m4: New file.
78980         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
78981
78982 2000-07-15  Jim Meyering  <meyering@lucent.com>
78983
78984         * lib/makepath.c: Include quote.h.
78985         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
78986         corresponding argument in a `quote (...)' call.
78987         Give better diagnostics.
78988
78989         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
78990         (noinst_HEADERS): Add quote.h.
78991
78992         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
78993         from tar's src/misc.c.
78994         * lib/quote.h: New file.  Prototypes for same.
78995
78996 2000-07-14  Paul Eggert  <eggert@twinsun.com>
78997
78998         From a suggestion by Bruno Haible.
78999         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
79000         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
79001         to decide whether to define the BeOS workaround macro;
79002         this adjusts to the change to AC_MBSTATE_T.
79003
79004 2000-07-14  Jim Meyering  <meyering@lucent.com>
79005
79006         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
79007         jm_AC_TYPE_UINTMAX_T.
79008
79009 2000-07-13  Paul Eggert  <eggert@twinsun.com>
79010
79011         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
79012
79013         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
79014         quotearg_buffer_restyled): Add support for
79015         clocale_quoting_style.  Undo previous change to
79016         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
79017         and "{RIGHT QUOTATION MARK}" msgids.
79018
79019 2000-07-10  Paul Eggert  <eggert@twinsun.com>
79020
79021         From a suggestion by Bruno Haible.
79022         * m4/mbstate_t.m4 (AC_MBSTATE_T):
79023         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
79024         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
79025         and mbstate_t, to a single-part test that simply defines mbstate_t.
79026         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
79027         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
79028
79029 2000-07-10  Jim Meyering  <meyering@lucent.com>
79030
79031         * m4/strerror_r.m4: Mirror the correction made in autoconf.
79032
79033         * m4/gnu-source.m4: Output to confdefs.h directly.
79034         Suggestion from Akim Demaille.
79035
79036 2000-07-09  Paul Eggert  <eggert@twinsun.com>
79037
79038         The old behavior of quoting `like this' doesn't look good with
79039         newer, ISO-style fonts.  See:
79040         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
79041
79042         Instead, quote "like this" by default.  Let the translator
79043         tailor the locale-specific quoting behavior by providing
79044         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
79045
79046         * lib/quotearg.c (N_): New macro.
79047         (gettext_default): New function.
79048         (quotearg_buffer_restyled): Use
79049         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
79050         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
79051
79052 2000-07-09  Jim Meyering  <meyering@lucent.com>
79053
79054         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
79055         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
79056
79057         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
79058         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
79059
79060 2000-07-09  Jim Meyering  <meyering@lucent.com>
79061
79062         * lib/Most files: Update copyright dates to include 2000.
79063
79064 2000-07-08  Jim Meyering  <meyering@lucent.com>
79065
79066         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
79067         if not defined.
79068         (xgethostname): Remove now-unnecessary #ifdef.
79069         Move declaration of `err' into loop where it's used.
79070
79071 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79072         and Bruno Haible  <haible@clisp.cons.org>
79073
79074         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
79075         only if the test for an object-type mbstate_t fails.  This
79076         prevents us from mistakenly reporting that mbstate_t is a
79077         system object type after we "#define mbstate_t int" to work
79078         around its lack.
79079
79080 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79081         and Bruno Haible  <haible@clisp.cons.org>
79082
79083         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
79084
79085 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79086
79087         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
79088         to strerror_r.
79089         Include <ctype.h> for use of isalpha.
79090
79091 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79092
79093         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
79094         by allocating a larger buffer. Test the gethostname return value for
79095         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
79096         returns an error and ENAMETOOLONG isn't defined.
79097
79098 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79099
79100         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
79101         dimension.
79102
79103 2000-07-04  Jim Meyering  <meyering@lucent.com>
79104
79105         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
79106         of the deprecated AC_CHECKING.
79107
79108 2000-07-04  Jim Meyering  <meyering@lucent.com>
79109
79110         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
79111         Reported by Bruno Haible.
79112
79113 2000-07-04  Jim Meyering  <meyering@lucent.com>
79114
79115         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
79116         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
79117         lacks mbrtowc.
79118
79119 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79120
79121         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
79122         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
79123
79124 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79125         and Bruno Haible  <haible@clisp.cons.org>
79126
79127         * lib/quotearg.c (mbrtowc):
79128         Assign to *pwc, and return 1 only if result is nonzero.
79129         (iswprint): Use ISPRINT when substituting our own mbrtowc.
79130
79131 2000-07-03  Jim Meyering  <meyering@lucent.com>
79132
79133         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
79134
79135 2000-07-03  Jim Meyering  <meyering@lucent.com>
79136
79137         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
79138         This is necessary to get a definition of e.g., UTMP_FILE on
79139         HP-UX 10.20.
79140         From Bob Proulx.
79141
79142 2000-07-02  Jim Meyering  <meyering@lucent.com>
79143
79144         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
79145
79146         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
79147         AC_LIBOBJ(function_name).
79148         * m4/chown.m4: Likewise.
79149         * m4/fnmatch.m4: Likewise.
79150         * m4/ftruncate.m4: Likewise.
79151         * m4/getgroups.m4: Likewise.
79152         * m4/getline.m4: Likewise.
79153         * m4/group-member.m4: Likewise.
79154         * m4/jm-macros.m4: Likewise.
79155         * m4/lstat.m4: Likewise.
79156         * m4/malloc.m4: Likewise.
79157         * m4/memcmp.m4: Likewise.
79158         * m4/nanosleep.m4: Likewise.
79159         * m4/putenv.m4: Likewise.
79160         * m4/realloc.m4: Likewise.
79161         * m4/regex.m4: Likewise.
79162         * m4/stat.m4: Likewise.
79163         * m4/strftime.m4: Likewise.
79164
79165 2000-07-02  Jim Meyering  <meyering@lucent.com>
79166
79167         * lib/quotearg.c (mbstate_t): Don't define here.
79168
79169 2000-07-02  Jim Meyering  <meyering@lucent.com>
79170
79171         * lib/nanosleep.c (SIGCONT): Define if not already defined.
79172
79173 2000-07-01  Jim Meyering  <meyering@lucent.com>
79174
79175         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
79176
79177 2000-07-01  Jim Meyering  <meyering@lucent.com>
79178
79179         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
79180         problem.
79181
79182 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79183
79184         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
79185         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
79186
79187 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79188
79189         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
79190         per change in ../m4/ls-mntd-fs.m4.
79191         (read_filesystem_list): Ignore symbolic links.
79192
79193 2000-06-29  Jim Meyering  <meyering@lucent.com>
79194
79195         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79196         for declaration of strcmp.
79197
79198         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79199
79200         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79201         Avoid warning by casting result to `char *' to remove `const'.
79202
79203 2000-06-28  Jim Meyering  <meyering@lucent.com>
79204
79205         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79206         included by quotearg.c, for which we perform this test.  From
79207         Bruno Haible.
79208
79209 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79210
79211         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79212         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79213         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79214
79215 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79216
79217         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79218
79219 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79220
79221         savedir now sets errno on failure and invokes xmalloc to get memory.
79222         Fix a couple of other minor bugs while we're at it.
79223
79224         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79225         (NAMLEN): Remove macro.
79226         (malloc, realloc): Remove decls.
79227         (stpcpy): Likewise.
79228         ("xalloc.h"): Include.
79229         (NAME_SIZE_DEFAULT): New macro.
79230         (savedir): Use xmalloc / xrealloc to allocate memory.
79231         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79232         Skip "" directory entries.
79233         Use strlen to calculate directory entry length, since the old method
79234         is rarely used these days and isn't worth supporting.
79235         Don't use a pointer after freeing it.
79236         Check for integer overflow when calculating allocation size.
79237         Use memcpy to copy entries, instead of stpcpy.
79238         Set errno properly when returning NULL.
79239         Check for readdir error.
79240
79241 2000-06-26  Jim Meyering  <meyering@lucent.com>
79242
79243         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79244
79245 2000-06-25  Jim Meyering  <meyering@lucent.com>
79246
79247         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79248         Linux header bug when _XOPEN_SOURCE is defined to 500.
79249
79250 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79251
79252         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79253         deficiency.
79254
79255 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79256
79257         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79258         Include xalloc.h.
79259         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79260
79261 2000-06-24  Jim Meyering  <meyering@lucent.com>
79262
79263         * m4/strerror_r.m4: Revive this file -- to try out an experimental
79264         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
79265         for which strerror does return char*, but which lacks a conveniently
79266         accessible declaration of the function.  If the compile-test says
79267         strerror_r doesn't work, then resort to a `run'-test that works on
79268         BeOS and segfaults on DEC Unix.
79269
79270 2000-06-24  Jim Meyering  <meyering@lucent.com>
79271
79272         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
79273
79274 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79275
79276         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
79277         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
79278
79279 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79280
79281         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
79282         (mbrtowc, mbstate_t): Define substitutes if
79283         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
79284         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
79285         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
79286
79287 2000-06-23  Jim Meyering  <meyering@lucent.com>
79288
79289         * m4/afs.m4: Add missing AC_MSG_RESULT.
79290         Reported by Bruno Haible.
79291
79292         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
79293         Suggestion from Bruno Haible.
79294
79295 2000-06-23  Jim Meyering  <meyering@lucent.com>
79296
79297         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
79298
79299 2000-06-21  Jim Meyering  <meyering@lucent.com>
79300
79301         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
79302
79303 2000-06-21  Jim Meyering  <meyering@lucent.com>
79304
79305         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
79306         (noinst_HEADERS): Add getstr.h.
79307
79308         * lib/getline.c (getstr): Move into a separate file.
79309         * lib/getstr.c (getstr): New file, extracted from getline.c, with
79310         the following changes: new parameter, delim2; both delim[12]
79311         parameters have type `int', not `char'.  The latter would lose
79312         with 8-bit delimiters.
79313         * lib/getstr.h: New file.
79314
79315 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79316
79317         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
79318         than 1024, return a memory chunk of least possible size, instead
79319         of size PATH_MAX + 2. In the loop, increment the size proportionally.
79320         Use free/xmalloc instead of xrealloc to avoid copying for very long
79321         paths.
79322
79323 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79324
79325         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79326         the empty string.
79327
79328 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79329
79330         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79331         address, not strdup.  Include <stdlib.h> and don't declare free().
79332
79333 2000-06-19  Jim Meyering  <meyering@lucent.com>
79334
79335         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79336
79337 2000-06-18  Jim Meyering  <meyering@lucent.com>
79338
79339         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79340
79341         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79342         `checking whether...' message to be consistent with that of the
79343         lstat test.
79344
79345 2000-06-18  Jim Meyering  <meyering@lucent.com>
79346
79347         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79348         Besides, these days every porting target provides a mkdir function.
79349
79350         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79351         needed. (this snippet comes from src/system.h).
79352
79353 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79354
79355         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79356
79357 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79358
79359         * lib/human.c (adjust_value): New function.
79360         (human_readable_inexact): Apply rounding style even when
79361         printing approximate values.
79362
79363 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79364
79365         * lib/human.c (human_readable_inexact): Allow an input block
79366         size that is not a multiple of the output block size, and vice versa.
79367         Reported by Piergiorgio Sartor.
79368
79369 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79370
79371         * lib/getdate.y (get_date): Apply relative times after time
79372         zone indicator, not before.  Reported by Todd A. Jacobs.
79373
79374 2000-06-13  Jim Meyering  <meyering@lucent.com>
79375
79376         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79377
79378         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79379
79380 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79381
79382         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79383
79384 2000-06-12  Jim Meyering  <meyering@lucent.com>
79385
79386         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79387         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79388         optional argument.
79389         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79390         the optional argument, `lib'.
79391
79392 2000-06-08  Jim Meyering  <meyering@lucent.com>
79393
79394         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79395
79396 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79397
79398         Rewrite largefile configuration so that we don't need to run
79399         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79400         AC_CANONICAL_HOST in configure.in -- jmm]
79401
79402         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79403         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79404         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79405         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79406         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79407         All uses changed.
79408         Instead of inspecting the output of getconf, try to compile the
79409         test program without and with the macro definition.
79410         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79411         for getconf.  Instead, check for the needed flags by compiling
79412         test programs.
79413
79414 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79415
79416         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79417
79418 2000-06-04  Jim Meyering  <meyering@lucent.com>
79419
79420         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79421         SunOS 4.1.4 for which gid_t is an unsigned type.
79422
79423 2000-06-03  Jim Meyering  <meyering@lucent.com>
79424
79425         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79426         now that autoconf requires that.
79427
79428         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79429         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79430         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79431
79432 2000-06-03  Jim Meyering  <meyering@lucent.com>
79433
79434         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79435
79436 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79437
79438         * m4/glibc21.m4: New file.
79439         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79440
79441 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79442
79443         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79444         newer, don't install charset.alias.
79445         * lib/config.charset: Change the Linux/glibc rules so they become empty
79446         on glibc-2.1 or newer.
79447
79448 2000-06-02  Jim Meyering  <meyering@lucent.com>
79449
79450         * lib/mountlist.c: Back out last change.  Instead, do this...
79451         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79452         me_dummy member using the same `ignore'-testing code.
79453         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79454         fs_type strings.
79455         From Mark D. Roth.
79456
79457 2000-05-29  Jim Meyering  <meyering@lucent.com>
79458
79459         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79460         mounts with the `ignore' attribute.  Based on a patch from
79461         Mark D. Roth.
79462
79463 2000-05-28  Jim Meyering  <meyering@lucent.com>
79464
79465         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79466         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79467         * m4/stat.m4: Likewise.
79468         * m4/lstat.m4: Likewise.
79469         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79470
79471         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79472         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79473
79474 2000-05-26  Jim Meyering  <meyering@lucent.com>
79475
79476         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
79477
79478 2000-05-24  Jim Meyering  <meyering@lucent.com>
79479
79480         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
79481         autoconf requires that.
79482         * m4/lib-check.m4: Likewise.
79483         * m4/jm-macros.m4: Likewise.
79484         * m4/strftime.m4: Likewise.
79485
79486         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
79487         AC_CHECK_DECLS, now that autoconf requires that.
79488
79489 2000-05-22  Jim Meyering  <meyering@lucent.com>
79490
79491         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79492         * m4/lstat.m4: Likewise.
79493
79494 2000-05-22  Jim Meyering  <meyering@lucent.com>
79495
79496         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
79497
79498 2000-05-20  Jim Meyering  <meyering@lucent.com>
79499
79500         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
79501         (jm_PREREQ): Use it.
79502
79503 2000-05-18  Jim Meyering  <meyering@lucent.com>
79504
79505         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
79506         back, too, since it may have been modified by allocate_entry.
79507         (hash_delete): Rewrite to use neither the assignment operator
79508         nor the comma operator in an if-expression.
79509
79510 2000-05-15  Paul Eggert  <eggert@twinsun.com>
79511
79512         * lib/closeout.c:
79513         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
79514         Remove; no longer needed.
79515         "quotearg.h": Add include.
79516         (file_name): Do not bother to explicitly initialize to NULL; it's less
79517         efficient on some hosts.
79518         (close_stdout_status): Remove test as to whether stdout was already
79519         closed; it breaks for the case "echo x | sort >&-".
79520         Quote file name colons.
79521         Do not assume that _("write error") lacks format strings.
79522
79523 2000-05-15  Jim Meyering  <meyering@lucent.com>
79524
79525         * lib/version-etc.c (version_etc_copyright): Update the copyright
79526         string used in all --version output.
79527
79528 2000-05-14  Jim Meyering  <meyering@lucent.com>
79529
79530         * lib/closeout.c (close_stdout_set_file_name): New function.
79531         (close_stdout_status): Use new file-scoped global.
79532         Return right away if fstat says the stdout file descriptor is invalid.
79533         * lib/closeout.h (close_stdout_set_file_name): Declare.
79534
79535 2000-05-10  Jim Meyering  <meyering@lucent.com>
79536
79537         * lib/closeout.c [default_exit_status]: New file-scoped variable.
79538         (close_stdout_set_status): New function.
79539         * lib/closeout.h (close_stdout_set_status): Declare.
79540
79541 2000-05-09  Jim Meyering  <meyering@lucent.com>
79542
79543         * m4/gettext.m4: Rename this...
79544         * m4/libintl.m4: ...to this.
79545
79546 2000-05-08  Jim Meyering  <meyering@lucent.com>
79547
79548         * lib/long-options.c: Don't include closeout.h.
79549         (parse_long_options): Don't call close_stdout for --version.
79550
79551 2000-05-06  Paul Eggert  <eggert@twinsun.com>
79552
79553         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
79554         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
79555         2.1.3 bug.  This avoids a clash when files like regex.c define
79556         _GNU_SOURCE.
79557
79558 2000-05-06  Jim Meyering  <meyering@lucent.com>
79559
79560         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
79561         (AC_REPLACE_FUNCS): Add strnlen.
79562
79563         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
79564         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
79565
79566         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
79567         AC_SEARCH_LIBS call for nanosleep.
79568         (LIB_NANOSLEEP): Set and AC_SUBST.
79569
79570 2000-05-06  Jim Meyering  <meyering@lucent.com>
79571
79572         * lib/strnlen.c: Undefine __strnlen and strnlen.
79573         [!weak_alias]: Define __strnlen to strnlen.
79574
79575         * lib/atexit.c: New file, from libiberty.
79576
79577 2000-05-06  Jim Meyering  <meyering@lucent.com>
79578
79579         * lib/closeout.c (close_stdout_status): Also check for errors on the
79580         stderr stream.
79581
79582 2000-05-05  Jim Meyering  <meyering@lucent.com>
79583
79584         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
79585         AC_SEARCH_LIBS call for clock_gettime.
79586         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
79587
79588         * m4/search-libs.m4: Update from autoconf.
79589
79590         su doesn't work on Solaris 2.6.
79591         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
79592         <shadow.h>.  Reported by Dragos Harabor.
79593
79594 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
79595
79596         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
79597         memcpy instead of xmalloc, xrealloc, path_concat.
79598         (locale_charset): Treat empty environment variables as absent.
79599         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
79600
79601 2000-05-04  Jim Meyering  <meyering@lucent.com>
79602
79603         * lib/getopt.c: Update from glibc.
79604         * lib/obstack.c: Likewise.
79605         * lib/obstack.h: Likewise.
79606         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
79607         file
79608
79609         * lib/regex.h: Likewise.
79610         * lib/strndup.c: Likewise.
79611         * lib/strnlen.c: New file, from glibc.
79612
79613 2000-05-03  Jim Meyering  <meyering@lucent.com>
79614
79615         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
79616
79617 2000-05-02  Paul Eggert  <eggert@twinsun.com>
79618
79619         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
79620         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
79621         compile-time test, rather than inspecting host and OS, to
79622         decide whether to define _LARGEFILE_SOURCE.
79623
79624 2000-05-01  Jim Meyering  <meyering@lucent.com>
79625
79626         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
79627
79628         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
79629         Based on a patch from Bruno Haible.
79630
79631 2000-05-01  Jim Meyering  <meyering@lucent.com>
79632
79633         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
79634
79635 2000-04-29  Jim Meyering  <meyering@lucent.com>
79636
79637         * lib/path-concat.c: Declare strdup only if it's not defined.
79638         * lib/canon-host.c: Likewise.
79639
79640 2000-04-28  Jim Meyering  <meyering@lucent.com>
79641
79642         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
79643         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
79644         is included first, then limits.h is included by locale.h by libintl.h.
79645         From John David Anglin.
79646
79647 2000-04-25  Jim Meyering  <meyering@lucent.com>
79648
79649         * lib/makepath.c (S_IRWXUGO): Define.
79650         (make_path): Always perform explicit chmod if MODE specifies any
79651         of the `special' permission bits.  Prompted by a bug report against
79652         install from Mate Wierdl and Joost van Baal.
79653
79654 2000-04-18  Jim Meyering  <meyering@lucent.com>
79655
79656         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
79657         (jm_PREREQ): Use it.
79658
79659 2000-04-18  Jim Meyering  <meyering@lucent.com>
79660
79661         * lib/README: New file.
79662
79663         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
79664         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
79665
79666 2000-04-17  Jim Meyering  <meyering@lucent.com>
79667
79668         Get it right :-)
79669         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
79670         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
79671         Suggestion from Akim Demaille.
79672
79673 2000-04-17  Jim Meyering  <meyering@lucent.com>
79674
79675         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
79676         the definition of it to rpl_strftime also defined-away the system's
79677         declaration.
79678
79679 2000-04-15  Jim Meyering  <meyering@lucent.com>
79680
79681         Use `C' to denote so-called `contiguous' files, the same way
79682         that tar does.
79683         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
79684         (ftypelet): Use S_ISCTG.
79685         From Michael Deutschmann.
79686
79687 2000-04-14  Jim Meyering  <meyering@lucent.com>
79688
79689         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
79690         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
79691         clobbered.
79692
79693 2000-04-14  Jim Meyering  <meyering@lucent.com>
79694
79695         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
79696
79697 2000-04-13  Jim Meyering  <meyering@lucent.com>
79698
79699         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
79700         AH_VERBATIM to insert required #ifndef into config.h.in.
79701         Suggestion from Akim Demaille.
79702
79703 2000-04-12  Jim Meyering  <meyering@lucent.com>
79704
79705         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
79706         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
79707         Christian Krackowizer.
79708
79709         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
79710         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
79711         (AC_SYS_LARGEFILE): Require.
79712         (AM_C_PROTOTYPES): Require.
79713
79714 2000-04-08  Jim Meyering  <meyering@lucent.com>
79715
79716         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
79717         names don't conflict.  Reported by Eli Zaretskii.
79718
79719 2000-04-07  Jim Meyering  <meyering@lucent.com>
79720
79721         * lib/putenv.c: Move inclusion of errno.h so it follows that of
79722         sys/types.h, to work around system header problems on AIX 3.2.5.
79723         From Bruno Haible.
79724
79725 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
79726
79727         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
79728         bug.  Deal with the different error behavior of Irix iconv.
79729
79730 2000-04-05  Paul Eggert  <eggert@twinsun.com>
79731
79732         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
79733         IRIX if the installer said otherwise.
79734
79735 2000-04-05  Jim Meyering  <meyering@lucent.com>
79736
79737         Portability tweaks required for ultrix4.3.
79738         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
79739         (jm_CHECK_DECLS): Add getutent to the list of functions.
79740         (_jm_DECL_HEADERS): Add utmpx.h.
79741         From John David Anglin.
79742
79743         * m4/strftime.m4: Back out the 2000-04-02 change.
79744         Instead of that change, simply undefine putenv in the test program.
79745
79746 2000-04-05  Jim Meyering  <meyering@lucent.com>
79747
79748         Portability tweaks required for ultrix4.3.
79749         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
79750         getutent.
79751         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
79752         * lib/canon-host.c: Declare strdup.
79753         * lib/path-concat.c: Likewise.
79754         From John David Anglin.
79755
79756 2000-04-04  Jim Meyering  <meyering@lucent.com>
79757
79758         Be more DOS 8.3-friendly.
79759         * lib/ref-add.sin: Renamed from ref-add.sed.in.
79760         * lib/ref-del.sin: Renamed from ref-del.sed.in.
79761         * lib/Makefile.am: Reflect renaming.
79762         Reported by Eli Zaretskii.
79763
79764         Use a temporary file name that won't clash with `charset.alias'
79765         in the DOS 8.3 name space.
79766         * lib/Makefile.am (charset_tmp): Define.
79767         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
79768         (uninstall-local): Likewise.
79769         Reported by Eli Zaretskii.
79770
79771 2000-04-03  Jim Meyering  <meyering@lucent.com>
79772
79773         * m4/gettext.m4: Fix typo in comment.
79774
79775         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
79776         textutils/configure.in).  Suggestion from Paul Eggert.
79777         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
79778
79779 2000-04-02  Paul Eggert  <eggert@twinsun.com>
79780
79781         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
79782         variable in the shell rather than using putenv, which isn't
79783         portable.  This avoids the configure-time inter-test dependency
79784         on the potentially-renamed putenv function.
79785
79786 2000-03-30  Paul Eggert  <eggert@twinsun.com>
79787
79788         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
79789         before checking struct stat.st_blksize, so that
79790         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
79791
79792 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79793
79794         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
79795         since strftime.c uses HAVE_STRFTIME to decide whether to use
79796         the underlying strftime.
79797
79798 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79799
79800         * lib/time/strftime.c (my_strftime): Make sure we call the system
79801         strftime, not ourselves, when invoking the underlying strftime.
79802
79803 2000-03-24  Jim Meyering  <meyering@lucent.com>
79804
79805         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
79806         (charset_alias): Define.
79807         (install-exec-local): Factor out common code.
79808         (uninstall-local): Split lines longer than 80.
79809         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
79810         (SUFFIXES): Define.
79811         (.sed.in.sed): New rule.  Don't redirect directly to $@.
79812         (CLEANFILES): Add ref-add.sed and ref-del.sed.
79813
79814 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
79815
79816         * lib/config.charset: Output a line containing "Packages using this
79817         file".
79818         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
79819         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
79820         ref-del.sed): New rules.
79821
79822 2000-03-17  Jim Meyering  <meyering@lucent.com>
79823
79824         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
79825         Otherwise, include <strings.h>
79826
79827 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
79828
79829         * lib/unicodeio.c (utf8_wctomb): New function.
79830         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
79831         format instead of in UCS-4 with platform dependent endianness.
79832
79833 2000-03-10  Jim Meyering  <meyering@lucent.com>
79834
79835         * m4/lib-check.m4: Look for getspnam in -lgen, too.
79836         From Marco Franzen.
79837
79838 2000-03-07  Paul Eggert  <eggert@twinsun.com>
79839
79840         * lib/savedir.c (savedir): Work even if directory size is
79841         negative; this can happen with some screwy NFS configurations.
79842
79843 2000-03-06  Jim Meyering  <meyering@lucent.com>
79844
79845         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
79846         if it's NULL (because we ran out of memory).  From Bruno Haible.
79847
79848 2000-03-05  Jim Meyering  <meyering@lucent.com>
79849
79850         * lib/localcharset.c ("path-concat.h"): Include.
79851         (get_charset_aliases): Use path_concat instead of ANSI string
79852         concatenation.
79853
79854         * lib/unicodeio.h (PARAMS): Define.
79855         Use it to guard prototype.
79856
79857 2000-03-04  Jim Meyering  <meyering@lucent.com>
79858
79859         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
79860         for lib/localcharset.c.
79861
79862 2000-03-04  Jim Meyering  <meyering@lucent.com>
79863
79864         * lib/Makefile.am (install-exec-local): Create $(libdir) before
79865         installing into it.
79866         (uninstall-local): Uncomment this rule so `make distcheck' works
79867         once again.
79868
79869         * lib/unicodeio.c (<errno.h>): Include it.
79870         (errno): Declare if not defined.
79871
79872         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
79873
79874         * lib/config.charset: New version, incorporating remarks from a linux
79875         i18n mailing list.  From Bruno Haible.
79876
79877 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
79878
79879         * m4/codeset.m4: New file.
79880         * m4/iconv.m4: New file.
79881         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
79882
79883 2000-03-03  Jim Meyering  <meyering@lucent.com>
79884
79885         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
79886
79887 2000-03-02  Jim Meyering  <meyering@lucent.com>
79888
79889         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
79890         the messages come out on separate lines.
79891
79892         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
79893         rather than jm_CHECK_DECLARATIONS.
79894         * m4/decl.m4: Remove now-unused file.
79895
79896         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
79897         geteuid.
79898
79899 2000-03-02  Jim Meyering  <meyering@lucent.com>
79900
79901         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
79902
79903 2000-03-01  Jim Meyering  <meyering@lucent.com>
79904
79905         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
79906         * lib/unicodeio.c: Likewise.
79907
79908 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
79909
79910         * lib/config.charset: New file.
79911         * lib/localcharset.c: New file.
79912         * lib/unicodeio.h, lib/unicodeio.c: New files.
79913         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
79914         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
79915         (noinst_HEADERS): Add unicodeio.h.
79916         (all-local, install-exec-local, charset.alias): New targets.
79917
79918 2000-02-28  Paul Eggert  <eggert@twinsun.com>
79919
79920         * lib/quotearg.c (ALERT_CHAR): New macro.
79921         (quotearg_buffer_restyled): Use it.
79922
79923 2000-02-27  Jim Meyering  <meyering@lucent.com>
79924
79925         * m4/check-decl.m4: Add getenv to the list.
79926
79927 2000-02-27  Jim Meyering  <meyering@lucent.com>
79928
79929         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
79930         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
79931
79932         * lib/backupfile.c: Guard inclusion of stdlib.h with
79933         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
79934         Declare malloc if needed.
79935
79936         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
79937         `#ifndef HAVE_DECL..'
79938         now that autoconf always defines the HAVE_DECL_ symbols.
79939         * lib/human.c: Likewise.
79940         * lib/same.c: Likewise.
79941         * lib/strtoumax.c: Likewise.
79942
79943         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
79944         declaration check was not run.
79945         * lib/hash.c: Likewise.
79946         * lib/human.c: Likewise.
79947         * lib/same.c: Likewise.
79948         * lib/strtoumax.c: Likewise.
79949
79950         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
79951         `.', then first look up the entire `.'-containing string as a login
79952         name.
79953
79954 2000-02-23  Jim Meyering  <meyering@lucent.com>
79955
79956         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
79957         in place of my hack.
79958
79959 2000-02-18  Paul Eggert  <eggert@twinsun.com>
79960
79961         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
79962         (textint): New typedef.
79963         (parser_control): Member year changed from int to textint.
79964         All uses changed.
79965         (YYSTYPE): Removed; replaced by %union with int and textint members.
79966         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
79967         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
79968         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
79969         (tSNUMBER, tUNUMBER): Now of type <textintval>.
79970         (date, number, to_year): Use width of number in digits, not its value,
79971         to determine whether it's a 2-digit year, or a 2-digit time.
79972         (yylex): Store number of digits of numeric tokens.
79973         Reported by John Kendall.
79974
79975         (parser_control): Changed from struct parser_control to typedef (for
79976         consistency).  All uses changed.
79977
79978         (tID): Removed; not used.
79979         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
79980
79981 2000-02-14  Paul Eggert  <eggert@twinsun.com>
79982
79983         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
79984         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
79985
79986 2000-02-12  Jim Meyering  <meyering@lucent.com>
79987
79988         * lib/userspec.c (ISDIGIT): Define it.
79989         (isdigit): Remove definition.
79990         (is_number): Use ISDIGIT, not isdigit.
79991         <libintl.h>: Include.
79992         (_ and N_): Define.
79993         (parse_user_spec): Mark translatable strings.
79994
79995 2000-02-10  Jim Meyering  <meyering@lucent.com>
79996
79997         With these changes, nanosleep.[ch] are finally enough like the other
79998         lib/* replacement files to compile on a few more losing systems.
79999
80000         * lib/nanosleep.h: Don't include config.h.
80001         Remove prototype from declaration of nanosleep.
80002         (PARAMS): Remove now-unneeded definition.
80003         * lib/nanosleep.c: #undef nanosleep.
80004         (rpl_nanosleep): Rename from nanosleep.
80005
80006 2000-02-10  Jim Meyering  <meyering@lucent.com>
80007
80008         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
80009         gnu_nanosleep to rpl_nanosleep.
80010
80011 2000-02-09  Jim Meyering  <meyering@lucent.com>
80012
80013         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
80014         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
80015
80016 2000-02-08  Akim Demaille  <akim@epita.fr>
80017
80018         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
80019         `[' and `]' and remove uses of `changequote'.
80020         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
80021         (AC_SYS_LARGEFILE): Likewise.
80022         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
80023         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
80024         of changequote.
80025         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
80026         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
80027         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
80028         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
80029
80030 2000-02-05  Jim Meyering  <meyering@lucent.com>
80031
80032         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
80033         Remove explicit use of AC_HEADER_TIME.  It is required by
80034         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
80035         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
80036         in autoconf whereby the expansion of the latter ended up preceding
80037         the expansion of its prerequisite, AC_HEADER_TIME.
80038         Reported by Volker Borchert.
80039
80040 2000-02-03  Jim Meyering  <meyering@lucent.com>
80041
80042         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
80043
80044 2000-02-03  Jim Meyering  <meyering@lucent.com>
80045
80046         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
80047         rather than with `#if HAVE_UTMPNAME'.
80048
80049 2000-02-02  Jim Meyering  <meyering@lucent.com>
80050
80051         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
80052         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
80053         Reported by Eli Zaretskii.
80054
80055 2000-02-01  Jim Meyering  <meyering@lucent.com>
80056
80057         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
80058
80059 2000-01-31  Jim Meyering  <meyering@lucent.com>
80060
80061         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
80062         functions.  Add the time.h and sys/time.h headers along with the
80063         AC_REQUIRE'ment of AC_HEADER_TIME.
80064
80065 2000-01-31  Jim Meyering  <meyering@lucent.com>
80066
80067         * lib/nanosleep.h (nanosleep): Guard declaration with
80068         `#if ! HAVE_DECL_NANOSLEEP'.
80069         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
80070         the declaration in that vendor's sys/timers.h.
80071         Reported by Christian Krackowizer.
80072
80073         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
80074         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
80075         (ISPRINT): Likewise.
80076         Reported by Tom Tromey.
80077
80078 2000-01-30  Jim Meyering  <meyering@lucent.com>
80079
80080         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
80081
80082         * m4/prereq.m4 (utmp_includes): Define.
80083         Check for ut_user and ut_name members in both struct utmpx
80084         and struct utmp.
80085
80086 2000-01-30  Jim Meyering  <meyering@lucent.com>
80087
80088         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
80089         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
80090         header files where only utmpx.ut_user is declared.
80091
80092         * lib/readutmp.h (UT_USER): Define.
80093
80094 2000-01-29  Jim Meyering  <meyering@lucent.com>
80095
80096         * m4/lib-check.m4: New file containing library-related checks from
80097         fileutils and sh-utils (textutils had none).
80098
80099 2000-01-28  Jim Meyering  <meyering@lucent.com>
80100
80101         * m4/perl.m4: Change format of warning message to look more like that
80102         from the missing script.  Suggestion from François Pinard.
80103
80104 2000-01-25  Jim Meyering  <meyering@lucent.com>
80105
80106         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
80107         well as time.h in the compile check.
80108         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
80109         Fix typo in cross-compiling case: s/yes/no/.
80110
80111 2000-01-23  Jim Meyering  <meyering@lucent.com>
80112
80113         * m4/jm-macros.m4: Move df-related tests here from
80114         fileutils/configure.in
80115
80116         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
80117         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
80118
80119         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
80120         s/space/ac_fsusage_space/.
80121         (jm_FILE_SYSTEM_USAGE): Take two parameters.
80122
80123         * m4/ftruncate.m4: New file (derived from part of
80124         fileutils/configure.in).
80125         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
80126         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
80127
80128         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
80129         AC_SUBST these here, rather than just in sh-util/configure.in, so
80130         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
80131         all the same.
80132         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
80133         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
80134         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
80135         (AC_SUBST(POW_LIBM)): Likewise.
80136         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
80137
80138 2000-01-23  Jim Meyering  <meyering@lucent.com>
80139
80140         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
80141         obstack.c.
80142
80143 2000-01-22  Jim Meyering  <meyering@lucent.com>
80144
80145         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
80146
80147         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
80148
80149         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
80150         configure.in
80151         (AC_CHECK_HEADERS): Likewise for sh-utils.
80152         (AC_CHECK_HEADERS): Likewise for textutils.
80153         Merge the three lists of headers.
80154
80155         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
80156         from fileutils' configure.in.
80157
80158         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
80159         code. Moved tests into their own function (_jm_DECL_HEADERS) in
80160         check-decl.m4.
80161
80162         * m4/check-decl.m4: Use #if rather than #ifdef.
80163         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
80164         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
80165         (_jm_DECL_HEADERS): Define new function.
80166         (jm_CHECK_DECLARATIONS): Require it.
80167
80168 2000-01-22  Jim Meyering  <meyering@lucent.com>
80169
80170         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
80171         [! HAVE_DECL_STRTOULL]: Declare strtoull.
80172         Required for some AIX systems.  Reported by Christian Krackowizer.
80173         [TESTING] (main): New function.
80174
80175         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
80176         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
80177         letters.
80178
80179         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
80180         iswprint.
80181
80182         * lib/strverscmp.c (ISDIGIT): Define.
80183         (strverscmp): Use ISDIGIT, not isdigit.
80184
80185 2000-01-19  Jim Meyering  <meyering@lucent.com>
80186
80187         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
80188         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
80189         defines `struct timespec' in <sys/time.h>
80190
80191         * m4/c-bs-a.m4: Remove uses of changequote altogether.
80192         Thanks to Akim for explaining.
80193
80194 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80195
80196         * lib/nanosleep.c (nanosleep):
80197         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80198         POSIX.1 doesn't require SA_INTERRUPT and some systems
80199         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80200         it's been part of POSIX.1 since day 1 (in 1988).
80201
80202 2000-01-17  Jim Meyering  <meyering@lucent.com>
80203
80204         * lib/interlock: Remove unused file.  Reported by François Pinard.
80205
80206 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80207
80208         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80209         alert, backslash, formfeed, and vertical tab unnecessarily in
80210         shell quoting style.
80211
80212 2000-01-16  Jim Meyering  <meyering@lucent.com>
80213
80214         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80215         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80216         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80217         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80218
80219 2000-01-16  Jim Meyering  <meyering@lucent.com>
80220
80221         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80222         because the latter didn't work.
80223
80224 2000-01-15  Jim Meyering  <meyering@lucent.com>
80225
80226         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80227         (AC_REPLACE_FUNCS): Add memcpy and memset.
80228         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80229         Add strpbrk.
80230         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80231
80232 2000-01-12  Jim Meyering  <meyering@lucent.com>
80233
80234         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80235         (jm_PREREQ): Use it.
80236         (jm_PREREQ_READUTMP): New macro.
80237         (jm_PREREQ): Use it.
80238
80239 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80240
80241         Quote multibyte characters correctly.
80242         * m4/c-bs-a.m4: New file.
80243         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80244         (jm_PREREQ): Use it.
80245
80246 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80247
80248         * m4/uintmax_t.m4: Port to autoconf 2.13.
80249
80250 2000-01-08  Jim Meyering  <meyering@ascend.com>
80251
80252         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80253         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80254
80255 2000-01-04  Jim Meyering  <meyering@ascend.com>
80256
80257         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80258         jm_STRUCT_DIRENT_D_TYPE.
80259         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80260         jm_STRUCT_DIRENT_D_INO.
80261         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80262         jm_STRUCT_UTIMBUF.
80263         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
80264         renamings.
80265         * m4/utime.m4: Likewise.
80266
80267         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
80268         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
80269
80270 2000-01-03  Paul Eggert  <eggert@twinsun.com>
80271
80272         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
80273         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
80274
80275 2000-01-02  Jim Meyering  <meyering@ascend.com>
80276
80277         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
80278         remember if this is necessary.
80279
80280 1999-12-26  Jim Meyering  <meyering@ascend.com>
80281
80282         * m4/jm-macros.m4: Use it here.
80283         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
80284
80285 1999-12-23  Jim Meyering  <meyering@ascend.com>
80286
80287         * m4/jm-macros.m4: Check for clock_gettime (moved from
80288         fileutils/configure.in)
80289         Check for gettimeofday.
80290
80291 1999-12-20  Jim Meyering  <meyering@ascend.com>
80292
80293         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
80294         autoconf-2.14a-1999-12-20.
80295
80296 1999-12-19  Jim Meyering  <meyering@ascend.com>
80297
80298         * m4/lstat-slash.m4: New file.
80299         * m4/jm-macros.m4: Use the new macro:
80300         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80301
80302 1999-12-07  Jim Meyering  <meyering@ascend.com>
80303
80304         * m4/perl.m4: Require that File::Compare be available, too.
80305         Too many systems seem to lack it.
80306
80307         * m4/strftime.m4: Add checks for most of the cpp macros tested in
80308         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
80309
80310 1999-11-18  Paul Eggert  <eggert@twinsun.com>
80311
80312         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
80313         problem with the QNX 4.25 shell, which doesn't propagate exit
80314         status of failed commands inside shell assignments.
80315
80316 1999-11-17  Jim Meyering  <meyering@ascend.com>
80317
80318         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
80319
80320 1999-11-07  Jim Meyering  <meyering@ascend.com>
80321
80322         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80323
80324 1999-11-06  Jim Meyering  <meyering@ascend.com>
80325
80326         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80327         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80328
80329 1999-11-05  Jim Meyering  <meyering@ascend.com>
80330
80331         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80332         configure.in of textutils, fileutils, and sh-utils into this one
80333         (shared between those packages) file.
80334         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80335         AC_STRUCT_ST_BLKSIZE.
80336
80337 1999-11-03  Jim Meyering  <meyering@ascend.com>
80338
80339         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80340         of AC_CHECK_TYPE checks includes unistd.h.
80341         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80342         Suggestion from Akim Demaille.
80343
80344 1999-10-30  Jim Meyering  <meyering@ascend.com>
80345
80346         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80347         m4-quoted string.
80348         * m4/ls-mntd-fs.m4: Likewise.
80349         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80350         * m4/jm-winsz1.m4: Likewise.
80351
80352         * m4/const.m4: Remove file, since the fix made it into the experimental
80353         version of autoconf.
80354         * m4/mktime.m4: Likewise.
80355
80356         * m4/check-type.m4: Remove file, now that the latest version of
80357         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80358
80359         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80360         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80361         AC_CHECK_TYPE.
80362
80363 1999-10-04  Jim Meyering  <meyering@ascend.com>
80364
80365         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80366
80367 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80368
80369         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80370         2.95.1 bug with HP-UX 10.20.
80371
80372 1999-09-17  Jim Meyering  <meyering@ascend.com>
80373
80374         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80375         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80376         due to missing strdup (against sh-utils-2.0).
80377
80378 1999-08-29  Jim Meyering  <meyering@ascend.com>
80379
80380         * m4/jm-macros.m4: Require jm_BISON.
80381         * m4/bison.m4: New file.
80382
80383 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80384
80385         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80386         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80387
80388 1999-08-05  Jim Meyering  <meyering@ascend.com>
80389
80390         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80391         to avoid conflicts with `conftest' on 8+3 filesystems.
80392         Suggestion from Eli Zaretskii.
80393
80394 1999-08-04  Jim Meyering  <meyering@ascend.com>
80395
80396         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80397         fileutils and sh-utils (textutils's getline test was inadequate).
80398         (AM_FUNC_GETLINE): Run this test.
80399         (AC_CHECK_FUNCS): Check for getdelim.
80400         Reported by Bob Proulx.
80401
80402 1999-08-02  Jim Meyering  <meyering@ascend.com>
80403
80404         * m4/jm-macros.m4: Add a comment.
80405
80406 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80407
80408         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80409         <inttypes.h> defines strtoumax as a macro (and not as a
80410         function).
80411
80412 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80413
80414         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80415         that we can shift, multiply and divide unsigned long long
80416         values; Ultrix cc can't do it.
80417
80418 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80419
80420         * m4/mktime.m4: New file, which is a preview of what should appear
80421         in the next public autoconf release.
80422
80423 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80424
80425         * m4/lfs.m4: Remove this file.
80426         * m4/largefile.m4: New file.  It contains the old contents of
80427         lfs.m4, except that all names with prefix AC_LFS have been
80428         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80429         compatible with future autoconf versions.  Also, some minor m4
80430         quoting problems have been fixed.
80431
80432 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80433
80434         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80435         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80436         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80437         and simplify the shell code.
80438
80439 1999-08-01  Jim Meyering  <meyering@ascend.com>
80440
80441         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80442         m4.
80443
80444 1999-07-20  Jim Meyering  <meyering@ascend.com>
80445
80446         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80447
80448 1999-07-15  Jim Meyering  <meyering@ascend.com>
80449
80450         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80451
80452 1999-05-22  Jim Meyering  <meyering@ascend.com>
80453
80454         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80455
80456 1999-05-20  Jim Meyering  <meyering@ascend.com>
80457
80458         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80459         Add a colon after each `then' in case $4 is empty.
80460
80461 1999-05-16  Jim Meyering  <meyering@ascend.com>
80462
80463         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80464
80465 1999-05-10  Jim Meyering  <meyering@ascend.com>
80466
80467         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80468
80469         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80470         AC_FUNC_MKTIME.
80471
80472 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80473
80474         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
80475
80476 1999-05-04  Paul Eggert  <eggert@twinsun.com>
80477
80478         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
80479         not CPPFLAGS, so that linking works correctly in IRIX.
80480
80481 1999-04-30  Paul Eggert  <eggert@twinsun.com>
80482
80483         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
80484
80485 1999-04-20  Paul Eggert  <eggert@twinsun.com>
80486
80487         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
80488         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
80489         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
80490         jm_AC_TYPE_UNSIGNED_LONG_LONG.
80491         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
80492
80493         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
80494
80495 1999-04-20  Jim Meyering  <meyering@ascend.com>
80496
80497         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
80498         AC_REPLACE xstroull if necessary.  From Paul Eggert.
80499         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
80500
80501 1999-04-18  Jim Meyering  <meyering@ascend.com>
80502
80503         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
80504         * m4/jm-macros.m4: Use it.
80505
80506 1999-04-06  Jim Meyering  <meyering@ascend.com>
80507
80508         * m4/strftime.m4: Remove test for %f.
80509
80510 1999-03-29  Jim Meyering  <meyering@ascend.com>
80511
80512         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
80513         superset of the AC_TYPE_* checks in the textutils, fileutils,
80514         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
80515         AC_TYPE_PID_T.
80516
80517 1999-03-28  Jim Meyering  <meyering@ascend.com>
80518
80519         * m4/jm-macros.m4: Define GNU_PACKAGE here.
80520         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
80521         replaced e.g., in the *.sh files of the sh-utils.
80522
80523 1999-03-20  Jim Meyering  <meyering@ascend.com>
80524
80525         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
80526         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
80527         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
80528
80529 1999-03-19  Jim Meyering  <meyering@ascend.com>
80530
80531         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
80532
80533 1999-03-12  Jim Meyering  <meyering@ascend.com>
80534
80535         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
80536
80537 1999-03-07  Jim Meyering  <meyering@ascend.com>
80538
80539         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
80540         declared.
80541
80542 1999-02-17  Jim Meyering  <meyering@ascend.com>
80543
80544         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
80545         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
80546
80547 1999-02-07  Jim Meyering  <meyering@ascend.com>
80548
80549         * m4/group-member.m4: New file -- extracted from sh-utils'
80550         configure.in.
80551
80552         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
80553         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
80554
80555 1999-02-06  Jim Meyering  <meyering@ascend.com>
80556
80557         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
80558         * m4/fnmatch.m4: Likewise.
80559         * m4/getgroups.m4: Likewise.
80560         * m4/lstat.m4: Likewise.
80561         * m4/malloc.m4: Likewise.
80562         * m4/putenv.m4: Likewise.
80563         * m4/realloc.m4: Likewise.
80564         * m4/regex.m4: Likewise.
80565         * m4/stat.m4: Likewise.
80566         * m4/strftime.m4: Likewise.
80567         Suggestion from Alain Magloire.
80568
80569         * m4/chown.m4: Use `.$ac_objext', not `.o'.
80570         * m4/fnmatch.m4: Likewise.
80571         * m4/getgroups.m4: Likewise.
80572         * m4/getline.m4: Likewise.
80573         * m4/lstat.m4: Likewise.
80574         * m4/malloc.m4: Likewise.
80575         * m4/memcmp.m4: Likewise.
80576         * m4/putenv.m4: Likewise.
80577         * m4/realloc.m4: Likewise.
80578         * m4/regex.m4: Likewise.
80579         * m4/stat.m4: Likewise.
80580         * m4/strftime.m4: Likewise.
80581         Suggestion from Alain Magloire.
80582
80583         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
80584         an argument.
80585
80586         * m4/regex.m4: Add a run-time Test for proper operation of
80587         re_compile_pattern.
80588
80589 1999-01-31  Jim Meyering  <meyering@ascend.com>
80590
80591         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
80592
80593 1999-01-30  Jim Meyering  <meyering@ascend.com>
80594
80595         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
80596
80597         * m4/jm-mktime.m4: Make this a wrapper around the official
80598         AM_FUNC_MKTIME rather than my private copy, now that the official one
80599         is up to date.
80600         * m4/mktime.m4: Remove file.
80601
80602         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
80603         * m4/uptime.m4: Likewise.
80604         * m4/uintmax_t.m4: Likewise.
80605
80606 1999-01-28  Jim Meyering  <meyering@ascend.com>
80607
80608         * m4/jm-macros.m4: Use jm_AFS.
80609         * m4/afs.m4: New file (from fileutils' configure.in).
80610
80611         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
80612         * m4/chown.m4: Likewise.
80613         * m4/d-ino.m4: Likewise.
80614         * m4/d-type.m4: Likewise.
80615         * m4/fnmatch.m4: Likewise.
80616         * m4/getgroups.m4: Likewise.
80617         * m4/gettext.m4: Likewise.
80618         * m4/jm-mktime.m4: Likewise.
80619         * m4/jm-winsz2.m4: Likewise.
80620         * m4/lcmessage.m4: Likewise.
80621         * m4/ls-mntd-fs.m4: Likewise.
80622         * m4/malloc.m4: Likewise.
80623         * m4/memcmp.m4: Likewise.
80624         * m4/putenv.m4: Likewise.
80625         * m4/realloc.m4: Likewise.
80626         * m4/st_mtim.m4: Likewise.
80627         * m4/strftime.m4: Likewise.
80628
80629 1999-01-16  Jim Meyering  <meyering@ascend.com>
80630
80631         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
80632         (ARGMATCH_DIE_DECL): Define.
80633
80634 1999-01-12  Jim Meyering  <meyering@ascend.com>
80635
80636         * m4/Makefile.am.in: Rewrite to avoid using fmt.
80637         Reported by Lars Hecking.
80638
80639 1999-01-10  Jim Meyering  <meyering@ascend.com>
80640
80641         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
80642         gross kludge.
80643         * m4/inttypes_h.m4: Likewise.
80644         * m4/lstat.m4: Likewise.
80645         * m4/malloc.m4: Likewise.
80646         * m4/readdir.m4: Likewise.
80647         * m4/realloc.m4: Likewise.
80648         * m4/st_dm_mode.m4: Likewise.
80649         * m4/stat.m4: Likewise.
80650         * m4/utimbuf.m4: Likewise.
80651         * m4/utimes.m4: Likewise.
80652
80653         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
80654         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
80655         comments in config.h.in are meaningful.
80656
80657         * m4/jm-macros.m4: Require autoconf-2.13 here.
80658
80659         * m4/regex.m4: By default, don't use the included regex.c on systems
80660         with glibc 2.  Suggestion from Uli Drepper.
80661
80662 1999-01-02  Jim Meyering  <meyering@ascend.com>
80663
80664         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
80665
80666 1998-12-18  Jim Meyering  <meyering@ascend.com>
80667
80668         * m4/Makefile.am.in (Makefile.am): Simplify rule.
80669         Based on a suggestion from Lars Hecking.
80670
80671 1998-11-16  Paul Eggert  <eggert@twinsun.com>
80672
80673         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
80674
80675 1998-11-16  Jim Meyering  <meyering@ascend.com>
80676
80677         * m4/lfs.m4: Double-quote the `uname...` expression.
80678
80679 1998-11-14  Jim Meyering  <meyering@ascend.com>
80680
80681         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
80682         * m4/stat.m4: Likewise.
80683
80684 1998-11-03  Jim Meyering  <meyering@ascend.com>
80685
80686         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
80687         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
80688
80689 1998-10-18  Jim Meyering  <meyering@ascend.com>
80690
80691         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
80692
80693 1998-10-17  Jim Meyering  <meyering@ascend.com>
80694
80695         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
80696         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
80697         calls for those previously hard-coded headers.  Instead, take a new
80698         parameter.
80699         (jm_CHECK_DECLARATIONS): Reflect interface change.
80700         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
80701         (jm_CHECK_DECL_LOCALTIME_R): New macro.
80702
80703         * m4/mktime.m4: Test for spring-forward gap before long-running test.
80704
80705 1998-10-14  Jim Meyering  <meyering@ascend.com>
80706
80707         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
80708         instead of "TZ=America/Vancouver".  From Paul Eggert.
80709
80710 1998-10-11  Jim Meyering  <meyering@ascend.com>
80711
80712         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
80713         This adds a test for a recently added compatibility fix for mktime.c.
80714         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
80715
80716 1998-09-27  Jim Meyering  <meyering@ascend.com>
80717
80718         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
80719
80720         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
80721         ../configure.in, including a change from Gordon Matzigkeit to allow
80722         cross-compiling for the Hurd.
80723
80724         * m4/glibc.m4: New file/macro to test for the GNU C Library
80725         versions 1 and 2.  From Gordon Matzigkeit.
80726         Indent.
80727
80728 1998-09-21  Jim Meyering  <meyering@ascend.com>
80729
80730         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
80731
80732 1998-08-18  Paul Eggert  <eggert@twinsun.com>
80733
80734         Port nanosecond-resolution times to UnixWare 2.1.2 and
80735         pedantic Solaris 2.6.
80736
80737         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
80738         AC_STRUCT_ST_MTIM.
80739         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
80740         Generate name of ns member, instead of just 1 or undef.
80741         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
80742
80743 1998-08-15  Jim Meyering  <meyering@ascend.com>
80744
80745         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
80746         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
80747         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
80748         instead of jm_TYPE_SSIZE_T.
80749
80750 1998-08-12  Jim Meyering  <meyering@ascend.com>
80751
80752         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
80753
80754 1998-08-02  Jim Meyering  <meyering@ascend.com>
80755
80756         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
80757         in acconfig.h manually.
80758
80759 1998-07-31  Paul Eggert  <eggert@twinsun.com>
80760
80761         * m4/st_mtim.m4: New file.
80762
80763 1998-07-28  Jim Meyering  <meyering@ascend.com>
80764
80765         * m4/utimes.m4: Undef stat.
80766
80767 1998-07-25  Jim Meyering  <meyering@ascend.com>
80768
80769         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
80770         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
80771
80772 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
80773
80774         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
80775         uid and gid actually remain unchanged.
80776
80777 1998-07-07  Jim Meyering  <meyering@ascend.com>
80778
80779         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
80780
80781 1998-07-04  Jim Meyering  <meyering@ascend.com>
80782
80783         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
80784         to prove that this macro can be used in packages without regex.c.
80785
80786 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
80787
80788         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
80789         is to be used.
80790
80791 1998-07-03  Jim Meyering  <meyering@ascend.com>
80792
80793         * m4/gettext.m4: Add -lintl if it's found to be necessary.
80794
80795         * m4/gettext.m4: New file -- from gettext-0.10.35.
80796         * m4/lcmessage.m4: Likewise.
80797         * m4/progtest.m4: Likewise.
80798
80799         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
80800         * m4/jm-macros.m4: Require the new macro.
80801
80802 1998-06-29  Jim Meyering  <meyering@ascend.com>
80803
80804         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
80805         for the definition of NGROUPS (used in a system header included
80806         by sys/mount.h).
80807
80808 1998-06-28  Jim Meyering  <meyering@ascend.com>
80809
80810         * m4/ls-mntd-fs.m4: New file.
80811         * m4/fstypename.m4: New file.
80812
80813         * m4/jm-macros.m4: Require the new macro.
80814         * m4/jm-glibc-io.m4: New file.
80815
80816 1998-05-19  Jim Meyering  <meyering@ascend.com>
80817
80818         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
80819         * m4/lchown.m4: New file.
80820
80821         * m4/Makefile.am.in: New file.
80822         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
80823
80824 1998-05-14  Jim Meyering  <meyering@ascend.com>
80825
80826         * m4/Makefile.am (EXTRA_DIST): Add them.
80827         * m4/jm-macros.m4: New file.
80828         * m4/utimbuf.m4: New file.
80829
80830 1998-05-12  Jim Meyering  <meyering@ascend.com>
80831
80832         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
80833
80834 1998-05-11  Jim Meyering  <meyering@ascend.com>
80835
80836         * m4/isc-posix.m4: New file.
80837
80838 1998-05-10  Jim Meyering  <meyering@ascend.com>
80839
80840         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
80841
80842 1998-05-09  Jim Meyering  <meyering@ascend.com>
80843
80844         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
80845         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
80846         with automake.
80847
80848         * m4/ssize_t.m4: New file.
80849         * m4/mktime.m4: Remove file -- the new automake has this now.
80850
80851 1998-04-26  Jim Meyering  <meyering@ascend.com>
80852
80853         * m4/assert.m4: New file.
80854         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
80855
80856 1998-04-05  Jim Meyering  <meyering@ascend.com>
80857
80858         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
80859         (jm_PREREQ): Use it here.
80860
80861 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
80862
80863         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
80864         in acconfig.h.
80865
80866 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
80867
80868         * m4/prereq.m4: New file.
80869         * m4/error.m4: New file.
80870         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
80871
80872 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
80873
80874         * m4/getline.m4: Don't set am_cv_func_working_getline before the
80875         cache-check for the same variable -- that defeated the purpose of
80876         the test; the test program was never run.  This was a problem only
80877         on systems with losing getline functions -- HP-UX 10.20 is one.
80878         Reported by Bjorn Helgaas.
80879
80880 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
80881
80882         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
80883
80884 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
80885
80886         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
80887
80888         * m4/const.m4: New file.  Use an initializer in this declaration
80889         typedef int charset[2]; const charset x;
80890         Reported by Bob Glickstein.
80891
80892 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
80893
80894         * m4/chown.m4: Fix reversed types on -1 args to chown.
80895         From Kaveh Ghazi.
80896
80897 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
80898
80899         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
80900         Add lseek and memchr.
80901
80902         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
80903         T.E.Dickey <dickey@clark.net> said that some older preprocessors
80904         have a 20-character limit on names.
80905
80906 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
80907
80908         * m4/inttypes_h.m4: New file.
80909         * m4/uintmax_t.m4: New file.
80910         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
80911
80912
80913         -----
80914
80915         Local Variables:
80916         coding: utf-8
80917         End:
80918
80919         Copyright (C) 1997-2011 Free Software Foundation, Inc.
80920
80921         Copying and distribution of this file, with or without
80922         modification, are permitted provided the copyright notice
80923         and this notice are preserved.